feat(app): update
This commit is contained in:
@ -7,9 +7,9 @@ import (
|
||||
"github.com/aliyun/alibaba-cloud-sdk-go/services/slb"
|
||||
)
|
||||
|
||||
// LTAI5tCB8SmJcwfO
|
||||
// dX4kgF4VcblsbCVdKvtCGCmvNbLkZK
|
||||
// ./AliyunCloudClient -t b -o update -key LTAI5tCB8SmJcwfO -sec dX4kgF4VcblsbCVdKvtCGCmvNbLkZK -reg cn-hangzhou -lb "[{"ServerId":"ServerId","Weight":"0"}]
|
||||
// LTAI5tCB8SmJcwfO1
|
||||
// dX4kgF4VcblsbCVdKvtCGCmvNbLkZK1
|
||||
// ./AliyunCloudClient -t b -o update -key LTAI5tCB8SmJcwfO1 -sec dX4kgF4VcblsbCVdKvtCGCmvNbLkZK1 -reg cn-hangzhou -lb "[{"ServerId":"ServerId","Weight":"0"}]
|
||||
func main() {
|
||||
var target string
|
||||
flag.StringVar(&target, "t", "b", "target: b=backendServer")
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func main02() {
|
||||
data := ReadSheet("./CmdTools/星钻VIP体系.xlsx", 0)
|
||||
data := ReadSheet("./CmdTools/1.xlsx", 0)
|
||||
fmt.Println(json.Marshal(data))
|
||||
for index, item := range data {
|
||||
if index > 0 {
|
||||
|
||||
@ -10,8 +10,8 @@ import (
|
||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
|
||||
)
|
||||
|
||||
// ./TencentCloudClient -t b -o add -key AKIDSoxxjI5tukPr9ECsQmwthKhroaCZlldI -sec b1FG2b3JMrESVLxjJdhYDgx12qPiplXB -reg ap-shanghai -params "{\"LoadBalancerId\":\"lb-jip7505r\",\"Targets\":[{\"InstanceId\":\"ins-n2i7x483\",\"Weight\":20}]}"
|
||||
// ./TencentCloudClient -t b -o remove -key AKIDSoxxjI5tukPr9ECsQmwthKhroaCZlldI -sec b1FG2b3JMrESVLxjJdhYDgx12qPiplXB -reg ap-shanghai -params "{\"LoadBalancerId\":\"lb-jip7505r\",\"InstanceIds\":[\"ins-n2i7x483\"]}"
|
||||
// ./TencentCloudClient -t b -o add -key AKIDSoxxjI5tukPr9ECsQmwthKhroaCZlldI1 -sec b1FG2b3JMrESVLxjJdhYDgx12qPiplXB1 -reg ap-shanghai -params "{\"LoadBalancerId\":\"lb-jip7505r\",\"Targets\":[{\"InstanceId\":\"ins-n2i7x483\",\"Weight\":20}]}"
|
||||
// ./TencentCloudClient -t b -o remove -key AKIDSoxxjI5tukPr9ECsQmwthKhroaCZlldI1 -sec b1FG2b3JMrESVLxjJdhYDgx12qPiplXB1 -reg ap-shanghai -params "{\"LoadBalancerId\":\"lb-jip7505r\",\"InstanceIds\":[\"ins-n2i7x483\"]}"
|
||||
func main03() {
|
||||
|
||||
var target string
|
||||
|
||||
Reference in New Issue
Block a user