From c3b2b2c38f8e3ca8990d1edd1917223bc969dc6d Mon Sep 17 00:00:00 2001
From: SevenEarth <391613297@qq.com>
Date: Thu, 20 Nov 2025 10:24:41 +0800
Subject: [PATCH 1/3] add
---
go.mod | 4 +-
go.sum | 7 +
.../services/clb/resource_tc_clb_listener.go | 112 +
.../tencentcloud/clb/v20180317/client.go | 657 +++---
.../tencentcloud/clb/v20180317/errors.go | 14 +-
.../tencentcloud/clb/v20180317/models.go | 1969 +++++++++--------
.../tencentcloud/common/http/request.go | 4 +
vendor/modules.txt | 6 +-
8 files changed, 1527 insertions(+), 1246 deletions(-)
diff --git a/go.mod b/go.mod
index 5ba3e7996a..3fdc03fd40 100644
--- a/go.mod
+++ b/go.mod
@@ -43,10 +43,10 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/chdfs v1.0.600
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ciam v1.0.695
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.1073
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1107
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.1206
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.1.52
diff --git a/go.sum b/go.sum
index 872e4a2827..601c7e2b3a 100644
--- a/go.sum
+++ b/go.sum
@@ -863,6 +863,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.1073 h1:+nT
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.1073/go.mod h1:D9xdyB3utAtgGwTExSGxHSVQMfVHEUo/bfaBTxjHkao=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1107 h1:sUiyGfYHzNpHKJx6DlRu1K8xBEGaWlOQT+8W5Ws0v4U=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1107/go.mod h1:L1r6mc7XjFlyLlOVqRvPEhjXneHywnyjyv9EoiGBRvM=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55 h1:+Ev7tV+pjE/RZqHiopmYPKChF30OjRGn6KS8ubBByq8=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55/go.mod h1:EL80jbu+ubwrNnTZHsp+jaWat2fKGkS/B9MYB/42exA=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033 h1:dIr+MVsZeUBiKZELfJh5HRJdI+BI6lCp5pv/2oXekuk=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033/go.mod h1:7oFlNimGSTHFy6JV7W/IZKuJWr+NUjCnGLTvb9MWNrY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148 h1:tPQHJE07DGCJWrQJklrkrF0CasB86M7AEb0PrkXNjAM=
@@ -935,10 +937,15 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.46/go.mod h
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.48/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.49/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.50/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
+<<<<<<< HEAD
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.52/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.3/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4 h1:k8QEWznn11evs+N5ZGQMCCPnzAHxnul2mRIZJB8Lwbo=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
+=======
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55 h1:8kT5ktFibG46S7WImjNkHx6N5b6vNFIVxPuj6rDMgb8=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
+>>>>>>> 2e9465052 (add)
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993 h1:WlPgXldQCxt7qi5Xrc6j6zTrsXWzN5BcOGs7Irq7fwQ=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993/go.mod h1:Z9U8zNtyuyKhjS0698wqsrG/kLx1TQ5CEixXBwVe7xY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU=
diff --git a/tencentcloud/services/clb/resource_tc_clb_listener.go b/tencentcloud/services/clb/resource_tc_clb_listener.go
index 0683b7d8cb..4ef61d997b 100644
--- a/tencentcloud/services/clb/resource_tc_clb_listener.go
+++ b/tencentcloud/services/clb/resource_tc_clb_listener.go
@@ -293,6 +293,36 @@ func ResourceTencentCloudClbListener() *schema.Resource {
Optional: true,
Description: "Connection idle timeout period (in seconds). It's only available to TCP listeners. Value range: 300-900 for shared and dedicated instances; 300-2000 for LCU-supported CLB instances. It defaults to 900. To set a period longer than 2000 seconds (up to 3600 seconds). Please submit a work order for processing.",
},
+ "reschedule_target_zero_weight": {
+ Type: schema.TypeBool,
+ Computed: true,
+ Optional: true,
+ Description: "The rescheduling function, with a weight of 0 as a switch, triggers rescheduling when the weight of the backend server is set to 0. Only supported by TCP/UDP listeners.",
+ },
+ "reschedule_unhealthy": {
+ Type: schema.TypeBool,
+ Computed: true,
+ Optional: true,
+ Description: "Rescheduling function, health check exception switch. Enabling this switch triggers rescheduling when a backend server fails a health check. Supported only by TCP/UDP listeners.",
+ },
+ "reschedule_expand_target": {
+ Type: schema.TypeBool,
+ Computed: true,
+ Optional: true,
+ Description: "The rescheduling function, a switch for scaling backend services, triggers rescheduling when backend servers are added or removed. Only supported by TCP/UDP listeners.",
+ },
+ "reschedule_start_time": {
+ Type: schema.TypeInt,
+ Computed: true,
+ Optional: true,
+ Description: "Reschedule the trigger start time, with a value ranging from 0 to 3600 seconds. Only supported by TCP/UDP listeners.",
+ },
+ "reschedule_interval": {
+ Type: schema.TypeInt,
+ Computed: true,
+ Optional: true,
+ Description: "Rescheduled trigger duration, ranging from 0 to 3600 seconds. Supported only by TCP/UDP listeners.",
+ },
//computed
"listener_id": {
Type: schema.TypeString,
@@ -431,6 +461,26 @@ func resourceTencentCloudClbListenerCreate(d *schema.ResourceData, meta interfac
request.IdleConnectTimeout = helper.IntInt64(v.(int))
}
+ if v, ok := d.GetOkExists("reschedule_target_zero_weight"); ok {
+ request.RescheduleTargetZeroWeight = helper.Bool(v.(bool))
+ }
+
+ if v, ok := d.GetOkExists("reschedule_unhealthy"); ok {
+ request.RescheduleUnhealthy = helper.Bool(v.(bool))
+ }
+
+ if v, ok := d.GetOkExists("reschedule_expand_target"); ok {
+ request.RescheduleExpandTarget = helper.Bool(v.(bool))
+ }
+
+ if v, ok := d.GetOkExists("reschedule_start_time"); ok {
+ request.RescheduleStartTime = helper.IntInt64(v.(int))
+ }
+
+ if v, ok := d.GetOkExists("reschedule_interval"); ok {
+ request.RescheduleInterval = helper.IntInt64(v.(int))
+ }
+
var response *clb.CreateListenerResponse
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().CreateListener(request)
@@ -652,6 +702,33 @@ func resourceTencentCloudClbListenerRead(d *schema.ResourceData, meta interface{
_ = d.Set("idle_connect_timeout", instance.IdleConnectTimeout)
}
+ if instance.RescheduleInterval != nil {
+ _ = d.Set("reschedule_interval", instance.RescheduleInterval)
+ }
+
+ if instance.RescheduleStartTime != nil {
+ _ = d.Set("reschedule_start_time", instance.RescheduleStartTime)
+ }
+
+ _ = d.Set("reschedule_target_zero_weight", false)
+ _ = d.Set("reschedule_unhealthy", false)
+ _ = d.Set("reschedule_expand_target", false)
+ if instance.AttrFlags != nil {
+ for _, item := range instance.AttrFlags {
+ if item != nil && *item == "RescheduleTargetZeroWeight" {
+ _ = d.Set("reschedule_target_zero_weight", true)
+ }
+
+ if item != nil && *item == "RescheduleUnhealthy" {
+ _ = d.Set("reschedule_unhealthy", true)
+ }
+
+ if item != nil && *item == "RescheduleExpandTarget" {
+ _ = d.Set("reschedule_expand_target", true)
+ }
+ }
+ }
+
return nil
}
@@ -777,6 +854,41 @@ func resourceTencentCloudClbListenerUpdate(d *schema.ResourceData, meta interfac
}
}
+ if d.HasChange("reschedule_target_zero_weight") {
+ changed = true
+ if v, ok := d.GetOkExists("reschedule_target_zero_weight"); ok {
+ request.RescheduleTargetZeroWeight = helper.Bool(v.(bool))
+ }
+ }
+
+ if d.HasChange("reschedule_unhealthy") {
+ changed = true
+ if v, ok := d.GetOkExists("reschedule_unhealthy"); ok {
+ request.RescheduleUnhealthy = helper.Bool(v.(bool))
+ }
+ }
+
+ if d.HasChange("reschedule_expand_target") {
+ changed = true
+ if v, ok := d.GetOkExists("reschedule_expand_target"); ok {
+ request.RescheduleExpandTarget = helper.Bool(v.(bool))
+ }
+ }
+
+ if d.HasChange("reschedule_start_time") {
+ changed = true
+ if v, ok := d.GetOkExists("reschedule_start_time"); ok {
+ request.RescheduleStartTime = helper.IntInt64(v.(int))
+ }
+ }
+
+ if d.HasChange("reschedule_interval") {
+ changed = true
+ if v, ok := d.GetOkExists("reschedule_interval"); ok {
+ request.RescheduleInterval = helper.IntInt64(v.(int))
+ }
+ }
+
if changed {
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
response, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().ModifyListener(request)
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/client.go
index dc956f4f7d..d1ac73dd00 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/client.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/client.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -45,128 +45,6 @@ func NewClient(credential common.CredentialIface, region string, clientProfile *
}
-func NewAddCustomizedConfigRequest() (request *AddCustomizedConfigRequest) {
- request = &AddCustomizedConfigRequest{
- BaseRequest: &tchttp.BaseRequest{},
- }
-
- request.Init().WithApiInfo("clb", APIVersion, "AddCustomizedConfig")
-
-
- return
-}
-
-func NewAddCustomizedConfigResponse() (response *AddCustomizedConfigResponse) {
- response = &AddCustomizedConfigResponse{
- BaseResponse: &tchttp.BaseResponse{},
- }
- return
-
-}
-
-// AddCustomizedConfig
-// 新增个性化配置,准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// MISSINGPARAMETER = "MissingParameter"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) AddCustomizedConfig(request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error) {
- return c.AddCustomizedConfigWithContext(context.Background(), request)
-}
-
-// AddCustomizedConfig
-// 新增个性化配置,准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// MISSINGPARAMETER = "MissingParameter"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) AddCustomizedConfigWithContext(ctx context.Context, request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error) {
- if request == nil {
- request = NewAddCustomizedConfigRequest()
- }
-
- if c.GetCredential() == nil {
- return nil, errors.New("AddCustomizedConfig require credential")
- }
-
- request.SetContext(ctx)
-
- response = NewAddCustomizedConfigResponse()
- err = c.Send(request, response)
- return
-}
-
-func NewAssociateCustomizedConfigRequest() (request *AssociateCustomizedConfigRequest) {
- request = &AssociateCustomizedConfigRequest{
- BaseRequest: &tchttp.BaseRequest{},
- }
-
- request.Init().WithApiInfo("clb", APIVersion, "AssociateCustomizedConfig")
-
-
- return
-}
-
-func NewAssociateCustomizedConfigResponse() (response *AssociateCustomizedConfigResponse) {
- response = &AssociateCustomizedConfigResponse{
- BaseResponse: &tchttp.BaseResponse{},
- }
- return
-
-}
-
-// AssociateCustomizedConfig
-// 关联配置到server或location,根据配置类型关联到server或location。准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
-// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
-// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) AssociateCustomizedConfig(request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error) {
- return c.AssociateCustomizedConfigWithContext(context.Background(), request)
-}
-
-// AssociateCustomizedConfig
-// 关联配置到server或location,根据配置类型关联到server或location。准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
-// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
-// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) AssociateCustomizedConfigWithContext(ctx context.Context, request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error) {
- if request == nil {
- request = NewAssociateCustomizedConfigRequest()
- }
-
- if c.GetCredential() == nil {
- return nil, errors.New("AssociateCustomizedConfig require credential")
- }
-
- request.SetContext(ctx)
-
- response = NewAssociateCustomizedConfigResponse()
- err = c.Send(request, response)
- return
-}
-
func NewAssociateTargetGroupsRequest() (request *AssociateTargetGroupsRequest) {
request = &AssociateTargetGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -189,7 +67,15 @@ func NewAssociateTargetGroupsResponse() (response *AssociateTargetGroupsResponse
// AssociateTargetGroups
// 本接口(AssociateTargetGroups)用来将目标组绑定到负载均衡的监听器(四层协议)或转发规则(七层协议)上。
//
-// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
+//
+// 限制说明:
+//
+// - 四层监听器绑定旧版目标组需要监听器开启后端目标组。
+//
+// - 七层绑定目标组,数据结构 TargetGroupAssociation 中 LocationId 为必填项。
+//
+// - 负载均衡的 VPC 需要和目标组的 VPC 一致。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -206,7 +92,15 @@ func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (r
// AssociateTargetGroups
// 本接口(AssociateTargetGroups)用来将目标组绑定到负载均衡的监听器(四层协议)或转发规则(七层协议)上。
//
-// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
+//
+// 限制说明:
+//
+// - 四层监听器绑定旧版目标组需要监听器开启后端目标组。
+//
+// - 七层绑定目标组,数据结构 TargetGroupAssociation 中 LocationId 为必填项。
+//
+// - 负载均衡的 VPC 需要和目标组的 VPC 一致。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -220,6 +114,7 @@ func (c *Client) AssociateTargetGroupsWithContext(ctx context.Context, request *
if request == nil {
request = NewAssociateTargetGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "AssociateTargetGroups")
if c.GetCredential() == nil {
return nil, errors.New("AssociateTargetGroups require credential")
@@ -303,6 +198,7 @@ func (c *Client) AutoRewriteWithContext(ctx context.Context, request *AutoRewrit
if request == nil {
request = NewAutoRewriteRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "AutoRewrite")
if c.GetCredential() == nil {
return nil, errors.New("AutoRewrite require credential")
@@ -384,6 +280,7 @@ func (c *Client) BatchDeregisterTargetsWithContext(ctx context.Context, request
if request == nil {
request = NewBatchDeregisterTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchDeregisterTargets")
if c.GetCredential() == nil {
return nil, errors.New("BatchDeregisterTargets require credential")
@@ -447,6 +344,7 @@ func (c *Client) BatchModifyTargetTagWithContext(ctx context.Context, request *B
if request == nil {
request = NewBatchModifyTargetTagRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchModifyTargetTag")
if c.GetCredential() == nil {
return nil, errors.New("BatchModifyTargetTag require credential")
@@ -508,6 +406,7 @@ func (c *Client) BatchModifyTargetWeightWithContext(ctx context.Context, request
if request == nil {
request = NewBatchModifyTargetWeightRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchModifyTargetWeight")
if c.GetCredential() == nil {
return nil, errors.New("BatchModifyTargetWeight require credential")
@@ -587,6 +486,7 @@ func (c *Client) BatchRegisterTargetsWithContext(ctx context.Context, request *B
if request == nil {
request = NewBatchRegisterTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchRegisterTargets")
if c.GetCredential() == nil {
return nil, errors.New("BatchRegisterTargets require credential")
@@ -631,9 +531,9 @@ func NewCloneLoadBalancerResponse() (response *CloneLoadBalancerResponse) {
//
// 实例属性维度限制:
//
-// - 支持克隆网络计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
+// - 支持克隆实例计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
//
-// - 不支持克隆未关联实例计费项的 CLB。
+// - 不支持克隆未关联实例计费项的 CLB(历史免费活动创建)。
//
// - 不支持克隆传统型负载均衡实例和高防 CLB。
//
@@ -700,9 +600,9 @@ func (c *Client) CloneLoadBalancer(request *CloneLoadBalancerRequest) (response
//
// 实例属性维度限制:
//
-// - 支持克隆网络计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
+// - 支持克隆实例计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
//
-// - 不支持克隆未关联实例计费项的 CLB。
+// - 不支持克隆未关联实例计费项的 CLB(历史免费活动创建)。
//
// - 不支持克隆传统型负载均衡实例和高防 CLB。
//
@@ -756,6 +656,7 @@ func (c *Client) CloneLoadBalancerWithContext(ctx context.Context, request *Clon
if request == nil {
request = NewCloneLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CloneLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("CloneLoadBalancer require credential")
@@ -821,6 +722,7 @@ func (c *Client) CreateClsLogSetWithContext(ctx context.Context, request *Create
if request == nil {
request = NewCreateClsLogSetRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateClsLogSet")
if c.GetCredential() == nil {
return nil, errors.New("CreateClsLogSet require credential")
@@ -855,7 +757,7 @@ func NewCreateListenerResponse() (response *CreateListenerResponse) {
// CreateListener
// 在一个负载均衡实例下创建监听器。
//
-// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -877,7 +779,7 @@ func (c *Client) CreateListener(request *CreateListenerRequest) (response *Creat
// CreateListener
// 在一个负载均衡实例下创建监听器。
//
-// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -896,6 +798,7 @@ func (c *Client) CreateListenerWithContext(ctx context.Context, request *CreateL
if request == nil {
request = NewCreateListenerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateListener")
if c.GetCredential() == nil {
return nil, errors.New("CreateListener require credential")
@@ -928,11 +831,11 @@ func NewCreateLoadBalancerResponse() (response *CreateLoadBalancerResponse) {
}
// CreateLoadBalancer
-// 本接口(CreateLoadBalancer)用来创建负载均衡实例(本接口只支持购买按量计费的负载均衡,包年包月的负载均衡请通过控制台购买)。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
+// 本接口(CreateLoadBalancer)用来创建负载均衡实例。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
//
// 注意:(1)可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域是否支持创建IPv6实例;(2)一个账号在每个地域的默认购买配额为:公网100个,内网100个。
//
-// 本接口为异步接口,接口成功返回后,可使用 DescribeLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
+// 本接口为异步接口,接口成功返回后,可使用 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -953,11 +856,11 @@ func (c *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (respons
}
// CreateLoadBalancer
-// 本接口(CreateLoadBalancer)用来创建负载均衡实例(本接口只支持购买按量计费的负载均衡,包年包月的负载均衡请通过控制台购买)。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
+// 本接口(CreateLoadBalancer)用来创建负载均衡实例。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
//
// 注意:(1)可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域是否支持创建IPv6实例;(2)一个账号在每个地域的默认购买配额为:公网100个,内网100个。
//
-// 本接口为异步接口,接口成功返回后,可使用 DescribeLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
+// 本接口为异步接口,接口成功返回后,可使用 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -977,6 +880,7 @@ func (c *Client) CreateLoadBalancerWithContext(ctx context.Context, request *Cre
if request == nil {
request = NewCreateLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("CreateLoadBalancer require credential")
@@ -1011,10 +915,11 @@ func NewCreateLoadBalancerSnatIpsResponse() (response *CreateLoadBalancerSnatIps
// CreateLoadBalancerSnatIps
// 针对SnatPro负载均衡,这个接口用于添加SnatIp,如果负载均衡没有开启SnatPro,添加SnatIp后会自动开启。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1030,10 +935,11 @@ func (c *Client) CreateLoadBalancerSnatIps(request *CreateLoadBalancerSnatIpsReq
// CreateLoadBalancerSnatIps
// 针对SnatPro负载均衡,这个接口用于添加SnatIp,如果负载均衡没有开启SnatPro,添加SnatIp后会自动开启。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1046,6 +952,7 @@ func (c *Client) CreateLoadBalancerSnatIpsWithContext(ctx context.Context, reque
if request == nil {
request = NewCreateLoadBalancerSnatIpsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateLoadBalancerSnatIps")
if c.GetCredential() == nil {
return nil, errors.New("CreateLoadBalancerSnatIps require credential")
@@ -1080,10 +987,11 @@ func NewCreateRuleResponse() (response *CreateRuleResponse) {
// CreateRule
// CreateRule 接口用于在一个已存在的负载均衡七层监听器下创建转发规则,七层监听器中,后端服务必须绑定到规则上而非监听器上。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1100,10 +1008,11 @@ func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleRes
// CreateRule
// CreateRule 接口用于在一个已存在的负载均衡七层监听器下创建转发规则,七层监听器中,后端服务必须绑定到规则上而非监听器上。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1117,6 +1026,7 @@ func (c *Client) CreateRuleWithContext(ctx context.Context, request *CreateRuleR
if request == nil {
request = NewCreateRuleRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateRule")
if c.GetCredential() == nil {
return nil, errors.New("CreateRule require credential")
@@ -1178,6 +1088,7 @@ func (c *Client) CreateTargetGroupWithContext(ctx context.Context, request *Crea
if request == nil {
request = NewCreateTargetGroupRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateTargetGroup")
if c.GetCredential() == nil {
return nil, errors.New("CreateTargetGroup require credential")
@@ -1249,6 +1160,7 @@ func (c *Client) CreateTopicWithContext(ctx context.Context, request *CreateTopi
if request == nil {
request = NewCreateTopicRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateTopic")
if c.GetCredential() == nil {
return nil, errors.New("CreateTopic require credential")
@@ -1261,75 +1173,6 @@ func (c *Client) CreateTopicWithContext(ctx context.Context, request *CreateTopi
return
}
-func NewDeleteCustomizedConfigRequest() (request *DeleteCustomizedConfigRequest) {
- request = &DeleteCustomizedConfigRequest{
- BaseRequest: &tchttp.BaseRequest{},
- }
-
- request.Init().WithApiInfo("clb", APIVersion, "DeleteCustomizedConfig")
-
-
- return
-}
-
-func NewDeleteCustomizedConfigResponse() (response *DeleteCustomizedConfigResponse) {
- response = &DeleteCustomizedConfigResponse{
- BaseResponse: &tchttp.BaseResponse{},
- }
- return
-
-}
-
-// DeleteCustomizedConfig
-// 删除个性化配置,准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// INVALIDPARAMETERVALUE = "InvalidParameterValue"
-// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
-// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
-// LIMITEXCEEDED = "LimitExceeded"
-// MISSINGPARAMETER = "MissingParameter"
-// RESOURCEINSUFFICIENT = "ResourceInsufficient"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) DeleteCustomizedConfig(request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error) {
- return c.DeleteCustomizedConfigWithContext(context.Background(), request)
-}
-
-// DeleteCustomizedConfig
-// 删除个性化配置,准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// INVALIDPARAMETERVALUE = "InvalidParameterValue"
-// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
-// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
-// LIMITEXCEEDED = "LimitExceeded"
-// MISSINGPARAMETER = "MissingParameter"
-// RESOURCEINSUFFICIENT = "ResourceInsufficient"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) DeleteCustomizedConfigWithContext(ctx context.Context, request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error) {
- if request == nil {
- request = NewDeleteCustomizedConfigRequest()
- }
-
- if c.GetCredential() == nil {
- return nil, errors.New("DeleteCustomizedConfig require credential")
- }
-
- request.SetContext(ctx)
-
- response = NewDeleteCustomizedConfigResponse()
- err = c.Send(request, response)
- return
-}
-
func NewDeleteListenerRequest() (request *DeleteListenerRequest) {
request = &DeleteListenerRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -1352,7 +1195,7 @@ func NewDeleteListenerResponse() (response *DeleteListenerResponse) {
// DeleteListener
// 本接口用来删除负载均衡实例下的监听器(四层和七层)。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1369,7 +1212,7 @@ func (c *Client) DeleteListener(request *DeleteListenerRequest) (response *Delet
// DeleteListener
// 本接口用来删除负载均衡实例下的监听器(四层和七层)。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1383,6 +1226,7 @@ func (c *Client) DeleteListenerWithContext(ctx context.Context, request *DeleteL
if request == nil {
request = NewDeleteListenerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteListener")
if c.GetCredential() == nil {
return nil, errors.New("DeleteListener require credential")
@@ -1417,10 +1261,13 @@ func NewDeleteLoadBalancerResponse() (response *DeleteLoadBalancerResponse) {
// DeleteLoadBalancer
// DeleteLoadBalancer 接口用以删除指定的一个或多个负载均衡实例。成功删除后,会把负载均衡实例下的监听器、转发规则一起删除,并把后端服务解绑。
//
-// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk"
+// FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk"
+// FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1437,10 +1284,13 @@ func (c *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (respons
// DeleteLoadBalancer
// DeleteLoadBalancer 接口用以删除指定的一个或多个负载均衡实例。成功删除后,会把负载均衡实例下的监听器、转发规则一起删除,并把后端服务解绑。
//
-// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk"
+// FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk"
+// FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1454,6 +1304,7 @@ func (c *Client) DeleteLoadBalancerWithContext(ctx context.Context, request *Del
if request == nil {
request = NewDeleteLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("DeleteLoadBalancer require credential")
@@ -1488,7 +1339,7 @@ func NewDeleteLoadBalancerListenersResponse() (response *DeleteLoadBalancerListe
// DeleteLoadBalancerListeners
// 该接口支持删除负载均衡的多个监听器。
//
-// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1507,7 +1358,7 @@ func (c *Client) DeleteLoadBalancerListeners(request *DeleteLoadBalancerListener
// DeleteLoadBalancerListeners
// 该接口支持删除负载均衡的多个监听器。
//
-// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1523,6 +1374,7 @@ func (c *Client) DeleteLoadBalancerListenersWithContext(ctx context.Context, req
if request == nil {
request = NewDeleteLoadBalancerListenersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteLoadBalancerListeners")
if c.GetCredential() == nil {
return nil, errors.New("DeleteLoadBalancerListeners require credential")
@@ -1557,10 +1409,11 @@ func NewDeleteLoadBalancerSnatIpsResponse() (response *DeleteLoadBalancerSnatIps
// DeleteLoadBalancerSnatIps
// 这个接口用于删除SnatPro的负载均衡的SnatIp。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1574,10 +1427,11 @@ func (c *Client) DeleteLoadBalancerSnatIps(request *DeleteLoadBalancerSnatIpsReq
// DeleteLoadBalancerSnatIps
// 这个接口用于删除SnatPro的负载均衡的SnatIp。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -1588,6 +1442,7 @@ func (c *Client) DeleteLoadBalancerSnatIpsWithContext(ctx context.Context, reque
if request == nil {
request = NewDeleteLoadBalancerSnatIpsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteLoadBalancerSnatIps")
if c.GetCredential() == nil {
return nil, errors.New("DeleteLoadBalancerSnatIps require credential")
@@ -1663,6 +1518,7 @@ func (c *Client) DeleteRewriteWithContext(ctx context.Context, request *DeleteRe
if request == nil {
request = NewDeleteRewriteRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteRewrite")
if c.GetCredential() == nil {
return nil, errors.New("DeleteRewrite require credential")
@@ -1697,7 +1553,7 @@ func NewDeleteRuleResponse() (response *DeleteRuleResponse) {
// DeleteRule
// DeleteRule 接口用来删除负载均衡实例七层监听器下的转发规则。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1715,7 +1571,7 @@ func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleRes
// DeleteRule
// DeleteRule 接口用来删除负载均衡实例七层监听器下的转发规则。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1730,6 +1586,7 @@ func (c *Client) DeleteRuleWithContext(ctx context.Context, request *DeleteRuleR
if request == nil {
request = NewDeleteRuleRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteRule")
if c.GetCredential() == nil {
return nil, errors.New("DeleteRule require credential")
@@ -1762,7 +1619,7 @@ func NewDeleteTargetGroupsResponse() (response *DeleteTargetGroupsResponse) {
}
// DeleteTargetGroups
-// 删除目标组
+// 删除目标组,支持批量删除目标组,单次最多批量删除 20 个目标组。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1775,7 +1632,7 @@ func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (respons
}
// DeleteTargetGroups
-// 删除目标组
+// 删除目标组,支持批量删除目标组,单次最多批量删除 20 个目标组。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1787,6 +1644,7 @@ func (c *Client) DeleteTargetGroupsWithContext(ctx context.Context, request *Del
if request == nil {
request = NewDeleteTargetGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteTargetGroups")
if c.GetCredential() == nil {
return nil, errors.New("DeleteTargetGroups require credential")
@@ -1827,7 +1685,7 @@ func NewDeregisterFunctionTargetsResponse() (response *DeregisterFunctionTargets
//
//
//
-// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
+// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、东京、硅谷地域支持绑定 SCF。
//
// - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
//
@@ -1868,7 +1726,7 @@ func (c *Client) DeregisterFunctionTargets(request *DeregisterFunctionTargetsReq
//
//
//
-// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
+// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、东京、硅谷地域支持绑定 SCF。
//
// - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
//
@@ -1900,6 +1758,7 @@ func (c *Client) DeregisterFunctionTargetsWithContext(ctx context.Context, reque
if request == nil {
request = NewDeregisterFunctionTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterFunctionTargets")
if c.GetCredential() == nil {
return nil, errors.New("DeregisterFunctionTargets require credential")
@@ -1934,7 +1793,7 @@ func NewDeregisterTargetGroupInstancesResponse() (response *DeregisterTargetGrou
// DeregisterTargetGroupInstances
// 从目标组中解绑服务器。
//
-// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1950,7 +1809,7 @@ func (c *Client) DeregisterTargetGroupInstances(request *DeregisterTargetGroupIn
// DeregisterTargetGroupInstances
// 从目标组中解绑服务器。
//
-// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -1963,6 +1822,7 @@ func (c *Client) DeregisterTargetGroupInstancesWithContext(ctx context.Context,
if request == nil {
request = NewDeregisterTargetGroupInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterTargetGroupInstances")
if c.GetCredential() == nil {
return nil, errors.New("DeregisterTargetGroupInstances require credential")
@@ -2032,6 +1892,7 @@ func (c *Client) DeregisterTargetsWithContext(ctx context.Context, request *Dere
if request == nil {
request = NewDeregisterTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterTargets")
if c.GetCredential() == nil {
return nil, errors.New("DeregisterTargets require credential")
@@ -2097,6 +1958,7 @@ func (c *Client) DeregisterTargetsFromClassicalLBWithContext(ctx context.Context
if request == nil {
request = NewDeregisterTargetsFromClassicalLBRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterTargetsFromClassicalLB")
if c.GetCredential() == nil {
return nil, errors.New("DeregisterTargetsFromClassicalLB require credential")
@@ -2158,6 +2020,7 @@ func (c *Client) DescribeBlockIPListWithContext(ctx context.Context, request *De
if request == nil {
request = NewDescribeBlockIPListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeBlockIPList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeBlockIPList require credential")
@@ -2211,6 +2074,7 @@ func (c *Client) DescribeBlockIPTaskWithContext(ctx context.Context, request *De
if request == nil {
request = NewDescribeBlockIPTaskRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeBlockIPTask")
if c.GetCredential() == nil {
return nil, errors.New("DescribeBlockIPTask require credential")
@@ -2276,6 +2140,7 @@ func (c *Client) DescribeClassicalLBByInstanceIdWithContext(ctx context.Context,
if request == nil {
request = NewDescribeClassicalLBByInstanceIdRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBByInstanceId")
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBByInstanceId require credential")
@@ -2341,6 +2206,7 @@ func (c *Client) DescribeClassicalLBHealthStatusWithContext(ctx context.Context,
if request == nil {
request = NewDescribeClassicalLBHealthStatusRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBHealthStatus")
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBHealthStatus require credential")
@@ -2408,6 +2274,7 @@ func (c *Client) DescribeClassicalLBListenersWithContext(ctx context.Context, re
if request == nil {
request = NewDescribeClassicalLBListenersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBListeners")
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBListeners require credential")
@@ -2473,6 +2340,7 @@ func (c *Client) DescribeClassicalLBTargetsWithContext(ctx context.Context, requ
if request == nil {
request = NewDescribeClassicalLBTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBTargets")
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBTargets require credential")
@@ -2528,6 +2396,7 @@ func (c *Client) DescribeClsLogSetWithContext(ctx context.Context, request *Desc
if request == nil {
request = NewDescribeClsLogSetRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClsLogSet")
if c.GetCredential() == nil {
return nil, errors.New("DescribeClsLogSet require credential")
@@ -2593,6 +2462,7 @@ func (c *Client) DescribeClusterResourcesWithContext(ctx context.Context, reques
if request == nil {
request = NewDescribeClusterResourcesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClusterResources")
if c.GetCredential() == nil {
return nil, errors.New("DescribeClusterResources require credential")
@@ -2658,6 +2528,7 @@ func (c *Client) DescribeCrossTargetsWithContext(ctx context.Context, request *D
if request == nil {
request = NewDescribeCrossTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeCrossTargets")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCrossTargets require credential")
@@ -2721,6 +2592,7 @@ func (c *Client) DescribeCustomizedConfigAssociateListWithContext(ctx context.Co
if request == nil {
request = NewDescribeCustomizedConfigAssociateListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeCustomizedConfigAssociateList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCustomizedConfigAssociateList require credential")
@@ -2808,6 +2680,7 @@ func (c *Client) DescribeCustomizedConfigListWithContext(ctx context.Context, re
if request == nil {
request = NewDescribeCustomizedConfigListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeCustomizedConfigList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCustomizedConfigList require credential")
@@ -2873,6 +2746,7 @@ func (c *Client) DescribeExclusiveClustersWithContext(ctx context.Context, reque
if request == nil {
request = NewDescribeExclusiveClustersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeExclusiveClusters")
if c.GetCredential() == nil {
return nil, errors.New("DescribeExclusiveClusters require credential")
@@ -2946,6 +2820,7 @@ func (c *Client) DescribeIdleLoadBalancersWithContext(ctx context.Context, reque
if request == nil {
request = NewDescribeIdleLoadBalancersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeIdleLoadBalancers")
if c.GetCredential() == nil {
return nil, errors.New("DescribeIdleLoadBalancers require credential")
@@ -3013,6 +2888,7 @@ func (c *Client) DescribeLBListenersWithContext(ctx context.Context, request *De
if request == nil {
request = NewDescribeLBListenersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLBListeners")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLBListeners require credential")
@@ -3025,6 +2901,74 @@ func (c *Client) DescribeLBListenersWithContext(ctx context.Context, request *De
return
}
+func NewDescribeLBOperateProtectRequest() (request *DescribeLBOperateProtectRequest) {
+ request = &DescribeLBOperateProtectRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLBOperateProtect")
+
+
+ return
+}
+
+func NewDescribeLBOperateProtectResponse() (response *DescribeLBOperateProtectResponse) {
+ response = &DescribeLBOperateProtectResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLBOperateProtect
+// 查询负载均衡的操作保护信息。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// OPERATIONDENIED = "OperationDenied"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLBOperateProtect(request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error) {
+ return c.DescribeLBOperateProtectWithContext(context.Background(), request)
+}
+
+// DescribeLBOperateProtect
+// 查询负载均衡的操作保护信息。
+//
+// 可能返回的错误码:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// OPERATIONDENIED = "OperationDenied"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLBOperateProtectWithContext(ctx context.Context, request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error) {
+ if request == nil {
+ request = NewDescribeLBOperateProtectRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLBOperateProtect")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLBOperateProtect require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLBOperateProtectResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewDescribeListenersRequest() (request *DescribeListenersRequest) {
request = &DescribeListenersRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -3080,6 +3024,7 @@ func (c *Client) DescribeListenersWithContext(ctx context.Context, request *Desc
if request == nil {
request = NewDescribeListenersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeListeners")
if c.GetCredential() == nil {
return nil, errors.New("DescribeListeners require credential")
@@ -3141,6 +3086,7 @@ func (c *Client) DescribeLoadBalancerListByCertIdWithContext(ctx context.Context
if request == nil {
request = NewDescribeLoadBalancerListByCertIdRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancerListByCertId")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancerListByCertId require credential")
@@ -3200,6 +3146,7 @@ func (c *Client) DescribeLoadBalancerOverviewWithContext(ctx context.Context, re
if request == nil {
request = NewDescribeLoadBalancerOverviewRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancerOverview")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancerOverview require credential")
@@ -3257,6 +3204,7 @@ func (c *Client) DescribeLoadBalancerTrafficWithContext(ctx context.Context, req
if request == nil {
request = NewDescribeLoadBalancerTrafficRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancerTraffic")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancerTraffic require credential")
@@ -3326,6 +3274,7 @@ func (c *Client) DescribeLoadBalancersWithContext(ctx context.Context, request *
if request == nil {
request = NewDescribeLoadBalancersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancers")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancers require credential")
@@ -3391,6 +3340,7 @@ func (c *Client) DescribeLoadBalancersDetailWithContext(ctx context.Context, req
if request == nil {
request = NewDescribeLoadBalancersDetailRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancersDetail")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancersDetail require credential")
@@ -3444,6 +3394,7 @@ func (c *Client) DescribeQuotaWithContext(ctx context.Context, request *Describe
if request == nil {
request = NewDescribeQuotaRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeQuota")
if c.GetCredential() == nil {
return nil, errors.New("DescribeQuota require credential")
@@ -3509,6 +3460,7 @@ func (c *Client) DescribeResourcesWithContext(ctx context.Context, request *Desc
if request == nil {
request = NewDescribeResourcesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeResources")
if c.GetCredential() == nil {
return nil, errors.New("DescribeResources require credential")
@@ -3578,6 +3530,7 @@ func (c *Client) DescribeRewriteWithContext(ctx context.Context, request *Descri
if request == nil {
request = NewDescribeRewriteRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeRewrite")
if c.GetCredential() == nil {
return nil, errors.New("DescribeRewrite require credential")
@@ -3635,6 +3588,7 @@ func (c *Client) DescribeTargetGroupInstancesWithContext(ctx context.Context, re
if request == nil {
request = NewDescribeTargetGroupInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetGroupInstances")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTargetGroupInstances require credential")
@@ -3692,6 +3646,7 @@ func (c *Client) DescribeTargetGroupListWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeTargetGroupListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetGroupList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTargetGroupList require credential")
@@ -3749,6 +3704,7 @@ func (c *Client) DescribeTargetGroupsWithContext(ctx context.Context, request *D
if request == nil {
request = NewDescribeTargetGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetGroups")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTargetGroups require credential")
@@ -3814,6 +3770,7 @@ func (c *Client) DescribeTargetHealthWithContext(ctx context.Context, request *D
if request == nil {
request = NewDescribeTargetHealthRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetHealth")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTargetHealth require credential")
@@ -3879,6 +3836,7 @@ func (c *Client) DescribeTargetsWithContext(ctx context.Context, request *Descri
if request == nil {
request = NewDescribeTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargets")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTargets require credential")
@@ -3934,6 +3892,7 @@ func (c *Client) DescribeTaskStatusWithContext(ctx context.Context, request *Des
if request == nil {
request = NewDescribeTaskStatusRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTaskStatus")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTaskStatus require credential")
@@ -3946,69 +3905,6 @@ func (c *Client) DescribeTaskStatusWithContext(ctx context.Context, request *Des
return
}
-func NewDisassociateCustomizedConfigRequest() (request *DisassociateCustomizedConfigRequest) {
- request = &DisassociateCustomizedConfigRequest{
- BaseRequest: &tchttp.BaseRequest{},
- }
-
- request.Init().WithApiInfo("clb", APIVersion, "DisassociateCustomizedConfig")
-
-
- return
-}
-
-func NewDisassociateCustomizedConfigResponse() (response *DisassociateCustomizedConfigResponse) {
- response = &DisassociateCustomizedConfigResponse{
- BaseResponse: &tchttp.BaseResponse{},
- }
- return
-
-}
-
-// DisassociateCustomizedConfig
-// 去关联个性化配置,准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
-// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
-// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) DisassociateCustomizedConfig(request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error) {
- return c.DisassociateCustomizedConfigWithContext(context.Background(), request)
-}
-
-// DisassociateCustomizedConfig
-// 去关联个性化配置,准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
-// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
-// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) DisassociateCustomizedConfigWithContext(ctx context.Context, request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error) {
- if request == nil {
- request = NewDisassociateCustomizedConfigRequest()
- }
-
- if c.GetCredential() == nil {
- return nil, errors.New("DisassociateCustomizedConfig require credential")
- }
-
- request.SetContext(ctx)
-
- response = NewDisassociateCustomizedConfigResponse()
- err = c.Send(request, response)
- return
-}
-
func NewDisassociateTargetGroupsRequest() (request *DisassociateTargetGroupsRequest) {
request = &DisassociateTargetGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -4033,6 +3929,8 @@ func NewDisassociateTargetGroupsResponse() (response *DisassociateTargetGroupsRe
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
+// 当解绑七层转发规则时,LocationId 为必填项。
+//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
@@ -4049,6 +3947,8 @@ func (c *Client) DisassociateTargetGroups(request *DisassociateTargetGroupsReque
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
+// 当解绑七层转发规则时,LocationId 为必填项。
+//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
@@ -4060,6 +3960,7 @@ func (c *Client) DisassociateTargetGroupsWithContext(ctx context.Context, reques
if request == nil {
request = NewDisassociateTargetGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DisassociateTargetGroups")
if c.GetCredential() == nil {
return nil, errors.New("DisassociateTargetGroups require credential")
@@ -4117,6 +4018,7 @@ func (c *Client) InquiryPriceCreateLoadBalancerWithContext(ctx context.Context,
if request == nil {
request = NewInquiryPriceCreateLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceCreateLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceCreateLoadBalancer require credential")
@@ -4174,6 +4076,7 @@ func (c *Client) InquiryPriceModifyLoadBalancerWithContext(ctx context.Context,
if request == nil {
request = NewInquiryPriceModifyLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceModifyLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceModifyLoadBalancer require credential")
@@ -4206,7 +4109,7 @@ func NewInquiryPriceRefundLoadBalancerResponse() (response *InquiryPriceRefundLo
}
// InquiryPriceRefundLoadBalancer
-// InquiryPriceRefundLoadBalancer接口查询负载均衡退费价格。
+// InquiryPriceRefundLoadBalancer接口查询负载均衡退费价格,只支持预付费类型的负载均衡实例。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4219,7 +4122,7 @@ func (c *Client) InquiryPriceRefundLoadBalancer(request *InquiryPriceRefundLoadB
}
// InquiryPriceRefundLoadBalancer
-// InquiryPriceRefundLoadBalancer接口查询负载均衡退费价格。
+// InquiryPriceRefundLoadBalancer接口查询负载均衡退费价格,只支持预付费类型的负载均衡实例。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4231,6 +4134,7 @@ func (c *Client) InquiryPriceRefundLoadBalancerWithContext(ctx context.Context,
if request == nil {
request = NewInquiryPriceRefundLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceRefundLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceRefundLoadBalancer require credential")
@@ -4288,6 +4192,7 @@ func (c *Client) InquiryPriceRenewLoadBalancerWithContext(ctx context.Context, r
if request == nil {
request = NewInquiryPriceRenewLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceRenewLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceRenewLoadBalancer require credential")
@@ -4371,6 +4276,7 @@ func (c *Client) ManualRewriteWithContext(ctx context.Context, request *ManualRe
if request == nil {
request = NewManualRewriteRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ManualRewrite")
if c.GetCredential() == nil {
return nil, errors.New("ManualRewrite require credential")
@@ -4436,6 +4342,7 @@ func (c *Client) MigrateClassicalLoadBalancersWithContext(ctx context.Context, r
if request == nil {
request = NewMigrateClassicalLoadBalancersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "MigrateClassicalLoadBalancers")
if c.GetCredential() == nil {
return nil, errors.New("MigrateClassicalLoadBalancers require credential")
@@ -4503,6 +4410,7 @@ func (c *Client) ModifyBlockIPListWithContext(ctx context.Context, request *Modi
if request == nil {
request = NewModifyBlockIPListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyBlockIPList")
if c.GetCredential() == nil {
return nil, errors.New("ModifyBlockIPList require credential")
@@ -4515,65 +4423,6 @@ func (c *Client) ModifyBlockIPListWithContext(ctx context.Context, request *Modi
return
}
-func NewModifyCustomizedConfigRequest() (request *ModifyCustomizedConfigRequest) {
- request = &ModifyCustomizedConfigRequest{
- BaseRequest: &tchttp.BaseRequest{},
- }
-
- request.Init().WithApiInfo("clb", APIVersion, "ModifyCustomizedConfig")
-
-
- return
-}
-
-func NewModifyCustomizedConfigResponse() (response *ModifyCustomizedConfigResponse) {
- response = &ModifyCustomizedConfigResponse{
- BaseResponse: &tchttp.BaseResponse{},
- }
- return
-
-}
-
-// ModifyCustomizedConfig
-// 修改个性化配置。如果配置已经绑定clb、server或location,同时更新。准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// RESOURCEINSUFFICIENT = "ResourceInsufficient"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) ModifyCustomizedConfig(request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, err error) {
- return c.ModifyCustomizedConfigWithContext(context.Background(), request)
-}
-
-// ModifyCustomizedConfig
-// 修改个性化配置。如果配置已经绑定clb、server或location,同时更新。准备下线,请使用SetCustomizedConfigForLoadBalancer。
-//
-// 可能返回的错误码:
-// FAILEDOPERATION = "FailedOperation"
-// INTERNALERROR = "InternalError"
-// INVALIDPARAMETER = "InvalidParameter"
-// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
-// RESOURCEINSUFFICIENT = "ResourceInsufficient"
-// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
-func (c *Client) ModifyCustomizedConfigWithContext(ctx context.Context, request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, err error) {
- if request == nil {
- request = NewModifyCustomizedConfigRequest()
- }
-
- if c.GetCredential() == nil {
- return nil, errors.New("ModifyCustomizedConfig require credential")
- }
-
- request.SetContext(ctx)
-
- response = NewModifyCustomizedConfigResponse()
- err = c.Send(request, response)
- return
-}
-
func NewModifyDomainRequest() (request *ModifyDomainRequest) {
request = &ModifyDomainRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -4596,10 +4445,11 @@ func NewModifyDomainResponse() (response *ModifyDomainResponse) {
// ModifyDomain
// ModifyDomain接口用来修改负载均衡七层监听器下的域名。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -4613,10 +4463,11 @@ func (c *Client) ModifyDomain(request *ModifyDomainRequest) (response *ModifyDom
// ModifyDomain
// ModifyDomain接口用来修改负载均衡七层监听器下的域名。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -4627,6 +4478,7 @@ func (c *Client) ModifyDomainWithContext(ctx context.Context, request *ModifyDom
if request == nil {
request = NewModifyDomainRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyDomain")
if c.GetCredential() == nil {
return nil, errors.New("ModifyDomain require credential")
@@ -4659,9 +4511,9 @@ func NewModifyDomainAttributesResponse() (response *ModifyDomainAttributesRespon
}
// ModifyDomainAttributes
-// ModifyDomainAttributes接口用于修改负载均衡7层监听器转发规则的域名级别属性,如修改域名、修改DefaultServer、开启/关闭Http2、修改证书。
+// ModifyDomainAttributes接口用于修改负载均衡7层监听器转发规则的域名级别属性,如修改域名、修改DefaultServer、开启/关闭Http2、修改证书
//
-// 本接口为异步接口,本接口返回成功后,需以返回的RequestId为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后,需以返回的RequestId为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4679,9 +4531,9 @@ func (c *Client) ModifyDomainAttributes(request *ModifyDomainAttributesRequest)
}
// ModifyDomainAttributes
-// ModifyDomainAttributes接口用于修改负载均衡7层监听器转发规则的域名级别属性,如修改域名、修改DefaultServer、开启/关闭Http2、修改证书。
+// ModifyDomainAttributes接口用于修改负载均衡7层监听器转发规则的域名级别属性,如修改域名、修改DefaultServer、开启/关闭Http2、修改证书
//
-// 本接口为异步接口,本接口返回成功后,需以返回的RequestId为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后,需以返回的RequestId为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4698,6 +4550,7 @@ func (c *Client) ModifyDomainAttributesWithContext(ctx context.Context, request
if request == nil {
request = NewModifyDomainAttributesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyDomainAttributes")
if c.GetCredential() == nil {
return nil, errors.New("ModifyDomainAttributes require credential")
@@ -4732,6 +4585,10 @@ func NewModifyFunctionTargetsResponse() (response *ModifyFunctionTargetsResponse
// ModifyFunctionTargets
// 修改负载均衡转发规则上所绑定的云函数。
//
+// 限制说明:
+//
+// - 仅支持绑定“Event 函数”类型的云函数。
+//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
@@ -4750,6 +4607,10 @@ func (c *Client) ModifyFunctionTargets(request *ModifyFunctionTargetsRequest) (r
// ModifyFunctionTargets
// 修改负载均衡转发规则上所绑定的云函数。
//
+// 限制说明:
+//
+// - 仅支持绑定“Event 函数”类型的云函数。
+//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
@@ -4765,6 +4626,7 @@ func (c *Client) ModifyFunctionTargetsWithContext(ctx context.Context, request *
if request == nil {
request = NewModifyFunctionTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyFunctionTargets")
if c.GetCredential() == nil {
return nil, errors.New("ModifyFunctionTargets require credential")
@@ -4799,7 +4661,7 @@ func NewModifyListenerResponse() (response *ModifyListenerResponse) {
// ModifyListener
// ModifyListener接口用来修改负载均衡监听器的属性,包括监听器名称、健康检查参数、证书信息、转发策略等。本接口不支持传统型负载均衡。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4818,7 +4680,7 @@ func (c *Client) ModifyListener(request *ModifyListenerRequest) (response *Modif
// ModifyListener
// ModifyListener接口用来修改负载均衡监听器的属性,包括监听器名称、健康检查参数、证书信息、转发策略等。本接口不支持传统型负载均衡。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4834,6 +4696,7 @@ func (c *Client) ModifyListenerWithContext(ctx context.Context, request *ModifyL
if request == nil {
request = NewModifyListenerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyListener")
if c.GetCredential() == nil {
return nil, errors.New("ModifyListener require credential")
@@ -4868,9 +4731,9 @@ func NewModifyLoadBalancerAttributesResponse() (response *ModifyLoadBalancerAttr
// ModifyLoadBalancerAttributes
// 修改负载均衡实例的属性。支持修改负载均衡实例的名称、设置负载均衡的跨域属性。
//
-// 注意:非带宽上移用户的 CLB 实例必须加入带宽包才可以设置跨域属性。
+// 注意:非带宽上移用户的 CLB 实例必须加入带宽包才可以设置跨域属性。修改网络计费模式请到控制台操作。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4894,9 +4757,9 @@ func (c *Client) ModifyLoadBalancerAttributes(request *ModifyLoadBalancerAttribu
// ModifyLoadBalancerAttributes
// 修改负载均衡实例的属性。支持修改负载均衡实例的名称、设置负载均衡的跨域属性。
//
-// 注意:非带宽上移用户的 CLB 实例必须加入带宽包才可以设置跨域属性。
+// 注意:非带宽上移用户的 CLB 实例必须加入带宽包才可以设置跨域属性。修改网络计费模式请到控制台操作。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -4917,6 +4780,7 @@ func (c *Client) ModifyLoadBalancerAttributesWithContext(ctx context.Context, re
if request == nil {
request = NewModifyLoadBalancerAttributesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyLoadBalancerAttributes")
if c.GetCredential() == nil {
return nil, errors.New("ModifyLoadBalancerAttributes require credential")
@@ -4986,6 +4850,7 @@ func (c *Client) ModifyLoadBalancerMixIpTargetWithContext(ctx context.Context, r
if request == nil {
request = NewModifyLoadBalancerMixIpTargetRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyLoadBalancerMixIpTarget")
if c.GetCredential() == nil {
return nil, errors.New("ModifyLoadBalancerMixIpTarget require credential")
@@ -5018,13 +4883,13 @@ func NewModifyLoadBalancerSlaResponse() (response *ModifyLoadBalancerSlaResponse
}
// ModifyLoadBalancerSla
-// 本接口(ModifyLoadBalancerSla)用于将按量计费模式的共享型实例升级为性能容量型实例。
+// 本接口(ModifyLoadBalancerSla)用于调整按量计费模式实例的性能容量型规格,如共享型升级性能容量型,性能容量型实例规格调整。
//
// 限制条件:
//
-// - 本接口只支持升级按量计费的CLB实例,包年包月的CLB实例升级请通过控制台进行升级。
+// - 本接口只支持调整按量计费的CLB实例,包年包月的CLB实例升级请通过控制台进行调整。
//
-// - 升级为性能容量型实例后,不支持再回退到共享型实例。
+// - 共享型升级为性能容量型实例后,不支持再回退到共享型实例。
//
// - 传统型负载均衡实例不支持升级为性能容量型实例。
//
@@ -5042,13 +4907,13 @@ func (c *Client) ModifyLoadBalancerSla(request *ModifyLoadBalancerSlaRequest) (r
}
// ModifyLoadBalancerSla
-// 本接口(ModifyLoadBalancerSla)用于将按量计费模式的共享型实例升级为性能容量型实例。
+// 本接口(ModifyLoadBalancerSla)用于调整按量计费模式实例的性能容量型规格,如共享型升级性能容量型,性能容量型实例规格调整。
//
// 限制条件:
//
-// - 本接口只支持升级按量计费的CLB实例,包年包月的CLB实例升级请通过控制台进行升级。
+// - 本接口只支持调整按量计费的CLB实例,包年包月的CLB实例升级请通过控制台进行调整。
//
-// - 升级为性能容量型实例后,不支持再回退到共享型实例。
+// - 共享型升级为性能容量型实例后,不支持再回退到共享型实例。
//
// - 传统型负载均衡实例不支持升级为性能容量型实例。
//
@@ -5065,6 +4930,7 @@ func (c *Client) ModifyLoadBalancerSlaWithContext(ctx context.Context, request *
if request == nil {
request = NewModifyLoadBalancerSlaRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyLoadBalancerSla")
if c.GetCredential() == nil {
return nil, errors.New("ModifyLoadBalancerSla require credential")
@@ -5130,6 +4996,7 @@ func (c *Client) ModifyLoadBalancersProjectWithContext(ctx context.Context, requ
if request == nil {
request = NewModifyLoadBalancersProjectRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyLoadBalancersProject")
if c.GetCredential() == nil {
return nil, errors.New("ModifyLoadBalancersProject require credential")
@@ -5164,7 +5031,7 @@ func NewModifyRuleResponse() (response *ModifyRuleResponse) {
// ModifyRule
// ModifyRule 接口用来修改负载均衡七层监听器下的转发规则的各项属性,包括转发路径、健康检查属性、转发策略等。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -5183,7 +5050,7 @@ func (c *Client) ModifyRule(request *ModifyRuleRequest) (response *ModifyRuleRes
// ModifyRule
// ModifyRule 接口用来修改负载均衡七层监听器下的转发规则的各项属性,包括转发路径、健康检查属性、转发策略等。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
@@ -5199,6 +5066,7 @@ func (c *Client) ModifyRuleWithContext(ctx context.Context, request *ModifyRuleR
if request == nil {
request = NewModifyRuleRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyRule")
if c.GetCredential() == nil {
return nil, errors.New("ModifyRule require credential")
@@ -5256,6 +5124,7 @@ func (c *Client) ModifyTargetGroupAttributeWithContext(ctx context.Context, requ
if request == nil {
request = NewModifyTargetGroupAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetGroupAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyTargetGroupAttribute require credential")
@@ -5321,6 +5190,7 @@ func (c *Client) ModifyTargetGroupInstancesPortWithContext(ctx context.Context,
if request == nil {
request = NewModifyTargetGroupInstancesPortRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetGroupInstancesPort")
if c.GetCredential() == nil {
return nil, errors.New("ModifyTargetGroupInstancesPort require credential")
@@ -5384,6 +5254,7 @@ func (c *Client) ModifyTargetGroupInstancesWeightWithContext(ctx context.Context
if request == nil {
request = NewModifyTargetGroupInstancesWeightRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetGroupInstancesWeight")
if c.GetCredential() == nil {
return nil, errors.New("ModifyTargetGroupInstancesWeight require credential")
@@ -5422,6 +5293,7 @@ func NewModifyTargetPortResponse() (response *ModifyTargetPortResponse) {
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5440,6 +5312,7 @@ func (c *Client) ModifyTargetPort(request *ModifyTargetPortRequest) (response *M
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5451,6 +5324,7 @@ func (c *Client) ModifyTargetPortWithContext(ctx context.Context, request *Modif
if request == nil {
request = NewModifyTargetPortRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetPort")
if c.GetCredential() == nil {
return nil, errors.New("ModifyTargetPort require credential")
@@ -5485,10 +5359,11 @@ func NewModifyTargetWeightResponse() (response *ModifyTargetWeightResponse) {
// ModifyTargetWeight
// ModifyTargetWeight 接口用于修改负载均衡绑定的后端服务的转发权重。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5503,10 +5378,11 @@ func (c *Client) ModifyTargetWeight(request *ModifyTargetWeightRequest) (respons
// ModifyTargetWeight
// ModifyTargetWeight 接口用于修改负载均衡绑定的后端服务的转发权重。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5518,6 +5394,7 @@ func (c *Client) ModifyTargetWeightWithContext(ctx context.Context, request *Mod
if request == nil {
request = NewModifyTargetWeightRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetWeight")
if c.GetCredential() == nil {
return nil, errors.New("ModifyTargetWeight require credential")
@@ -5556,7 +5433,7 @@ func NewRegisterFunctionTargetsResponse() (response *RegisterFunctionTargetsResp
//
// 限制说明:
//
-// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
+// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、东京、硅谷地域支持绑定 SCF。
//
// - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
//
@@ -5572,6 +5449,8 @@ func NewRegisterFunctionTargetsResponse() (response *RegisterFunctionTargetsResp
//
// - CLB 绑定 SCF 仅支持绑定“Event 函数”类型的云函数。
//
+// - 一个转发规则只支持绑定一个云函数。
+//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
@@ -5600,7 +5479,7 @@ func (c *Client) RegisterFunctionTargets(request *RegisterFunctionTargetsRequest
//
// 限制说明:
//
-// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
+// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、东京、硅谷地域支持绑定 SCF。
//
// - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
//
@@ -5616,6 +5495,8 @@ func (c *Client) RegisterFunctionTargets(request *RegisterFunctionTargetsRequest
//
// - CLB 绑定 SCF 仅支持绑定“Event 函数”类型的云函数。
//
+// - 一个转发规则只支持绑定一个云函数。
+//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
@@ -5637,6 +5518,7 @@ func (c *Client) RegisterFunctionTargetsWithContext(ctx context.Context, request
if request == nil {
request = NewRegisterFunctionTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterFunctionTargets")
if c.GetCredential() == nil {
return nil, errors.New("RegisterFunctionTargets require credential")
@@ -5702,6 +5584,7 @@ func (c *Client) RegisterTargetGroupInstancesWithContext(ctx context.Context, re
if request == nil {
request = NewRegisterTargetGroupInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterTargetGroupInstances")
if c.GetCredential() == nil {
return nil, errors.New("RegisterTargetGroupInstances require credential")
@@ -5736,10 +5619,11 @@ func NewRegisterTargetsResponse() (response *RegisterTargetsResponse) {
// RegisterTargets
// RegisterTargets 接口用来将一台或多台后端服务绑定到负载均衡的监听器(或7层转发规则),在此之前您需要先行创建相关的4层监听器或7层转发规则。对于四层监听器(TCP、UDP),只需指定监听器ID即可,对于七层监听器(HTTP、HTTPS),还需通过LocationId或者Domain+Url指定转发规则。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5757,10 +5641,11 @@ func (c *Client) RegisterTargets(request *RegisterTargetsRequest) (response *Reg
// RegisterTargets
// RegisterTargets 接口用来将一台或多台后端服务绑定到负载均衡的监听器(或7层转发规则),在此之前您需要先行创建相关的4层监听器或7层转发规则。对于四层监听器(TCP、UDP),只需指定监听器ID即可,对于七层监听器(HTTP、HTTPS),还需通过LocationId或者Domain+Url指定转发规则。
//
-// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
+// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5775,6 +5660,7 @@ func (c *Client) RegisterTargetsWithContext(ctx context.Context, request *Regist
if request == nil {
request = NewRegisterTargetsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterTargets")
if c.GetCredential() == nil {
return nil, errors.New("RegisterTargets require credential")
@@ -5840,6 +5726,7 @@ func (c *Client) RegisterTargetsWithClassicalLBWithContext(ctx context.Context,
if request == nil {
request = NewRegisterTargetsWithClassicalLBRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterTargetsWithClassicalLB")
if c.GetCredential() == nil {
return nil, errors.New("RegisterTargetsWithClassicalLB require credential")
@@ -5911,6 +5798,7 @@ func (c *Client) ReplaceCertForLoadBalancersWithContext(ctx context.Context, req
if request == nil {
request = NewReplaceCertForLoadBalancersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ReplaceCertForLoadBalancers")
if c.GetCredential() == nil {
return nil, errors.New("ReplaceCertForLoadBalancers require credential")
@@ -5947,6 +5835,7 @@ func NewSetCustomizedConfigForLoadBalancerResponse() (response *SetCustomizedCon
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5965,6 +5854,7 @@ func (c *Client) SetCustomizedConfigForLoadBalancer(request *SetCustomizedConfig
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -5978,6 +5868,7 @@ func (c *Client) SetCustomizedConfigForLoadBalancerWithContext(ctx context.Conte
if request == nil {
request = NewSetCustomizedConfigForLoadBalancerRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetCustomizedConfigForLoadBalancer")
if c.GetCredential() == nil {
return nil, errors.New("SetCustomizedConfigForLoadBalancer require credential")
@@ -6045,6 +5936,7 @@ func (c *Client) SetLoadBalancerClsLogWithContext(ctx context.Context, request *
if request == nil {
request = NewSetLoadBalancerClsLogRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetLoadBalancerClsLog")
if c.GetCredential() == nil {
return nil, errors.New("SetLoadBalancerClsLog require credential")
@@ -6077,7 +5969,7 @@ func NewSetLoadBalancerSecurityGroupsResponse() (response *SetLoadBalancerSecuri
}
// SetLoadBalancerSecurityGroups
-// SetLoadBalancerSecurityGroups 接口支持对一个公网负载均衡实例执行设置(绑定、解绑)安全组操作。查询一个负载均衡实例目前已绑定的安全组,可使用 DescribeLoadBalancers 接口。本接口是set语义,
+// SetLoadBalancerSecurityGroups 接口支持对一个公网负载均衡实例执行设置(绑定、解绑)安全组操作。查询一个负载均衡实例目前已绑定的安全组,可使用 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口。本接口是set语义,
//
// 绑定操作时,入参需要传入负载均衡实例要绑定的所有安全组(已绑定的+新增绑定的)。
//
@@ -6098,7 +5990,7 @@ func (c *Client) SetLoadBalancerSecurityGroups(request *SetLoadBalancerSecurityG
}
// SetLoadBalancerSecurityGroups
-// SetLoadBalancerSecurityGroups 接口支持对一个公网负载均衡实例执行设置(绑定、解绑)安全组操作。查询一个负载均衡实例目前已绑定的安全组,可使用 DescribeLoadBalancers 接口。本接口是set语义,
+// SetLoadBalancerSecurityGroups 接口支持对一个公网负载均衡实例执行设置(绑定、解绑)安全组操作。查询一个负载均衡实例目前已绑定的安全组,可使用 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口。本接口是set语义,
//
// 绑定操作时,入参需要传入负载均衡实例要绑定的所有安全组(已绑定的+新增绑定的)。
//
@@ -6118,6 +6010,7 @@ func (c *Client) SetLoadBalancerSecurityGroupsWithContext(ctx context.Context, r
if request == nil {
request = NewSetLoadBalancerSecurityGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetLoadBalancerSecurityGroups")
if c.GetCredential() == nil {
return nil, errors.New("SetLoadBalancerSecurityGroups require credential")
@@ -6152,7 +6045,7 @@ func NewSetLoadBalancerStartStatusResponse() (response *SetLoadBalancerStartStat
// SetLoadBalancerStartStatus
// 启停负载均衡实例或者监听器。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
//
@@ -6174,7 +6067,7 @@ func (c *Client) SetLoadBalancerStartStatus(request *SetLoadBalancerStartStatusR
// SetLoadBalancerStartStatus
// 启停负载均衡实例或者监听器。
//
-// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
+// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// 该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
//
@@ -6193,6 +6086,7 @@ func (c *Client) SetLoadBalancerStartStatusWithContext(ctx context.Context, requ
if request == nil {
request = NewSetLoadBalancerStartStatusRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetLoadBalancerStartStatus")
if c.GetCredential() == nil {
return nil, errors.New("SetLoadBalancerStartStatus require credential")
@@ -6225,10 +6119,11 @@ func NewSetSecurityGroupForLoadbalancersResponse() (response *SetSecurityGroupFo
}
// SetSecurityGroupForLoadbalancers
-// 绑定或解绑一个安全组到多个公网负载均衡实例。注意:内网负载均衡不支持绑定安全组。
+// 绑定或解绑一个安全组到多个公网负载均衡实例。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -6241,10 +6136,11 @@ func (c *Client) SetSecurityGroupForLoadbalancers(request *SetSecurityGroupForLo
}
// SetSecurityGroupForLoadbalancers
-// 绑定或解绑一个安全组到多个公网负载均衡实例。注意:内网负载均衡不支持绑定安全组。
+// 绑定或解绑一个安全组到多个公网负载均衡实例。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
@@ -6256,6 +6152,7 @@ func (c *Client) SetSecurityGroupForLoadbalancersWithContext(ctx context.Context
if request == nil {
request = NewSetSecurityGroupForLoadbalancersRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetSecurityGroupForLoadbalancers")
if c.GetCredential() == nil {
return nil, errors.New("SetSecurityGroupForLoadbalancers require credential")
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/errors.go
index 367707b260..166a56fd42 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/errors.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/errors.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -29,15 +29,27 @@ const (
// 操作失败。
FAILEDOPERATION = "FailedOperation"
+ // 删除实例频次校验被判定为高风险,请检查业务或稍后重试。
+ FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk"
+
// LB状态异常。
FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// 没有监听器的实例不允许停止。
FAILEDOPERATION_NOLISTENERINLB = "FailedOperation.NoListenerInLB"
+ // 指定的资源正在克隆中,请稍后重试。
+ FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning"
+
// 正在操作指定的资源,请稍后重试。
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+ // 删除实例规则数校验被判定为高风险,如需强行删除请传强制校验参数ForceDelete为true。
+ FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk"
+
+ // 删除实例流量校验被判定为高风险,如需强行删除请传强制校验参数ForceDelete为true。
+ FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk"
+
// 内部错误。
INTERNALERROR = "InternalError"
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go
index 7d319a9fbd..e83e910db6 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -20,148 +20,18 @@ import (
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json"
)
-// Predefined struct for user
-type AddCustomizedConfigRequestParams struct {
- // 配置名字
- ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
-
- // 配置类型,取值范围["CLB", "SERVER", "LOCATION"],分别表示CLB配置,server配置,location配置。
- ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
-
- // 配置内容
- ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
-}
-
-type AddCustomizedConfigRequest struct {
- *tchttp.BaseRequest
-
- // 配置名字
- ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
-
- // 配置类型,取值范围["CLB", "SERVER", "LOCATION"],分别表示CLB配置,server配置,location配置。
- ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
-
- // 配置内容
- ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
-}
-
-func (r *AddCustomizedConfigRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *AddCustomizedConfigRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ConfigName")
- delete(f, "ConfigType")
- delete(f, "ConfigContent")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddCustomizedConfigRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
-}
-
-// Predefined struct for user
-type AddCustomizedConfigResponseParams struct {
- // 配置ID
- ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
-
- // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
-}
-
-type AddCustomizedConfigResponse struct {
- *tchttp.BaseResponse
- Response *AddCustomizedConfigResponseParams `json:"Response"`
-}
-
-func (r *AddCustomizedConfigResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *AddCustomizedConfigResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
-}
-
-// Predefined struct for user
-type AssociateCustomizedConfigRequestParams struct {
- // 配置ID
- UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
-
- // 关联的server或location
- BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
-}
-
-type AssociateCustomizedConfigRequest struct {
- *tchttp.BaseRequest
-
- // 配置ID
- UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
-
- // 关联的server或location
- BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
-}
-
-func (r *AssociateCustomizedConfigRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *AssociateCustomizedConfigRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "UconfigId")
- delete(f, "BindList")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AssociateCustomizedConfigRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
-}
-
-// Predefined struct for user
-type AssociateCustomizedConfigResponseParams struct {
- // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
-}
-
-type AssociateCustomizedConfigResponse struct {
- *tchttp.BaseResponse
- Response *AssociateCustomizedConfigResponseParams `json:"Response"`
-}
-
-func (r *AssociateCustomizedConfigResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *AssociateCustomizedConfigResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
-}
-
// Predefined struct for user
type AssociateTargetGroupsRequestParams struct {
- // 绑定的关系数组。一次请求最多支持20个。
+ // 绑定的关系数组,目标组类型需要一致。
+ // 一次请求最多支持20个。
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
type AssociateTargetGroupsRequest struct {
*tchttp.BaseRequest
- // 绑定的关系数组。一次请求最多支持20个。
+ // 绑定的关系数组,目标组类型需要一致。
+ // 一次请求最多支持20个。
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
@@ -238,8 +108,10 @@ type AssociationItem struct {
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// 关联目标组的权重, 该参数只有v2新版目标组生效。
- // 注意:此字段可能返回 null,表示取不到有效值。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // 高级路由规则ID
+ RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
// Predefined struct for user
@@ -331,7 +203,7 @@ type Backend struct {
// 后端服务的唯一 ID,如 ins-abcd1234
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
- // 后端服务的监听端口
+ // 后端服务的监听端口,如果是全端口段监听器绑定的全监听目标组场景,此端口返回0,表示无效端口,绑定的后端服务的端口随监听器端口。
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 后端服务的转发权重,取值范围:[0, 100],默认为 10。
@@ -342,7 +214,6 @@ type Backend struct {
PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
// 后端服务的内网 IP
- // 注意:此字段可能返回 null,表示取不到有效值。
PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
// 后端服务的实例名称
@@ -350,7 +221,6 @@ type Backend struct {
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 后端服务被绑定的时间
- // 注意:此字段可能返回 null,表示取不到有效值。
RegisteredTime *string `json:"RegisteredTime,omitnil,omitempty" name:"RegisteredTime"`
// 弹性网卡唯一ID,如 eni-1234abcd
@@ -358,7 +228,6 @@ type Backend struct {
EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
// 标签。
- // 注意:此字段可能返回 null,表示取不到有效值。
Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
}
@@ -369,7 +238,7 @@ type BasicTargetGroupInfo struct {
// 目标组名称
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
- // 权重
+ // 目标组权重
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
@@ -418,7 +287,6 @@ type BatchDeregisterTargetsResponseParams struct {
FailListenerIdSet []*string `json:"FailListenerIdSet,omitnil,omitempty" name:"FailListenerIdSet"`
// 解绑失败错误原因信息。
- // 注意:此字段可能返回 null,表示取不到有效值。
Message *string `json:"Message,omitnil,omitempty" name:"Message"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -659,27 +527,21 @@ type BindDetailItem struct {
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 配置绑定的监听器ID
- // 注意:此字段可能返回 null,表示取不到有效值。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// 配置绑定的域名
- // 注意:此字段可能返回 null,表示取不到有效值。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 配置绑定的规则
- // 注意:此字段可能返回 null,表示取不到有效值。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// 监听器名字
- // 注意:此字段可能返回 null,表示取不到有效值。
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// 监听器协议
- // 注意:此字段可能返回 null,表示取不到有效值。
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// 监听器端口
- // 注意:此字段可能返回 null,表示取不到有效值。
Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// location的url
@@ -687,27 +549,9 @@ type BindDetailItem struct {
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// 配置ID
- // 注意:此字段可能返回 null,表示取不到有效值。
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
}
-type BindItem struct {
- // 配置绑定的CLB ID
- LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
-
- // 配置绑定的监听器ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
-
- // 配置绑定的域名
- // 注意:此字段可能返回 null,表示取不到有效值。
- Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
-
- // 配置绑定的规则
- // 注意:此字段可能返回 null,表示取不到有效值。
- LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
-}
-
type BlockedIP struct {
// 黑名单IP
IP *string `json:"IP,omitnil,omitempty" name:"IP"`
@@ -724,7 +568,6 @@ type CertIdRelatedWithLoadBalancers struct {
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// 与证书关联的负载均衡实例列表
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancers []*LoadBalancer `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
}
@@ -743,10 +586,14 @@ type CertInfo struct {
}
type CertificateInput struct {
- // 认证类型,UNIDIRECTIONAL:单向认证,MUTUAL:双向认证
+ // 认证类型,UNIDIRECTIONAL:单向认证,MUTUAL:双向认证。
+ // 默认为 UNIDIRECTIONAL。
SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
- // 服务端证书的 ID,如果不填写此项则必须上传证书,包括 CertContent,CertKey,CertName。
+ // 双向认证时,是否开启客户端认证,ON:开启,OPTIONAL:自适应,默认ON。
+ SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
+
+ // 服务端证书的 ID,如果不填写此项则必须上传证书,包括 CertContent(服务端证书内容),CertKey(服务端证书密钥),CertName(服务端证书名称)。
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// 客户端证书的 ID,当监听器采用双向认证,即 SSLMode=MUTUAL 时,如果不填写此项则必须上传客户端证书,包括 CertCaContent,CertCaName。
@@ -761,10 +608,10 @@ type CertificateInput struct {
// 上传服务端证书的内容,如果没有 CertId,则此项必传。
CertContent *string `json:"CertContent,omitnil,omitempty" name:"CertContent"`
- // 上传客户端 CA 证书的名称,如果 SSLMode=mutual,如果没有 CertCaId,则此项必传。
+ // 上传客户端 CA 证书的名称,如果 SSLMode=MUTUAL,如果没有 CertCaId,则此项必传。
CertCaName *string `json:"CertCaName,omitnil,omitempty" name:"CertCaName"`
- // 上传客户端证书的内容,如果 SSLMode=mutual,如果没有 CertCaId,则此项必传。
+ // 上传客户端证书的内容,如果 SSLMode=MUTUAL,如果没有 CertCaId,则此项必传。
CertCaContent *string `json:"CertCaContent,omitnil,omitempty" name:"CertCaContent"`
}
@@ -772,15 +619,16 @@ type CertificateOutput struct {
// 认证类型,UNIDIRECTIONAL:单向认证,MUTUAL:双向认证
SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
+ // 是否开启客户端证书验证,只在双向认证时生效。
+ SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
+
// 服务端证书的ID。
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// 客户端证书的 ID。
- // 注意:此字段可能返回 null,表示取不到有效值。
CertCaId *string `json:"CertCaId,omitnil,omitempty" name:"CertCaId"`
// 多本服务器证书场景扩展的服务器证书ID。
- // 注意:此字段可能返回 null,表示取不到有效值。
ExtCertIds []*string `json:"ExtCertIds,omitnil,omitempty" name:"ExtCertIds"`
}
@@ -862,7 +710,6 @@ type ClassicalLoadBalancerInfo struct {
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 负载均衡实例ID列表
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
@@ -877,20 +724,16 @@ type ClassicalTarget struct {
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// 后端服务的外网 IP
- // 注意:此字段可能返回 null,表示取不到有效值。
PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
// 后端服务的内网 IP
- // 注意:此字段可能返回 null,表示取不到有效值。
PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
// 后端服务的实例名称
- // 注意:此字段可能返回 null,表示取不到有效值。
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 后端服务的状态
// 1:故障,2:运行中,3:创建中,4:已关机,5:已退还,6:退还中, 7:重启中,8:开机中,9:关机中,10:密码重置中,11:格式化中,12:镜像制作中,13:带宽设置中,14:重装系统中,19:升级中,21:热迁移中
- // 注意:此字段可能返回 null,表示取不到有效值。
RunFlag *int64 `json:"RunFlag,omitnil,omitempty" name:"RunFlag"`
}
@@ -904,25 +747,25 @@ type ClassicalTargetInfo struct {
// Predefined struct for user
type CloneLoadBalancerRequestParams struct {
- // 负载均衡ID。
+ // 负载均衡ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 克隆出负载均衡实例的名称,规则:1-60 个英文、汉字、数字、连接线“-”或下划线“_”。
// 注意:如果名称与系统中已有负载均衡实例的名称相同,则系统将会自动生成此次创建的负载均衡实例的名称。
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
- // 负载均衡实例所属的项目 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。不传此参数则视为默认项目。
+ // 负载均衡实例所属的项目 ID,默认项目 ID 为0,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。不传此参数则视为默认项目。
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
- // 仅适用于公网负载均衡。设置跨可用区容灾时的主可用区ID,例如 100001 或 ap-guangzhou-1
+ // 仅适用于公网负载均衡。设置跨可用区容灾时的主可用区ID,可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1。
// 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区,平台将为您自动选择最佳备可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主可用区的列表。
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
- // 仅适用于公网负载均衡。设置跨可用区容灾时的备可用区ID,例如 100001 或 ap-guangzhou-1
+ // 仅适用于公网负载均衡。设置跨可用区容灾时的备可用区ID,可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1。
// 注:备可用区是主可用区故障后,需要承载流量的可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主/备可用区的列表。
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
- // 仅适用于公网负载均衡。可用区ID,指定可用区以创建负载均衡实例。如:ap-guangzhou-1。不传则查询所有可用区的 CVM 实例。如需指定可用区,可调用查询可用区列表[DescribeZones](https://cloud.tencent.com/document/product/213/15707)接口查询。
+ // 仅适用于公网负载均衡。可用区ID,可用区 ID 和名称均支持,指定可用区以创建负载均衡实例。如:100001 或 ap-guangzhou-1。不传则查询所有可用区的 CVM 实例。如需指定可用区,可调用查询可用区列表 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 接口查询。
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// 仅适用于公网负载均衡。负载均衡的网络计费模式。
@@ -940,7 +783,7 @@ type CloneLoadBalancerRequestParams struct {
// 独占集群信息。
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
- // 带宽包ID,指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE)。
+ // 带宽包ID,可以通过 [DescribeBandwidthPackages](https://cloud.tencent.com/document/api/215/19209) 接口获取。指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE)。
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// 是否支持绑定跨地域/跨Vpc绑定IP的功能。
@@ -949,7 +792,7 @@ type CloneLoadBalancerRequestParams struct {
// 开启绑定跨地域/跨Vpc绑定IP的功能后,创建SnatIp。
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
- // 公网独占集群ID或者CDCId。
+ // 公网独占集群ID或者CDCId,可以通过 [DescribeExclusiveClusters](https://cloud.tencent.com/document/product/214/49278) 接口获取。
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// 性能容量型规格。
clb.c2.medium(标准型)clb.c3.small(高阶型1)clb.c3.medium(高阶型2)clb.c4.small(超强型1)clb.c4.medium(超强型2)clb.c4.large(超强型3)clb.c4.xlarge(超强型4)
@@ -961,32 +804,32 @@ type CloneLoadBalancerRequestParams struct {
// 仅适用于私有网络内网负载均衡。内网就近接入时,选择可用区下发。可调用[DescribeZones](https://cloud.tencent.com/document/product/213/15707)接口查询可用区列表。
Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
- // EIP 的唯一 ID,形如:eip-11112222,仅适用于内网负载均衡绑定EIP。
+ // EIP 的唯一 ID,形如:eip-qhx8udkc,仅适用于内网负载均衡绑定EIP,可以通过 [DescribeAddresses](https://cloud.tencent.com/document/product/215/16702) 接口查询。
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
}
type CloneLoadBalancerRequest struct {
*tchttp.BaseRequest
- // 负载均衡ID。
+ // 负载均衡ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 克隆出负载均衡实例的名称,规则:1-60 个英文、汉字、数字、连接线“-”或下划线“_”。
// 注意:如果名称与系统中已有负载均衡实例的名称相同,则系统将会自动生成此次创建的负载均衡实例的名称。
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
- // 负载均衡实例所属的项目 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。不传此参数则视为默认项目。
+ // 负载均衡实例所属的项目 ID,默认项目 ID 为0,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。不传此参数则视为默认项目。
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
- // 仅适用于公网负载均衡。设置跨可用区容灾时的主可用区ID,例如 100001 或 ap-guangzhou-1
+ // 仅适用于公网负载均衡。设置跨可用区容灾时的主可用区ID,可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1。
// 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区,平台将为您自动选择最佳备可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主可用区的列表。
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
- // 仅适用于公网负载均衡。设置跨可用区容灾时的备可用区ID,例如 100001 或 ap-guangzhou-1
+ // 仅适用于公网负载均衡。设置跨可用区容灾时的备可用区ID,可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1。
// 注:备可用区是主可用区故障后,需要承载流量的可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主/备可用区的列表。
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
- // 仅适用于公网负载均衡。可用区ID,指定可用区以创建负载均衡实例。如:ap-guangzhou-1。不传则查询所有可用区的 CVM 实例。如需指定可用区,可调用查询可用区列表[DescribeZones](https://cloud.tencent.com/document/product/213/15707)接口查询。
+ // 仅适用于公网负载均衡。可用区ID,可用区 ID 和名称均支持,指定可用区以创建负载均衡实例。如:100001 或 ap-guangzhou-1。不传则查询所有可用区的 CVM 实例。如需指定可用区,可调用查询可用区列表 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 接口查询。
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// 仅适用于公网负载均衡。负载均衡的网络计费模式。
@@ -1004,7 +847,7 @@ type CloneLoadBalancerRequest struct {
// 独占集群信息。
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
- // 带宽包ID,指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE)。
+ // 带宽包ID,可以通过 [DescribeBandwidthPackages](https://cloud.tencent.com/document/api/215/19209) 接口获取。指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE)。
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// 是否支持绑定跨地域/跨Vpc绑定IP的功能。
@@ -1013,7 +856,7 @@ type CloneLoadBalancerRequest struct {
// 开启绑定跨地域/跨Vpc绑定IP的功能后,创建SnatIp。
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
- // 公网独占集群ID或者CDCId。
+ // 公网独占集群ID或者CDCId,可以通过 [DescribeExclusiveClusters](https://cloud.tencent.com/document/product/214/49278) 接口获取。
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// 性能容量型规格。clb.c2.medium(标准型)clb.c3.small(高阶型1)clb.c3.medium(高阶型2)clb.c4.small(超强型1)clb.c4.medium(超强型2)clb.c4.large(超强型3)clb.c4.xlarge(超强型4)
@@ -1025,7 +868,7 @@ type CloneLoadBalancerRequest struct {
// 仅适用于私有网络内网负载均衡。内网就近接入时,选择可用区下发。可调用[DescribeZones](https://cloud.tencent.com/document/product/213/15707)接口查询可用区列表。
Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
- // EIP 的唯一 ID,形如:eip-11112222,仅适用于内网负载均衡绑定EIP。
+ // EIP 的唯一 ID,形如:eip-qhx8udkc,仅适用于内网负载均衡绑定EIP,可以通过 [DescribeAddresses](https://cloud.tencent.com/document/product/215/16702) 接口查询。
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
}
@@ -1172,19 +1015,15 @@ type Cluster struct {
ClustersVersion *string `json:"ClustersVersion,omitnil,omitempty" name:"ClustersVersion"`
// 集群容灾类型,如SINGLE-ZONE,DISASTER-RECOVERY,MUTUAL-DISASTER-RECOVERY
- // 注意:此字段可能返回 null,表示取不到有效值。
DisasterRecoveryType *string `json:"DisasterRecoveryType,omitnil,omitempty" name:"DisasterRecoveryType"`
// 网络出口
- // 注意:此字段可能返回 null,表示取不到有效值。
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
// IP版本
- // 注意:此字段可能返回 null,表示取不到有效值。
IPVersion *string `json:"IPVersion,omitnil,omitempty" name:"IPVersion"`
// 标签信息
- // 注意:此字段可能返回 null,表示取不到有效值。
Tag []*TagInfo `json:"Tag,omitnil,omitempty" name:"Tag"`
}
@@ -1193,7 +1032,6 @@ type ClusterItem struct {
ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// 集群名称
- // 注意:此字段可能返回 null,表示取不到有效值。
ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 集群所在可用区,如ap-guangzhou-1
@@ -1213,14 +1051,12 @@ type ClusterResource struct {
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 资源是否闲置。
- // 注意:此字段可能返回 null,表示取不到有效值。
Idle *string `json:"Idle,omitnil,omitempty" name:"Idle"`
// 集群名称。
ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// 集群的Isp属性,如:"BGP","CMCC","CUCC","CTCC","INTERNAL"。
- // 注意:此字段可能返回 null,表示取不到有效值。
Isp *string `json:"Isp,omitnil,omitempty" name:"Isp"`
// 集群所在的可用区
@@ -1230,11 +1066,9 @@ type ClusterResource struct {
type ClustersZone struct {
// 集群所在的主可用区。
- // 注意:此字段可能返回 null,表示取不到有效值。
MasterZone []*string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// 集群所在的备可用区。
- // 注意:此字段可能返回 null,表示取不到有效值。
SlaveZone []*string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
}
@@ -1242,20 +1076,21 @@ type ConfigListItem struct {
// 配置ID
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
- // 配置类型
+ // 配置类型, 可选值:CLB(实例维度配置), SERVER(服务维度配置),LOCATION(规则维度配置)
ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
// 配置名字
- // 注意:此字段可能返回 null,表示取不到有效值。
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// 配置内容
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
- // 增加配置时间
+ // 配置的创建时间。
+ // 格式:YYYY-MM-DD HH:mm:ss
CreateTimestamp *string `json:"CreateTimestamp,omitnil,omitempty" name:"CreateTimestamp"`
- // 修改配置时间
+ // 配置的修改时间。
+ // 格式:YYYY-MM-DD HH:mm:ss
UpdateTimestamp *string `json:"UpdateTimestamp,omitnil,omitempty" name:"UpdateTimestamp"`
}
@@ -1334,10 +1169,11 @@ func (r *CreateClsLogSetResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateListenerRequestParams struct {
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 要将监听器创建到哪些端口,每个端口对应一个新的监听器。
+ // 端口范围:1~65535
Ports []*int64 `json:"Ports,omitnil,omitempty" name:"Ports"`
// 监听器协议: TCP | UDP | HTTP | HTTPS | TCP_SSL | QUIC。
@@ -1350,19 +1186,15 @@ type CreateListenerRequestParams struct {
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// 证书相关信息。参数限制如下:
- //
- // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
- //
- //
- // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数MultiCertInfo至少需要传一个, 但不能同时传入。
- //
+ // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
+ // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数MultiCertInfo至少需要传一个, 但不能同时传入。
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
- // 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。此参数仅适用于TCP/UDP监听器。
+ // 会话保持时间,单位:秒。可选值:30~3600,默认为0,默认不开启。此参数仅适用于TCP/UDP监听器。
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
- // 监听器转发的方式。可选值:WRR、LEAST_CONN
- // 分别表示按权重轮询、最小连接数, 默认为 WRR。此参数仅适用于TCP/UDP/TCP_SSL/QUIC监听器。
+ // 监听器转发的方式。可选值:WRR(按权重轮询)、LEAST_CONN(按最小连接数)
+ // 默认为 WRR。此参数仅适用于TCP/UDP/TCP_SSL/QUIC监听器。
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// 是否开启SNI特性,此参数仅适用于HTTPS监听器。0表示未开启,1表示开启。
@@ -1375,21 +1207,18 @@ type CreateListenerRequestParams struct {
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// 是否开启长连接,此参数仅适用于HTTP/HTTPS监听器,0:关闭;1:开启, 默认关闭。
+ // 若后端服务对连接数上限有限制,则建议谨慎开启。此功能目前处于内测中,如需使用,请提交 [内测申请](https://cloud.tencent.com/apply/p/tsodp6qm21)。
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// 创建端口段监听器时必须传入此参数,用以标识结束端口。同时,入参Ports只允许传入一个成员,用以标识开始端口。【如果您需要体验端口段功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】。
EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
- // 解绑后端目标时,是否发RST给客户端,此参数仅适用于TCP监听器。
+ // 解绑后端目标时,是否发RST给两端(客户端和服务器),此参数仅适用于TCP监听器。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 证书信息,支持同时传入不同算法类型的多本服务端证书,参数限制如下:
- //
- // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
- //
- //
- // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数Certificate至少需要传一个, 但不能同时传入。
- //
+ // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
+ // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数Certificate至少需要传一个, 但不能同时传入。
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// 监听器最大连接数,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。基础网络实例不支持该参数。
@@ -1398,29 +1227,54 @@ type CreateListenerRequestParams struct {
// 监听器最大新增连接数,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。基础网络实例不支持该参数。
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
- // 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。取值范围:共享型实例和独占型实例支持:300-900,性能容量型实例支持:300-2000。如需设置请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。
+ // 空闲连接超时时间,此参数仅适用于TCP/UDP监听器,单位:秒。默认值:TCP监听器默认值为900s,UDP监听器默认值为300s。取值范围:共享型实例和独占型实例支持:10-900,性能容量型实例支持:10-1980。如需设置超过取值范围的值请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
- // 是否开启SNAT。
+ // TCP_SSL和QUIC是否支持PP
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // 是否开启SNAT,True(开启)、False(关闭)。
+ // 默认为关闭。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
- // 全端口段监听器的结束端口
+ // 全端口段监听器的结束端口,端口范围:2 - 65535
FullEndPorts []*int64 `json:"FullEndPorts,omitnil,omitempty" name:"FullEndPorts"`
- // 内网http监听器开启h2c开关
+ // 内网http监听器开启h2c开关,True(开启)、False(关闭)。
+ // 默认为关闭。
H2cSwitch *bool `json:"H2cSwitch,omitnil,omitempty" name:"H2cSwitch"`
- // TCP_SSL监听器支持关闭SSL后仍然支持混绑,此参数为关闭开关
+ // TCP_SSL监听器支持关闭SSL后仍然支持混绑,此参数为关闭开关。True(关闭)、False(开启).
+ // 默认为关闭。
SslCloseSwitch *bool `json:"SslCloseSwitch,omitnil,omitempty" name:"SslCloseSwitch"`
+
+ // 数据压缩模式。可选值:transparent(透传模式)、compatibility(兼容模式)
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // 重新调度功能,权重调为0开关,打开此开关,后端服务器权重调为0时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // 重新调度功能,健康检查异常开关,打开此开关,后端服务器健康检查异常时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // 重新调度功能,扩容后端服务开关,打开此开关,后端服务器增加或者减少时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // 重新调度触发开始时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // 重新调度触发持续时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
type CreateListenerRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 要将监听器创建到哪些端口,每个端口对应一个新的监听器。
+ // 端口范围:1~65535
Ports []*int64 `json:"Ports,omitnil,omitempty" name:"Ports"`
// 监听器协议: TCP | UDP | HTTP | HTTPS | TCP_SSL | QUIC。
@@ -1433,19 +1287,15 @@ type CreateListenerRequest struct {
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// 证书相关信息。参数限制如下:
- //
- // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
- //
- //
- // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数MultiCertInfo至少需要传一个, 但不能同时传入。
- //
+ // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
+ // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数MultiCertInfo至少需要传一个, 但不能同时传入。
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
- // 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。此参数仅适用于TCP/UDP监听器。
+ // 会话保持时间,单位:秒。可选值:30~3600,默认为0,默认不开启。此参数仅适用于TCP/UDP监听器。
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
- // 监听器转发的方式。可选值:WRR、LEAST_CONN
- // 分别表示按权重轮询、最小连接数, 默认为 WRR。此参数仅适用于TCP/UDP/TCP_SSL/QUIC监听器。
+ // 监听器转发的方式。可选值:WRR(按权重轮询)、LEAST_CONN(按最小连接数)
+ // 默认为 WRR。此参数仅适用于TCP/UDP/TCP_SSL/QUIC监听器。
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// 是否开启SNI特性,此参数仅适用于HTTPS监听器。0表示未开启,1表示开启。
@@ -1458,21 +1308,18 @@ type CreateListenerRequest struct {
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// 是否开启长连接,此参数仅适用于HTTP/HTTPS监听器,0:关闭;1:开启, 默认关闭。
+ // 若后端服务对连接数上限有限制,则建议谨慎开启。此功能目前处于内测中,如需使用,请提交 [内测申请](https://cloud.tencent.com/apply/p/tsodp6qm21)。
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// 创建端口段监听器时必须传入此参数,用以标识结束端口。同时,入参Ports只允许传入一个成员,用以标识开始端口。【如果您需要体验端口段功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】。
EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
- // 解绑后端目标时,是否发RST给客户端,此参数仅适用于TCP监听器。
+ // 解绑后端目标时,是否发RST给两端(客户端和服务器),此参数仅适用于TCP监听器。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 证书信息,支持同时传入不同算法类型的多本服务端证书,参数限制如下:
- //
- // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
- //
- //
- // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数Certificate至少需要传一个, 但不能同时传入。
- //
+ // 此参数仅适用于TCP_SSL监听器和未开启SNI特性的HTTPS监听器。
+ // 创建TCP_SSL监听器和未开启SNI特性的HTTPS监听器时,此参数和参数Certificate至少需要传一个, 但不能同时传入。
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// 监听器最大连接数,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。基础网络实例不支持该参数。
@@ -1481,20 +1328,44 @@ type CreateListenerRequest struct {
// 监听器最大新增连接数,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持,不传或者传-1表示监听器维度不限速。基础网络实例不支持该参数。
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
- // 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。取值范围:共享型实例和独占型实例支持:300-900,性能容量型实例支持:300-2000。如需设置请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。
+ // 空闲连接超时时间,此参数仅适用于TCP/UDP监听器,单位:秒。默认值:TCP监听器默认值为900s,UDP监听器默认值为300s。取值范围:共享型实例和独占型实例支持:10-900,性能容量型实例支持:10-1980。如需设置超过取值范围的值请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
- // 是否开启SNAT。
+ // TCP_SSL和QUIC是否支持PP
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // 是否开启SNAT,True(开启)、False(关闭)。
+ // 默认为关闭。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
- // 全端口段监听器的结束端口
+ // 全端口段监听器的结束端口,端口范围:2 - 65535
FullEndPorts []*int64 `json:"FullEndPorts,omitnil,omitempty" name:"FullEndPorts"`
- // 内网http监听器开启h2c开关
+ // 内网http监听器开启h2c开关,True(开启)、False(关闭)。
+ // 默认为关闭。
H2cSwitch *bool `json:"H2cSwitch,omitnil,omitempty" name:"H2cSwitch"`
- // TCP_SSL监听器支持关闭SSL后仍然支持混绑,此参数为关闭开关
+ // TCP_SSL监听器支持关闭SSL后仍然支持混绑,此参数为关闭开关。True(关闭)、False(开启).
+ // 默认为关闭。
SslCloseSwitch *bool `json:"SslCloseSwitch,omitnil,omitempty" name:"SslCloseSwitch"`
+
+ // 数据压缩模式。可选值:transparent(透传模式)、compatibility(兼容模式)
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // 重新调度功能,权重调为0开关,打开此开关,后端服务器权重调为0时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // 重新调度功能,健康检查异常开关,打开此开关,后端服务器健康检查异常时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // 重新调度功能,扩容后端服务开关,打开此开关,后端服务器增加或者减少时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // 重新调度触发开始时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // 重新调度触发持续时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
func (r *CreateListenerRequest) ToJsonString() string {
@@ -1527,10 +1398,17 @@ func (r *CreateListenerRequest) FromJsonString(s string) error {
delete(f, "MaxConn")
delete(f, "MaxCps")
delete(f, "IdleConnectTimeout")
+ delete(f, "ProxyProtocol")
delete(f, "SnatEnable")
delete(f, "FullEndPorts")
delete(f, "H2cSwitch")
delete(f, "SslCloseSwitch")
+ delete(f, "DataCompressMode")
+ delete(f, "RescheduleTargetZeroWeight")
+ delete(f, "RescheduleUnhealthy")
+ delete(f, "RescheduleExpandTarget")
+ delete(f, "RescheduleStartTime")
+ delete(f, "RescheduleInterval")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateListenerRequest has unknown keys!", "")
}
@@ -1581,23 +1459,23 @@ type CreateLoadBalancerRequestParams struct {
// 在私有网络内购买内网负载均衡实例的情况下,必须指定子网 ID,内网负载均衡实例的 VIP 将从这个子网中产生。创建内网负载均衡实例时,此参数必填,创建公网IPv4负载均衡实例时,不支持指定该参数。
SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
- // 负载均衡实例所属的项目 ID,可以通过 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 接口获取。不填此参数则视为默认项目。
+ // 负载均衡实例所属的项目 ID,默认项目 ID 为0。可以通过 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 接口获取。不填此参数则视为默认项目。
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 仅适用于公网负载均衡。IP版本,可取值:IPV4、IPV6、IPv6FullChain,不区分大小写,默认值 IPV4。说明:取值为IPV6表示为IPV6 NAT64版本;取值为IPv6FullChain,表示为IPv6版本。
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
- // 创建负载均衡的个数,默认值 1。
+ // 创建负载均衡的个数,默认值 1。创建个数不能超过账号所能创建的最大值,默认创建最大值为20。
Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
- // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的主可用区ID,例如 100001 或 ap-guangzhou-1
- // 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区。目前仅广州、上海、南京、北京、成都、深圳金融、中国香港、首尔、法兰克福、新加坡地域的 IPv4 版本的 CLB 支持主备可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主可用区的列表。【如果您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】
+ // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的主可用区ID, 可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1
+ // 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区。
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
- // 仅适用于公网且IP版本为IPv4的负载均衡。可用区ID,指定可用区以创建负载均衡实例。如:ap-guangzhou-1。
+ // 仅适用于公网且IP版本为IPv4的负载均衡。可用区ID,可用区 ID 和名称均支持,指定可用区以创建负载均衡实例。如:100001 或 ap-guangzhou-1。
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
- // 网络计费模式,最大出带宽。仅对内网属性的性能容量型实例和公网属性的所有实例生效。
+ // 网络计费模式,最大出带宽。仅对内网属性的性能容量型实例和公网属性的所有实例生效。API接口购买包年包月实例还在灰度中,如您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// 仅适用于公网负载均衡。目前仅广州、上海、南京、济南、杭州、福州、北京、石家庄、武汉、长沙、成都、重庆地域支持静态单线 IP 线路类型,如需体验,请联系商务经理申请。申请通过后,即可选择中国移动(CMCC)、中国联通(CUCC)或中国电信(CTCC)的运营商类型,网络计费模式只能使用按带宽包计费(BANDWIDTH_PACKAGE)。 如果不指定本参数,则默认使用BGP。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域所支持的Isp。
@@ -1610,7 +1488,7 @@ type CreateLoadBalancerRequestParams struct {
// 注意:当指定VIP创建内网实例、或公网IPv6 BGP实例时,若VIP不属于指定VPC子网的网段内时,会创建失败;若VIP已被占用,也会创建失败。
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
- // 带宽包ID,指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE),带宽包的属性即为其结算方式。非上移用户购买的 IPv6 负载均衡实例,且运营商类型非 BGP 时 ,不支持指定具体带宽包id。
+ // 带宽包ID,可以通过 [DescribeBandwidthPackages](https://cloud.tencent.com/document/api/215/19209) 接口获取。指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE),带宽包的属性即为其结算方式。非上移用户购买的 IPv6 负载均衡实例,且运营商类型非 BGP 时 ,不支持指定具体带宽包id。
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// 独占型实例信息。若创建独占型的内网负载均衡实例,则此参数必填。
@@ -1635,14 +1513,14 @@ type CreateLoadBalancerRequestParams struct {
// Stgw独占集群的标签。
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
- // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的备可用区ID,例如 100001 或 ap-guangzhou-1
+ // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的备可用区ID,可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1
// 注:备可用区是主可用区故障后,需要承载流量的可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主/备可用区的列表。【如果您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
- // EIP 的唯一 ID,形如:eip-11112222,仅适用于内网负载均衡绑定EIP。
+ // EIP 的唯一 ID,可以通过 [DescribeAddresses](https://cloud.tencent.com/document/product/215/16702) 接口查询。形如:eip-qhx8udkc,仅适用于内网负载均衡绑定EIP。
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
- // Target是否放通来自CLB的流量。开启放通(true):只验证CLB上的安全组;不开启放通(false):需同时验证CLB和后端实例上的安全组。
+ // Target是否放通来自CLB的流量。开启放通(true):只验证CLB上的安全组;不开启放通(false):需同时验证CLB和后端实例上的安全组。IPv6 CLB安全组默认放通,不需要传此参数。
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// 创建域名化负载均衡。
@@ -1651,14 +1529,17 @@ type CreateLoadBalancerRequestParams struct {
// 网络出口
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
- // 负载均衡实例的预付费相关属性
+ // 负载均衡实例的预付费相关属性,API接口购买包年包月实例还在灰度中,如您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)
LBChargePrepaid *LBChargePrepaid `json:"LBChargePrepaid,omitnil,omitempty" name:"LBChargePrepaid"`
- // 负载均衡实例计费类型,取值:POSTPAID_BY_HOUR,PREPAID,默认是POSTPAID_BY_HOUR。
+ // 负载均衡实例计费类型,取值:POSTPAID_BY_HOUR,PREPAID,默认是POSTPAID_BY_HOUR。API接口购买包年包月实例还在灰度中,如您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)
LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
// 七层访问日志主题ID
AccessLogTopicId *string `json:"AccessLogTopicId,omitnil,omitempty" name:"AccessLogTopicId"`
+
+ // 是否开启七层高级路由
+ AdvancedRoute *bool `json:"AdvancedRoute,omitnil,omitempty" name:"AdvancedRoute"`
}
type CreateLoadBalancerRequest struct {
@@ -1681,23 +1562,23 @@ type CreateLoadBalancerRequest struct {
// 在私有网络内购买内网负载均衡实例的情况下,必须指定子网 ID,内网负载均衡实例的 VIP 将从这个子网中产生。创建内网负载均衡实例时,此参数必填,创建公网IPv4负载均衡实例时,不支持指定该参数。
SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
- // 负载均衡实例所属的项目 ID,可以通过 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 接口获取。不填此参数则视为默认项目。
+ // 负载均衡实例所属的项目 ID,默认项目 ID 为0。可以通过 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 接口获取。不填此参数则视为默认项目。
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 仅适用于公网负载均衡。IP版本,可取值:IPV4、IPV6、IPv6FullChain,不区分大小写,默认值 IPV4。说明:取值为IPV6表示为IPV6 NAT64版本;取值为IPv6FullChain,表示为IPv6版本。
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
- // 创建负载均衡的个数,默认值 1。
+ // 创建负载均衡的个数,默认值 1。创建个数不能超过账号所能创建的最大值,默认创建最大值为20。
Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
- // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的主可用区ID,例如 100001 或 ap-guangzhou-1
- // 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区。目前仅广州、上海、南京、北京、成都、深圳金融、中国香港、首尔、法兰克福、新加坡地域的 IPv4 版本的 CLB 支持主备可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主可用区的列表。【如果您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】
+ // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的主可用区ID, 可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1
+ // 注:主可用区是需要承载流量的可用区,备可用区默认不承载流量,主可用区不可用时才使用备可用区。
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
- // 仅适用于公网且IP版本为IPv4的负载均衡。可用区ID,指定可用区以创建负载均衡实例。如:ap-guangzhou-1。
+ // 仅适用于公网且IP版本为IPv4的负载均衡。可用区ID,可用区 ID 和名称均支持,指定可用区以创建负载均衡实例。如:100001 或 ap-guangzhou-1。
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
- // 网络计费模式,最大出带宽。仅对内网属性的性能容量型实例和公网属性的所有实例生效。
+ // 网络计费模式,最大出带宽。仅对内网属性的性能容量型实例和公网属性的所有实例生效。API接口购买包年包月实例还在灰度中,如您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// 仅适用于公网负载均衡。目前仅广州、上海、南京、济南、杭州、福州、北京、石家庄、武汉、长沙、成都、重庆地域支持静态单线 IP 线路类型,如需体验,请联系商务经理申请。申请通过后,即可选择中国移动(CMCC)、中国联通(CUCC)或中国电信(CTCC)的运营商类型,网络计费模式只能使用按带宽包计费(BANDWIDTH_PACKAGE)。 如果不指定本参数,则默认使用BGP。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域所支持的Isp。
@@ -1710,7 +1591,7 @@ type CreateLoadBalancerRequest struct {
// 注意:当指定VIP创建内网实例、或公网IPv6 BGP实例时,若VIP不属于指定VPC子网的网段内时,会创建失败;若VIP已被占用,也会创建失败。
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
- // 带宽包ID,指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE),带宽包的属性即为其结算方式。非上移用户购买的 IPv6 负载均衡实例,且运营商类型非 BGP 时 ,不支持指定具体带宽包id。
+ // 带宽包ID,可以通过 [DescribeBandwidthPackages](https://cloud.tencent.com/document/api/215/19209) 接口获取。指定此参数时,网络计费方式(InternetAccessible.InternetChargeType)只支持按带宽包计费(BANDWIDTH_PACKAGE),带宽包的属性即为其结算方式。非上移用户购买的 IPv6 负载均衡实例,且运营商类型非 BGP 时 ,不支持指定具体带宽包id。
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// 独占型实例信息。若创建独占型的内网负载均衡实例,则此参数必填。
@@ -1735,14 +1616,14 @@ type CreateLoadBalancerRequest struct {
// Stgw独占集群的标签。
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
- // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的备可用区ID,例如 100001 或 ap-guangzhou-1
+ // 仅适用于公网且IP版本为IPv4的负载均衡。设置跨可用区容灾时的备可用区ID,可用区 ID 和名称均支持,例如 100001 或 ap-guangzhou-1
// 注:备可用区是主可用区故障后,需要承载流量的可用区。可通过 [DescribeResources](https://cloud.tencent.com/document/api/214/70213) 接口查询一个地域的主/备可用区的列表。【如果您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
- // EIP 的唯一 ID,形如:eip-11112222,仅适用于内网负载均衡绑定EIP。
+ // EIP 的唯一 ID,可以通过 [DescribeAddresses](https://cloud.tencent.com/document/product/215/16702) 接口查询。形如:eip-qhx8udkc,仅适用于内网负载均衡绑定EIP。
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
- // Target是否放通来自CLB的流量。开启放通(true):只验证CLB上的安全组;不开启放通(false):需同时验证CLB和后端实例上的安全组。
+ // Target是否放通来自CLB的流量。开启放通(true):只验证CLB上的安全组;不开启放通(false):需同时验证CLB和后端实例上的安全组。IPv6 CLB安全组默认放通,不需要传此参数。
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// 创建域名化负载均衡。
@@ -1751,14 +1632,17 @@ type CreateLoadBalancerRequest struct {
// 网络出口
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
- // 负载均衡实例的预付费相关属性
+ // 负载均衡实例的预付费相关属性,API接口购买包年包月实例还在灰度中,如您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)
LBChargePrepaid *LBChargePrepaid `json:"LBChargePrepaid,omitnil,omitempty" name:"LBChargePrepaid"`
- // 负载均衡实例计费类型,取值:POSTPAID_BY_HOUR,PREPAID,默认是POSTPAID_BY_HOUR。
+ // 负载均衡实例计费类型,取值:POSTPAID_BY_HOUR,PREPAID,默认是POSTPAID_BY_HOUR。API接口购买包年包月实例还在灰度中,如您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)
LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
// 七层访问日志主题ID
AccessLogTopicId *string `json:"AccessLogTopicId,omitnil,omitempty" name:"AccessLogTopicId"`
+
+ // 是否开启七层高级路由
+ AdvancedRoute *bool `json:"AdvancedRoute,omitnil,omitempty" name:"AdvancedRoute"`
}
func (r *CreateLoadBalancerRequest) ToJsonString() string {
@@ -1803,6 +1687,7 @@ func (r *CreateLoadBalancerRequest) FromJsonString(s string) error {
delete(f, "LBChargePrepaid")
delete(f, "LBChargeType")
delete(f, "AccessLogTopicId")
+ delete(f, "AdvancedRoute")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateLoadBalancerRequest has unknown keys!", "")
}
@@ -1842,10 +1727,10 @@ func (r *CreateLoadBalancerResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateLoadBalancerSnatIpsRequestParams struct {
- // 负载均衡唯一性ID,例如:lb-12345678。
+ // 负载均衡唯一性ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。例如:lb-12345678。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 添加的SnatIp信息,可指定IP申请,或者指定子网自动申请。单个CLB实例可申请的默认上限为10个。
+ // 添加的SnatIp信息,可指定IP申请,或者指定子网自动申请。可以通过 [DescribeSubnets](https://cloud.tencent.com/document/api/215/15784) 查询获取,单个CLB实例可申请的默认上限为10个。
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// 添加的SnatIp的个数,可与SnatIps一起使用,但若指定IP时,则不能指定创建的SnatIp个数。默认值为1,数量上限与用户配置有关,默认上限为10。
@@ -1855,10 +1740,10 @@ type CreateLoadBalancerSnatIpsRequestParams struct {
type CreateLoadBalancerSnatIpsRequest struct {
*tchttp.BaseRequest
- // 负载均衡唯一性ID,例如:lb-12345678。
+ // 负载均衡唯一性ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。例如:lb-12345678。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 添加的SnatIp信息,可指定IP申请,或者指定子网自动申请。单个CLB实例可申请的默认上限为10个。
+ // 添加的SnatIp信息,可指定IP申请,或者指定子网自动申请。可以通过 [DescribeSubnets](https://cloud.tencent.com/document/api/215/15784) 查询获取,单个CLB实例可申请的默认上限为10个。
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// 添加的SnatIp的个数,可与SnatIps一起使用,但若指定IP时,则不能指定创建的SnatIp个数。默认值为1,数量上限与用户配置有关,默认上限为10。
@@ -1910,10 +1795,10 @@ func (r *CreateLoadBalancerSnatIpsResponse) FromJsonString(s string) error {
// Predefined struct for user
type CreateRuleRequestParams struct {
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 监听器 ID。
+ // 监听器 ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// 新建转发规则的信息。
@@ -1923,10 +1808,10 @@ type CreateRuleRequestParams struct {
type CreateRuleRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 监听器 ID。
+ // 监听器 ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// 新建转发规则的信息。
@@ -1984,27 +1869,46 @@ type CreateTargetGroupRequestParams struct {
// 目标组名称,限定50个字符
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
- // 目标组的vpcid属性,不填则使用默认vpc
+ // 目标组的vpcId属性,不填则使用默认vpc。
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
- // 目标组的默认端口, 后续添加服务器时可使用该默认端口。Port和TargetGroupInstances.N中的port二者必填其一。
+ // 目标组的默认端口, 后续添加服务器时可使用该默认端口。全监听目标组不支持此参数,非全监听目标组Port和TargetGroupInstances.N中的port二者必填其一。
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
- // 目标组绑定的后端服务器
+ // 目标组绑定的后端服务器,单次最多支持50个。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
// 目标组类型,当前支持v1(旧版目标组), v2(新版目标组), 默认为v1(旧版目标组)。
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+ // 目标组后端转发协议。v2新版目标组该项必填。目前支持TCP、UDP、HTTP、HTTPS、GRPC。
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // 健康检查。
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
+ // WRR:按权重轮询。LEAST_CONN:最小连接数。IP_HASH:按IP哈希。默认为 WRR。
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
// 标签。
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
- // 后端服务默认权重。
- //
- // - 取值范围[0, 100]
- // - 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- //
+ // 后端服务默认权重, 其中:
+ // - 取值范围[0, 100]
- 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- v1 目标组类型不支持设置 Weight 参数。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // 全监听目标组标识,true表示是全监听目标组,false表示不是全监听目标组。仅V2新版类型目标组支持该参数。
+ FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
+
+ // 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,0:关闭;1:开启, 默认关闭。
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。仅V2新版且后端转发协议为HTTP/HTTPS/GRPC目标组支持该参数。
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // IP版本类型。
+ IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
}
type CreateTargetGroupRequest struct {
@@ -2013,27 +1917,46 @@ type CreateTargetGroupRequest struct {
// 目标组名称,限定50个字符
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
- // 目标组的vpcid属性,不填则使用默认vpc
+ // 目标组的vpcId属性,不填则使用默认vpc。
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
- // 目标组的默认端口, 后续添加服务器时可使用该默认端口。Port和TargetGroupInstances.N中的port二者必填其一。
+ // 目标组的默认端口, 后续添加服务器时可使用该默认端口。全监听目标组不支持此参数,非全监听目标组Port和TargetGroupInstances.N中的port二者必填其一。
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
- // 目标组绑定的后端服务器
+ // 目标组绑定的后端服务器,单次最多支持50个。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
// 目标组类型,当前支持v1(旧版目标组), v2(新版目标组), 默认为v1(旧版目标组)。
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+ // 目标组后端转发协议。v2新版目标组该项必填。目前支持TCP、UDP、HTTP、HTTPS、GRPC。
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // 健康检查。
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
+ // WRR:按权重轮询。LEAST_CONN:最小连接数。IP_HASH:按IP哈希。默认为 WRR。
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
// 标签。
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
- // 后端服务默认权重。
- //
- // - 取值范围[0, 100]
- // - 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- //
+ // 后端服务默认权重, 其中:
+ // - 取值范围[0, 100]
- 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- v1 目标组类型不支持设置 Weight 参数。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // 全监听目标组标识,true表示是全监听目标组,false表示不是全监听目标组。仅V2新版类型目标组支持该参数。
+ FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
+
+ // 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,0:关闭;1:开启, 默认关闭。
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。仅V2新版且后端转发协议为HTTP/HTTPS/GRPC目标组支持该参数。
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // IP版本类型。
+ IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
}
func (r *CreateTargetGroupRequest) ToJsonString() string {
@@ -2053,8 +1976,15 @@ func (r *CreateTargetGroupRequest) FromJsonString(s string) error {
delete(f, "Port")
delete(f, "TargetGroupInstances")
delete(f, "Type")
+ delete(f, "Protocol")
+ delete(f, "HealthCheck")
+ delete(f, "ScheduleAlgorithm")
delete(f, "Tags")
delete(f, "Weight")
+ delete(f, "FullListenSwitch")
+ delete(f, "KeepaliveEnable")
+ delete(f, "SessionExpireTime")
+ delete(f, "IpVersion")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTargetGroupRequest has unknown keys!", "")
}
@@ -2097,7 +2027,9 @@ type CreateTopicRequestParams struct {
// 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。
TopicType *string `json:"TopicType,omitnil,omitempty" name:"TopicType"`
- // 日志集的保存周期,单位:天,默认30天,范围[1, 3600]。
+ // 存储时间,单位天,默认为 30。
+ // - 日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。
+ // - 日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。
Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
// 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。
@@ -2116,7 +2048,9 @@ type CreateTopicRequest struct {
// 日志类型,ACCESS:访问日志,HEALTH:健康检查日志,默认ACCESS。
TopicType *string `json:"TopicType,omitnil,omitempty" name:"TopicType"`
- // 日志集的保存周期,单位:天,默认30天,范围[1, 3600]。
+ // 存储时间,单位天,默认为 30。
+ // - 日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。
+ // - 日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。
Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
// 日志主题的存储类型,可选值 HOT(标准存储),COLD(低频存储);默认为HOT。
@@ -2188,87 +2122,31 @@ type CrossTargets struct {
EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
// 子机实例ID。
- // 注意:此字段可能返回 null,表示取不到有效值。
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 子机实例名称。
- // 注意:此字段可能返回 null,表示取不到有效值。
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 子机或者网卡所属的地域。
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
}
-// Predefined struct for user
-type DeleteCustomizedConfigRequestParams struct {
- // 删除的配置ID列表
- UconfigIdList []*string `json:"UconfigIdList,omitnil,omitempty" name:"UconfigIdList"`
-}
-
-type DeleteCustomizedConfigRequest struct {
- *tchttp.BaseRequest
-
- // 删除的配置ID列表
- UconfigIdList []*string `json:"UconfigIdList,omitnil,omitempty" name:"UconfigIdList"`
-}
-
-func (r *DeleteCustomizedConfigRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *DeleteCustomizedConfigRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "UconfigIdList")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteCustomizedConfigRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
-}
-
-// Predefined struct for user
-type DeleteCustomizedConfigResponseParams struct {
- // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
-}
-
-type DeleteCustomizedConfigResponse struct {
- *tchttp.BaseResponse
- Response *DeleteCustomizedConfigResponseParams `json:"Response"`
-}
-
-func (r *DeleteCustomizedConfigResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *DeleteCustomizedConfigResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
-}
-
// Predefined struct for user
type DeleteListenerRequestParams struct {
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 要删除的监听器ID。
+ // 要删除的监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
}
type DeleteListenerRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 要删除的监听器ID。
+ // 要删除的监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
}
@@ -2316,20 +2194,20 @@ func (r *DeleteListenerResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteLoadBalancerListenersRequestParams struct {
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 指定删除的监听器ID数组,最大为20个。若不填则删除负载均衡的所有监听器。
+ // 指定删除的监听器ID数组,最大为20个。若不填则删除负载均衡的所有监听器,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
}
type DeleteLoadBalancerListenersRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 指定删除的监听器ID数组,最大为20个。若不填则删除负载均衡的所有监听器。
+ // 指定删除的监听器ID数组,最大为20个。若不填则删除负载均衡的所有监听器,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
}
@@ -2377,15 +2255,31 @@ func (r *DeleteLoadBalancerListenersResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteLoadBalancerRequestParams struct {
- // 要删除的负载均衡实例 ID数组,数组大小最大支持20。
+ // 要删除的负载均衡实例 ID 数组,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取,数组大小最大支持20。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // 是否强制删除clb。true表示强制删除,false表示不是强制删除,需要做拦截校验。
+ // 默认为false。
+ // 以下几种情况会默认拦截删除操作,如果触发情况1、2但确认强制删除则需要传强制校验参数ForceDelete为true。
+ // 1、删除后端绑定大于等于 20 个 RS 的实例时。
+ // 2、删除后端有 RS 且 5 分钟 内“出/入带宽”峰值取大 > 10Mbps 的实例时。
+ // 3、单地域内 5 分钟 内删除大于等于 30 个实例时。
+ ForceDelete *bool `json:"ForceDelete,omitnil,omitempty" name:"ForceDelete"`
}
type DeleteLoadBalancerRequest struct {
*tchttp.BaseRequest
- // 要删除的负载均衡实例 ID数组,数组大小最大支持20。
+ // 要删除的负载均衡实例 ID 数组,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取,数组大小最大支持20。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // 是否强制删除clb。true表示强制删除,false表示不是强制删除,需要做拦截校验。
+ // 默认为false。
+ // 以下几种情况会默认拦截删除操作,如果触发情况1、2但确认强制删除则需要传强制校验参数ForceDelete为true。
+ // 1、删除后端绑定大于等于 20 个 RS 的实例时。
+ // 2、删除后端有 RS 且 5 分钟 内“出/入带宽”峰值取大 > 10Mbps 的实例时。
+ // 3、单地域内 5 分钟 内删除大于等于 30 个实例时。
+ ForceDelete *bool `json:"ForceDelete,omitnil,omitempty" name:"ForceDelete"`
}
func (r *DeleteLoadBalancerRequest) ToJsonString() string {
@@ -2401,6 +2295,7 @@ func (r *DeleteLoadBalancerRequest) FromJsonString(s string) error {
return err
}
delete(f, "LoadBalancerIds")
+ delete(f, "ForceDelete")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteLoadBalancerRequest has unknown keys!", "")
}
@@ -2431,20 +2326,20 @@ func (r *DeleteLoadBalancerResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteLoadBalancerSnatIpsRequestParams struct {
- // 负载均衡唯一ID,例如:lb-12345678。
+ // 负载均衡唯一ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。例如:lb-12345678。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 删除SnatIp地址数组。
+ // 删除SnatIp地址数组,最大支持删除数量为20个。
Ips []*string `json:"Ips,omitnil,omitempty" name:"Ips"`
}
type DeleteLoadBalancerSnatIpsRequest struct {
*tchttp.BaseRequest
- // 负载均衡唯一ID,例如:lb-12345678。
+ // 负载均衡唯一ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。例如:lb-12345678。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 删除SnatIp地址数组。
+ // 删除SnatIp地址数组,最大支持删除数量为20个。
Ips []*string `json:"Ips,omitnil,omitempty" name:"Ips"`
}
@@ -2567,44 +2462,44 @@ func (r *DeleteRewriteResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteRuleRequestParams struct {
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器ID。
+ // 负载均衡监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 要删除的转发规则的ID组成的数组。
+ // 要删除的转发规则的ID组成的数组,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/api/214/46916) 接口查询。
LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
- // 要删除的转发规则的域名,如果是多域名,可以指定多域名列表中的任意一个。
+ // 要删除的转发规则的域名,如果是多域名,可以指定多域名列表中的任意一个,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/api/214/46916) 接口查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
- // 要删除的转发规则的转发路径。
+ // 要删除的转发规则的转发路径,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/api/214/46916) 接口查询。
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
- // 监听器下必须配置一个默认域名,当需要删除默认域名时,可以指定另一个域名作为新的默认域名,如果新的默认域名是多域名,可以指定多域名列表中的任意一个。
+ // 监听器下必须配置一个默认域名,当需要删除默认域名时,可以指定另一个域名作为新的默认域名,如果新的默认域名是多域名,可以指定多域名列表中的任意一个,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
}
type DeleteRuleRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器ID。
+ // 负载均衡监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 要删除的转发规则的ID组成的数组。
+ // 要删除的转发规则的ID组成的数组,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/api/214/46916) 接口查询。
LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
- // 要删除的转发规则的域名,如果是多域名,可以指定多域名列表中的任意一个。
+ // 要删除的转发规则的域名,如果是多域名,可以指定多域名列表中的任意一个,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/api/214/46916) 接口查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
- // 要删除的转发规则的转发路径。
+ // 要删除的转发规则的转发路径,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/api/214/46916) 接口查询。
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
- // 监听器下必须配置一个默认域名,当需要删除默认域名时,可以指定另一个域名作为新的默认域名,如果新的默认域名是多域名,可以指定多域名列表中的任意一个。
+ // 监听器下必须配置一个默认域名,当需要删除默认域名时,可以指定另一个域名作为新的默认域名,如果新的默认域名是多域名,可以指定多域名列表中的任意一个,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
}
@@ -2656,14 +2551,14 @@ func (r *DeleteRuleResponse) FromJsonString(s string) error {
// Predefined struct for user
type DeleteTargetGroupsRequestParams struct {
- // 目标组的ID数组。
+ // 目标组的ID数组,单次最多支持删除20个。
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
}
type DeleteTargetGroupsRequest struct {
*tchttp.BaseRequest
- // 目标组的ID数组。
+ // 目标组的ID数组,单次最多支持删除20个。
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
}
@@ -2802,7 +2697,8 @@ type DeregisterTargetGroupInstancesRequestParams struct {
// 目标组ID。
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 待解绑的服务器信息。
+ // 待解绑的服务器信息,支持批量解除绑定,单次批量解除数量最多为20个。
+ // 在这个接口 Port 参数为必填项。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -2812,7 +2708,8 @@ type DeregisterTargetGroupInstancesRequest struct {
// 目标组ID。
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 待解绑的服务器信息。
+ // 待解绑的服务器信息,支持批量解除绑定,单次批量解除数量最多为20个。
+ // 在这个接口 Port 参数为必填项。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -3241,7 +3138,6 @@ func (r *DescribeClassicalLBHealthStatusRequest) FromJsonString(s string) error
// Predefined struct for user
type DescribeClassicalLBHealthStatusResponseParams struct {
// 后端健康状态列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
HealthList []*ClassicalHealth `json:"HealthList,omitnil,omitempty" name:"HealthList"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -3327,7 +3223,6 @@ func (r *DescribeClassicalLBListenersRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClassicalLBListenersResponseParams struct {
// 监听器列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
Listeners []*ClassicalListener `json:"Listeners,omitnil,omitempty" name:"Listeners"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -3385,7 +3280,6 @@ func (r *DescribeClassicalLBTargetsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeClassicalLBTargetsResponseParams struct {
// 后端服务列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
Targets []*ClassicalTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -3631,7 +3525,7 @@ func (r *DescribeCrossTargetsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeCustomizedConfigAssociateListRequestParams struct {
- // 配置ID
+ // 配置ID,可以通过 [DescribeCustomizedConfigList](https://cloud.tencent.com/document/product/214/60009) 接口获取。
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// 拉取绑定关系列表开始位置,默认值 0
@@ -3640,14 +3534,14 @@ type DescribeCustomizedConfigAssociateListRequestParams struct {
// 拉取绑定关系列表数目,默认值 20
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 搜索域名
+ // 搜索域名,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/product/214/46916) 接口返回值的 `Domain` 字段查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
type DescribeCustomizedConfigAssociateListRequest struct {
*tchttp.BaseRequest
- // 配置ID
+ // 配置ID,可以通过 [DescribeCustomizedConfigList](https://cloud.tencent.com/document/product/214/60009) 接口获取。
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// 拉取绑定关系列表开始位置,默认值 0
@@ -3656,7 +3550,7 @@ type DescribeCustomizedConfigAssociateListRequest struct {
// 拉取绑定关系列表数目,默认值 20
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 搜索域名
+ // 搜索域名,可以通过 [DescribeLoadBalancersDetail](https://cloud.tencent.com/document/product/214/46916) 接口返回值的 `Domain` 字段查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
@@ -3715,21 +3609,29 @@ type DescribeCustomizedConfigListRequestParams struct {
// 配置类型:CLB 负载均衡维度。 SERVER 域名维度。 LOCATION 规则维度。
ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
- // 拉取页偏移,默认值0
+ // 拉取页偏移,默认值0。
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
- // 拉取数目,默认值20
+ // 拉取数目,默认值20。
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 拉取指定配置名字,模糊匹配。
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
- // 配置ID
+ // 配置ID,可以通过 [DescribeCustomizedConfigList](https://cloud.tencent.com/document/api/214/60009) 接口查询。
UconfigIds []*string `json:"UconfigIds,omitnil,omitempty" name:"UconfigIds"`
// 过滤条件如下:
- // loadbalancer-id - String - 是否必填:否 - (过滤条件)按照 负载均衡ID 过滤,如:"lb-12345678"。
- // vip - String - 是否必填:否 - (过滤条件)按照 负载均衡Vip 过滤,如:"1.1.1.1","2204::22:3"。
+ // - loadbalancer-id
+ // 按照【负载均衡 ID】进行过滤。实例计费模式例如:lb-9vxezxza。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459)
+ // - vip
+ // 按照【负载均衡VIP】进行过滤。网络计费模式例如:"1.1.1.1","2204::22:3"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459)
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -3739,21 +3641,29 @@ type DescribeCustomizedConfigListRequest struct {
// 配置类型:CLB 负载均衡维度。 SERVER 域名维度。 LOCATION 规则维度。
ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
- // 拉取页偏移,默认值0
+ // 拉取页偏移,默认值0。
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
- // 拉取数目,默认值20
+ // 拉取数目,默认值20。
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 拉取指定配置名字,模糊匹配。
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
- // 配置ID
+ // 配置ID,可以通过 [DescribeCustomizedConfigList](https://cloud.tencent.com/document/api/214/60009) 接口查询。
UconfigIds []*string `json:"UconfigIds,omitnil,omitempty" name:"UconfigIds"`
// 过滤条件如下:
- // loadbalancer-id - String - 是否必填:否 - (过滤条件)按照 负载均衡ID 过滤,如:"lb-12345678"。
- // vip - String - 是否必填:否 - (过滤条件)按照 负载均衡Vip 过滤,如:"1.1.1.1","2204::22:3"。
+ // - loadbalancer-id
+ // 按照【负载均衡 ID】进行过滤。实例计费模式例如:lb-9vxezxza。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459)
+ // - vip
+ // 按照【负载均衡VIP】进行过滤。网络计费模式例如:"1.1.1.1","2204::22:3"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459)
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -3909,7 +3819,7 @@ type DescribeIdleLoadBalancersRequestParams struct {
// 返回负载均衡实例的数量,默认为20,最大值为100。
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 负载均衡所在地域。
+ // 负载均衡所在地域,可以通过 [DescribeRegions](https://cloud.tencent.com/document/product/1596/77930) 接口返回值 `RegionSet.Region` 字段获取。
LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
}
@@ -3922,7 +3832,7 @@ type DescribeIdleLoadBalancersRequest struct {
// 返回负载均衡实例的数量,默认为20,最大值为100。
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 负载均衡所在地域。
+ // 负载均衡所在地域,可以通过 [DescribeRegions](https://cloud.tencent.com/document/product/1596/77930) 接口返回值 `RegionSet.Region` 字段获取。
LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
}
@@ -3950,7 +3860,6 @@ func (r *DescribeIdleLoadBalancersRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeIdleLoadBalancersResponseParams struct {
// 闲置实例列表
- // 注意:此字段可能返回 null,表示取不到有效值。
IdleLoadBalancers []*IdleLoadBalancer `json:"IdleLoadBalancers,omitnil,omitempty" name:"IdleLoadBalancers"`
// 所有闲置实例数目
@@ -4033,34 +3942,91 @@ func (r *DescribeLBListenersResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type DescribeLBOperateProtectRequestParams struct {
+ // 负载均衡实例ID。
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+type DescribeLBOperateProtectRequest struct {
+ *tchttp.BaseRequest
+
+ // 负载均衡实例ID。
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+func (r *DescribeLBOperateProtectRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLBOperateProtectRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLBOperateProtectRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLBOperateProtectResponseParams struct {
+ // 返回的负载均衡操作保护信息数组。
+ LoadBalancerSet []*LBOperateProtectInfo `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
+
+ // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLBOperateProtectResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLBOperateProtectResponseParams `json:"Response"`
+}
+
+func (r *DescribeLBOperateProtectResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLBOperateProtectResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type DescribeListenersRequestParams struct {
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/api/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 要查询的负载均衡监听器 ID 数组,最大为100个。
+ // 要查询的负载均衡监听器 ID 数组,最大为100个,可以通过 [DescribeListeners](https://cloud.tencent.com/document/api/214/30686) 接口获取。
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// 要查询的监听器协议类型,取值 TCP | UDP | HTTP | HTTPS | TCP_SSL | QUIC。
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
- // 要查询的监听器的端口。
+ // 要查询的监听器的端口,端口范围:1-65535
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
}
type DescribeListenersRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/api/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 要查询的负载均衡监听器 ID 数组,最大为100个。
+ // 要查询的负载均衡监听器 ID 数组,最大为100个,可以通过 [DescribeListeners](https://cloud.tencent.com/document/api/214/30686) 接口获取。
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// 要查询的监听器协议类型,取值 TCP | UDP | HTTP | HTTPS | TCP_SSL | QUIC。
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
- // 要查询的监听器的端口。
+ // 要查询的监听器的端口,端口范围:1-65535
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
}
@@ -4092,7 +4058,6 @@ type DescribeListenersResponseParams struct {
Listeners []*Listener `json:"Listeners,omitnil,omitempty" name:"Listeners"`
// 总的监听器个数(根据端口、协议、监听器ID过滤后)。
- // 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -4117,14 +4082,16 @@ func (r *DescribeListenersResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeLoadBalancerListByCertIdRequestParams struct {
- // 服务端证书的ID,或客户端证书的ID
+ // 服务端证书的ID,或客户端证书的ID。可以通过 [DescribeCertificate](https://cloud.tencent.com/document/api/400/41674) 接口查询。
+ // 数组最大长度为20。
CertIds []*string `json:"CertIds,omitnil,omitempty" name:"CertIds"`
}
type DescribeLoadBalancerListByCertIdRequest struct {
*tchttp.BaseRequest
- // 服务端证书的ID,或客户端证书的ID
+ // 服务端证书的ID,或客户端证书的ID。可以通过 [DescribeCertificate](https://cloud.tencent.com/document/api/400/41674) 接口查询。
+ // 数组最大长度为20。
CertIds []*string `json:"CertIds,omitnil,omitempty" name:"CertIds"`
}
@@ -4270,7 +4237,6 @@ func (r *DescribeLoadBalancerTrafficRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeLoadBalancerTrafficResponseParams struct {
// 按出带宽从高到低排序后的负载均衡信息。
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerTraffic []*LoadBalancerTraffic `json:"LoadBalancerTraffic,omitnil,omitempty" name:"LoadBalancerTraffic"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -4308,16 +4274,53 @@ type DescribeLoadBalancersDetailRequestParams struct {
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// 查询负载均衡详细信息列表条件,详细的过滤条件如下:
- // loadbalancer-id - String - 是否必填:否 - (过滤条件)按照 负载均衡ID 过滤,如:"lb-12345678"。
- // project-id - String - 是否必填:否 - (过滤条件)按照 项目ID 过滤,如:"0","123"。
- // network - String - 是否必填:否 - (过滤条件)按照 负载均衡网络类型 过滤,如:"Public","Private"。
- // vip - String - 是否必填:否 - (过滤条件)按照 负载均衡Vip 过滤,如:"1.1.1.1","2204::22:3"。
- // target-ip - String - 是否必填:否 - (过滤条件)按照 后端目标内网Ip 过滤,如:"1.1.1.1","2203::214:4"。
- // vpcid - String - 是否必填:否 - (过滤条件)按照 负载均衡所属vpcId 过滤,如:"vpc-12345678"。
- // zone - String - 是否必填:否 - (过滤条件)按照 负载均衡所属的可用区 过滤,如:"ap-guangzhou-1"。
- // tag-key - String - 是否必填:否 - (过滤条件)按照 负载均衡标签的标签键 过滤,如:"name"。
- // tag:* - String - 是否必填:否 - (过滤条件)按照 负载均衡的标签 过滤,':' 后面跟的是标签键。如:过滤标签键name,标签值zhangsan,lisi,{"Name": "tag:name","Values": ["zhangsan", "lisi"]}。
- // fuzzy-search - String - 是否必填:否 - (过滤条件)按照 负载均衡Vip,负载均衡名称 模糊搜索,如:"1.1"。
+ // - loadbalancer-id
+ // 按照【负载均衡ID】进行过滤。例如:lb-rbw5skde。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459)
+ // - project-id
+ // 按照【项目ID】进行过滤。例如: "0"、"123"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeProject](https://cloud.tencent.com/document/api/651/78725)
+ // - network
+ // 按照【负载均衡网络类型】进行过滤。例如:Public。
+ // 类型:String
+ // 必选:否
+ // 可选值:Private(内网)、Public(公网)
+ // - vip
+ // 按照【负载均衡 VIP】进行过滤。例如:"1.1.1.1","2204::22:3"。
+ // 类型:String
+ // 必选:否
+ // - vpcid
+ // 按照【负载均衡所属 VPCID】进行过滤。例如:"vpc-12345678"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeZones](https://cloud.tencent.com/document/product/213/15707)
+ // - target-ip
+ // 按照【后端目标内网 IP】进行过滤。例如:"1.1.1.1","2203::214:4"。
+ // 类型:String
+ // 必选:否
+ // - zone
+ // 按照【负载均衡所属的可用区】进行过滤。例如:"ap-guangzhou-1"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeZones](https://cloud.tencent.com/document/product/213/15707)
+ // - tag-key
+ // 按照【负载均衡标签的标签键】进行过滤,例如:"name"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTags](https://cloud.tencent.com/document/api/651/35316)
+ // - tag:*
+ // 按照【负载均衡的标签】进行过滤,':' 后面跟的是标签键。如过滤标签键name,标签值zhangsan,lisi,{"Name": "tag:name","Values": ["zhangsan", "lisi"]}。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTagKeys](https://cloud.tencent.com/document/api/651/35318)
+ // - fuzzy-search
+ // 按照【负载均衡VIP,负载均衡名称】模糊搜索,例如:"1.1"。
+ // 类型:String
+ // 必选:否
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -4337,16 +4340,53 @@ type DescribeLoadBalancersDetailRequest struct {
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// 查询负载均衡详细信息列表条件,详细的过滤条件如下:
- // loadbalancer-id - String - 是否必填:否 - (过滤条件)按照 负载均衡ID 过滤,如:"lb-12345678"。
- // project-id - String - 是否必填:否 - (过滤条件)按照 项目ID 过滤,如:"0","123"。
- // network - String - 是否必填:否 - (过滤条件)按照 负载均衡网络类型 过滤,如:"Public","Private"。
- // vip - String - 是否必填:否 - (过滤条件)按照 负载均衡Vip 过滤,如:"1.1.1.1","2204::22:3"。
- // target-ip - String - 是否必填:否 - (过滤条件)按照 后端目标内网Ip 过滤,如:"1.1.1.1","2203::214:4"。
- // vpcid - String - 是否必填:否 - (过滤条件)按照 负载均衡所属vpcId 过滤,如:"vpc-12345678"。
- // zone - String - 是否必填:否 - (过滤条件)按照 负载均衡所属的可用区 过滤,如:"ap-guangzhou-1"。
- // tag-key - String - 是否必填:否 - (过滤条件)按照 负载均衡标签的标签键 过滤,如:"name"。
- // tag:* - String - 是否必填:否 - (过滤条件)按照 负载均衡的标签 过滤,':' 后面跟的是标签键。如:过滤标签键name,标签值zhangsan,lisi,{"Name": "tag:name","Values": ["zhangsan", "lisi"]}。
- // fuzzy-search - String - 是否必填:否 - (过滤条件)按照 负载均衡Vip,负载均衡名称 模糊搜索,如:"1.1"。
+ // - loadbalancer-id
+ // 按照【负载均衡ID】进行过滤。例如:lb-rbw5skde。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459)
+ // - project-id
+ // 按照【项目ID】进行过滤。例如: "0"、"123"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeProject](https://cloud.tencent.com/document/api/651/78725)
+ // - network
+ // 按照【负载均衡网络类型】进行过滤。例如:Public。
+ // 类型:String
+ // 必选:否
+ // 可选值:Private(内网)、Public(公网)
+ // - vip
+ // 按照【负载均衡 VIP】进行过滤。例如:"1.1.1.1","2204::22:3"。
+ // 类型:String
+ // 必选:否
+ // - vpcid
+ // 按照【负载均衡所属 VPCID】进行过滤。例如:"vpc-12345678"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeZones](https://cloud.tencent.com/document/product/213/15707)
+ // - target-ip
+ // 按照【后端目标内网 IP】进行过滤。例如:"1.1.1.1","2203::214:4"。
+ // 类型:String
+ // 必选:否
+ // - zone
+ // 按照【负载均衡所属的可用区】进行过滤。例如:"ap-guangzhou-1"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeZones](https://cloud.tencent.com/document/product/213/15707)
+ // - tag-key
+ // 按照【负载均衡标签的标签键】进行过滤,例如:"name"。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTags](https://cloud.tencent.com/document/api/651/35316)
+ // - tag:*
+ // 按照【负载均衡的标签】进行过滤,':' 后面跟的是标签键。如过滤标签键name,标签值zhangsan,lisi,{"Name": "tag:name","Values": ["zhangsan", "lisi"]}。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTagKeys](https://cloud.tencent.com/document/api/651/35318)
+ // - fuzzy-search
+ // 按照【负载均衡VIP,负载均衡名称】模糊搜索,例如:"1.1"。
+ // 类型:String
+ // 必选:否
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -4379,7 +4419,6 @@ type DescribeLoadBalancersDetailResponseParams struct {
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 负载均衡详情列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerDetailSet []*LoadBalancerDetail `json:"LoadBalancerDetailSet,omitnil,omitempty" name:"LoadBalancerDetailSet"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -4414,10 +4453,10 @@ type DescribeLoadBalancersRequestParams struct {
// 负载均衡实例的类型。1:通用的负载均衡实例,0:传统型负载均衡实例。如果不传此参数,则查询所有类型的负载均衡实例。
Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
- // 负载均衡实例的名称。
+ // 负载均衡实例的名称,支持模糊查询。
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
- // 腾讯云为负载均衡实例分配的域名。
+ // 腾讯云为负载均衡实例分配的域名,支持模糊查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 负载均衡实例的 VIP 地址,支持多个。
@@ -4435,32 +4474,85 @@ type DescribeLoadBalancersRequestParams struct {
// 返回负载均衡实例的数量,默认为20,最大值为100。
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 排序参数,支持以下字段:LoadBalancerName,CreateTime,Domain,LoadBalancerType。
+ // 排序参数,支持以下字段:
+ // - LoadBalancerName
+ // - CreateTime
+ // - Domain
+ // - LoadBalancerType
+ //
+ // 默认为 CreateTime。
OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
- // 1:倒序,0:顺序,默认按照创建时间倒序。
+ // 1:倒序,0:顺序,默认为1,按照创建时间倒序。
OrderType *int64 `json:"OrderType,omitnil,omitempty" name:"OrderType"`
- // 搜索字段,模糊匹配名称、域名、VIP。
+ // 模糊搜索字段,模糊匹配负载均衡实例的名称、域名、负载均衡实例的 VIP 地址,负载均衡实例ID。
SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
- // 负载均衡实例所属的项目 ID,可以通过 DescribeProject 接口获取。
+ // 负载均衡实例所属的项目 ID,可以通过[DescribeProject](https://cloud.tencent.com/document/api/651/78725)接口获取,不传默认所有项目。
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 负载均衡是否绑定后端服务,0:没有绑定后端服务,1:绑定后端服务,-1:查询全部。
WithRs *int64 `json:"WithRs,omitnil,omitempty" name:"WithRs"`
- // 负载均衡实例所属私有网络唯一ID,如 vpc-bhqkbhdx,
- // 基础网络可传入'0'。
+ // 负载均衡实例所属私有网络唯一ID,如 vpc-bhqkbhdx,可以通过[DescribeVpcs](https://cloud.tencent.com/document/api/215/15778)接口获取。
+ // 查找基础网络类型的负载均衡可传入'0'。
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
- // 安全组ID,如 sg-m1cc****。
+ // 安全组ID,如 sg-m1cc****,可以通过接口[DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808)获取。
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// 主可用区ID,如 :"100001" (对应的是广州一区)。可通过[DescribeZones](https://cloud.tencent.com/document/product/213/15707)获取可用区列表。
MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
- // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。
`Filter.Name`和`Filter.Values`皆为必填项。详细的过滤条件如下: charge-type - String - 是否必填:否 - (过滤条件)按照 CLB 的实例计费模式过滤,包括"PREPAID","POSTPAID_BY_HOUR"。 internet-charge-type - String - 是否必填:否 - (过滤条件)按照 CLB 的网络计费模式过滤,包括"BANDWIDTH_PREPAID","TRAFFIC_POSTPAID_BY_HOUR","BANDWIDTH_POSTPAID_BY_HOUR","BANDWIDTH_PACKAGE"。 master-zone-id - String - 是否必填:否 - (过滤条件)按照 CLB 的主可用区ID过滤,如 :"100001" (对应的是广州一区)。 tag-key - String - 是否必填:否 - (过滤条件)按照 CLB 标签的键过滤。 tag:tag-key - String - 是否必填:否 - (过滤条件)按照CLB标签键值对进行过滤,tag-key使用具体的标签键进行替换。 function-name - String - 是否必填:否 - (过滤条件)按照 CLB 后端绑定的SCF云函数的函数名称过滤。 vip-isp - String - 是否必填:否 - (过滤条件)按照 CLB VIP的运营商类型过滤,如:"BGP","INTERNAL","CMCC","CTCC","CUCC"等。 sla-type - String - 是否必填:否 - (过滤条件)按照 CLB 的性能容量型规格过滤,包括"clb.c1.small","clb.c2.medium","clb.c3.small","clb.c3.medium","clb.c4.small","clb.c4.medium","clb.c4.large","clb.c4.xlarge","others"。 exclusive - uint64 - 是否必填:否 - (过滤条件)按照独占实例进行过滤。
+ // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。
`Filter.Name`和`Filter.Values`皆为必填项。详细的过滤条件如下:
+ // - charge-type
+ // 按照【实例计费模式】进行过滤。实例计费模式例如:PREPAID。
+ // 类型:String
+ // 必选:否
+ // 可选项:PREPAID(预付费)、POSTPAID_BY_HOUR(后付费)
+ // - internet-charge-type
+ // 按照【网络计费模式】进行过滤。网络计费模式例如:BANDWIDTH_PREPAID。
+ // 类型:String
+ // 必选:否
+ // 可选项:BANDWIDTH_PREPAID(预付费按带宽结算)、 TRAFFIC_POSTPAID_BY_HOUR(流量按小时后付费)、BANDWIDTH_POSTPAID_BY_HOUR(带宽按小时后付费)、BANDWIDTH_PACKAGE(带宽包用户)
+ // - master-zone-id
+ // 按照【CLB主可用区ID】进行过滤。例如:100001(对应的是广州一区)。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeZones](https://cloud.tencent.com/document/product/213/15707)
+ // - tag-key
+ // 按照【CLB 标签的键】进行过滤,例如:tag-key。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTags](https://cloud.tencent.com/document/api/651/35316)
+ // - tag:tag-key
+ // 按照【CLB标签键值】进行过滤,例如:tag-test。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTagKeys](https://cloud.tencent.com/document/api/651/35318)
+ // - function-name
+ // 按照【后端绑定SCF云函数的函数名称】进行过滤,例如:helloworld-1744958255。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[ListFunctions](https://cloud.tencent.com/document/api/583/18582)
+ // - vip-isp
+ // 按照【CLB VIP的运营商类型】进行过滤,例如:BGP。
+ // 类型:String
+ // 必选:否
+ // 公网类型可选项:BGP(多线)、CMCC(中国移动)、CTCC(中国电信)、CUCC(中国联通)
+ // 内网类型可选项:INTERNAL(内网)
+ // - sla-type
+ // 按照【CLB 的性能容量型规格】进行过滤,例如:clb.c4.xlarge。
+ // 类型:String
+ // 必选:否
+ // 可选项:clb.c2.medium(标准型)、clb.c3.small(高阶型1)、clb.c3.medium(高阶型2)、clb.c4.small(超强型1)、clb.c4.medium(超强型2)、clb.c4.large(超强型3)、clb.c4.xlarge(超强型4)
+ // 具体规格参数参考:
+ // - exclusive
+ // 按照【独占实例】进行过滤。例如:1,代表筛选独占型实例。
+ // 类型:String
+ // 必选:否
+ // 可选项:0、1
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// 选择返回的扩充字段,不指定时,扩充字段默认不返回。详细支持的扩充字段如下:
@@ -4481,10 +4573,10 @@ type DescribeLoadBalancersRequest struct {
// 负载均衡实例的类型。1:通用的负载均衡实例,0:传统型负载均衡实例。如果不传此参数,则查询所有类型的负载均衡实例。
Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
- // 负载均衡实例的名称。
+ // 负载均衡实例的名称,支持模糊查询。
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
- // 腾讯云为负载均衡实例分配的域名。
+ // 腾讯云为负载均衡实例分配的域名,支持模糊查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 负载均衡实例的 VIP 地址,支持多个。
@@ -4502,32 +4594,85 @@ type DescribeLoadBalancersRequest struct {
// 返回负载均衡实例的数量,默认为20,最大值为100。
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // 排序参数,支持以下字段:LoadBalancerName,CreateTime,Domain,LoadBalancerType。
+ // 排序参数,支持以下字段:
+ // - LoadBalancerName
+ // - CreateTime
+ // - Domain
+ // - LoadBalancerType
+ //
+ // 默认为 CreateTime。
OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
- // 1:倒序,0:顺序,默认按照创建时间倒序。
+ // 1:倒序,0:顺序,默认为1,按照创建时间倒序。
OrderType *int64 `json:"OrderType,omitnil,omitempty" name:"OrderType"`
- // 搜索字段,模糊匹配名称、域名、VIP。
+ // 模糊搜索字段,模糊匹配负载均衡实例的名称、域名、负载均衡实例的 VIP 地址,负载均衡实例ID。
SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
- // 负载均衡实例所属的项目 ID,可以通过 DescribeProject 接口获取。
+ // 负载均衡实例所属的项目 ID,可以通过[DescribeProject](https://cloud.tencent.com/document/api/651/78725)接口获取,不传默认所有项目。
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 负载均衡是否绑定后端服务,0:没有绑定后端服务,1:绑定后端服务,-1:查询全部。
WithRs *int64 `json:"WithRs,omitnil,omitempty" name:"WithRs"`
- // 负载均衡实例所属私有网络唯一ID,如 vpc-bhqkbhdx,
- // 基础网络可传入'0'。
+ // 负载均衡实例所属私有网络唯一ID,如 vpc-bhqkbhdx,可以通过[DescribeVpcs](https://cloud.tencent.com/document/api/215/15778)接口获取。
+ // 查找基础网络类型的负载均衡可传入'0'。
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
- // 安全组ID,如 sg-m1cc****。
+ // 安全组ID,如 sg-m1cc****,可以通过接口[DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808)获取。
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// 主可用区ID,如 :"100001" (对应的是广州一区)。可通过[DescribeZones](https://cloud.tencent.com/document/product/213/15707)获取可用区列表。
MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
- // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。
`Filter.Name`和`Filter.Values`皆为必填项。详细的过滤条件如下: charge-type - String - 是否必填:否 - (过滤条件)按照 CLB 的实例计费模式过滤,包括"PREPAID","POSTPAID_BY_HOUR"。 internet-charge-type - String - 是否必填:否 - (过滤条件)按照 CLB 的网络计费模式过滤,包括"BANDWIDTH_PREPAID","TRAFFIC_POSTPAID_BY_HOUR","BANDWIDTH_POSTPAID_BY_HOUR","BANDWIDTH_PACKAGE"。 master-zone-id - String - 是否必填:否 - (过滤条件)按照 CLB 的主可用区ID过滤,如 :"100001" (对应的是广州一区)。 tag-key - String - 是否必填:否 - (过滤条件)按照 CLB 标签的键过滤。 tag:tag-key - String - 是否必填:否 - (过滤条件)按照CLB标签键值对进行过滤,tag-key使用具体的标签键进行替换。 function-name - String - 是否必填:否 - (过滤条件)按照 CLB 后端绑定的SCF云函数的函数名称过滤。 vip-isp - String - 是否必填:否 - (过滤条件)按照 CLB VIP的运营商类型过滤,如:"BGP","INTERNAL","CMCC","CTCC","CUCC"等。 sla-type - String - 是否必填:否 - (过滤条件)按照 CLB 的性能容量型规格过滤,包括"clb.c1.small","clb.c2.medium","clb.c3.small","clb.c3.medium","clb.c4.small","clb.c4.medium","clb.c4.large","clb.c4.xlarge","others"。 exclusive - uint64 - 是否必填:否 - (过滤条件)按照独占实例进行过滤。
+ // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。
`Filter.Name`和`Filter.Values`皆为必填项。详细的过滤条件如下:
+ // - charge-type
+ // 按照【实例计费模式】进行过滤。实例计费模式例如:PREPAID。
+ // 类型:String
+ // 必选:否
+ // 可选项:PREPAID(预付费)、POSTPAID_BY_HOUR(后付费)
+ // - internet-charge-type
+ // 按照【网络计费模式】进行过滤。网络计费模式例如:BANDWIDTH_PREPAID。
+ // 类型:String
+ // 必选:否
+ // 可选项:BANDWIDTH_PREPAID(预付费按带宽结算)、 TRAFFIC_POSTPAID_BY_HOUR(流量按小时后付费)、BANDWIDTH_POSTPAID_BY_HOUR(带宽按小时后付费)、BANDWIDTH_PACKAGE(带宽包用户)
+ // - master-zone-id
+ // 按照【CLB主可用区ID】进行过滤。例如:100001(对应的是广州一区)。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeZones](https://cloud.tencent.com/document/product/213/15707)
+ // - tag-key
+ // 按照【CLB 标签的键】进行过滤,例如:tag-key。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTags](https://cloud.tencent.com/document/api/651/35316)
+ // - tag:tag-key
+ // 按照【CLB标签键值】进行过滤,例如:tag-test。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[DescribeTagKeys](https://cloud.tencent.com/document/api/651/35318)
+ // - function-name
+ // 按照【后端绑定SCF云函数的函数名称】进行过滤,例如:helloworld-1744958255。
+ // 类型:String
+ // 必选:否
+ // 获取方式:[ListFunctions](https://cloud.tencent.com/document/api/583/18582)
+ // - vip-isp
+ // 按照【CLB VIP的运营商类型】进行过滤,例如:BGP。
+ // 类型:String
+ // 必选:否
+ // 公网类型可选项:BGP(多线)、CMCC(中国移动)、CTCC(中国电信)、CUCC(中国联通)
+ // 内网类型可选项:INTERNAL(内网)
+ // - sla-type
+ // 按照【CLB 的性能容量型规格】进行过滤,例如:clb.c4.xlarge。
+ // 类型:String
+ // 必选:否
+ // 可选项:clb.c2.medium(标准型)、clb.c3.small(高阶型1)、clb.c3.medium(高阶型2)、clb.c4.small(超强型1)、clb.c4.medium(超强型2)、clb.c4.large(超强型3)、clb.c4.xlarge(超强型4)
+ // 具体规格参数参考:
+ // - exclusive
+ // 按照【独占实例】进行过滤。例如:1,代表筛选独占型实例。
+ // 类型:String
+ // 必选:否
+ // 可选项:0、1
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// 选择返回的扩充字段,不指定时,扩充字段默认不返回。详细支持的扩充字段如下:
@@ -4664,8 +4809,20 @@ type DescribeResourcesRequestParams struct {
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 查询可用区资源列表条件,详细的过滤条件如下:
- // master-zone -- String - 是否必填:否 - (过滤条件)按照 地区 类型过滤,如:"ap-guangzhou-2"。ip-version -- String - 是否必填:否 - (过滤条件)按照 IP 类型过滤,可选值:"IPv4"、"IPv6"、"IPv6_Nat"。
- // isp -- String - 是否必填:否 - (过滤条件)按照 Isp 类型过滤,如:"BGP","CMCC","CUCC","CTCC"。
+ // - master-zone
+ // 按照【地域可用区】进行过滤,例如:ap-guangzhou-2。
+ // 类型:String
+ // 必选:否
+ // - ip-version
+ // 按照【IP 类型】进行过滤,例如:IPv4。
+ // 类型:String
+ // 必选:否
+ // 可选项:IPv4、IPv6、IPv6_Nat
+ // - isp
+ // 按照【ISP 类型】进行过滤,例如:BGP。
+ // 类型:String
+ // 必选:否
+ // 可选项:BGP、CMCC(中国移动)、CUCC(中国联通)、CTCC(中国电信)、BGP_PRO、INTERNAL(内网)
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -4679,8 +4836,20 @@ type DescribeResourcesRequest struct {
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// 查询可用区资源列表条件,详细的过滤条件如下:
- // master-zone -- String - 是否必填:否 - (过滤条件)按照 地区 类型过滤,如:"ap-guangzhou-2"。ip-version -- String - 是否必填:否 - (过滤条件)按照 IP 类型过滤,可选值:"IPv4"、"IPv6"、"IPv6_Nat"。
- // isp -- String - 是否必填:否 - (过滤条件)按照 Isp 类型过滤,如:"BGP","CMCC","CUCC","CTCC"。
+ // - master-zone
+ // 按照【地域可用区】进行过滤,例如:ap-guangzhou-2。
+ // 类型:String
+ // 必选:否
+ // - ip-version
+ // 按照【IP 类型】进行过滤,例如:IPv4。
+ // 类型:String
+ // 必选:否
+ // 可选项:IPv4、IPv6、IPv6_Nat
+ // - isp
+ // 按照【ISP 类型】进行过滤,例如:BGP。
+ // 类型:String
+ // 必选:否
+ // 可选项:BGP、CMCC(中国移动)、CUCC(中国联通)、CTCC(中国电信)、BGP_PRO、INTERNAL(内网)
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -4806,7 +4975,7 @@ func (r *DescribeRewriteResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeTargetGroupInstancesRequestParams struct {
- // 过滤条件,当前仅支持TargetGroupId,BindIP,InstanceId过滤。
+ // 过滤条件,当前支持按照 TargetGroupId,BindIP,InstanceId 多个条件组合过滤。
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// 显示数量限制,默认20。
@@ -4819,7 +4988,7 @@ type DescribeTargetGroupInstancesRequestParams struct {
type DescribeTargetGroupInstancesRequest struct {
*tchttp.BaseRequest
- // 过滤条件,当前仅支持TargetGroupId,BindIP,InstanceId过滤。
+ // 过滤条件,当前支持按照 TargetGroupId,BindIP,InstanceId 多个条件组合过滤。
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// 显示数量限制,默认20。
@@ -4973,7 +5142,7 @@ type DescribeTargetGroupsRequestParams struct {
// 显示的偏移起始量。
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
- // 过滤条件数组,与TargetGroupIds互斥,支持TargetGroupVpcId和TargetGroupName。
+ // 过滤条件数组,与TargetGroupIds互斥,支持 TargetGroupVpcId(私有网络 ID)和 TargetGroupName(目标组名称)以及 Tag(标签)。
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -4989,7 +5158,7 @@ type DescribeTargetGroupsRequest struct {
// 显示的偏移起始量。
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
- // 过滤条件数组,与TargetGroupIds互斥,支持TargetGroupVpcId和TargetGroupName。
+ // 过滤条件数组,与TargetGroupIds互斥,支持 TargetGroupVpcId(私有网络 ID)和 TargetGroupName(目标组名称)以及 Tag(标签)。
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
@@ -5047,6 +5216,12 @@ func (r *DescribeTargetGroupsResponse) FromJsonString(s string) error {
type DescribeTargetHealthRequestParams struct {
// 要查询的负载均衡实例ID列表。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // 要查询的监听器ID列表。
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // 要查询的转发规则ID列表。
+ LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
}
type DescribeTargetHealthRequest struct {
@@ -5054,6 +5229,12 @@ type DescribeTargetHealthRequest struct {
// 要查询的负载均衡实例ID列表。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // 要查询的监听器ID列表。
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // 要查询的转发规则ID列表。
+ LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
}
func (r *DescribeTargetHealthRequest) ToJsonString() string {
@@ -5069,6 +5250,8 @@ func (r *DescribeTargetHealthRequest) FromJsonString(s string) error {
return err
}
delete(f, "LoadBalancerIds")
+ delete(f, "ListenerIds")
+ delete(f, "LocationIds")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTargetHealthRequest has unknown keys!", "")
}
@@ -5078,7 +5261,6 @@ func (r *DescribeTargetHealthRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeTargetHealthResponseParams struct {
// 负载均衡实例列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancers []*LoadBalancerHealth `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -5170,7 +5352,6 @@ func (r *DescribeTargetsRequest) FromJsonString(s string) error {
// Predefined struct for user
type DescribeTargetsResponseParams struct {
// 监听器后端绑定的机器信息。
- // 注意:此字段可能返回 null,表示取不到有效值。
Listeners []*ListenerBackend `json:"Listeners,omitnil,omitempty" name:"Listeners"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -5267,77 +5448,16 @@ func (r *DescribeTaskStatusResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
-// Predefined struct for user
-type DisassociateCustomizedConfigRequestParams struct {
- // 配置ID
- UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
-
- // 解绑的列表
- BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
-}
-
-type DisassociateCustomizedConfigRequest struct {
- *tchttp.BaseRequest
-
- // 配置ID
- UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
-
- // 解绑的列表
- BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
-}
-
-func (r *DisassociateCustomizedConfigRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *DisassociateCustomizedConfigRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "UconfigId")
- delete(f, "BindList")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisassociateCustomizedConfigRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
-}
-
-// Predefined struct for user
-type DisassociateCustomizedConfigResponseParams struct {
- // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
-}
-
-type DisassociateCustomizedConfigResponse struct {
- *tchttp.BaseResponse
- Response *DisassociateCustomizedConfigResponseParams `json:"Response"`
-}
-
-func (r *DisassociateCustomizedConfigResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *DisassociateCustomizedConfigResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
-}
-
// Predefined struct for user
type DisassociateTargetGroupsRequestParams struct {
- // 待解绑的规则关系数组。
+ // 待解绑的规则关系数组,支持批量解绑多个监听器,单次批量解除最多20个。
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
type DisassociateTargetGroupsRequest struct {
*tchttp.BaseRequest
- // 待解绑的规则关系数组。
+ // 待解绑的规则关系数组,支持批量解绑多个监听器,单次批量解除最多20个。
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
@@ -5398,11 +5518,9 @@ type ExclusiveCluster struct {
type ExtraInfo struct {
// 是否开通VIP直通
- // 注意:此字段可能返回 null,表示取不到有效值。
ZhiTong *bool `json:"ZhiTong,omitnil,omitempty" name:"ZhiTong"`
// TgwGroup名称
- // 注意:此字段可能返回 null,表示取不到有效值。
TgwGroupName *string `json:"TgwGroupName,omitnil,omitempty" name:"TgwGroupName"`
}
@@ -5431,7 +5549,6 @@ type FunctionInfo struct {
type FunctionTarget struct {
// 云函数相关信息
- // 注意:此字段可能返回 null,表示取不到有效值。
Function *FunctionInfo `json:"Function,omitnil,omitempty" name:"Function"`
// 权重
@@ -5440,23 +5557,20 @@ type FunctionTarget struct {
type HealthCheck struct {
// 是否开启健康检查:1(开启)、0(关闭)。
+ // 默认为开启。
HealthSwitch *int64 `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
// 健康检查的响应超时时间,可选值:2~60,默认值:2,单位:秒。响应超时时间要小于检查间隔时间。
- // 注意:此字段可能返回 null,表示取不到有效值。
TimeOut *int64 `json:"TimeOut,omitnil,omitempty" name:"TimeOut"`
// 健康检查探测间隔时间,默认值:5,IPv4 CLB实例的取值范围为:2-300,IPv6 CLB 实例的取值范围为:5-300。单位:秒。
// 说明:部分老旧 IPv4 CLB实例的取值范围为:5-300。
- // 注意:此字段可能返回 null,表示取不到有效值。
IntervalTime *int64 `json:"IntervalTime,omitnil,omitempty" name:"IntervalTime"`
// 健康阈值,默认值:3,表示当连续探测三次健康则表示该转发正常,可选值:2~10,单位:次。
- // 注意:此字段可能返回 null,表示取不到有效值。
HealthNum *int64 `json:"HealthNum,omitnil,omitempty" name:"HealthNum"`
// 不健康阈值,默认值:3,表示当连续探测三次不健康则表示该转发异常,可选值:2~10,单位:次。
- // 注意:此字段可能返回 null,表示取不到有效值。
UnHealthNum *int64 `json:"UnHealthNum,omitnil,omitempty" name:"UnHealthNum"`
// 健康检查状态码(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式)。可选值:1~31,默认 31。
@@ -5468,7 +5582,7 @@ type HealthCheck struct {
// 注意:此字段可能返回 null,表示取不到有效值。
HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
- // 健康检查域名(仅适用于HTTP/HTTPS监听器和TCP监听器的HTTP健康检查方式。针对TCP监听器,当使用HTTP健康检查方式时,该参数为必填项)。
+ // 健康检查域名,将在HTTP协议 Host 头字段中携带。(仅适用于HTTP/HTTPS监听器和TCP监听器的HTTP健康检查方式。针对TCP监听器,当使用HTTP健康检查方式时,该参数为必填项)。
// 注意:此字段可能返回 null,表示取不到有效值。
HttpCheckDomain *string `json:"HttpCheckDomain,omitnil,omitempty" name:"HttpCheckDomain"`
@@ -5476,7 +5590,7 @@ type HealthCheck struct {
// 注意:此字段可能返回 null,表示取不到有效值。
HttpCheckMethod *string `json:"HttpCheckMethod,omitnil,omitempty" name:"HttpCheckMethod"`
- // 自定义探测相关参数。健康检查端口,默认为后端服务的端口,除非您希望指定特定端口,否则建议留空。(仅适用于TCP/UDP监听器)。
+ // 自定义探测相关参数。健康检查端口,默认为后端服务的端口,除非您希望指定特定端口,否则建议留空。传参数值-1可恢复默认设置。(仅适用于TCP/UDP监听器)。
// 注意:此字段可能返回 null,表示取不到有效值。
CheckPort *int64 `json:"CheckPort,omitnil,omitempty" name:"CheckPort"`
@@ -5493,7 +5607,6 @@ type HealthCheck struct {
RecvContext *string `json:"RecvContext,omitnil,omitempty" name:"RecvContext"`
// 健康检查使用的协议。取值 TCP | HTTP | HTTPS | GRPC | PING | CUSTOM,UDP监听器支持PING/CUSTOM,TCP监听器支持TCP/HTTP/CUSTOM,TCP_SSL/QUIC监听器支持TCP/HTTP,HTTP规则支持HTTP/GRPC,HTTPS规则支持HTTP/HTTPS/GRPC。HTTP监听器默认值为HTTP;TCP、TCP_SSL、QUIC监听器默认值为TCP;UDP监听器默认为PING;HTTPS监听器的CheckType默认值与后端转发协议一致。
- // 注意:此字段可能返回 null,表示取不到有效值。
CheckType *string `json:"CheckType,omitnil,omitempty" name:"CheckType"`
// HTTP版本。健康检查协议CheckType的值取HTTP时,必传此字段,代表后端服务的HTTP版本:HTTP/1.0、HTTP/1.1;(仅适用于TCP监听器)
@@ -5501,7 +5614,6 @@ type HealthCheck struct {
HttpVersion *string `json:"HttpVersion,omitnil,omitempty" name:"HttpVersion"`
// 健康检查源IP类型:0(使用LB的VIP作为源IP),1(使用100.64网段IP作为源IP)。
- // 注意:此字段可能返回 null,表示取不到有效值。
SourceIpType *int64 `json:"SourceIpType,omitnil,omitempty" name:"SourceIpType"`
// GRPC健康检查状态码(仅适用于后端转发协议为GRPC的规则)。默认值为 12,可输入值为数值、多个数值、或者范围,例如 20 或 20,25 或 0-99
@@ -5533,7 +5645,6 @@ type IdleLoadBalancer struct {
Forward *uint64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// 负载均衡域名
- // 注意:此字段可能返回 null,表示取不到有效值。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
@@ -5656,7 +5767,7 @@ func (r *InquiryPriceCreateLoadBalancerResponse) FromJsonString(s string) error
// Predefined struct for user
type InquiryPriceModifyLoadBalancerRequestParams struct {
- // 负载均衡实例ID
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 修改后的网络带宽信息
@@ -5666,7 +5777,7 @@ type InquiryPriceModifyLoadBalancerRequestParams struct {
type InquiryPriceModifyLoadBalancerRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 修改后的网络带宽信息
@@ -5720,14 +5831,14 @@ func (r *InquiryPriceModifyLoadBalancerResponse) FromJsonString(s string) error
// Predefined struct for user
type InquiryPriceRefundLoadBalancerRequestParams struct {
- // 负载均衡实例ID
+ // 负载均衡实例ID。可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
}
type InquiryPriceRefundLoadBalancerRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID
+ // 负载均衡实例ID。可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
}
@@ -5777,7 +5888,7 @@ func (r *InquiryPriceRefundLoadBalancerResponse) FromJsonString(s string) error
// Predefined struct for user
type InquiryPriceRenewLoadBalancerRequestParams struct {
- // 负载均衡实例ID
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 续费周期
@@ -5787,7 +5898,7 @@ type InquiryPriceRenewLoadBalancerRequestParams struct {
type InquiryPriceRenewLoadBalancerRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 续费周期
@@ -5840,18 +5951,23 @@ func (r *InquiryPriceRenewLoadBalancerResponse) FromJsonString(s string) error {
}
type InternetAccessible struct {
- // TRAFFIC_POSTPAID_BY_HOUR 按流量按小时后计费 ; BANDWIDTH_POSTPAID_BY_HOUR 按带宽按小时后计费; BANDWIDTH_PACKAGE 按带宽包计费;BANDWIDTH_PREPAID按带宽预付费。
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // TRAFFIC_POSTPAID_BY_HOUR 按流量按小时后计费 ; BANDWIDTH_POSTPAID_BY_HOUR 按带宽按小时后计费,国际站用户不支持该计费模式; BANDWIDTH_PACKAGE 按带宽包计费;BANDWIDTH_PREPAID按带宽预付费。
InternetChargeType *string `json:"InternetChargeType,omitnil,omitempty" name:"InternetChargeType"`
// 最大出带宽,单位Mbps,仅对公网属性的共享型、性能容量型和独占型 CLB 实例、以及内网属性的性能容量型 CLB 实例生效。
// - 对于公网属性的共享型和独占型 CLB 实例,最大出带宽的范围为1Mbps-2048Mbps。
// - 对于公网属性和内网属性的性能容量型 CLB实例,最大出带宽的范围为1Mbps-61440Mbps。
// (调用CreateLoadBalancer创建LB时不指定此参数则设置为默认值10Mbps。此上限可调整)
- // 注意:此字段可能返回 null,表示取不到有效值。
InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitnil,omitempty" name:"InternetMaxBandwidthOut"`
- // 带宽包的类型,如SINGLEISP(单线)、BGP(多线)。
+ // 带宽包的类型,如 BGP(多线)。
+ // 类型如下:
+ // SINGLEISP: 单线
+ // BGP: 多线
+ // HIGH_QUALITY_BGP: 精品BGP共享带宽包
+ // SINGLEISP_CMCC: 中国移动共享带宽包
+ // SINGLEISP_CTCC: 中国电信共享带宽包
+ // SINGLEISP_CUCC: 中国联通共享带宽包
// 注意:此字段可能返回 null,表示取不到有效值。
BandwidthpkgSubType *string `json:"BandwidthpkgSubType,omitnil,omitempty" name:"BandwidthpkgSubType"`
}
@@ -5886,11 +6002,9 @@ type ItemPrice struct {
type LBChargePrepaid struct {
// 续费类型:AUTO_RENEW 自动续费, MANUAL_RENEW 手动续费
- // 注意:此字段可能返回 null,表示取不到有效值。
RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// 购买时长,单位:月
- // 注意:此字段可能返回 null,表示取不到有效值。
Period *int64 `json:"Period,omitnil,omitempty" name:"Period"`
}
@@ -5908,11 +6022,33 @@ type LBItem struct {
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
}
+type LBOperateProtectInfo struct {
+ // 负载均衡实例 ID。
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // 保护状态,true:表示开启了操作保护,false:表示未开启操作保护。
+ ProtectState *bool `json:"ProtectState,omitnil,omitempty" name:"ProtectState"`
+
+ // 操作保护的设置uin。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ OperatorUin *string `json:"OperatorUin,omitnil,omitempty" name:"OperatorUin"`
+
+ // 设置操作保护时的描述信息。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
+
+ // 最后修改时间。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
+}
+
type LbRsItem struct {
// vpc的字符串id,只支持字符串id。
+ // 可以通过 [DescribeVpcs](https://cloud.tencent.com/document/api/215/15778) 接口查询。
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
- // 需要查询后端的内网ip,可以是cvm和弹性网卡。
+ // 需要查询后端的内网 IP,可以是 CVM 和弹性网卡。
+ // 可以通过 [DescribeAddresses](https://cloud.tencent.com/document/product/215/16702) 接口查询。
PrivateIp *string `json:"PrivateIp,omitnil,omitempty" name:"PrivateIp"`
}
@@ -5927,11 +6063,9 @@ type LbRsTargets struct {
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// rs的vpcId
- // 注意:此字段可能返回 null,表示取不到有效值。
VpcId *int64 `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// rs的权重
- // 注意:此字段可能返回 null,表示取不到有效值。
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
@@ -5939,10 +6073,10 @@ type Listener struct {
// 负载均衡监听器 ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 监听器协议
+ // 监听器协议,可选值:TCP、UDP、HTTP、HTTPS、TCP_SSL、QUIC
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
- // 监听器端口
+ // 监听器端口,端口范围:1-65535
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 监听器绑定的证书信息
@@ -5957,12 +6091,11 @@ type Listener struct {
// 注意:此字段可能返回 null,表示取不到有效值。
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
- // 会话保持时间
+ // 会话保持时间,单位:秒。可选值:30~3600,默认 0,默认不开启。此参数仅适用于TCP/UDP监听器。
// 注意:此字段可能返回 null,表示取不到有效值。
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// 是否开启SNI特性,1:表示开启,0:表示不开启(本参数仅对于HTTPS监听器有意义)
- // 注意:此字段可能返回 null,表示取不到有效值。
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// 监听器下的全部转发规则(本参数仅对于HTTP/HTTPS监听器有意义)
@@ -5970,18 +6103,15 @@ type Listener struct {
Rules []*RuleOutput `json:"Rules,omitnil,omitempty" name:"Rules"`
// 监听器的名称
- // 注意:此字段可能返回 null,表示取不到有效值。
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// 监听器的创建时间。
- // 注意:此字段可能返回 null,表示取不到有效值。
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
- // 端口段结束端口
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 端口段结束端口,端口范围:2-65535
EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
- // 后端服务器类型
+ // 后端服务器类型,可选值:NODE、POLARIS、TARGETGROUP、TARGETGROUP-V2
// 注意:此字段可能返回 null,表示取不到有效值。
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
@@ -5990,7 +6120,6 @@ type Listener struct {
TargetGroup *BasicTargetGroupInfo `json:"TargetGroup,omitnil,omitempty" name:"TargetGroup"`
// 会话保持类型。NORMAL表示默认会话保持类型。QUIC_CID 表示根据Quic Connection ID做会话保持。
- // 注意:此字段可能返回 null,表示取不到有效值。
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// 是否开启长连接,1开启,0关闭,(本参数仅对于HTTP/HTTPS监听器有意义)
@@ -5998,15 +6127,12 @@ type Listener struct {
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// 仅支持Nat64 CLB TCP监听器
- // 注意:此字段可能返回 null,表示取不到有效值。
Toa *bool `json:"Toa,omitnil,omitempty" name:"Toa"`
// 解绑后端目标时,是否发RST给客户端,(此参数仅对于TCP监听器有意义)。
- // 注意:此字段可能返回 null,表示取不到有效值。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 监听器的属性
- // 注意:此字段可能返回 null,表示取不到有效值。
AttrFlags []*string `json:"AttrFlags,omitnil,omitempty" name:"AttrFlags"`
// 绑定的目标组列表
@@ -6014,20 +6140,23 @@ type Listener struct {
TargetGroupList []*BasicTargetGroupInfo `json:"TargetGroupList,omitnil,omitempty" name:"TargetGroupList"`
// 监听器最大连接数,-1表示监听器维度不限速。
- // 注意:此字段可能返回 null,表示取不到有效值。
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// 监听器最大新增连接数,-1表示监听器维度不限速。
- // 注意:此字段可能返回 null,表示取不到有效值。
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
// 空闲连接超时时间,仅支持TCP监听器。默认值:900;共享型实例和独占型实例取值范围:300~900,性能容量型实例取值范围:300~1980。
// 注意:此字段可能返回 null,表示取不到有效值。
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
- // 调度时间。触发强制重新调度后,长连接将会在设置的调度时间内断开并完成重新分配
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 重新调度触发持续时间,取值0~3600s。仅TCP/UDP监听器支持。触发重新调度后,长连接将会在设置的调度时间内断开并完成重新分配。
RescheduleInterval *uint64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
+
+ // 数据压缩模式
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // 重新调度启动时间,配置了重新调度启动时间后,会在启动时间到达时触发重新调度。
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
}
type ListenerBackend struct {
@@ -6041,15 +6170,12 @@ type ListenerBackend struct {
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 监听器下的规则信息(仅适用于HTTP/HTTPS监听器)
- // 注意:此字段可能返回 null,表示取不到有效值。
Rules []*RuleTargets `json:"Rules,omitnil,omitempty" name:"Rules"`
// 监听器上绑定的后端服务列表(仅适用于TCP/UDP/TCP_SSL监听器)
- // 注意:此字段可能返回 null,表示取不到有效值。
Targets []*Backend `json:"Targets,omitnil,omitempty" name:"Targets"`
// 若支持端口段,则为端口段结束端口;若不支持端口段,则为0
- // 注意:此字段可能返回 null,表示取不到有效值。
EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
}
@@ -6058,7 +6184,6 @@ type ListenerHealth struct {
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// 监听器名称
- // 注意:此字段可能返回 null,表示取不到有效值。
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// 监听器的协议
@@ -6068,7 +6193,6 @@ type ListenerHealth struct {
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 监听器的转发规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
Rules []*RuleHealth `json:"Rules,omitnil,omitempty" name:"Rules"`
}
@@ -6091,7 +6215,6 @@ type ListenerItem struct {
Targets []*LbRsTargets `json:"Targets,omitnil,omitempty" name:"Targets"`
// 端口段监听器的结束端口
- // 注意:此字段可能返回 null,表示取不到有效值。
EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
}
@@ -6103,50 +6226,43 @@ type LoadBalancer struct {
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// 负载均衡实例的网络类型:
- // OPEN:公网属性, INTERNAL:内网属性;对于内网属性的负载均衡,可通过绑定EIP出公网,具体可参考EIP文档。
+ // OPEN:公网属性, INTERNAL:内网属性;对于内网属性的负载均衡,可通过绑定EIP出公网,具体可参考EIP文档[绑定弹性公网IP](https://cloud.tencent.com/document/product/215/16700)。
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// 负载均衡类型标识,1:负载均衡,0:传统型负载均衡。
Forward *uint64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// 负载均衡实例的域名,仅公网传统型和域名型负载均衡实例才提供该字段。逐步下线中,建议用LoadBalancerDomain替代。
- // 注意:此字段可能返回 null,表示取不到有效值。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 负载均衡实例的 VIP 列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerVips []*string `json:"LoadBalancerVips,omitnil,omitempty" name:"LoadBalancerVips"`
// 负载均衡实例的状态,包括
// 0:创建中,1:正常运行。
- // 注意:此字段可能返回 null,表示取不到有效值。
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// 负载均衡实例的创建时间。
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 格式:YYYY-MM-DD HH:mm:ss
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// 负载均衡实例的上次状态转换时间。
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 格式:YYYY-MM-DD HH:mm:ss
StatusTime *string `json:"StatusTime,omitnil,omitempty" name:"StatusTime"`
// 负载均衡实例所属的项目 ID, 0 表示默认项目。
ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// 私有网络的 ID
- // 注意:此字段可能返回 null,表示取不到有效值。
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 高防 LB 的标识,1:高防负载均衡 0:非高防负载均衡。
- // 注意:此字段可能返回 null,表示取不到有效值。
OpenBgp *uint64 `json:"OpenBgp,omitnil,omitempty" name:"OpenBgp"`
- // 在 2016 年 12 月份之前的传统型内网负载均衡都是开启了 snat 的。
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 是否开启 SNAT,在 2016 年 12 月份之前的传统型内网负载均衡都是开启了 SNAT 的。
Snat *bool `json:"Snat,omitnil,omitempty" name:"Snat"`
- // 0:表示未被隔离,1:表示被隔离。
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 是否被隔离,0:表示未被隔离,1:表示被隔离。
Isolation *uint64 `json:"Isolation,omitnil,omitempty" name:"Isolation"`
// 用户开启日志的信息,日志只有公网属性创建了 HTTP 、HTTPS 监听器的负载均衡才会有日志。
@@ -6156,34 +6272,32 @@ type LoadBalancer struct {
Log *string `json:"Log,omitnil,omitempty" name:"Log"`
// 负载均衡实例所在的子网(仅对内网VPC型LB有意义)
- // 注意:此字段可能返回 null,表示取不到有效值。
SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// 负载均衡实例的标签信息
- // 注意:此字段可能返回 null,表示取不到有效值。
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// 负载均衡实例的安全组
- // 注意:此字段可能返回 null,表示取不到有效值。
SecureGroups []*string `json:"SecureGroups,omitnil,omitempty" name:"SecureGroups"`
// 负载均衡实例绑定的后端设备的基本信息
- // 注意:此字段可能返回 null,表示取不到有效值。
TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitnil,omitempty" name:"TargetRegionInfo"`
// anycast负载均衡的发布域,对于非anycast的负载均衡,此字段返回为空字符串
- // 注意:此字段可能返回 null,表示取不到有效值。
AnycastZone *string `json:"AnycastZone,omitnil,omitempty" name:"AnycastZone"`
// IP版本,ipv4 | ipv6
- // 注意:此字段可能返回 null,表示取不到有效值。
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
- // 数值形式的私有网络 ID
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 数值形式的私有网络 ID,可以通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口获取。
NumericalVpcId *uint64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
- // 负载均衡IP地址所属的运营商。取值范围(BGP、CMCC、CTCC、CUCC)
+ // 负载均衡IP地址所属的运营商。
+ //
+ // - BGP : BGP(多线)
+ // - CMCC:中国移动单线
+ // - CTCC:中国电信单线
+ // - CUCC:中国联通单线
// 注意:此字段可能返回 null,表示取不到有效值。
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
@@ -6195,11 +6309,13 @@ type LoadBalancer struct {
// 注意:此字段可能返回 null,表示取不到有效值。
BackupZoneSet []*ZoneInfo `json:"BackupZoneSet,omitnil,omitempty" name:"BackupZoneSet"`
- // 负载均衡实例被隔离的时间
+ // 负载均衡实例被隔离的时间。
+ // 格式:YYYY-MM-DD HH:mm:ss
// 注意:此字段可能返回 null,表示取不到有效值。
IsolatedTime *string `json:"IsolatedTime,omitnil,omitempty" name:"IsolatedTime"`
- // 负载均衡实例的过期时间,仅对预付费负载均衡生效
+ // 负载均衡实例的过期时间,仅对预付费负载均衡生效。
+ // 格式:YYYY-MM-DD HH:mm:ss
// 注意:此字段可能返回 null,表示取不到有效值。
ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
@@ -6211,16 +6327,14 @@ type LoadBalancer struct {
// 注意:此字段可能返回 null,表示取不到有效值。
NetworkAttributes *InternetAccessible `json:"NetworkAttributes,omitnil,omitempty" name:"NetworkAttributes"`
- // 负载均衡实例的预付费相关属性
+ // 负载均衡实例的预付费相关属性,仅在 ChargeType=PREPAID 时显示。
// 注意:此字段可能返回 null,表示取不到有效值。
PrepaidAttributes *LBChargePrepaid `json:"PrepaidAttributes,omitnil,omitempty" name:"PrepaidAttributes"`
// 负载均衡日志服务(CLS)的日志集ID
- // 注意:此字段可能返回 null,表示取不到有效值。
LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
// 负载均衡日志服务(CLS)的日志主题ID
- // 注意:此字段可能返回 null,表示取不到有效值。
LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
// 负载均衡实例的IPv6地址
@@ -6232,47 +6346,40 @@ type LoadBalancer struct {
ExtraInfo *ExtraInfo `json:"ExtraInfo,omitnil,omitempty" name:"ExtraInfo"`
// 是否可绑定高防包
- // 注意:此字段可能返回 null,表示取不到有效值。
IsDDos *bool `json:"IsDDos,omitnil,omitempty" name:"IsDDos"`
// 负载均衡维度的个性化配置ID
- // 注意:此字段可能返回 null,表示取不到有效值。
ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
// 后端服务是否放通来自LB的流量
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// 内网独占集群
- // 注意:此字段可能返回 null,表示取不到有效值。
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
- // IP地址版本为ipv6时此字段有意义, IPv6Nat64 | IPv6FullChain
+ // IP地址版本为ipv6时此字段有意义,IPv6Nat64 | IPv6FullChain。
+ // IPv6Nat64: 基于 NAT64 IPv6 过渡技术实现的负载均衡器。
+ // IPv6FullChain:基于 IPv6 单栈技术实现的负载均衡。
// 注意:此字段可能返回 null,表示取不到有效值。
IPv6Mode *string `json:"IPv6Mode,omitnil,omitempty" name:"IPv6Mode"`
// 是否开启SnatPro。
- // 注意:此字段可能返回 null,表示取不到有效值。
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// 开启SnatPro负载均衡后,SnatIp列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// 性能容量型规格。- clb.c1.small:简约型规格
- clb.c2.medium:标准型规格
- clb.c3.small:高阶型1规格
- clb.c3.medium:高阶型2规格
- clb.c4.small:超强型1规格
- clb.c4.medium:超强型2规格
- clb.c4.large:超强型3规格
- clb.c4.xlarge:超强型4规格
- "":非性能容量型实例
- // 注意:此字段可能返回 null,表示取不到有效值。
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// vip是否被封堵
- // 注意:此字段可能返回 null,表示取不到有效值。
IsBlock *bool `json:"IsBlock,omitnil,omitempty" name:"IsBlock"`
- // 封堵或解封时间
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 封堵或解封时间。
+ // 格式:YYYY-MM-DD HH:mm:ss。
IsBlockTime *string `json:"IsBlockTime,omitnil,omitempty" name:"IsBlockTime"`
// IP类型是否是本地BGP
- // 注意:此字段可能返回 null,表示取不到有效值。
LocalBgp *bool `json:"LocalBgp,omitnil,omitempty" name:"LocalBgp"`
// 7层独占标签。
@@ -6280,7 +6387,6 @@ type LoadBalancer struct {
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
// 开启IPv6FullChain负载均衡7层监听器支持混绑IPv4/IPv6目标功能。
- // 注意:此字段可能返回 null,表示取不到有效值。
MixIpTarget *bool `json:"MixIpTarget,omitnil,omitempty" name:"MixIpTarget"`
// 私有网络内网负载均衡,就近接入模式下规则所落在的可用区
@@ -6292,27 +6398,43 @@ type LoadBalancer struct {
NfvInfo *string `json:"NfvInfo,omitnil,omitempty" name:"NfvInfo"`
// 负载均衡日志服务(CLS)的健康检查日志集ID
- // 注意:此字段可能返回 null,表示取不到有效值。
HealthLogSetId *string `json:"HealthLogSetId,omitnil,omitempty" name:"HealthLogSetId"`
// 负载均衡日志服务(CLS)的健康检查日志主题ID
- // 注意:此字段可能返回 null,表示取不到有效值。
HealthLogTopicId *string `json:"HealthLogTopicId,omitnil,omitempty" name:"HealthLogTopicId"`
// 集群ID
// 注意:此字段可能返回 null,表示取不到有效值。
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
- // 负载均衡的属性
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 负载均衡的属性,传入字符串数组来决定是否开启
+ // DeleteProtect: 删除保护,开启后防止负载均衡被误删除。
+ // UserInVisible: 用户不可见,控制负载均衡对用户的可见性。
+ // BlockStatus: 阻塞状态,用于限制负载均衡的某些操作或流量。
+ // NoLBNat: 禁用负载均衡的NAT功能,用于特定场景下的流量直接转发。
+ // BanStatus: 封禁状态,用于暂停负载均衡服务或限制访问。
+ // ShiftupFlag: 升配标志,用于标识负载均衡需要升级配置或性能。
+ // Stop: 停止状态,开启后负载均衡暂停服务。
+ // NoVpcGw: 不使用VPC网关,用于绕过VPC网关直接处理流量。
+ // SgInTgw: 安全组在TGW(Transit Gateway)中,涉及网络安全策略配置。
+ // SharedLimitFlag: 共享限制标志,用于控制负载均衡的共享资源限制。
+ // WafFlag: Web应用防火墙(WAF)标志,开启后启用WAF保护。
+ // IsDomainCLB: 域名型负载均衡,标识负载均衡是否基于域名进行流量分发。
+ // IPv6Snat: IPv6源地址转换(SNAT),用于IPv6网络的源地址处理。
+ // HideDomain: 隐藏域名,用于隐私保护或特定场景下不暴露域名。
+ // JumboFrame: 巨型帧支持,开启后支持更大的数据帧以提高网络效率。
+ // NoLBNatL4IPdc: 四层IP直连无NAT,用于四层负载均衡直接转发IP流量。
+ // VpcGwL3Service: VPC网关三层服务,涉及三层网络服务的网关功能。
+ // Ipv62Flag: IPv6扩展标志,用于特定的IPv6功能支持。
+ // Ipv62ExclusiveFlag: IPv6独占标志,用于专属IPv6流量处理。
+ // BgpPro: BGP Pro 支持。
+ // ToaClean: TOA(TCP Option Address)清理,清除TCP选项中的地址信息。
AttributeFlags []*string `json:"AttributeFlags,omitnil,omitempty" name:"AttributeFlags"`
// 负载均衡实例的域名。
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
// 网络出口
- // 注意:此字段可能返回 null,表示取不到有效值。
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
// 实例类型是否为独占型。1:独占型实例。0:非独占型实例。
@@ -6321,6 +6443,9 @@ type LoadBalancer struct {
// 已绑定的后端服务数量。
TargetCount *uint64 `json:"TargetCount,omitnil,omitempty" name:"TargetCount"`
+
+ // 负载均衡实例关联的Endpoint id。
+ AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
}
type LoadBalancerDetail struct {
@@ -6331,7 +6456,7 @@ type LoadBalancerDetail struct {
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// 负载均衡实例的网络类型:
- // OPEN:公网属性,INTERNAL:内网属性;对于内网属性的负载均衡,可通过绑定EIP出公网,具体可参考EIP文档。
+ // Public:公网属性,Private:内网属性;对于内网属性的负载均衡,可通过绑定EIP出公网,具体可参考EIP文档。
// 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
@@ -6473,11 +6598,9 @@ type LoadBalancerDetail struct {
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// 负载均衡实例的域名。
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
// 网络出口
- // 注意:此字段可能返回 null,表示取不到有效值。
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
// 负载均衡的属性
@@ -6499,11 +6622,9 @@ type LoadBalancerHealth struct {
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 负载均衡实例名称
- // 注意:此字段可能返回 null,表示取不到有效值。
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// 监听器列表
- // 注意:此字段可能返回 null,表示取不到有效值。
Listeners []*ListenerHealth `json:"Listeners,omitnil,omitempty" name:"Listeners"`
}
@@ -6524,7 +6645,6 @@ type LoadBalancerTraffic struct {
OutBandwidth *float64 `json:"OutBandwidth,omitnil,omitempty" name:"OutBandwidth"`
// CLB域名
- // 注意:此字段可能返回 null,表示取不到有效值。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
@@ -6768,83 +6888,15 @@ func (r *ModifyBlockIPListResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
-// Predefined struct for user
-type ModifyCustomizedConfigRequestParams struct {
- // 配置名字
- ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
-
- // 配置ID
- UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
-
- // 配置内容
- ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
-}
-
-type ModifyCustomizedConfigRequest struct {
- *tchttp.BaseRequest
-
- // 配置名字
- ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
-
- // 配置ID
- UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
-
- // 配置内容
- ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
-}
-
-func (r *ModifyCustomizedConfigRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *ModifyCustomizedConfigRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ConfigName")
- delete(f, "UconfigId")
- delete(f, "ConfigContent")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyCustomizedConfigRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
-}
-
-// Predefined struct for user
-type ModifyCustomizedConfigResponseParams struct {
- // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
-}
-
-type ModifyCustomizedConfigResponse struct {
- *tchttp.BaseResponse
- Response *ModifyCustomizedConfigResponseParams `json:"Response"`
-}
-
-func (r *ModifyCustomizedConfigResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
-}
-
-// FromJsonString It is highly **NOT** recommended to use this function
-// because it has no param check, nor strict type check
-func (r *ModifyCustomizedConfigResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
-}
-
// Predefined struct for user
type ModifyDomainAttributesRequestParams struct {
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器ID。
+ // 负载均衡监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 域名(必须是已经创建的转发规则下的域名),如果是多域名,可以指定多域名列表中的任意一个。
+ // 域名(必须是已经创建的转发规则下的域名),如果是多域名,可以指定多域名列表中的任意一个,可以通过[DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 要修改的新域名。NewDomain和NewDomains只能传一个。
@@ -6853,13 +6905,16 @@ type ModifyDomainAttributesRequestParams struct {
// 域名相关的证书信息,注意,仅对启用SNI的监听器适用,不可和MultiCertInfo 同时传入。
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
- // 是否开启Http2,注意,只有HTTPS域名才能开启Http2。
+ // 是否开启HTTP2,注意,只有HTTPS域名才能开启HTTP2。
+ // True: 开启HTTP2,Fasle: 不开启HTTP2。
Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
// 是否设为默认域名,注意,一个监听器下只能设置一个默认域名。
+ // True: 设为默认域名,Fasle: 不设置为默认域名。
DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
- // 是否开启Quic,注意,只有HTTPS域名才能开启Quic
+ // 是否开启 QUIC,注意,只有 HTTPS 域名才能开启 QUIC。
+ // True: 开启 QUIC,False: 不开启QUIC。
Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
// 监听器下必须配置一个默认域名,若要关闭原默认域名,必须同时指定另一个域名作为新的默认域名,如果新的默认域名是多域名,可以指定多域名列表中的任意一个。
@@ -6875,13 +6930,13 @@ type ModifyDomainAttributesRequestParams struct {
type ModifyDomainAttributesRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器ID。
+ // 负载均衡监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 域名(必须是已经创建的转发规则下的域名),如果是多域名,可以指定多域名列表中的任意一个。
+ // 域名(必须是已经创建的转发规则下的域名),如果是多域名,可以指定多域名列表中的任意一个,可以通过[DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 要修改的新域名。NewDomain和NewDomains只能传一个。
@@ -6890,13 +6945,16 @@ type ModifyDomainAttributesRequest struct {
// 域名相关的证书信息,注意,仅对启用SNI的监听器适用,不可和MultiCertInfo 同时传入。
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
- // 是否开启Http2,注意,只有HTTPS域名才能开启Http2。
+ // 是否开启HTTP2,注意,只有HTTPS域名才能开启HTTP2。
+ // True: 开启HTTP2,Fasle: 不开启HTTP2。
Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
// 是否设为默认域名,注意,一个监听器下只能设置一个默认域名。
+ // True: 设为默认域名,Fasle: 不设置为默认域名。
DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
- // 是否开启Quic,注意,只有HTTPS域名才能开启Quic
+ // 是否开启 QUIC,注意,只有 HTTPS 域名才能开启 QUIC。
+ // True: 开启 QUIC,False: 不开启QUIC。
Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
// 监听器下必须配置一个默认域名,若要关闭原默认域名,必须同时指定另一个域名作为新的默认域名,如果新的默认域名是多域名,可以指定多域名列表中的任意一个。
@@ -6962,13 +7020,13 @@ func (r *ModifyDomainAttributesResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyDomainRequestParams struct {
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器 ID。
+ // 负载均衡监听器 ID, 可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 监听器下的某个旧域名。
+ // 监听器下的某个旧域名, 可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 新域名, 长度限制为:1-120。有三种使用格式:非正则表达式格式,通配符格式,正则表达式格式。非正则表达式格式只能使用字母、数字、‘-’、‘.’。通配符格式的使用 ‘*’ 只能在开头或者结尾。正则表达式以'~'开头。
@@ -6978,13 +7036,13 @@ type ModifyDomainRequestParams struct {
type ModifyDomainRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器 ID。
+ // 负载均衡监听器 ID, 可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 监听器下的某个旧域名。
+ // 监听器下的某个旧域名, 可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 查询。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 新域名, 长度限制为:1-120。有三种使用格式:非正则表达式格式,通配符格式,正则表达式格式。非正则表达式格式只能使用字母、数字、‘-’、‘.’。通配符格式的使用 ‘*’ 只能在开头或者结尾。正则表达式以'~'开头。
@@ -7043,7 +7101,7 @@ type ModifyFunctionTargetsRequestParams struct {
// 负载均衡监听器ID。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 要修改的后端云函数服务列表。
+ // 要修改的后端云函数服务列表,仅支持 Event 函数类型。
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// 转发规则的ID,当绑定机器到七层转发规则时,必须提供此参数或Domain+Url两者之一。
@@ -7065,7 +7123,7 @@ type ModifyFunctionTargetsRequest struct {
// 负载均衡监听器ID。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 要修改的后端云函数服务列表。
+ // 要修改的后端云函数服务列表,仅支持 Event 函数类型。
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// 转发规则的ID,当绑定机器到七层转发规则时,必须提供此参数或Domain+Url两者之一。
@@ -7126,13 +7184,13 @@ func (r *ModifyFunctionTargetsResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyListenerRequestParams struct {
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器ID。
+ // 负载均衡监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 新的监听器名称。
+ // 新的监听器名称,最大长度255。
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。此参数仅适用于TCP/UDP监听器。
@@ -7144,7 +7202,7 @@ type ModifyListenerRequestParams struct {
// 证书相关信息,此参数仅适用于HTTPS/TCP_SSL/QUIC监听器;此参数和MultiCertInfo不能同时传入。
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
- // 监听器转发的方式。可选值:WRR、LEAST_CONN
+ // 监听器转发的方式。可选值:WRR(按权重轮询)、LEAST_CONN(按最小连接数)、IP_HASH(按 IP 地址哈希)
// 分别表示按权重轮询、最小连接数, 默认为 WRR。
// 使用场景:适用于TCP/UDP/TCP_SSL/QUIC监听器。七层监听器的均衡方式应在转发规则中修改。
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
@@ -7157,41 +7215,69 @@ type ModifyListenerRequestParams struct {
// 是否开启长连接,此参数仅适用于HTTP/HTTPS监听器。
// 默认值0表示不开启,1表示开启。
+ // 若后端服务对连接数上限有限制,则建议谨慎开启。此功能目前处于内测中,如需使用,请提交 [内测申请](https://cloud.tencent.com/apply/p/tsodp6qm21)。
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// 解绑后端目标时,是否发RST给客户端,此参数仅适用于TCP监听器。
+ // True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
+ // 不传则表示不修改。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 会话保持类型。NORMAL表示默认会话保持类型。QUIC_CID表示根据Quic Connection ID做会话保持。QUIC_CID只支持UDP协议。
// 使用场景:适用于TCP/UDP/TCP_SSL/QUIC监听器。
+ // 默认为 NORMAL。
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// 证书信息,支持同时传入不同算法类型的多本服务端证书;此参数仅适用于未开启SNI特性的HTTPS监听器。此参数和Certificate不能同时传入。
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// 监听器粒度并发连接数上限,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持。取值范围:1-实例规格并发连接上限,其中-1表示关闭监听器粒度并发连接数限速。基础网络实例不支持该参数。
+ // 默认为 -1,表示不限速。
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// 监听器粒度新建连接数上限,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持。取值范围:1-实例规格新建连接上限,其中-1表示关闭监听器粒度新建连接数限速。基础网络实例不支持该参数。
+ // 默认为 -1 表示不限速。
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
- // 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。默认值:900,取值范围:共享型实例和独占型实例支持:300~900,性能容量型实例支持:300~2000。如需设置超过2000s,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category),最大可设置到3600s。
+ // 空闲连接超时时间,此参数仅适用于TCP/UDP监听器,单位:秒。TCP监听器默认值:900,UDP监听器默认值:300s。取值范围:共享型实例和独占型实例支持:10~900,性能容量型实例支持:10~1980。如需设置超过1980s,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category),最大可设置到3600s。
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
- // 是否开启SNAT。
+ // TCP_SSL和QUIC是否支持PP
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // 是否开启SNAT, True 表示开启 SNAT,False 表示不开启 SNAT。
+ // 不传则表示不修改。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
+
+ // 数据压缩模式
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // 重新调度功能,权重调为0开关,打开此开关,后端服务器权重调为0时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // 重新调度功能,健康检查异常开关,打开此开关,后端服务器健康检查异常时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // 重新调度功能,扩容后端服务开关,打开此开关,后端服务器增加或者减少时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // 重新调度触发开始时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // 重新调度触发持续时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
type ModifyListenerRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器ID。
+ // 负载均衡监听器ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口查询。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 新的监听器名称。
+ // 新的监听器名称,最大长度255。
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。此参数仅适用于TCP/UDP监听器。
@@ -7203,7 +7289,7 @@ type ModifyListenerRequest struct {
// 证书相关信息,此参数仅适用于HTTPS/TCP_SSL/QUIC监听器;此参数和MultiCertInfo不能同时传入。
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
- // 监听器转发的方式。可选值:WRR、LEAST_CONN
+ // 监听器转发的方式。可选值:WRR(按权重轮询)、LEAST_CONN(按最小连接数)、IP_HASH(按 IP 地址哈希)
// 分别表示按权重轮询、最小连接数, 默认为 WRR。
// 使用场景:适用于TCP/UDP/TCP_SSL/QUIC监听器。七层监听器的均衡方式应在转发规则中修改。
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
@@ -7216,29 +7302,57 @@ type ModifyListenerRequest struct {
// 是否开启长连接,此参数仅适用于HTTP/HTTPS监听器。
// 默认值0表示不开启,1表示开启。
+ // 若后端服务对连接数上限有限制,则建议谨慎开启。此功能目前处于内测中,如需使用,请提交 [内测申请](https://cloud.tencent.com/apply/p/tsodp6qm21)。
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// 解绑后端目标时,是否发RST给客户端,此参数仅适用于TCP监听器。
+ // True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
+ // 不传则表示不修改。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 会话保持类型。NORMAL表示默认会话保持类型。QUIC_CID表示根据Quic Connection ID做会话保持。QUIC_CID只支持UDP协议。
// 使用场景:适用于TCP/UDP/TCP_SSL/QUIC监听器。
+ // 默认为 NORMAL。
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// 证书信息,支持同时传入不同算法类型的多本服务端证书;此参数仅适用于未开启SNI特性的HTTPS监听器。此参数和Certificate不能同时传入。
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// 监听器粒度并发连接数上限,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持。取值范围:1-实例规格并发连接上限,其中-1表示关闭监听器粒度并发连接数限速。基础网络实例不支持该参数。
+ // 默认为 -1,表示不限速。
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// 监听器粒度新建连接数上限,当前仅性能容量型实例且仅TCP/UDP/TCP_SSL/QUIC监听器支持。取值范围:1-实例规格新建连接上限,其中-1表示关闭监听器粒度新建连接数限速。基础网络实例不支持该参数。
+ // 默认为 -1 表示不限速。
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
- // 空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。默认值:900,取值范围:共享型实例和独占型实例支持:300~900,性能容量型实例支持:300~2000。如需设置超过2000s,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category),最大可设置到3600s。
+ // 空闲连接超时时间,此参数仅适用于TCP/UDP监听器,单位:秒。TCP监听器默认值:900,UDP监听器默认值:300s。取值范围:共享型实例和独占型实例支持:10~900,性能容量型实例支持:10~1980。如需设置超过1980s,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category),最大可设置到3600s。
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
- // 是否开启SNAT。
+ // TCP_SSL和QUIC是否支持PP
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // 是否开启SNAT, True 表示开启 SNAT,False 表示不开启 SNAT。
+ // 不传则表示不修改。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
+
+ // 数据压缩模式
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // 重新调度功能,权重调为0开关,打开此开关,后端服务器权重调为0时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // 重新调度功能,健康检查异常开关,打开此开关,后端服务器健康检查异常时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // 重新调度功能,扩容后端服务开关,打开此开关,后端服务器增加或者减少时触发重新调度。仅TCP/UDP监听器支持。
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // 重新调度触发开始时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // 重新调度触发持续时间,取值0~3600s。仅TCP/UDP监听器支持。
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
func (r *ModifyListenerRequest) ToJsonString() string {
@@ -7269,7 +7383,14 @@ func (r *ModifyListenerRequest) FromJsonString(s string) error {
delete(f, "MaxConn")
delete(f, "MaxCps")
delete(f, "IdleConnectTimeout")
+ delete(f, "ProxyProtocol")
delete(f, "SnatEnable")
+ delete(f, "DataCompressMode")
+ delete(f, "RescheduleTargetZeroWeight")
+ delete(f, "RescheduleUnhealthy")
+ delete(f, "RescheduleExpandTarget")
+ delete(f, "RescheduleStartTime")
+ delete(f, "RescheduleInterval")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyListenerRequest has unknown keys!", "")
}
@@ -7300,10 +7421,10 @@ func (r *ModifyListenerResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyLoadBalancerAttributesRequestParams struct {
- // 负载均衡的唯一ID
+ // 负载均衡的唯一ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡实例名称
+ // 负载均衡实例名称,规则:1-60 个英文、汉字、数字、连接线“-”或下划线“_”。
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// 设置负载均衡跨地域绑定1.0的后端服务信息
@@ -7312,26 +7433,32 @@ type ModifyLoadBalancerAttributesRequestParams struct {
// 网络计费相关参数
InternetChargeInfo *InternetAccessible `json:"InternetChargeInfo,omitnil,omitempty" name:"InternetChargeInfo"`
- // Target是否放通来自CLB的流量。开启放通(true):只验证CLB上的安全组;不开启放通(false):需同时验证CLB和后端实例上的安全组。
+ // Target是否放通来自CLB的流量。
+ // 开启放通(true):只验证CLB上的安全组;
+ // 不开启放通(false):需同时验证CLB和后端实例上的安全组。
+ // 不填则不修改。
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
- // 是否开启跨地域绑定2.0功能
+ // 是否开启跨地域绑定2.0功能。不填则不修改。
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
- // 是否开启删除保护
+ // 是否开启删除保护,不填则不修改。
DeleteProtect *bool `json:"DeleteProtect,omitnil,omitempty" name:"DeleteProtect"`
- // 将负载均衡二级域名由mycloud.com改为tencentclb.com,子域名也会变换。修改后mycloud.com域名将失效。
+ // 将负载均衡二级域名由mycloud.com改为tencentclb.com,子域名也会变换,修改后mycloud.com域名将失效。不填则不修改。
ModifyClassicDomain *bool `json:"ModifyClassicDomain,omitnil,omitempty" name:"ModifyClassicDomain"`
+
+ // 关联的终端节点Id,可通过[DescribeVpcEndPoint](https://cloud.tencent.com/document/product/215/54679)接口查询。传空字符串代表解除关联。
+ AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
}
type ModifyLoadBalancerAttributesRequest struct {
*tchttp.BaseRequest
- // 负载均衡的唯一ID
+ // 负载均衡的唯一ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡实例名称
+ // 负载均衡实例名称,规则:1-60 个英文、汉字、数字、连接线“-”或下划线“_”。
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// 设置负载均衡跨地域绑定1.0的后端服务信息
@@ -7340,17 +7467,23 @@ type ModifyLoadBalancerAttributesRequest struct {
// 网络计费相关参数
InternetChargeInfo *InternetAccessible `json:"InternetChargeInfo,omitnil,omitempty" name:"InternetChargeInfo"`
- // Target是否放通来自CLB的流量。开启放通(true):只验证CLB上的安全组;不开启放通(false):需同时验证CLB和后端实例上的安全组。
+ // Target是否放通来自CLB的流量。
+ // 开启放通(true):只验证CLB上的安全组;
+ // 不开启放通(false):需同时验证CLB和后端实例上的安全组。
+ // 不填则不修改。
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
- // 是否开启跨地域绑定2.0功能
+ // 是否开启跨地域绑定2.0功能。不填则不修改。
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
- // 是否开启删除保护
+ // 是否开启删除保护,不填则不修改。
DeleteProtect *bool `json:"DeleteProtect,omitnil,omitempty" name:"DeleteProtect"`
- // 将负载均衡二级域名由mycloud.com改为tencentclb.com,子域名也会变换。修改后mycloud.com域名将失效。
+ // 将负载均衡二级域名由mycloud.com改为tencentclb.com,子域名也会变换,修改后mycloud.com域名将失效。不填则不修改。
ModifyClassicDomain *bool `json:"ModifyClassicDomain,omitnil,omitempty" name:"ModifyClassicDomain"`
+
+ // 关联的终端节点Id,可通过[DescribeVpcEndPoint](https://cloud.tencent.com/document/product/215/54679)接口查询。传空字符串代表解除关联。
+ AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
}
func (r *ModifyLoadBalancerAttributesRequest) ToJsonString() string {
@@ -7373,6 +7506,7 @@ func (r *ModifyLoadBalancerAttributesRequest) FromJsonString(s string) error {
delete(f, "SnatPro")
delete(f, "DeleteProtect")
delete(f, "ModifyClassicDomain")
+ delete(f, "AssociateEndpoint")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyLoadBalancerAttributesRequest has unknown keys!", "")
}
@@ -7407,7 +7541,8 @@ func (r *ModifyLoadBalancerAttributesResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyLoadBalancerMixIpTargetRequestParams struct {
- // 负载均衡实例ID数组。
+ // 负载均衡实例ID数组,默认支持20个负载均衡实例ID。
+ // 可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// 开启/关闭IPv6FullChain负载均衡7层监听器支持混绑IPv4/IPv6目标特性。
@@ -7417,7 +7552,8 @@ type ModifyLoadBalancerMixIpTargetRequestParams struct {
type ModifyLoadBalancerMixIpTargetRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例ID数组。
+ // 负载均衡实例ID数组,默认支持20个负载均衡实例ID。
+ // 可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// 开启/关闭IPv6FullChain负载均衡7层监听器支持混绑IPv4/IPv6目标特性。
@@ -7529,7 +7665,8 @@ func (r *ModifyLoadBalancerSlaResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyLoadBalancersProjectRequestParams struct {
- // 一个或多个待操作的负载均衡实例ID。
+ // 一个或多个待操作的负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
+ // 列表支持最大长度为20。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// 项目ID。可以通过 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 接口获取。
@@ -7539,7 +7676,8 @@ type ModifyLoadBalancersProjectRequestParams struct {
type ModifyLoadBalancersProjectRequest struct {
*tchttp.BaseRequest
- // 一个或多个待操作的负载均衡实例ID。
+ // 一个或多个待操作的负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
+ // 列表支持最大长度为20。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// 项目ID。可以通过 [DescribeProject](https://cloud.tencent.com/document/api/651/78725) 接口获取。
@@ -7590,13 +7728,13 @@ func (r *ModifyLoadBalancersProjectResponse) FromJsonString(s string) error {
// Predefined struct for user
type ModifyRuleRequestParams struct {
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器 ID。
+ // 负载均衡监听器 ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 要修改的转发规则的 ID。
+ // 要修改的转发规则的 ID, 可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// 转发规则的新的转发路径,如不需修改Url,则不需提供此参数。
@@ -7610,6 +7748,7 @@ type ModifyRuleRequestParams struct {
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// 会话保持时间。取值范围0或30-86400(单位:秒)。
+ // 默认为0。
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// 负载均衡实例与后端服务之间的转发协议,默认HTTP,可取值:HTTP、HTTPS、GRPC。仅HTTPS监听器该参数有效。
@@ -7623,18 +7762,21 @@ type ModifyRuleRequestParams struct {
// OAuth配置信息。
OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
+
+ // 自定义cookie名
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
type ModifyRuleRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/214/30685) 接口获取。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
- // 负载均衡监听器 ID。
+ // 负载均衡监听器 ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
- // 要修改的转发规则的 ID。
+ // 要修改的转发规则的 ID, 可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// 转发规则的新的转发路径,如不需修改Url,则不需提供此参数。
@@ -7648,6 +7790,7 @@ type ModifyRuleRequest struct {
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// 会话保持时间。取值范围0或30-86400(单位:秒)。
+ // 默认为0。
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// 负载均衡实例与后端服务之间的转发协议,默认HTTP,可取值:HTTP、HTTPS、GRPC。仅HTTPS监听器该参数有效。
@@ -7661,6 +7804,9 @@ type ModifyRuleRequest struct {
// OAuth配置信息。
OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
+
+ // 自定义cookie名
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
func (r *ModifyRuleRequest) ToJsonString() string {
@@ -7686,6 +7832,7 @@ func (r *ModifyRuleRequest) FromJsonString(s string) error {
delete(f, "TrpcCallee")
delete(f, "TrpcFunc")
delete(f, "OAuth")
+ delete(f, "CookieName")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRuleRequest has unknown keys!", "")
}
@@ -7722,15 +7869,24 @@ type ModifyTargetGroupAttributeRequestParams struct {
// 目标组的新名称。
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
- // 目标组的新默认端口。
+ // 目标组的新默认端口。全监听目标组不支持此参数。
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
- // 后端服务默认权重。
- //
- // - 取值范围[0, 100]
- // - 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- //
+ // 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
+ // WRR:按权重轮询。LEAST_CONN:最小连接数。IP_HASH:按IP哈希。默认为 WRR。
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // 健康检查详情。
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // 后端服务默认权重, 其中:- 取值范围[0, 100]
- 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- v1目标组类型不支持设置Weight参数。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,true:关闭;false:开启, 默认关闭。
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。TCP/UDP目标组不支持该参数。
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
}
type ModifyTargetGroupAttributeRequest struct {
@@ -7742,15 +7898,24 @@ type ModifyTargetGroupAttributeRequest struct {
// 目标组的新名称。
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
- // 目标组的新默认端口。
+ // 目标组的新默认端口。全监听目标组不支持此参数。
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
- // 后端服务默认权重。
- //
- // - 取值范围[0, 100]
- // - 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- //
+ // 调度算法,仅V2新版目标组,且后端转发协议为(HTTP|HTTPS|GRPC)时该参数有效。可选值:
+ // WRR:按权重轮询。LEAST_CONN:最小连接数。IP_HASH:按IP哈希。默认为 WRR。
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // 健康检查详情。
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // 后端服务默认权重, 其中:- 取值范围[0, 100]
- 设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。
- v1目标组类型不支持设置Weight参数。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // 是否开启长连接,此参数仅适用于HTTP/HTTPS目标组,true:关闭;false:开启, 默认关闭。
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // 会话保持时间,单位:秒。可选值:30~3600,默认 0,表示不开启。TCP/UDP目标组不支持该参数。
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
}
func (r *ModifyTargetGroupAttributeRequest) ToJsonString() string {
@@ -7768,7 +7933,11 @@ func (r *ModifyTargetGroupAttributeRequest) FromJsonString(s string) error {
delete(f, "TargetGroupId")
delete(f, "TargetGroupName")
delete(f, "Port")
+ delete(f, "ScheduleAlgorithm")
+ delete(f, "HealthCheck")
delete(f, "Weight")
+ delete(f, "KeepaliveEnable")
+ delete(f, "SessionExpireTime")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTargetGroupAttributeRequest has unknown keys!", "")
}
@@ -7802,7 +7971,7 @@ type ModifyTargetGroupInstancesPortRequestParams struct {
// 目标组ID。
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 待修改端口的服务器数组。
+ // 待修改端口的服务器数组,在这个接口 NewPort 和 Port 为必填项。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -7812,7 +7981,7 @@ type ModifyTargetGroupInstancesPortRequest struct {
// 目标组ID。
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 待修改端口的服务器数组。
+ // 待修改端口的服务器数组,在这个接口 NewPort 和 Port 为必填项。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -7863,7 +8032,7 @@ type ModifyTargetGroupInstancesWeightRequestParams struct {
// 目标组ID。
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 待修改权重的服务器数组。
+ // 待修改权重的服务器数组,在这个接口 Port 为必填项。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -7873,7 +8042,7 @@ type ModifyTargetGroupInstancesWeightRequest struct {
// 目标组ID。
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 待修改权重的服务器数组。
+ // 待修改权重的服务器数组,在这个接口 Port 为必填项。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -8023,6 +8192,9 @@ type ModifyTargetWeightRequestParams struct {
// 负载均衡监听器ID。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+ // 要修改权重的后端服务列表。
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
// 转发规则的ID,当绑定机器到七层转发规则时,必须提供此参数或Domain+Url两者之一。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
@@ -8032,9 +8204,6 @@ type ModifyTargetWeightRequestParams struct {
// 目标规则的URL,提供LocationId参数时本参数不生效。
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
- // 要修改权重的后端服务列表。
- Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
-
// 后端服务新的转发权重,取值范围:0~100,默认值10。如果设置了 Targets.Weight 参数,则此参数不生效。
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
@@ -8048,6 +8217,9 @@ type ModifyTargetWeightRequest struct {
// 负载均衡监听器ID。
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+ // 要修改权重的后端服务列表。
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
// 转发规则的ID,当绑定机器到七层转发规则时,必须提供此参数或Domain+Url两者之一。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
@@ -8057,9 +8229,6 @@ type ModifyTargetWeightRequest struct {
// 目标规则的URL,提供LocationId参数时本参数不生效。
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
- // 要修改权重的后端服务列表。
- Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
-
// 后端服务新的转发权重,取值范围:0~100,默认值10。如果设置了 Targets.Weight 参数,则此参数不生效。
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
@@ -8078,10 +8247,10 @@ func (r *ModifyTargetWeightRequest) FromJsonString(s string) error {
}
delete(f, "LoadBalancerId")
delete(f, "ListenerId")
+ delete(f, "Targets")
delete(f, "LocationId")
delete(f, "Domain")
delete(f, "Url")
- delete(f, "Targets")
delete(f, "Weight")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTargetWeightRequest has unknown keys!", "")
@@ -8117,24 +8286,27 @@ type MultiCertInfo struct {
// 监听器或规则证书列表,单双向认证,多本服务端证书算法类型不能重复;若SSLMode为双向认证,证书列表必须包含一本ca证书。
CertList []*CertInfo `json:"CertList,omitnil,omitempty" name:"CertList"`
+
+ // 双向认证时,是否开启客户端认证,ON:开启,OPTIONAL:自适应,默认ON
+ SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
}
type OAuth struct {
// 开启或关闭鉴权。
// True: 开启;
// False: 关闭
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 默认为关闭。
OAuthEnable *bool `json:"OAuthEnable,omitnil,omitempty" name:"OAuthEnable"`
- // IAP全部故障后,拒绝请求还是放行。BYPASS:通过,
+ // IAP全部故障后,拒绝请求还是放行。
+ // BYPASS: 通过
// REJECT: 拒绝
- // 注意:此字段可能返回 null,表示取不到有效值。
+ // 默认为 BYPASS
OAuthFailureStatus *string `json:"OAuthFailureStatus,omitnil,omitempty" name:"OAuthFailureStatus"`
}
type Price struct {
// 描述了实例价格。
- // 注意:此字段可能返回 null,表示取不到有效值。
InstancePrice *ItemPrice `json:"InstancePrice,omitnil,omitempty" name:"InstancePrice"`
// 描述了网络价格。
@@ -8153,8 +8325,9 @@ type Quota struct {
// TOTAL_LISTENER_QUOTA:一个CLB下的监听器配额
// TOTAL_LISTENER_RULE_QUOTA:一个监听器下的转发规则配额
// TOTAL_TARGET_BIND_QUOTA:一条转发规则下可绑定设备的配额
- // TOTAL_SNAP_IP_QUOTA: 一个CLB实例下跨地域2.0的SNAT IP配额
+ // TOTAL_SNAT_IP_QUOTA: 一个CLB实例下跨地域2.0的SNAT IP配额
// TOTAL_ISP_CLB_QUOTA:用户当前地域下的三网CLB配额
+ // TOTAL_FULL_PORT_RANGE_LISTENER_QUOTA:一个CLB实例下的单个协议全端口段监听器配额
QuotaId *string `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// 当前使用数量,为 null 时表示无意义。
@@ -8259,7 +8432,7 @@ type RegisterTargetGroupInstancesRequestParams struct {
// 目标组ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 服务器实例数组
+ // 服务器实例数组,服务器和目标组的 VPC 需相同。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -8269,7 +8442,7 @@ type RegisterTargetGroupInstancesRequest struct {
// 目标组ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
- // 服务器实例数组
+ // 服务器实例数组,服务器和目标组的 VPC 需相同。
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
@@ -8326,7 +8499,7 @@ type RegisterTargetsRequestParams struct {
// 待绑定的后端服务列表,数组长度最大支持20。
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
- // 转发规则的ID,当绑定后端服务到七层转发规则时,必须提供此参数或Domain+Url两者之一。
+ // 转发规则的ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取,当绑定后端服务到七层转发规则时,必须提供此参数或Domain+Url两者之一。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// 目标转发规则的域名,提供LocationId参数时本参数不生效。
@@ -8348,7 +8521,7 @@ type RegisterTargetsRequest struct {
// 待绑定的后端服务列表,数组长度最大支持20。
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
- // 转发规则的ID,当绑定后端服务到七层转发规则时,必须提供此参数或Domain+Url两者之一。
+ // 转发规则的ID,可以通过 [DescribeListeners](https://cloud.tencent.com/document/product/214/30686) 接口获取,当绑定后端服务到七层转发规则时,必须提供此参数或Domain+Url两者之一。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// 目标转发规则的域名,提供LocationId参数时本参数不生效。
@@ -8534,11 +8707,9 @@ type Resource struct {
Isp *string `json:"Isp,omitnil,omitempty" name:"Isp"`
// 可用资源。
- // 注意:此字段可能返回 null,表示取不到有效值。
AvailabilitySet []*ResourceAvailability `json:"AvailabilitySet,omitnil,omitempty" name:"AvailabilitySet"`
// 运营商类型信息
- // 注意:此字段可能返回 null,表示取不到有效值。
TypeSet []*TypeInfo `json:"TypeSet,omitnil,omitempty" name:"TypeSet"`
}
@@ -8568,26 +8739,21 @@ type RewriteLocationMap struct {
}
type RewriteTarget struct {
- // 重定向目标的监听器ID
- // 注意:此字段可能返回 null,表示无重定向。
+ // 重定向目标的监听器ID,该字段仅配置了重定向时有效。
// 注意:此字段可能返回 null,表示取不到有效值。
TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
- // 重定向目标的转发规则ID
- // 注意:此字段可能返回 null,表示无重定向。
+ // 重定向目标的转发规则ID,该字段仅配置了重定向时有效。
// 注意:此字段可能返回 null,表示取不到有效值。
TargetLocationId *string `json:"TargetLocationId,omitnil,omitempty" name:"TargetLocationId"`
// 重定向状态码
- // 注意:此字段可能返回 null,表示取不到有效值。
RewriteCode *int64 `json:"RewriteCode,omitnil,omitempty" name:"RewriteCode"`
// 重定向是否携带匹配的url
- // 注意:此字段可能返回 null,表示取不到有效值。
TakeUrl *bool `json:"TakeUrl,omitnil,omitempty" name:"TakeUrl"`
// 重定向类型,Manual: 手动重定向,Auto: 自动重定向
- // 注意:此字段可能返回 null,表示取不到有效值。
RewriteType *string `json:"RewriteType,omitnil,omitempty" name:"RewriteType"`
}
@@ -8601,7 +8767,7 @@ type RsTagRule struct {
// 转发规则的ID,七层规则时需要此参数,4层规则不需要。
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
- // 后端服务修改后的标签。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Tag参数,即最终的标签以Target中的Tag参数值为准,仅当Target中的Weight参数为空时,才以RsTagRule中的Tag参数为准。
+ // 后端服务修改后的标签。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Tag参数,即最终的标签以Target中的Tag参数值为准,仅当Target中的Tag参数为空时,才以RsTagRule中的Tag参数为准。
Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
}
@@ -8641,8 +8807,10 @@ type RuleHealth struct {
// 注意:此字段可能返回 null,表示取不到有效值。
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+ // 高级路由规则ID
+ RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
+
// 本规则上绑定的后端服务的健康检查状态
- // 注意:此字段可能返回 null,表示取不到有效值。
Targets []*TargetHealth `json:"Targets,omitnil,omitempty" name:"Targets"`
}
@@ -8666,7 +8834,7 @@ type RuleInput struct {
// 分别表示按权重轮询、最小连接数、按IP哈希, 默认为 WRR。
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
- // 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/GRPC/TRPC,TRPC暂未对外开放,默认HTTP。
+ // 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/GRPC/GRPCS/TRPC,TRPC暂未对外开放,默认HTTP。
ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
// 是否将该域名设为默认域名,注意,一个监听器下只能设置一个默认域名。
@@ -8692,6 +8860,9 @@ type RuleInput struct {
// 证书信息,支持同时传入不同算法类型的多本服务端证书;此参数和Certificate不能同时传入。
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+
+ // 自定义cookie名
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
type RuleOutput struct {
@@ -8699,18 +8870,15 @@ type RuleOutput struct {
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// 转发规则的域名。
- // 注意:此字段可能返回 null,表示取不到有效值。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 转发规则的路径。
- // 注意:此字段可能返回 null,表示取不到有效值。
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// 会话保持时间
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// 健康检查信息
- // 注意:此字段可能返回 null,表示取不到有效值。
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// 证书信息
@@ -8725,7 +8893,6 @@ type RuleOutput struct {
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// 转发规则的重定向目标信息
- // 注意:此字段可能返回 null,表示取不到有效值。
RewriteTarget *RewriteTarget `json:"RewriteTarget,omitnil,omitempty" name:"RewriteTarget"`
// 是否开启gzip
@@ -8754,23 +8921,18 @@ type RuleOutput struct {
TargetGroup *BasicTargetGroupInfo `json:"TargetGroup,omitnil,omitempty" name:"TargetGroup"`
// WAF实例ID
- // 注意:此字段可能返回 null,表示取不到有效值。
WafDomainId *string `json:"WafDomainId,omitnil,omitempty" name:"WafDomainId"`
// TRPC被调服务器路由,ForwardType为TRPC时有效。目前暂未对外开放。
- // 注意:此字段可能返回 null,表示取不到有效值。
TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
// TRPC调用服务接口,ForwardType为TRPC时有效。目前暂未对外开放。
- // 注意:此字段可能返回 null,表示取不到有效值。
TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
// QUIC状态。QUIC_ACTIVE表示开启,QUIC_INACTIVE表示未开启。注意,只有HTTPS域名才能开启QUIC。
- // 注意:此字段可能返回 null,表示取不到有效值。
QuicStatus *string `json:"QuicStatus,omitnil,omitempty" name:"QuicStatus"`
// 转发规则的域名列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
// 绑定的目标组列表
@@ -8778,8 +8940,10 @@ type RuleOutput struct {
TargetGroupList []*BasicTargetGroupInfo `json:"TargetGroupList,omitnil,omitempty" name:"TargetGroupList"`
// OAuth配置状态信息。
- // 注意:此字段可能返回 null,表示取不到有效值。
OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
+
+ // 自定义cookie名。
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
type RuleTargets struct {
@@ -8793,11 +8957,9 @@ type RuleTargets struct {
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// 后端服务的信息
- // 注意:此字段可能返回 null,表示取不到有效值。
Targets []*Backend `json:"Targets,omitnil,omitempty" name:"Targets"`
// 后端云函数的信息
- // 注意:此字段可能返回 null,表示取不到有效值。
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
}
@@ -8818,7 +8980,7 @@ type RulesItems struct {
// Predefined struct for user
type SetCustomizedConfigForLoadBalancerRequestParams struct {
// 操作类型。
- // - ADD:添加
+ // - ADD:创建
// - DELETE:删除
// - UPDATE:修改
// - BIND:绑定
@@ -8828,13 +8990,15 @@ type SetCustomizedConfigForLoadBalancerRequestParams struct {
// 个性化配置ID。除了创建个性化配置外,必传此字段,如:pz-1234abcd
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
- // 个性化配置内容。创建个性化配置或修改个性化配置的内容时,必传此字段
+ // 个性化配置内容。创建个性化配置或修改个性化配置的内容时,必传此字段。
+ // 具体限制查看 [七层个性化配置](https://cloud.tencent.com/document/product/214/15171)
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
- // 个性化配置名称。创建个性化配置或修改个性化配置的名字时,必传此字段
+ // 个性化配置名称。创建个性化配置或修改个性化配置的名字时,必传此字段。
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
- // 负载均衡实例ID。绑定解绑时,必传此字段
+ // 负载均衡实例ID。绑定解绑时,必传此字段。
+ // 可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
@@ -8842,7 +9006,7 @@ type SetCustomizedConfigForLoadBalancerRequest struct {
*tchttp.BaseRequest
// 操作类型。
- // - ADD:添加
+ // - ADD:创建
// - DELETE:删除
// - UPDATE:修改
// - BIND:绑定
@@ -8852,13 +9016,15 @@ type SetCustomizedConfigForLoadBalancerRequest struct {
// 个性化配置ID。除了创建个性化配置外,必传此字段,如:pz-1234abcd
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
- // 个性化配置内容。创建个性化配置或修改个性化配置的内容时,必传此字段
+ // 个性化配置内容。创建个性化配置或修改个性化配置的内容时,必传此字段。
+ // 具体限制查看 [七层个性化配置](https://cloud.tencent.com/document/product/214/15171)
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
- // 个性化配置名称。创建个性化配置或修改个性化配置的名字时,必传此字段
+ // 个性化配置名称。创建个性化配置或修改个性化配置的名字时,必传此字段。
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
- // 负载均衡实例ID。绑定解绑时,必传此字段
+ // 负载均衡实例ID。绑定解绑时,必传此字段。
+ // 可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
@@ -8912,17 +9078,17 @@ func (r *SetCustomizedConfigForLoadBalancerResponse) FromJsonString(s string) er
// Predefined struct for user
type SetLoadBalancerClsLogRequestParams struct {
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 日志服务(CLS)的日志集 ID。
// 增加和更新日志主题时可调用 [DescribeLogsets](https://cloud.tencent.com/document/product/614/58624) 接口获取日志集 ID。
- // 删除日志主题时,此参数填写为null即可。
+ // 删除日志主题时,此参数填写为**空字符串**即可。
LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
// 日志服务(CLS)的日志主题 ID。
// 增加和更新日志主题时可调用 [DescribeTopics](https://cloud.tencent.com/document/product/614/56454) 接口获取日志主题 ID。
- // 删除日志主题时,此参数填写为null即可。
+ // 删除日志主题时,此参数填写为**空字符串**即可。
LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
// 日志类型:
@@ -8935,17 +9101,17 @@ type SetLoadBalancerClsLogRequestParams struct {
type SetLoadBalancerClsLogRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例 ID。
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 日志服务(CLS)的日志集 ID。
// 增加和更新日志主题时可调用 [DescribeLogsets](https://cloud.tencent.com/document/product/614/58624) 接口获取日志集 ID。
- // 删除日志主题时,此参数填写为null即可。
+ // 删除日志主题时,此参数填写为**空字符串**即可。
LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
// 日志服务(CLS)的日志主题 ID。
// 增加和更新日志主题时可调用 [DescribeTopics](https://cloud.tencent.com/document/product/614/56454) 接口获取日志主题 ID。
- // 删除日志主题时,此参数填写为null即可。
+ // 删除日志主题时,此参数填写为**空字符串**即可。
LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
// 日志类型:
@@ -9001,20 +9167,22 @@ func (r *SetLoadBalancerClsLogResponse) FromJsonString(s string) error {
// Predefined struct for user
type SetLoadBalancerSecurityGroupsRequestParams struct {
- // 负载均衡实例 ID
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 安全组ID构成的数组,一个负载均衡实例最多可绑定50个安全组,如果要解绑所有安全组,可不传此参数。
+ // 可以通过 [DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808) 接口查询。
SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
}
type SetLoadBalancerSecurityGroupsRequest struct {
*tchttp.BaseRequest
- // 负载均衡实例 ID
+ // 负载均衡实例 ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 安全组ID构成的数组,一个负载均衡实例最多可绑定50个安全组,如果要解绑所有安全组,可不传此参数。
+ // 可以通过 [DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808) 接口查询。
SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
}
@@ -9065,7 +9233,7 @@ type SetLoadBalancerStartStatusRequestParams struct {
// 操作类型。Start:启动实例,Stop:停止实例。
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 监听器ID。如果该字段为空,则表示操作负载均衡实例,如果不为空,则表示操作监听器。
@@ -9078,7 +9246,7 @@ type SetLoadBalancerStartStatusRequest struct {
// 操作类型。Start:启动实例,Stop:停止实例。
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
- // 负载均衡实例ID。
+ // 负载均衡实例ID,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 监听器ID。如果该字段为空,则表示操作负载均衡实例,如果不为空,则表示操作监听器。
@@ -9130,28 +9298,30 @@ func (r *SetLoadBalancerStartStatusResponse) FromJsonString(s string) error {
// Predefined struct for user
type SetSecurityGroupForLoadbalancersRequestParams struct {
- // 安全组ID,如 sg-12345678
+ // 安全组ID,如 sg-12345678。可以通过 [DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808) 接口获取。
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// ADD 绑定安全组;
// DEL 解绑安全组
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
- // 负载均衡实例ID数组
+ // 负载均衡实例ID数组,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
+ // 列表支持的最大长度为20。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
type SetSecurityGroupForLoadbalancersRequest struct {
*tchttp.BaseRequest
- // 安全组ID,如 sg-12345678
+ // 安全组ID,如 sg-12345678。可以通过 [DescribeSecurityGroups](https://cloud.tencent.com/document/product/215/15808) 接口获取。
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// ADD 绑定安全组;
// DEL 解绑安全组
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
- // 负载均衡实例ID数组
+ // 负载均衡实例ID数组,可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
+ // 列表支持的最大长度为20。
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
@@ -9199,7 +9369,8 @@ func (r *SetSecurityGroupForLoadbalancersResponse) FromJsonString(s string) erro
}
type SlaUpdateParam struct {
- // lb的字符串ID
+ // 负载均衡实例 ID。
+ // 可以通过 [DescribeLoadBalancers](https://cloud.tencent.com/document/product/1108/48459) 接口查询。
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// 性能容量型规格,取值范围:
@@ -9225,12 +9396,9 @@ type SpecAvailability struct {
// 规格类型。
// clb.c2.medium(标准型)clb.c3.small(高阶型1)clb.c3.medium(高阶型2)
// clb.c4.small(超强型1)clb.c4.medium(超强型2)clb.c4.large(超强型3)clb.c4.xlarge(超强型4)shared(共享型)
- //
- // 注意:此字段可能返回 null,表示取不到有效值。
SpecType *string `json:"SpecType,omitnil,omitempty" name:"SpecType"`
// 规格可用性。资源可用性,"Available":可用,"Unavailable":不可用
- // 注意:此字段可能返回 null,表示取不到有效值。
Availability *string `json:"Availability,omitnil,omitempty" name:"Availability"`
}
@@ -9245,16 +9413,13 @@ type TagInfo struct {
type Target struct {
// 后端服务的监听端口。
// 注意:绑定CVM(云服务器)或ENI(弹性网卡)时必传此参数
- // 注意:此字段可能返回 null,表示取不到有效值。
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// 后端服务的类型,可取:CVM(云服务器)、ENI(弹性网卡);作为入参时,目前本参数暂不生效。
- // 注意:此字段可能返回 null,表示取不到有效值。
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// 绑定CVM时需要传入此参数,代表CVM的唯一 ID,可通过 DescribeInstances 接口返回字段中的 InstanceId 字段获取。表示绑定主网卡主IPv4地址;以下场景都不支持指定InstanceId:绑定非CVM,绑定CVM上的辅助网卡IP,通过跨域2.0绑定CVM,以及绑定CVM的IPv6地址等。
// 注意:参数 InstanceId、EniIp 有且只能传入其中一个参数。
- // 注意:此字段可能返回 null,表示取不到有效值。
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// 后端服务修改后的转发权重,取值范围:[0, 100],默认为 10。此参数的优先级高于[RsWeightRule](https://cloud.tencent.com/document/api/214/30694#RsWeightRule)中的Weight参数,即最终的权重值以此Weight参数值为准,仅当此Weight参数为空时,才以RsWeightRule中的Weight参数为准。
@@ -9262,11 +9427,9 @@ type Target struct {
// 绑定IP时需要传入此参数,支持弹性网卡的IP和其他内网IP,如果是弹性网卡则必须先绑定至CVM,然后才能绑定到负载均衡实例。
// 注意:参数 InstanceId、EniIp 有且只能传入其中一个参数。如果绑定双栈IPV6子机,则必须传该参数。如果是跨地域绑定,则必须传该参数,不支持传InstanceId参数。
- // 注意:此字段可能返回 null,表示取不到有效值。
EniIp *string `json:"EniIp,omitnil,omitempty" name:"EniIp"`
// 标签。
- // 注意:此字段可能返回 null,表示取不到有效值。
Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
}
@@ -9297,22 +9460,19 @@ type TargetGroupBackend struct {
// 后端服务的唯一 ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
- // 后端服务的监听端口
+ // 后端服务的监听端口,全端口段监听器此字段返回0,代表无效端口,即不支持设置。
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// 后端服务的转发权重,取值范围:[0, 100],默认为 10。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// 后端服务的外网 IP
- // 注意:此字段可能返回 null,表示取不到有效值。
PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
// 后端服务的内网 IP
- // 注意:此字段可能返回 null,表示取不到有效值。
PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
// 后端服务的实例名称
- // 注意:此字段可能返回 null,表示取不到有效值。
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// 后端服务被绑定的时间
@@ -9320,14 +9480,75 @@ type TargetGroupBackend struct {
RegisteredTime *string `json:"RegisteredTime,omitnil,omitempty" name:"RegisteredTime"`
// 弹性网卡唯一ID
- // 注意:此字段可能返回 null,表示取不到有效值。
EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
// 后端服务的可用区ID
- // 注意:此字段可能返回 null,表示取不到有效值。
ZoneId *uint64 `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
}
+type TargetGroupHealthCheck struct {
+ // 是否开启健康检查。
+ HealthSwitch *bool `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
+
+ // 健康检查方式, 其中仅V2新版目标组类型支持该参数, 支持取值 TCP | HTTP | HTTPS | PING | CUSTOM,其中:
+ // 当目标组后端转发协议为TCP时, 健康检查方式支持 TCP/HTTP/CUSTOM, 默认为TCP。当目标组后端转发协议为UDP时, 健康检查方式支持 PING/CUSTOM,默认为PING。当目标组后端转发协议为HTTP时, 健康检查方式支持 HTTP/TCP, 默认为HTTP。当目标组后端转发协议为HTTPS时, 健康检查方式支持 HTTPS/TCP, 默认为HTTPS。当目标组后端转发协议为GRPC时, 健康检查方式支持GRPC/TCP, 默认为GRPC。
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // 自定义探测相关参数。健康检查端口,默认为后端服务的端口,除非您希望指定特定端口,否则建议留空。(仅适用于TCP/UDP目标组)。
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // 健康检查超时时间。 默认为2秒。 可配置范围:2 - 30秒。
+ Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"`
+
+ // 检测间隔时间。 默认为5秒。 可配置范围:2 - 300秒。
+ GapTime *int64 `json:"GapTime,omitnil,omitempty" name:"GapTime"`
+
+ // 检测健康阈值。 默认为3秒。 可配置范围:2 - 10次。
+ GoodLimit *int64 `json:"GoodLimit,omitnil,omitempty" name:"GoodLimit"`
+
+ // 检测不健康阈值。 默认为3秒。 可配置范围:2 - 10次。
+ BadLimit *int64 `json:"BadLimit,omitnil,omitempty" name:"BadLimit"`
+
+ // 目标组下的所有rs的探测包是否开启巨帧。默认开启。仅GWLB类型目标组支持该参数。
+ JumboFrame *bool `json:"JumboFrame,omitnil,omitempty" name:"JumboFrame"`
+
+ // 健康检查状态码(仅适用于HTTP/HTTPS目标组、TCP目标组的HTTP健康检查方式)。可选值:1~31,默认 31,其中: 1 表示探测后返回值 1xx 代表健康。2 表示返回 2xx 代表健康。4 表示返回 3xx 代表健康。8 表示返回 4xx 代表健康。16 表示返回 5xx 代表健康。若希望多种返回码都可代表健康,则将相应的值相加。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HttpCode *int64 `json:"HttpCode,omitnil,omitempty" name:"HttpCode"`
+
+ // 健康检查域名, 其中:仅适用于HTTP/HTTPS目标组和TCP目标组的HTTP健康检查方式。针对HTTP/HTTPS目标组,当使用HTTP健康检查方式时,该参数为必填项。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HttpCheckDomain *string `json:"HttpCheckDomain,omitnil,omitempty" name:"HttpCheckDomain"`
+
+ // 健康检查路径(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式)。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
+
+ // 健康检查方法(仅适用于HTTP/HTTPS转发规则、TCP监听器的HTTP健康检查方式),默认值:HEAD,可选值HEAD或GET。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HttpCheckMethod *string `json:"HttpCheckMethod,omitnil,omitempty" name:"HttpCheckMethod"`
+
+ // 健康检查的输入格式,健康检查方式取CUSTOM时,必填此字段,可取值:HEX或TEXT,其中:TEXT:文本格式。HEX:十六进制格式, SendContext和RecvContext的字符只能在0123456789ABCDEF中选取且长度必须是偶数位。仅适用于TCP/UDP目标组。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ContextType *string `json:"ContextType,omitnil,omitempty" name:"ContextType"`
+
+ // 自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查发送的请求内容,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ SendContext *string `json:"SendContext,omitnil,omitempty" name:"SendContext"`
+
+ // 自定义探测相关参数。健康检查协议CheckType的值取CUSTOM时,必填此字段,代表健康检查返回的结果,只允许ASCII可见字符,最大长度限制500。(仅适用于TCP/UDP目标组)。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ RecvContext *string `json:"RecvContext,omitnil,omitempty" name:"RecvContext"`
+
+ // HTTP版本, 其中:健康检查协议CheckType的值取HTTP时,必传此字段。支持配置选项:HTTP/1.0, HTTP/1.1。仅适用于TCP目标组。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ HttpVersion *string `json:"HttpVersion,omitnil,omitempty" name:"HttpVersion"`
+
+ // GRPC健康检查状态码(仅适用于后端转发协议为GRPC的目标组)。默认值为 12,可输入值为数值、多个数值、或者范围,例如 20 或 20,25 或 0-99。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ExtendedCode *string `json:"ExtendedCode,omitnil,omitempty" name:"ExtendedCode"`
+}
+
type TargetGroupInfo struct {
// 目标组ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
@@ -9338,7 +9559,7 @@ type TargetGroupInfo struct {
// 目标组的名字
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
- // 目标组的默认端口
+ // 目标组的默认端口,全监听目标组此字段返回0,表示无效端口。
// 注意:此字段可能返回 null,表示取不到有效值。
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
@@ -9352,16 +9573,31 @@ type TargetGroupInfo struct {
// 注意:此字段可能返回 null,表示取不到有效值。
AssociatedRule []*AssociationItem `json:"AssociatedRule,omitnil,omitempty" name:"AssociatedRule"`
- // 目标组类型,当前支持v1(旧版目标组), v2(新版目标组), gwlb(全局负载均衡目标组)。
+ // 目标组后端转发协议, 仅v2新版目标组返回有效值。
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // 调度算法,仅后端转发协议为(HTTP、HTTPS、GRPC)的目标组返回有效值, 可选值:
+ //
+ // WRR:按权重轮询。
+ // LEAST_CONN:最小连接数。
+ // IP_HASH:按IP哈希。
+ //
+ //
+ // 注意:此字段可能返回 null,表示取不到有效值。
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // 健康检查详情。
// 注意:此字段可能返回 null,表示取不到有效值。
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // 目标组类型,当前支持v1(旧版目标组), v2(新版目标组)。默认为v1旧版目标组。
TargetGroupType *string `json:"TargetGroupType,omitnil,omitempty" name:"TargetGroupType"`
// 目标组已关联的规则数。
- // 注意:此字段可能返回 null,表示取不到有效值。
AssociatedRuleCount *int64 `json:"AssociatedRuleCount,omitnil,omitempty" name:"AssociatedRuleCount"`
// 目标组内的实例数量。
- // 注意:此字段可能返回 null,表示取不到有效值。
RegisteredInstancesCount *int64 `json:"RegisteredInstancesCount,omitnil,omitempty" name:"RegisteredInstancesCount"`
// 标签。
@@ -9370,19 +9606,33 @@ type TargetGroupInfo struct {
// 默认权重。只有v2类型目标组返回该字段。当返回为NULL时, 表示未设置默认权重。
// 注意:此字段可能返回 null,表示取不到有效值。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // 是否全监听目标组。
+ FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
+
+ // 是否开启长连接, 仅后端转发协议为HTTP/HTTPS/GRPC目标组返回有效值。
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // 会话保持时间,仅后端转发协议为HTTP/HTTPS/GRPC目标组返回有效值。
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // IP版本。
+ IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
}
type TargetGroupInstance struct {
// 目标组实例的内网IP
BindIP *string `json:"BindIP,omitnil,omitempty" name:"BindIP"`
- // 目标组实例的端口
+ // 目标组实例的端口,全监听目标组不支持传此字段。
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// 目标组实例的权重
+ // v2目标组需要配置权重,调用CreateTargetGroup接口创建目标组时该参数与创建接口中的Weight参数必填其一。
+ // 取值范围:0-100
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
- // 目标组实例的新端口
+ // 目标组实例的新端口,全监听目标组不支持传此字段。
NewPort *uint64 `json:"NewPort,omitnil,omitempty" name:"NewPort"`
}
@@ -9408,8 +9658,10 @@ type TargetHealth struct {
HealthStatusDetial *string `json:"HealthStatusDetial,omitnil,omitempty" name:"HealthStatusDetial"`
// 目标组唯一ID。
- // 注意:此字段可能返回 null,表示取不到有效值。
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Target的权重。
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type TargetRegionInfo struct {
@@ -9418,41 +9670,36 @@ type TargetRegionInfo struct {
// Target所属网络,私有网络格式如 vpc-abcd1234,如果是基础网络,则为"0"
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Target所属网络,私有网络格式如86323,如果是基础网络,则为0
+ NumericalVpcId *int64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
}
type TypeInfo struct {
// 运营商类型
- // 注意:此字段可能返回 null,表示取不到有效值。
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// 规格可用性
- // 注意:此字段可能返回 null,表示取不到有效值。
SpecAvailabilitySet []*SpecAvailability `json:"SpecAvailabilitySet,omitnil,omitempty" name:"SpecAvailabilitySet"`
}
type ZoneInfo struct {
// 可用区数值形式的唯一ID,如:100001
- // 注意:此字段可能返回 null,表示取不到有效值。
ZoneId *uint64 `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// 可用区字符串形式的唯一ID,如:ap-guangzhou-1
- // 注意:此字段可能返回 null,表示取不到有效值。
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 可用区名称,如:广州一区
- // 注意:此字段可能返回 null,表示取不到有效值。
ZoneName *string `json:"ZoneName,omitnil,omitempty" name:"ZoneName"`
// 可用区所属地域,如:ap-guangzhou
- // 注意:此字段可能返回 null,表示取不到有效值。
ZoneRegion *string `json:"ZoneRegion,omitnil,omitempty" name:"ZoneRegion"`
// 可用区是否是LocalZone可用区,如:false
- // 注意:此字段可能返回 null,表示取不到有效值。
LocalZone *bool `json:"LocalZone,omitnil,omitempty" name:"LocalZone"`
// 可用区是否是EdgeZone可用区,如:false
- // 注意:此字段可能返回 null,表示取不到有效值。
EdgeZone *bool `json:"EdgeZone,omitnil,omitempty" name:"EdgeZone"`
}
@@ -9461,7 +9708,6 @@ type ZoneResource struct {
MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// 资源列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
ResourceSet []*Resource `json:"ResourceSet,omitnil,omitempty" name:"ResourceSet"`
// 备可用区,如"ap-guangzhou-2",单可用区时,备可用区为null。
@@ -9484,6 +9730,5 @@ type ZoneResource struct {
EdgeZone *bool `json:"EdgeZone,omitnil,omitempty" name:"EdgeZone"`
// 网络出口
- // 注意:此字段可能返回 null,表示取不到有效值。
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
}
\ No newline at end of file
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
index fa3020254f..ce0636d615 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
@@ -265,7 +265,11 @@ func CompleteCommonParams(request Request, region string, requestClient string)
params["Action"] = request.GetAction()
params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10)
params["Nonce"] = strconv.Itoa(rand.Int())
+<<<<<<< HEAD
params["RequestClient"] = "SDK_GO_1.3.4"
+=======
+ params["RequestClient"] = "SDK_GO_1.1.55"
+>>>>>>> 2e9465052 (add)
if requestClient != "" {
params["RequestClient"] += ": " + requestClient
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index c68dabb13a..7f4ea6ad1f 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -1161,7 +1161,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ciam/v20220331
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.1073
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka/v20190819
-# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1107
+# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033
@@ -1170,7 +1170,11 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016
+<<<<<<< HEAD
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4
+=======
+# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55
+>>>>>>> 2e9465052 (add)
## explicit; go 1.11
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors
From d34ccd44e639b6cb22e72ec53aaa130811c4dd55 Mon Sep 17 00:00:00 2001
From: SevenEarth <391613297@qq.com>
Date: Wed, 3 Dec 2025 15:13:43 +0800
Subject: [PATCH 2/3] add
---
go.mod | 6 +-
go.sum | 9 +
tencentcloud/connectivity/client.go | 21 +
...rce_tc_clb_customized_config_attachment.go | 34 +-
.../resource_tc_clb_customized_config_v2.go | 20 +-
.../services/clb/service_tencentcloud_clb.go | 40 +
.../tencentcloud/clb/v20180317/client.go | 6270 +++++++++++
.../tencentcloud/clb/v20180317/errors.go | 136 +
.../tencentcloud/clb/v20180317/models.go | 9592 +++++++++++++++++
.../tencentcloud/common/client.go | 83 +-
.../common/cvm_role_credential.go | 23 +-
.../tencentcloud/common/http/request.go | 2 +-
.../common/role_arn_credential.go | 25 +-
.../tencentcloud/common/role_arn_provider.go | 7 +-
.../tencentcloud/common/sign.go | 5 +-
.../tencentcloud/cvm/v20170312/client.go | 703 +-
.../tencentcloud/cvm/v20170312/errors.go | 131 +-
.../tencentcloud/cvm/v20170312/models.go | 815 +-
.../tencentcloud/mdl/v20200326/client.go | 35 +-
.../tencentcloud/mdl/v20200326/errors.go | 4 +-
.../tencentcloud/mdl/v20200326/models.go | 156 +-
.../privatedns/v20201028/client.go | 33 +-
.../privatedns/v20201028/errors.go | 8 +-
.../privatedns/v20201028/models.go | 2 +-
.../tencentcloud/clb/v20180317/models.go | 26 +-
.../tencentcloud/common/http/request.go | 4 +
vendor/modules.txt | 9 +-
website/docs/r/clb_listener.html.markdown | 5 +
28 files changed, 17912 insertions(+), 292 deletions(-)
create mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/client.go
create mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/errors.go
create mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/models.go
diff --git a/go.mod b/go.mod
index 3fdc03fd40..bdafc45b6e 100644
--- a/go.mod
+++ b/go.mod
@@ -25,7 +25,7 @@ require (
github.com/mozillazg/go-httpheader v0.4.0 // indirect
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.8.2
- github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1214+incompatible
+ github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1315+incompatible
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/antiddos v1.0.799
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/api v1.0.285
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apigateway v1.0.763
@@ -43,10 +43,10 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/chdfs v1.0.600
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ciam v1.0.695
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.1073
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.2.2
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148
- github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55
+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.2.2
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.1206
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.1.52
diff --git a/go.sum b/go.sum
index 601c7e2b3a..9bc8f570a8 100644
--- a/go.sum
+++ b/go.sum
@@ -819,6 +819,8 @@ github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9
github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1214+incompatible h1:2pQ01ULc1d4WxNxwSR2qglNLA4xzB5ipffJ48fytTcg=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1214+incompatible/go.mod h1:72Wo6Gt6F8d8V+njrAmduVoT9QjPwCyXktpqCWr7PUc=
+github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1315+incompatible h1:0+ZyR+YwPhcfCANvKvlqkZF4DTBC6DeecaEWn72E7oI=
+github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1315+incompatible/go.mod h1:72Wo6Gt6F8d8V+njrAmduVoT9QjPwCyXktpqCWr7PUc=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/antiddos v1.0.799 h1:u49r1bGFDY0CeAF46iotNnLtc5yplPf9XXa7W7zJ4fE=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/antiddos v1.0.799/go.mod h1:JQa/Ess7Kkn/BuAugq0Tt5GJR7ZQAY47ypP9LjEn/DE=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/api v1.0.285 h1:gFmukRGLtYiXVBVvg/5DP/0fM1+dKpwDjT+khtDVLmc=
@@ -865,6 +867,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1107 h1:sUiyGf
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1107/go.mod h1:L1r6mc7XjFlyLlOVqRvPEhjXneHywnyjyv9EoiGBRvM=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55 h1:+Ev7tV+pjE/RZqHiopmYPKChF30OjRGn6KS8ubBByq8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55/go.mod h1:EL80jbu+ubwrNnTZHsp+jaWat2fKGkS/B9MYB/42exA=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.2.2 h1:mDg1SYAFF3tiDRFnFDGguCR2Kq35udG07nHa52uTYX0=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.2.2/go.mod h1:59a8Y11O2Hqa9cS3mMpsLbTgQsu6+PpOu+ZYWTEtVDE=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033 h1:dIr+MVsZeUBiKZELfJh5HRJdI+BI6lCp5pv/2oXekuk=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033/go.mod h1:7oFlNimGSTHFy6JV7W/IZKuJWr+NUjCnGLTvb9MWNrY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148 h1:tPQHJE07DGCJWrQJklrkrF0CasB86M7AEb0PrkXNjAM=
@@ -945,7 +949,12 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4/go.mod h1
=======
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55 h1:8kT5ktFibG46S7WImjNkHx6N5b6vNFIVxPuj6rDMgb8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
+<<<<<<< HEAD
>>>>>>> 2e9465052 (add)
+=======
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.2.2 h1:IqDivO9t4+39+YWlFXhK7kJPm/FbLAD1FbhoaGbDSx8=
+github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.2.2/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
+>>>>>>> 45ea86ea7 (add)
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993 h1:WlPgXldQCxt7qi5Xrc6j6zTrsXWzN5BcOGs7Irq7fwQ=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993/go.mod h1:Z9U8zNtyuyKhjS0698wqsrG/kLx1TQ5CEixXBwVe7xY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU=
diff --git a/tencentcloud/connectivity/client.go b/tencentcloud/connectivity/client.go
index 7d3f1d21e0..6ddaef5cf5 100644
--- a/tencentcloud/connectivity/client.go
+++ b/tencentcloud/connectivity/client.go
@@ -14,6 +14,7 @@ import (
"github.com/aws/aws-sdk-go/aws/endpoints"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
+ clbintl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317"
intlProfile "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/profile"
cvmintl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312"
mdl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326"
@@ -138,6 +139,7 @@ type TencentCloudClient struct {
cvmv20170312Conn *cvmv20170312.Client
cvmIntlConn *cvmintl.Client
clbConn *clb.Client
+ clbIntlConn *clbintl.Client
dayuConn *dayu.Client
dcConn *dc.Client
tagConn *tag.Client
@@ -583,6 +585,25 @@ func (me *TencentCloudClient) UseClbClient(iacExtInfo ...IacExtInfo) *clb.Client
return me.clbConn
}
+// UseClbClient returns clb Intl client for service
+func (me *TencentCloudClient) UseClbIntlClient(iacExtInfo ...IacExtInfo) *clbintl.Client {
+ var logRoundTripper LogRoundTripper
+ if len(iacExtInfo) != 0 {
+ logRoundTripper.InstanceId = iacExtInfo[0].InstanceId
+ }
+
+ if me.clbIntlConn != nil {
+ me.clbIntlConn.WithHttpTransport(&logRoundTripper)
+ return me.clbIntlConn
+ }
+
+ cpf := me.NewClientIntlProfile(300)
+ me.clbIntlConn, _ = clbintl.NewClient(me.Credential, me.Region, cpf)
+ me.clbIntlConn.WithHttpTransport(&logRoundTripper)
+
+ return me.clbIntlConn
+}
+
// UseCvmClient returns cvm client for service
func (me *TencentCloudClient) UseCvmClient(iacExtInfo ...IacExtInfo) *cvmv20170312.Client {
var logRoundTripper LogRoundTripper
diff --git a/tencentcloud/services/clb/resource_tc_clb_customized_config_attachment.go b/tencentcloud/services/clb/resource_tc_clb_customized_config_attachment.go
index 91b6327fe4..6a1d6e6f80 100644
--- a/tencentcloud/services/clb/resource_tc_clb_customized_config_attachment.go
+++ b/tencentcloud/services/clb/resource_tc_clb_customized_config_attachment.go
@@ -8,11 +8,11 @@ import (
"github.com/pkg/errors"
tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common"
+ clbintl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317"
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
- clb "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317"
)
func ResourceTencentCloudClbCustomizedConfigAttachment() *schema.Resource {
@@ -69,7 +69,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentCreate(d *schema.ResourceD
var (
logId = tccommon.GetLogId(tccommon.ContextNil)
- request = clb.NewAssociateCustomizedConfigRequest()
+ request = clbintl.NewAssociateCustomizedConfigRequest()
configId string
)
@@ -80,7 +80,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentCreate(d *schema.ResourceD
if v, ok := d.GetOk("bind_list"); ok {
for _, item := range v.(*schema.Set).List() {
- bindItem := clb.BindItem{}
+ bindItem := clbintl.BindItem{}
dMap := item.(map[string]interface{})
if v, ok := dMap["load_balancer_id"]; ok {
bindItem.LoadBalancerId = helper.String(v.(string))
@@ -103,7 +103,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentCreate(d *schema.ResourceD
}
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
- result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().AssociateCustomizedConfig(request)
+ result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient().AssociateCustomizedConfig(request)
if e != nil {
return tccommon.RetryError(e)
} else {
@@ -113,7 +113,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentCreate(d *schema.ResourceD
}
requestId := *result.Response.RequestId
- retryErr := waitForTaskFinish(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient())
+ retryErr := waitForTaskFinishIntl(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient())
if retryErr != nil {
return tccommon.RetryError(errors.WithStack(retryErr))
}
@@ -196,9 +196,9 @@ func resourceTencentCloudClbCustomizedConfigAttachmentUpdate(d *schema.ResourceD
remove := olds.Difference(news).List()
add := news.Difference(olds).List()
if len(remove) > 0 {
- request := clb.NewDisassociateCustomizedConfigRequest()
+ request := clbintl.NewDisassociateCustomizedConfigRequest()
for _, item := range remove {
- bindItem := clb.BindItem{}
+ bindItem := clbintl.BindItem{}
dMap := item.(map[string]interface{})
if v, ok := dMap["load_balancer_id"]; ok {
bindItem.LoadBalancerId = helper.String(v.(string))
@@ -221,7 +221,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentUpdate(d *schema.ResourceD
request.UconfigId = helper.String(id)
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
- result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().DisassociateCustomizedConfig(request)
+ result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient().DisassociateCustomizedConfig(request)
if e != nil {
return tccommon.RetryError(e)
} else {
@@ -231,7 +231,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentUpdate(d *schema.ResourceD
}
requestId := *result.Response.RequestId
- retryErr := waitForTaskFinish(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient())
+ retryErr := waitForTaskFinishIntl(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient())
if retryErr != nil {
return tccommon.RetryError(errors.WithStack(retryErr))
}
@@ -247,10 +247,10 @@ func resourceTencentCloudClbCustomizedConfigAttachmentUpdate(d *schema.ResourceD
}
if len(add) > 0 {
- request := clb.NewAssociateCustomizedConfigRequest()
+ request := clbintl.NewAssociateCustomizedConfigRequest()
request.UconfigId = helper.String(id)
for _, item := range add {
- bindItem := clb.BindItem{}
+ bindItem := clbintl.BindItem{}
dMap := item.(map[string]interface{})
if v, ok := dMap["load_balancer_id"]; ok {
bindItem.LoadBalancerId = helper.String(v.(string))
@@ -272,7 +272,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentUpdate(d *schema.ResourceD
}
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
- result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().AssociateCustomizedConfig(request)
+ result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient().AssociateCustomizedConfig(request)
if e != nil {
return tccommon.RetryError(e)
} else {
@@ -282,7 +282,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentUpdate(d *schema.ResourceD
}
requestId := *result.Response.RequestId
- retryErr := waitForTaskFinish(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient())
+ retryErr := waitForTaskFinishIntl(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient())
if retryErr != nil {
return tccommon.RetryError(errors.WithStack(retryErr))
}
@@ -306,14 +306,14 @@ func resourceTencentCloudClbCustomizedConfigAttachmentDelete(d *schema.ResourceD
var (
logId = tccommon.GetLogId(tccommon.ContextNil)
- request = clb.NewDisassociateCustomizedConfigRequest()
+ request = clbintl.NewDisassociateCustomizedConfigRequest()
id = d.Id()
)
request.UconfigId = helper.String(id)
if v, ok := d.GetOk("bind_list"); ok {
for _, item := range v.(*schema.Set).List() {
- bindItem := clb.BindItem{}
+ bindItem := clbintl.BindItem{}
dMap := item.(map[string]interface{})
if v, ok := dMap["load_balancer_id"]; ok {
bindItem.LoadBalancerId = helper.String(v.(string))
@@ -336,7 +336,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentDelete(d *schema.ResourceD
}
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
- result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().DisassociateCustomizedConfig(request)
+ result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient().DisassociateCustomizedConfig(request)
if e != nil {
return tccommon.RetryError(e)
} else {
@@ -346,7 +346,7 @@ func resourceTencentCloudClbCustomizedConfigAttachmentDelete(d *schema.ResourceD
}
requestId := *result.Response.RequestId
- retryErr := waitForTaskFinish(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient())
+ retryErr := waitForTaskFinishIntl(requestId, meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient())
if retryErr != nil {
return tccommon.RetryError(errors.WithStack(retryErr))
}
diff --git a/tencentcloud/services/clb/resource_tc_clb_customized_config_v2.go b/tencentcloud/services/clb/resource_tc_clb_customized_config_v2.go
index c21668a626..ae1447f403 100644
--- a/tencentcloud/services/clb/resource_tc_clb_customized_config_v2.go
+++ b/tencentcloud/services/clb/resource_tc_clb_customized_config_v2.go
@@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/pkg/errors"
- clb "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317"
+ clbintl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317"
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
)
@@ -70,8 +70,8 @@ func resourceTencentCloudClbCustomizedConfigV2Create(d *schema.ResourceData, met
var (
logId = tccommon.GetLogId(tccommon.ContextNil)
- request = clb.NewAddCustomizedConfigRequest()
- response = clb.NewAddCustomizedConfigResponse()
+ request = clbintl.NewAddCustomizedConfigRequest()
+ response = clbintl.NewAddCustomizedConfigResponse()
)
configType := d.Get("config_type").(string)
@@ -81,7 +81,7 @@ func resourceTencentCloudClbCustomizedConfigV2Create(d *schema.ResourceData, met
request.ConfigContent = helper.String(d.Get("config_content").(string))
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
- result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().AddCustomizedConfig(request)
+ result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient().AddCustomizedConfig(request)
if e != nil {
return tccommon.RetryError(e)
} else {
@@ -135,9 +135,9 @@ func resourceTencentCloudClbCustomizedConfigV2Read(d *schema.ResourceData, meta
configId := idSplit[0]
configType := idSplit[1]
- var config *clb.ConfigListItem
+ var config *clbintl.ConfigListItem
err := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError {
- result, e := clbService.DescribeLbCustomizedConfigById(ctx, configId, configType)
+ result, e := clbService.DescribeLbIntlCustomizedConfigById(ctx, configId, configType)
if e != nil {
return tccommon.RetryError(e)
}
@@ -183,7 +183,7 @@ func resourceTencentCloudClbCustomizedConfigV2Update(d *schema.ResourceData, met
d.Partial(true)
if d.HasChange("config_name") || d.HasChange("config_content") {
- request := clb.NewModifyCustomizedConfigRequest()
+ request := clbintl.NewModifyCustomizedConfigRequest()
request.UconfigId = &configId
configName := d.Get("config_name").(string)
configContent := d.Get("config_content").(string)
@@ -191,7 +191,7 @@ func resourceTencentCloudClbCustomizedConfigV2Update(d *schema.ResourceData, met
request.ConfigContent = &configContent
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
- result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().ModifyCustomizedConfig(request)
+ result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient().ModifyCustomizedConfig(request)
if e != nil {
return tccommon.RetryError(e)
} else {
@@ -224,7 +224,7 @@ func resourceTencentCloudClbCustomizedConfigV2Delete(d *schema.ResourceData, met
var (
logId = tccommon.GetLogId(tccommon.ContextNil)
- request = clb.NewDeleteCustomizedConfigRequest()
+ request = clbintl.NewDeleteCustomizedConfigRequest()
)
idSplit := strings.Split(d.Id(), tccommon.FILED_SP)
@@ -236,7 +236,7 @@ func resourceTencentCloudClbCustomizedConfigV2Delete(d *schema.ResourceData, met
request.UconfigIdList = []*string{&configId}
err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
- result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbClient().DeleteCustomizedConfig(request)
+ result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseClbIntlClient().DeleteCustomizedConfig(request)
if e != nil {
return tccommon.RetryError(e)
} else {
diff --git a/tencentcloud/services/clb/service_tencentcloud_clb.go b/tencentcloud/services/clb/service_tencentcloud_clb.go
index 48fe9229ed..b9c436a68f 100644
--- a/tencentcloud/services/clb/service_tencentcloud_clb.go
+++ b/tencentcloud/services/clb/service_tencentcloud_clb.go
@@ -14,6 +14,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/pkg/errors"
+ clbintl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317"
clb "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
sdkErrors "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
@@ -1161,6 +1162,24 @@ func waitForTaskFinish(requestId string, meta *clb.Client) (err error) {
return
}
+func waitForTaskFinishIntl(requestId string, meta *clbintl.Client) (err error) {
+ taskQueryRequest := clbintl.NewDescribeTaskStatusRequest()
+ taskQueryRequest.TaskId = &requestId
+ err = resource.Retry(4*tccommon.ReadRetryTimeout, func() *resource.RetryError {
+ taskResponse, e := meta.DescribeTaskStatus(taskQueryRequest)
+ if e != nil {
+ return resource.NonRetryableError(errors.WithStack(e))
+ }
+ if *taskResponse.Response.Status == int64(CLB_TASK_EXPANDING) {
+ return resource.RetryableError(errors.WithStack(fmt.Errorf("CLB task status is %d(expanding), requestId is %s", *taskResponse.Response.Status, *taskResponse.Response.RequestId)))
+ } else if *taskResponse.Response.Status == int64(CLB_TASK_FAIL) {
+ return resource.NonRetryableError(errors.WithStack(fmt.Errorf("CLB task status is %d(failed), requestId is %s", *taskResponse.Response.Status, *taskResponse.Response.RequestId)))
+ }
+ return nil
+ })
+ return
+}
+
func waitForTaskFinishGetID(requestId string, meta *clb.Client) (clbID string, err error) {
request := clb.NewDescribeTaskStatusRequest()
request.TaskId = &requestId
@@ -1796,6 +1815,27 @@ func (me *ClbService) DescribeLbCustomizedConfigById(ctx context.Context, config
return
}
+func (me *ClbService) DescribeLbIntlCustomizedConfigById(ctx context.Context, configId, configType string) (customizedConfig *clbintl.ConfigListItem, errRet error) {
+ logId := tccommon.GetLogId(ctx)
+ request := clbintl.NewDescribeCustomizedConfigListRequest()
+ request.UconfigIds = []*string{&configId}
+ request.ConfigType = helper.String(configType)
+ ratelimit.Check(request.GetAction())
+ response, err := me.client.UseClbIntlClient().DescribeCustomizedConfigList(request)
+ if err != nil {
+ errRet = errors.WithStack(err)
+ return
+ }
+ log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n",
+ logId, request.GetAction(), request.ToJsonString(), response.ToJsonString())
+
+ if len(response.Response.ConfigList) < 1 {
+ return
+ }
+ customizedConfig = response.Response.ConfigList[0]
+ return
+}
+
func (me *ClbService) DeleteLbCustomizedConfigById(ctx context.Context, configId string) (errRet error) {
logId := tccommon.GetLogId(ctx)
request := clb.NewSetCustomizedConfigForLoadBalancerRequest()
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/client.go
new file mode 100644
index 0000000000..cbceaee87d
--- /dev/null
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/client.go
@@ -0,0 +1,6270 @@
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package v20180317
+
+import (
+ "context"
+ "errors"
+ "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common"
+ tchttp "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http"
+ "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/profile"
+)
+
+const APIVersion = "2018-03-17"
+
+type Client struct {
+ common.Client
+}
+
+// Deprecated
+func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
+ cpf := profile.NewClientProfile()
+ client = &Client{}
+ client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
+ return
+}
+
+func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
+ client = &Client{}
+ client.Init(region).
+ WithCredential(credential).
+ WithProfile(clientProfile)
+ return
+}
+
+
+func NewAddCustomizedConfigRequest() (request *AddCustomizedConfigRequest) {
+ request = &AddCustomizedConfigRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "AddCustomizedConfig")
+
+
+ return
+}
+
+func NewAddCustomizedConfigResponse() (response *AddCustomizedConfigResponse) {
+ response = &AddCustomizedConfigResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// AddCustomizedConfig
+// This API is used to add new personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AddCustomizedConfig(request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error) {
+ return c.AddCustomizedConfigWithContext(context.Background(), request)
+}
+
+// AddCustomizedConfig
+// This API is used to add new personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AddCustomizedConfigWithContext(ctx context.Context, request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error) {
+ if request == nil {
+ request = NewAddCustomizedConfigRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "AddCustomizedConfig")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("AddCustomizedConfig require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewAddCustomizedConfigResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewAssociateCustomizedConfigRequest() (request *AssociateCustomizedConfigRequest) {
+ request = &AssociateCustomizedConfigRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "AssociateCustomizedConfig")
+
+
+ return
+}
+
+func NewAssociateCustomizedConfigResponse() (response *AssociateCustomizedConfigResponse) {
+ response = &AssociateCustomizedConfigResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// AssociateCustomizedConfig
+// This API is used to associate configurations with a server or location based on the configuration type. It is preparing for decommissioning, please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AssociateCustomizedConfig(request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error) {
+ return c.AssociateCustomizedConfigWithContext(context.Background(), request)
+}
+
+// AssociateCustomizedConfig
+// This API is used to associate configurations with a server or location based on the configuration type. It is preparing for decommissioning, please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AssociateCustomizedConfigWithContext(ctx context.Context, request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error) {
+ if request == nil {
+ request = NewAssociateCustomizedConfigRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "AssociateCustomizedConfig")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("AssociateCustomizedConfig require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewAssociateCustomizedConfigResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewAssociateTargetGroupsRequest() (request *AssociateTargetGroupsRequest) {
+ request = &AssociateTargetGroupsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "AssociateTargetGroups")
+
+
+ return
+}
+
+func NewAssociateTargetGroupsResponse() (response *AssociateTargetGroupsResponse) {
+ response = &AssociateTargetGroupsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// AssociateTargetGroups
+// This API is used to bind target groups to Cloud Load Balancer listeners (Layer-4 protocol) or forwarding rules (L7 protocol).
+//
+// This API is asynchronous. After it returns a successful result, you need to call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as input parameter to check whether this task is successful.
+//
+// This API is used to describe restrictions.
+//
+// -Binding a legacy version target group to a Layer-4 listener requires the listener to have backend target groups enabled.
+//
+// -Layer-7 bind target group. LocationId is a required item in the data structure TargetGroupAssociation.
+//
+// -The VPC of the Cloud Load Balancer must match the VPC of the target group.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error) {
+ return c.AssociateTargetGroupsWithContext(context.Background(), request)
+}
+
+// AssociateTargetGroups
+// This API is used to bind target groups to Cloud Load Balancer listeners (Layer-4 protocol) or forwarding rules (L7 protocol).
+//
+// This API is asynchronous. After it returns a successful result, you need to call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as input parameter to check whether this task is successful.
+//
+// This API is used to describe restrictions.
+//
+// -Binding a legacy version target group to a Layer-4 listener requires the listener to have backend target groups enabled.
+//
+// -Layer-7 bind target group. LocationId is a required item in the data structure TargetGroupAssociation.
+//
+// -The VPC of the Cloud Load Balancer must match the VPC of the target group.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AssociateTargetGroupsWithContext(ctx context.Context, request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error) {
+ if request == nil {
+ request = NewAssociateTargetGroupsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "AssociateTargetGroups")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("AssociateTargetGroups require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewAssociateTargetGroupsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewAutoRewriteRequest() (request *AutoRewriteRequest) {
+ request = &AutoRewriteRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "AutoRewrite")
+
+
+ return
+}
+
+func NewAutoRewriteResponse() (response *AutoRewriteResponse) {
+ response = &AutoRewriteResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// AutoRewrite
+// An HTTPS:443 listener needs to be created first, along with a forwarding rule. When this API is called, an HTTP:80 listener will be created automatically if it did not exist and a forwarding rule corresponding to `Domains` (specified in the input parameter) under the HTTPS:443 listener will also be created. After successful creation, access requests to an HTTP:80 address will be redirected to an HTTPS:443 address automatically.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AutoRewrite(request *AutoRewriteRequest) (response *AutoRewriteResponse, err error) {
+ return c.AutoRewriteWithContext(context.Background(), request)
+}
+
+// AutoRewrite
+// An HTTPS:443 listener needs to be created first, along with a forwarding rule. When this API is called, an HTTP:80 listener will be created automatically if it did not exist and a forwarding rule corresponding to `Domains` (specified in the input parameter) under the HTTPS:443 listener will also be created. After successful creation, access requests to an HTTP:80 address will be redirected to an HTTPS:443 address automatically.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) AutoRewriteWithContext(ctx context.Context, request *AutoRewriteRequest) (response *AutoRewriteResponse, err error) {
+ if request == nil {
+ request = NewAutoRewriteRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "AutoRewrite")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("AutoRewrite require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewAutoRewriteResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewBatchDeregisterTargetsRequest() (request *BatchDeregisterTargetsRequest) {
+ request = &BatchDeregisterTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "BatchDeregisterTargets")
+
+
+ return
+}
+
+func NewBatchDeregisterTargetsResponse() (response *BatchDeregisterTargetsResponse) {
+ response = &BatchDeregisterTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// BatchDeregisterTargets
+// This API is used to batch unbind real servers of the layer-4 and layer-7 VPC-based CLBs. Up to 500 real servers can be unbound in a batch.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchDeregisterTargets(request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error) {
+ return c.BatchDeregisterTargetsWithContext(context.Background(), request)
+}
+
+// BatchDeregisterTargets
+// This API is used to batch unbind real servers of the layer-4 and layer-7 VPC-based CLBs. Up to 500 real servers can be unbound in a batch.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchDeregisterTargetsWithContext(ctx context.Context, request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error) {
+ if request == nil {
+ request = NewBatchDeregisterTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchDeregisterTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("BatchDeregisterTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewBatchDeregisterTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewBatchModifyTargetTagRequest() (request *BatchModifyTargetTagRequest) {
+ request = &BatchModifyTargetTagRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "BatchModifyTargetTag")
+
+
+ return
+}
+
+func NewBatchModifyTargetTagResponse() (response *BatchModifyTargetTagResponse) {
+ response = &BatchModifyTargetTagResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// BatchModifyTargetTag
+// This API is used to modify the tags of real servers bound to CLB listeners in batches. The maximum number of resources that can be modified in a batch is 500. This is a synchronous API.
It is supported for Layer-4 and Layer-7 listeners of CLB instances, but not for classic CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchModifyTargetTag(request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error) {
+ return c.BatchModifyTargetTagWithContext(context.Background(), request)
+}
+
+// BatchModifyTargetTag
+// This API is used to modify the tags of real servers bound to CLB listeners in batches. The maximum number of resources that can be modified in a batch is 500. This is a synchronous API.
It is supported for Layer-4 and Layer-7 listeners of CLB instances, but not for classic CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchModifyTargetTagWithContext(ctx context.Context, request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error) {
+ if request == nil {
+ request = NewBatchModifyTargetTagRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchModifyTargetTag")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("BatchModifyTargetTag require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewBatchModifyTargetTagResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewBatchModifyTargetWeightRequest() (request *BatchModifyTargetWeightRequest) {
+ request = &BatchModifyTargetWeightRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "BatchModifyTargetWeight")
+
+
+ return
+}
+
+func NewBatchModifyTargetWeightResponse() (response *BatchModifyTargetWeightResponse) {
+ response = &BatchModifyTargetWeightResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// BatchModifyTargetWeight
+// The BatchModifyTargetWeight API is used to batch modify the forwarding weight of backend machines bound to a CLB listener. The maximum resource quantity for batch modification is 500. This is an asynchronous API. After it returns a successful result, you need to call the DescribeTaskStatus API with the returned RequestID as input parameter to check whether this task is successful. This API supports both layer-4 and layer-7 CLB listeners but is unsupported for classic CLB.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchModifyTargetWeight(request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error) {
+ return c.BatchModifyTargetWeightWithContext(context.Background(), request)
+}
+
+// BatchModifyTargetWeight
+// The BatchModifyTargetWeight API is used to batch modify the forwarding weight of backend machines bound to a CLB listener. The maximum resource quantity for batch modification is 500. This is an asynchronous API. After it returns a successful result, you need to call the DescribeTaskStatus API with the returned RequestID as input parameter to check whether this task is successful. This API supports both layer-4 and layer-7 CLB listeners but is unsupported for classic CLB.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchModifyTargetWeightWithContext(ctx context.Context, request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error) {
+ if request == nil {
+ request = NewBatchModifyTargetWeightRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchModifyTargetWeight")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("BatchModifyTargetWeight require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewBatchModifyTargetWeightResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewBatchRegisterTargetsRequest() (request *BatchRegisterTargetsRequest) {
+ request = &BatchRegisterTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "BatchRegisterTargets")
+
+
+ return
+}
+
+func NewBatchRegisterTargetsResponse() (response *BatchRegisterTargetsResponse) {
+ response = &BatchRegisterTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// BatchRegisterTargets
+// This API is used to batch bind CVM instances or ENIs. Up to 500 servers can be bound in a batch. It supports cross-region binding, layer-4 and layer-7 (TCP/UDP/HTTP/HTTPS) protocols, and VPC-based CLBs only.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchRegisterTargets(request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error) {
+ return c.BatchRegisterTargetsWithContext(context.Background(), request)
+}
+
+// BatchRegisterTargets
+// This API is used to batch bind CVM instances or ENIs. Up to 500 servers can be bound in a batch. It supports cross-region binding, layer-4 and layer-7 (TCP/UDP/HTTP/HTTPS) protocols, and VPC-based CLBs only.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) BatchRegisterTargetsWithContext(ctx context.Context, request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error) {
+ if request == nil {
+ request = NewBatchRegisterTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "BatchRegisterTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("BatchRegisterTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewBatchRegisterTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCloneLoadBalancerRequest() (request *CloneLoadBalancerRequest) {
+ request = &CloneLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CloneLoadBalancer")
+
+
+ return
+}
+
+func NewCloneLoadBalancerResponse() (response *CloneLoadBalancerResponse) {
+ response = &CloneLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CloneLoadBalancer
+// This API is used to clone a load balancing instance with identical rules and binding relationships based on the designated Cloud Load Balancer. The cloning process is an asynchronous operation. The cloned data is based on the status when calling CloneLoadBalancer. If the source CLB changes after calling CloneLoadBalancer, the change rules will not be cloned.
+//
+//
+//
+// Note: The instance creation status can be queried based on the returned requestId by accessing the DescribeTaskStatus API (https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1).
+//
+//
+//
+// This API is used to describe restriction descriptions.
+//
+// This API is used to set instance attribute restrictions.
+//
+// -The cloning feature supports both pay-as-you-go and monthly subscription instances. For cloned monthly subscription instances, the new instance's network billing mode switches to billing by hourly bandwidth, with its bandwidth and specifications remaining consistent with the settings of the original instance.
+//
+// -CLB instances not associated with billable items cannot be cloned (historic free activity creation).
+//
+// -Classic CLB instances and Anti-DDoS CLBs cannot be cloned.
+//
+// -Cloning of classic network-based instances is not supported.
+//
+// -Anycast instances cannot be cloned.
+//
+// -IPv6 NAT64 edition instances cannot be cloned.
+//
+// -Blocked or frozen instances cannot be cloned.
+//
+// -Before performing the cloning operation, make sure that all certificates used on the instance have not expired, otherwise cloning will fail.
+//
+// This API is used to set quota dimension restrictions.
+//
+// -Cloning is not supported when the number of instance listeners exceeds 50.
+//
+// -Cloning is not supported when the public network bandwidth cap of a shared instance exceeds 2G.
+//
+//
+//
+// This API is used to call APIs.
+//
+// This API is used to specify the BGP bandwidth package ID.
+//
+// This API is used to perform exclusive cluster cloning with corresponding parameters, otherwise shared instance creation will be used.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// DRYRUNOPERATION = "DryRunOperation"
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// OPERATIONDENIED = "OperationDenied"
+// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
+// RESOURCEINUSE = "ResourceInUse"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// RESOURCESSOLDOUT = "ResourcesSoldOut"
+func (c *Client) CloneLoadBalancer(request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error) {
+ return c.CloneLoadBalancerWithContext(context.Background(), request)
+}
+
+// CloneLoadBalancer
+// This API is used to clone a load balancing instance with identical rules and binding relationships based on the designated Cloud Load Balancer. The cloning process is an asynchronous operation. The cloned data is based on the status when calling CloneLoadBalancer. If the source CLB changes after calling CloneLoadBalancer, the change rules will not be cloned.
+//
+//
+//
+// Note: The instance creation status can be queried based on the returned requestId by accessing the DescribeTaskStatus API (https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1).
+//
+//
+//
+// This API is used to describe restriction descriptions.
+//
+// This API is used to set instance attribute restrictions.
+//
+// -The cloning feature supports both pay-as-you-go and monthly subscription instances. For cloned monthly subscription instances, the new instance's network billing mode switches to billing by hourly bandwidth, with its bandwidth and specifications remaining consistent with the settings of the original instance.
+//
+// -CLB instances not associated with billable items cannot be cloned (historic free activity creation).
+//
+// -Classic CLB instances and Anti-DDoS CLBs cannot be cloned.
+//
+// -Cloning of classic network-based instances is not supported.
+//
+// -Anycast instances cannot be cloned.
+//
+// -IPv6 NAT64 edition instances cannot be cloned.
+//
+// -Blocked or frozen instances cannot be cloned.
+//
+// -Before performing the cloning operation, make sure that all certificates used on the instance have not expired, otherwise cloning will fail.
+//
+// This API is used to set quota dimension restrictions.
+//
+// -Cloning is not supported when the number of instance listeners exceeds 50.
+//
+// -Cloning is not supported when the public network bandwidth cap of a shared instance exceeds 2G.
+//
+//
+//
+// This API is used to call APIs.
+//
+// This API is used to specify the BGP bandwidth package ID.
+//
+// This API is used to perform exclusive cluster cloning with corresponding parameters, otherwise shared instance creation will be used.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// DRYRUNOPERATION = "DryRunOperation"
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// OPERATIONDENIED = "OperationDenied"
+// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
+// RESOURCEINUSE = "ResourceInUse"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// RESOURCESSOLDOUT = "ResourcesSoldOut"
+func (c *Client) CloneLoadBalancerWithContext(ctx context.Context, request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewCloneLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CloneLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CloneLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCloneLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCreateClsLogSetRequest() (request *CreateClsLogSetRequest) {
+ request = &CreateClsLogSetRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CreateClsLogSet")
+
+
+ return
+}
+
+func NewCreateClsLogSetResponse() (response *CreateClsLogSetResponse) {
+ response = &CreateClsLogSetResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateClsLogSet
+// This API is used to create a CLB exclusive logset for storing CLB logs.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateClsLogSet(request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error) {
+ return c.CreateClsLogSetWithContext(context.Background(), request)
+}
+
+// CreateClsLogSet
+// This API is used to create a CLB exclusive logset for storing CLB logs.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateClsLogSetWithContext(ctx context.Context, request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error) {
+ if request == nil {
+ request = NewCreateClsLogSetRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateClsLogSet")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateClsLogSet require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateClsLogSetResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCreateListenerRequest() (request *CreateListenerRequest) {
+ request = &CreateListenerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CreateListener")
+
+
+ return
+}
+
+func NewCreateListenerResponse() (response *CreateListenerResponse) {
+ response = &CreateListenerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateListener
+// This API is used to create a listener for a CLB instance.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateListener(request *CreateListenerRequest) (response *CreateListenerResponse, err error) {
+ return c.CreateListenerWithContext(context.Background(), request)
+}
+
+// CreateListener
+// This API is used to create a listener for a CLB instance.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateListenerWithContext(ctx context.Context, request *CreateListenerRequest) (response *CreateListenerResponse, err error) {
+ if request == nil {
+ request = NewCreateListenerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateListener")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateListener require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateListenerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCreateLoadBalancerRequest() (request *CreateLoadBalancerRequest) {
+ request = &CreateLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CreateLoadBalancer")
+
+
+ return
+}
+
+func NewCreateLoadBalancerResponse() (response *CreateLoadBalancerResponse) {
+ response = &CreateLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateLoadBalancer
+// This API (CreateLoadBalancer) is used to create a CLB instance. To use the CLB service, you first need to purchase one or more instances. After this API is called successfully, a unique instance ID will be returned. There are two types of instances: public network and private network. For more information, see the product types in the product documentation.
+//
+// Note: (1) To apply for a CLB instance in the specified AZ and cross-AZ disaster recovery, please [submit a ticket](https://console.cloud.tencent.com/workorder/category); (2) Currently, IPv6 is supported only in Beijing, Shanghai, and Guangzhou regions.
+//
+// This is an async API. After it is returned successfully, you can call the DescribeLoadBalancers API to query the status of the instance (such as creating and normal) to check whether it is successfully created.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error) {
+ return c.CreateLoadBalancerWithContext(context.Background(), request)
+}
+
+// CreateLoadBalancer
+// This API (CreateLoadBalancer) is used to create a CLB instance. To use the CLB service, you first need to purchase one or more instances. After this API is called successfully, a unique instance ID will be returned. There are two types of instances: public network and private network. For more information, see the product types in the product documentation.
+//
+// Note: (1) To apply for a CLB instance in the specified AZ and cross-AZ disaster recovery, please [submit a ticket](https://console.cloud.tencent.com/workorder/category); (2) Currently, IPv6 is supported only in Beijing, Shanghai, and Guangzhou regions.
+//
+// This is an async API. After it is returned successfully, you can call the DescribeLoadBalancers API to query the status of the instance (such as creating and normal) to check whether it is successfully created.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) CreateLoadBalancerWithContext(ctx context.Context, request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewCreateLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCreateLoadBalancerSnatIpsRequest() (request *CreateLoadBalancerSnatIpsRequest) {
+ request = &CreateLoadBalancerSnatIpsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CreateLoadBalancerSnatIps")
+
+
+ return
+}
+
+func NewCreateLoadBalancerSnatIpsResponse() (response *CreateLoadBalancerSnatIpsResponse) {
+ response = &CreateLoadBalancerSnatIpsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateLoadBalancerSnatIps
+// This API is used to add SnatIp for SnatPro Cloud Load Balancer. If SnatPro is not enabled, it will be auto on after adding SnatIp.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+func (c *Client) CreateLoadBalancerSnatIps(request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error) {
+ return c.CreateLoadBalancerSnatIpsWithContext(context.Background(), request)
+}
+
+// CreateLoadBalancerSnatIps
+// This API is used to add SnatIp for SnatPro Cloud Load Balancer. If SnatPro is not enabled, it will be auto on after adding SnatIp.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+func (c *Client) CreateLoadBalancerSnatIpsWithContext(ctx context.Context, request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error) {
+ if request == nil {
+ request = NewCreateLoadBalancerSnatIpsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateLoadBalancerSnatIps")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateLoadBalancerSnatIps require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateLoadBalancerSnatIpsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCreateRuleRequest() (request *CreateRuleRequest) {
+ request = &CreateRuleRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CreateRule")
+
+
+ return
+}
+
+func NewCreateRuleResponse() (response *CreateRuleResponse) {
+ response = &CreateRuleResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateRule
+// This API is used to create forwarding rules under an existing layer-7 CLB listener. In layer-7 CLB listeners, backend services must be bound to rules instead of the listener.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleResponse, err error) {
+ return c.CreateRuleWithContext(context.Background(), request)
+}
+
+// CreateRule
+// This API is used to create forwarding rules under an existing layer-7 CLB listener. In layer-7 CLB listeners, backend services must be bound to rules instead of the listener.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateRuleWithContext(ctx context.Context, request *CreateRuleRequest) (response *CreateRuleResponse, err error) {
+ if request == nil {
+ request = NewCreateRuleRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateRule")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateRule require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateRuleResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCreateTargetGroupRequest() (request *CreateTargetGroupRequest) {
+ request = &CreateTargetGroupRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CreateTargetGroup")
+
+
+ return
+}
+
+func NewCreateTargetGroupResponse() (response *CreateTargetGroupResponse) {
+ response = &CreateTargetGroupResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateTargetGroup
+// This API is used to create a target group. This feature is in beta test, if you want to try it out, please [submit a ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1).
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateTargetGroup(request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error) {
+ return c.CreateTargetGroupWithContext(context.Background(), request)
+}
+
+// CreateTargetGroup
+// This API is used to create a target group. This feature is in beta test, if you want to try it out, please [submit a ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1).
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateTargetGroupWithContext(ctx context.Context, request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error) {
+ if request == nil {
+ request = NewCreateTargetGroupRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateTargetGroup")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateTargetGroup require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateTargetGroupResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewCreateTopicRequest() (request *CreateTopicRequest) {
+ request = &CreateTopicRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "CreateTopic")
+
+
+ return
+}
+
+func NewCreateTopicResponse() (response *CreateTopicResponse) {
+ response = &CreateTopicResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// CreateTopic
+// This API is used to create a topic with the full-text index and key-value index enabled by default. The creation will fail if there is no CLB exclusive logset.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateTopic(request *CreateTopicRequest) (response *CreateTopicResponse, err error) {
+ return c.CreateTopicWithContext(context.Background(), request)
+}
+
+// CreateTopic
+// This API is used to create a topic with the full-text index and key-value index enabled by default. The creation will fail if there is no CLB exclusive logset.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) CreateTopicWithContext(ctx context.Context, request *CreateTopicRequest) (response *CreateTopicResponse, err error) {
+ if request == nil {
+ request = NewCreateTopicRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "CreateTopic")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("CreateTopic require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewCreateTopicResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteCustomizedConfigRequest() (request *DeleteCustomizedConfigRequest) {
+ request = &DeleteCustomizedConfigRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteCustomizedConfig")
+
+
+ return
+}
+
+func NewDeleteCustomizedConfigResponse() (response *DeleteCustomizedConfigResponse) {
+ response = &DeleteCustomizedConfigResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteCustomizedConfig
+// This API is used to delete personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteCustomizedConfig(request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error) {
+ return c.DeleteCustomizedConfigWithContext(context.Background(), request)
+}
+
+// DeleteCustomizedConfig
+// This API is used to delete personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteCustomizedConfigWithContext(ctx context.Context, request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error) {
+ if request == nil {
+ request = NewDeleteCustomizedConfigRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteCustomizedConfig")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteCustomizedConfig require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteCustomizedConfigResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteListenerRequest() (request *DeleteListenerRequest) {
+ request = &DeleteListenerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteListener")
+
+
+ return
+}
+
+func NewDeleteListenerResponse() (response *DeleteListenerResponse) {
+ response = &DeleteListenerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteListener
+// This API is used to delete listeners (layer-4 and layer-7) under a Cloud Load Balancer instance.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteListener(request *DeleteListenerRequest) (response *DeleteListenerResponse, err error) {
+ return c.DeleteListenerWithContext(context.Background(), request)
+}
+
+// DeleteListener
+// This API is used to delete listeners (layer-4 and layer-7) under a Cloud Load Balancer instance.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteListenerWithContext(ctx context.Context, request *DeleteListenerRequest) (response *DeleteListenerResponse, err error) {
+ if request == nil {
+ request = NewDeleteListenerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteListener")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteListener require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteListenerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteLoadBalancerRequest() (request *DeleteLoadBalancerRequest) {
+ request = &DeleteLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteLoadBalancer")
+
+
+ return
+}
+
+func NewDeleteLoadBalancerResponse() (response *DeleteLoadBalancerResponse) {
+ response = &DeleteLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteLoadBalancer
+// This API is used to delete one or more specified CLB instances. After successful deletion, the listeners and forwarding rules under the CLB instance will be deleted together, and the backend service will be unbound.
+//
+// This API is asynchronous. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk"
+// FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk"
+// FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error) {
+ return c.DeleteLoadBalancerWithContext(context.Background(), request)
+}
+
+// DeleteLoadBalancer
+// This API is used to delete one or more specified CLB instances. After successful deletion, the listeners and forwarding rules under the CLB instance will be deleted together, and the backend service will be unbound.
+//
+// This API is asynchronous. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk"
+// FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk"
+// FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteLoadBalancerWithContext(ctx context.Context, request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewDeleteLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteLoadBalancerListenersRequest() (request *DeleteLoadBalancerListenersRequest) {
+ request = &DeleteLoadBalancerListenersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteLoadBalancerListeners")
+
+
+ return
+}
+
+func NewDeleteLoadBalancerListenersResponse() (response *DeleteLoadBalancerListenersResponse) {
+ response = &DeleteLoadBalancerListenersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteLoadBalancerListeners
+// This API is used to delete multiple listeners of Cloud Load Balancer.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteLoadBalancerListeners(request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error) {
+ return c.DeleteLoadBalancerListenersWithContext(context.Background(), request)
+}
+
+// DeleteLoadBalancerListeners
+// This API is used to delete multiple listeners of Cloud Load Balancer.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteLoadBalancerListenersWithContext(ctx context.Context, request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error) {
+ if request == nil {
+ request = NewDeleteLoadBalancerListenersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteLoadBalancerListeners")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteLoadBalancerListeners require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteLoadBalancerListenersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteLoadBalancerSnatIpsRequest() (request *DeleteLoadBalancerSnatIpsRequest) {
+ request = &DeleteLoadBalancerSnatIpsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteLoadBalancerSnatIps")
+
+
+ return
+}
+
+func NewDeleteLoadBalancerSnatIpsResponse() (response *DeleteLoadBalancerSnatIpsResponse) {
+ response = &DeleteLoadBalancerSnatIpsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteLoadBalancerSnatIps
+// This API is used to delete the SnatIp of the SnatPro load balancing.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+func (c *Client) DeleteLoadBalancerSnatIps(request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error) {
+ return c.DeleteLoadBalancerSnatIpsWithContext(context.Background(), request)
+}
+
+// DeleteLoadBalancerSnatIps
+// This API is used to delete the SnatIp of the SnatPro load balancing.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+func (c *Client) DeleteLoadBalancerSnatIpsWithContext(ctx context.Context, request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error) {
+ if request == nil {
+ request = NewDeleteLoadBalancerSnatIpsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteLoadBalancerSnatIps")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteLoadBalancerSnatIps require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteLoadBalancerSnatIpsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteRewriteRequest() (request *DeleteRewriteRequest) {
+ request = &DeleteRewriteRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteRewrite")
+
+
+ return
+}
+
+func NewDeleteRewriteResponse() (response *DeleteRewriteResponse) {
+ response = &DeleteRewriteResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteRewrite
+// This API (DeleteRewrite) is used to delete the redirection relationship between the specified forwarding rules.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteRewrite(request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error) {
+ return c.DeleteRewriteWithContext(context.Background(), request)
+}
+
+// DeleteRewrite
+// This API (DeleteRewrite) is used to delete the redirection relationship between the specified forwarding rules.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteRewriteWithContext(ctx context.Context, request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error) {
+ if request == nil {
+ request = NewDeleteRewriteRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteRewrite")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteRewrite require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteRewriteResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteRuleRequest() (request *DeleteRuleRequest) {
+ request = &DeleteRuleRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteRule")
+
+
+ return
+}
+
+func NewDeleteRuleResponse() (response *DeleteRuleResponse) {
+ response = &DeleteRuleResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteRule
+// This API is used to delete forwarding rules under a layer-7 listener of a load balancing instance.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error) {
+ return c.DeleteRuleWithContext(context.Background(), request)
+}
+
+// DeleteRule
+// This API is used to delete forwarding rules under a layer-7 listener of a load balancing instance.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteRuleWithContext(ctx context.Context, request *DeleteRuleRequest) (response *DeleteRuleResponse, err error) {
+ if request == nil {
+ request = NewDeleteRuleRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteRule")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteRule require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteRuleResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeleteTargetGroupsRequest() (request *DeleteTargetGroupsRequest) {
+ request = &DeleteTargetGroupsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeleteTargetGroups")
+
+
+ return
+}
+
+func NewDeleteTargetGroupsResponse() (response *DeleteTargetGroupsResponse) {
+ response = &DeleteTargetGroupsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeleteTargetGroups
+// This API is used to delete target groups in batches, with a maximum of 20 target groups at a time.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error) {
+ return c.DeleteTargetGroupsWithContext(context.Background(), request)
+}
+
+// DeleteTargetGroups
+// This API is used to delete target groups in batches, with a maximum of 20 target groups at a time.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeleteTargetGroupsWithContext(ctx context.Context, request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error) {
+ if request == nil {
+ request = NewDeleteTargetGroupsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeleteTargetGroups")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeleteTargetGroups require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeleteTargetGroupsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeregisterFunctionTargetsRequest() (request *DeregisterFunctionTargetsRequest) {
+ request = &DeregisterFunctionTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeregisterFunctionTargets")
+
+
+ return
+}
+
+func NewDeregisterFunctionTargetsResponse() (response *DeregisterFunctionTargetsResponse) {
+ response = &DeregisterFunctionTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeregisterFunctionTargets
+// This API is used to unbind a cloud function from the forwarding rule of a Cloud Load Balancer. For a layer-7 (HTTP/HTTPS) listener, the forwarding rule must be specified by LocationId or Domain+Url.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// This API is used to describe restrictions.
+//
+//
+//
+// -SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
+//
+// -Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
+//
+// -Classic CLB does not support binding SCF.
+//
+// -Basic Network Type does not support binding SCF.
+//
+// -CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
+//
+// -Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
+//
+// -Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
+//
+// -CLB binding SCF only supports binding cloud functions of the "Event function" type.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterFunctionTargets(request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error) {
+ return c.DeregisterFunctionTargetsWithContext(context.Background(), request)
+}
+
+// DeregisterFunctionTargets
+// This API is used to unbind a cloud function from the forwarding rule of a Cloud Load Balancer. For a layer-7 (HTTP/HTTPS) listener, the forwarding rule must be specified by LocationId or Domain+Url.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// This API is used to describe restrictions.
+//
+//
+//
+// -SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
+//
+// -Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
+//
+// -Classic CLB does not support binding SCF.
+//
+// -Basic Network Type does not support binding SCF.
+//
+// -CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
+//
+// -Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
+//
+// -Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
+//
+// -CLB binding SCF only supports binding cloud functions of the "Event function" type.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterFunctionTargetsWithContext(ctx context.Context, request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error) {
+ if request == nil {
+ request = NewDeregisterFunctionTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterFunctionTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeregisterFunctionTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeregisterFunctionTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeregisterTargetGroupInstancesRequest() (request *DeregisterTargetGroupInstancesRequest) {
+ request = &DeregisterTargetGroupInstancesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeregisterTargetGroupInstances")
+
+
+ return
+}
+
+func NewDeregisterTargetGroupInstancesResponse() (response *DeregisterTargetGroupInstancesResponse) {
+ response = &DeregisterTargetGroupInstancesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeregisterTargetGroupInstances
+// This API is used to unbind a server from a target group.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterTargetGroupInstances(request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error) {
+ return c.DeregisterTargetGroupInstancesWithContext(context.Background(), request)
+}
+
+// DeregisterTargetGroupInstances
+// This API is used to unbind a server from a target group.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterTargetGroupInstancesWithContext(ctx context.Context, request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error) {
+ if request == nil {
+ request = NewDeregisterTargetGroupInstancesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterTargetGroupInstances")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeregisterTargetGroupInstances require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeregisterTargetGroupInstancesResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeregisterTargetsRequest() (request *DeregisterTargetsRequest) {
+ request = &DeregisterTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeregisterTargets")
+
+
+ return
+}
+
+func NewDeregisterTargetsResponse() (response *DeregisterTargetsResponse) {
+ response = &DeregisterTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeregisterTargets
+// This API (DeregisterTargets) is used to unbind one or more real servers from a CLB listener or forwarding rule. For layer-4 listeners, only the listener ID needs to be specified. For layer-7 listeners, the forwarding rule also needs to be specified through LocationId or Domain+Url.
+//
+// This is an async API. After it is returned successfully, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterTargets(request *DeregisterTargetsRequest) (response *DeregisterTargetsResponse, err error) {
+ return c.DeregisterTargetsWithContext(context.Background(), request)
+}
+
+// DeregisterTargets
+// This API (DeregisterTargets) is used to unbind one or more real servers from a CLB listener or forwarding rule. For layer-4 listeners, only the listener ID needs to be specified. For layer-7 listeners, the forwarding rule also needs to be specified through LocationId or Domain+Url.
+//
+// This is an async API. After it is returned successfully, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterTargetsWithContext(ctx context.Context, request *DeregisterTargetsRequest) (response *DeregisterTargetsResponse, err error) {
+ if request == nil {
+ request = NewDeregisterTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeregisterTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeregisterTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDeregisterTargetsFromClassicalLBRequest() (request *DeregisterTargetsFromClassicalLBRequest) {
+ request = &DeregisterTargetsFromClassicalLBRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DeregisterTargetsFromClassicalLB")
+
+
+ return
+}
+
+func NewDeregisterTargetsFromClassicalLBResponse() (response *DeregisterTargetsFromClassicalLBResponse) {
+ response = &DeregisterTargetsFromClassicalLBResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DeregisterTargetsFromClassicalLB
+// This API is used to unbind a CLB real server. This is an async API. After it is returned successfully, you can call the API `DescribeTaskStatus` with the returned RequestId as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterTargetsFromClassicalLB(request *DeregisterTargetsFromClassicalLBRequest) (response *DeregisterTargetsFromClassicalLBResponse, err error) {
+ return c.DeregisterTargetsFromClassicalLBWithContext(context.Background(), request)
+}
+
+// DeregisterTargetsFromClassicalLB
+// This API is used to unbind a CLB real server. This is an async API. After it is returned successfully, you can call the API `DescribeTaskStatus` with the returned RequestId as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DeregisterTargetsFromClassicalLBWithContext(ctx context.Context, request *DeregisterTargetsFromClassicalLBRequest) (response *DeregisterTargetsFromClassicalLBResponse, err error) {
+ if request == nil {
+ request = NewDeregisterTargetsFromClassicalLBRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DeregisterTargetsFromClassicalLB")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DeregisterTargetsFromClassicalLB require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDeregisterTargetsFromClassicalLBResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeBlockIPListRequest() (request *DescribeBlockIPListRequest) {
+ request = &DescribeBlockIPListRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeBlockIPList")
+
+
+ return
+}
+
+func NewDescribeBlockIPListResponse() (response *DescribeBlockIPListResponse) {
+ response = &DescribeBlockIPListResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeBlockIPList
+// This API is used to query the list of blocked IPs (blocklist) of a CLB instance. (This API is in beta test. To use it, please submit a ticket.)
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeBlockIPList(request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error) {
+ return c.DescribeBlockIPListWithContext(context.Background(), request)
+}
+
+// DescribeBlockIPList
+// This API is used to query the list of blocked IPs (blocklist) of a CLB instance. (This API is in beta test. To use it, please submit a ticket.)
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeBlockIPListWithContext(ctx context.Context, request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error) {
+ if request == nil {
+ request = NewDescribeBlockIPListRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeBlockIPList")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeBlockIPList require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeBlockIPListResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeBlockIPTaskRequest() (request *DescribeBlockIPTaskRequest) {
+ request = &DescribeBlockIPTaskRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeBlockIPTask")
+
+
+ return
+}
+
+func NewDescribeBlockIPTaskResponse() (response *DescribeBlockIPTaskResponse) {
+ response = &DescribeBlockIPTaskResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeBlockIPTask
+// This API is used to query the execution status of an async IP blocking (blocklisting) task by the async task ID returned by the `ModifyBlockIPList` API. (This API is in beta test. To use it, please submit a ticket.)
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+func (c *Client) DescribeBlockIPTask(request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error) {
+ return c.DescribeBlockIPTaskWithContext(context.Background(), request)
+}
+
+// DescribeBlockIPTask
+// This API is used to query the execution status of an async IP blocking (blocklisting) task by the async task ID returned by the `ModifyBlockIPList` API. (This API is in beta test. To use it, please submit a ticket.)
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+func (c *Client) DescribeBlockIPTaskWithContext(ctx context.Context, request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error) {
+ if request == nil {
+ request = NewDescribeBlockIPTaskRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeBlockIPTask")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeBlockIPTask require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeBlockIPTaskResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeClassicalLBByInstanceIdRequest() (request *DescribeClassicalLBByInstanceIdRequest) {
+ request = &DescribeClassicalLBByInstanceIdRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBByInstanceId")
+
+
+ return
+}
+
+func NewDescribeClassicalLBByInstanceIdResponse() (response *DescribeClassicalLBByInstanceIdResponse) {
+ response = &DescribeClassicalLBByInstanceIdResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClassicalLBByInstanceId
+// This API is used to get the list of classic CLB instance IDs through a real server ID.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClassicalLBByInstanceId(request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error) {
+ return c.DescribeClassicalLBByInstanceIdWithContext(context.Background(), request)
+}
+
+// DescribeClassicalLBByInstanceId
+// This API is used to get the list of classic CLB instance IDs through a real server ID.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClassicalLBByInstanceIdWithContext(ctx context.Context, request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error) {
+ if request == nil {
+ request = NewDescribeClassicalLBByInstanceIdRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBByInstanceId")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClassicalLBByInstanceId require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClassicalLBByInstanceIdResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeClassicalLBHealthStatusRequest() (request *DescribeClassicalLBHealthStatusRequest) {
+ request = &DescribeClassicalLBHealthStatusRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBHealthStatus")
+
+
+ return
+}
+
+func NewDescribeClassicalLBHealthStatusResponse() (response *DescribeClassicalLBHealthStatusResponse) {
+ response = &DescribeClassicalLBHealthStatusResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClassicalLBHealthStatus
+// This API (DescribeClassicalLBHealthStatus) is used to get the real server health status of a classic CLB
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClassicalLBHealthStatus(request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error) {
+ return c.DescribeClassicalLBHealthStatusWithContext(context.Background(), request)
+}
+
+// DescribeClassicalLBHealthStatus
+// This API (DescribeClassicalLBHealthStatus) is used to get the real server health status of a classic CLB
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClassicalLBHealthStatusWithContext(ctx context.Context, request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error) {
+ if request == nil {
+ request = NewDescribeClassicalLBHealthStatusRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBHealthStatus")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClassicalLBHealthStatus require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClassicalLBHealthStatusResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeClassicalLBListenersRequest() (request *DescribeClassicalLBListenersRequest) {
+ request = &DescribeClassicalLBListenersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBListeners")
+
+
+ return
+}
+
+func NewDescribeClassicalLBListenersResponse() (response *DescribeClassicalLBListenersResponse) {
+ response = &DescribeClassicalLBListenersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClassicalLBListeners
+// This API (DescribeClassicalLBListeners) is used to get the listener information of a classic CLB.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeClassicalLBListeners(request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error) {
+ return c.DescribeClassicalLBListenersWithContext(context.Background(), request)
+}
+
+// DescribeClassicalLBListeners
+// This API (DescribeClassicalLBListeners) is used to get the listener information of a classic CLB.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeClassicalLBListenersWithContext(ctx context.Context, request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error) {
+ if request == nil {
+ request = NewDescribeClassicalLBListenersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBListeners")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClassicalLBListeners require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClassicalLBListenersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeClassicalLBTargetsRequest() (request *DescribeClassicalLBTargetsRequest) {
+ request = &DescribeClassicalLBTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBTargets")
+
+
+ return
+}
+
+func NewDescribeClassicalLBTargetsResponse() (response *DescribeClassicalLBTargetsResponse) {
+ response = &DescribeClassicalLBTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClassicalLBTargets
+// This API is used to get the real servers bound to a classic CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClassicalLBTargets(request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error) {
+ return c.DescribeClassicalLBTargetsWithContext(context.Background(), request)
+}
+
+// DescribeClassicalLBTargets
+// This API is used to get the real servers bound to a classic CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClassicalLBTargetsWithContext(ctx context.Context, request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error) {
+ if request == nil {
+ request = NewDescribeClassicalLBTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClassicalLBTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClassicalLBTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClassicalLBTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeClsLogSetRequest() (request *DescribeClsLogSetRequest) {
+ request = &DescribeClsLogSetRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeClsLogSet")
+
+
+ return
+}
+
+func NewDescribeClsLogSetResponse() (response *DescribeClsLogSetResponse) {
+ response = &DescribeClsLogSetResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeClsLogSet
+// This API is used to get the CLB exclusive logset.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClsLogSet(request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error) {
+ return c.DescribeClsLogSetWithContext(context.Background(), request)
+}
+
+// DescribeClsLogSet
+// This API is used to get the CLB exclusive logset.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeClsLogSetWithContext(ctx context.Context, request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error) {
+ if request == nil {
+ request = NewDescribeClsLogSetRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeClsLogSet")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeClsLogSet require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeClsLogSetResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeCrossTargetsRequest() (request *DescribeCrossTargetsRequest) {
+ request = &DescribeCrossTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeCrossTargets")
+
+
+ return
+}
+
+func NewDescribeCrossTargetsResponse() (response *DescribeCrossTargetsResponse) {
+ response = &DescribeCrossTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeCrossTargets
+// Queries information of CVMs and ENIs that use cross-region binding 2.0
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeCrossTargets(request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error) {
+ return c.DescribeCrossTargetsWithContext(context.Background(), request)
+}
+
+// DescribeCrossTargets
+// Queries information of CVMs and ENIs that use cross-region binding 2.0
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeCrossTargetsWithContext(ctx context.Context, request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error) {
+ if request == nil {
+ request = NewDescribeCrossTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeCrossTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeCrossTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeCrossTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeCustomizedConfigAssociateListRequest() (request *DescribeCustomizedConfigAssociateListRequest) {
+ request = &DescribeCustomizedConfigAssociateListRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeCustomizedConfigAssociateList")
+
+
+ return
+}
+
+func NewDescribeCustomizedConfigAssociateListResponse() (response *DescribeCustomizedConfigAssociateListResponse) {
+ response = &DescribeCustomizedConfigAssociateListResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeCustomizedConfigAssociateList
+// This API is used to query the configured location, bound server or bound CLB instance. If there are domain names, the result will be filtered by domain name.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeCustomizedConfigAssociateList(request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error) {
+ return c.DescribeCustomizedConfigAssociateListWithContext(context.Background(), request)
+}
+
+// DescribeCustomizedConfigAssociateList
+// This API is used to query the configured location, bound server or bound CLB instance. If there are domain names, the result will be filtered by domain name.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeCustomizedConfigAssociateListWithContext(ctx context.Context, request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error) {
+ if request == nil {
+ request = NewDescribeCustomizedConfigAssociateListRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeCustomizedConfigAssociateList")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeCustomizedConfigAssociateList require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeCustomizedConfigAssociateListResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeCustomizedConfigListRequest() (request *DescribeCustomizedConfigListRequest) {
+ request = &DescribeCustomizedConfigListRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeCustomizedConfigList")
+
+
+ return
+}
+
+func NewDescribeCustomizedConfigListResponse() (response *DescribeCustomizedConfigListResponse) {
+ response = &DescribeCustomizedConfigListResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeCustomizedConfigList
+// This API is used to pull custom configuration lists to return the user configuration of `AppId`.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
+// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeCustomizedConfigList(request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error) {
+ return c.DescribeCustomizedConfigListWithContext(context.Background(), request)
+}
+
+// DescribeCustomizedConfigList
+// This API is used to pull custom configuration lists to return the user configuration of `AppId`.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
+// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeCustomizedConfigListWithContext(ctx context.Context, request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error) {
+ if request == nil {
+ request = NewDescribeCustomizedConfigListRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeCustomizedConfigList")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeCustomizedConfigList require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeCustomizedConfigListResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeIdleLoadBalancersRequest() (request *DescribeIdleLoadBalancersRequest) {
+ request = &DescribeIdleLoadBalancersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeIdleLoadBalancers")
+
+
+ return
+}
+
+func NewDescribeIdleLoadBalancersResponse() (response *DescribeIdleLoadBalancersResponse) {
+ response = &DescribeIdleLoadBalancersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeIdleLoadBalancers
+// Idle CLB instances are pay-as-you-go load balancers that, within seven days after the creation, do not have rules configured or the configured rules are not associated with any servers.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// DRYRUNOPERATION = "DryRunOperation"
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+func (c *Client) DescribeIdleLoadBalancers(request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error) {
+ return c.DescribeIdleLoadBalancersWithContext(context.Background(), request)
+}
+
+// DescribeIdleLoadBalancers
+// Idle CLB instances are pay-as-you-go load balancers that, within seven days after the creation, do not have rules configured or the configured rules are not associated with any servers.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// DRYRUNOPERATION = "DryRunOperation"
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+func (c *Client) DescribeIdleLoadBalancersWithContext(ctx context.Context, request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error) {
+ if request == nil {
+ request = NewDescribeIdleLoadBalancersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeIdleLoadBalancers")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeIdleLoadBalancers require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeIdleLoadBalancersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeLBListenersRequest() (request *DescribeLBListenersRequest) {
+ request = &DescribeLBListenersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLBListeners")
+
+
+ return
+}
+
+func NewDescribeLBListenersResponse() (response *DescribeLBListenersResponse) {
+ response = &DescribeLBListenersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLBListeners
+// This API is used to query CLB instances bound to the CVM or ENI.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLBListeners(request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error) {
+ return c.DescribeLBListenersWithContext(context.Background(), request)
+}
+
+// DescribeLBListeners
+// This API is used to query CLB instances bound to the CVM or ENI.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLBListenersWithContext(ctx context.Context, request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error) {
+ if request == nil {
+ request = NewDescribeLBListenersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLBListeners")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLBListeners require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLBListenersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeLBOperateProtectRequest() (request *DescribeLBOperateProtectRequest) {
+ request = &DescribeLBOperateProtectRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLBOperateProtect")
+
+
+ return
+}
+
+func NewDescribeLBOperateProtectResponse() (response *DescribeLBOperateProtectResponse) {
+ response = &DescribeLBOperateProtectResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLBOperateProtect
+// This API is used to query the operation protection info of Cloud Load Balancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// OPERATIONDENIED = "OperationDenied"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLBOperateProtect(request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error) {
+ return c.DescribeLBOperateProtectWithContext(context.Background(), request)
+}
+
+// DescribeLBOperateProtect
+// This API is used to query the operation protection info of Cloud Load Balancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// OPERATIONDENIED = "OperationDenied"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLBOperateProtectWithContext(ctx context.Context, request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error) {
+ if request == nil {
+ request = NewDescribeLBOperateProtectRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLBOperateProtect")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLBOperateProtect require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLBOperateProtectResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeListenersRequest() (request *DescribeListenersRequest) {
+ request = &DescribeListenersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeListeners")
+
+
+ return
+}
+
+func NewDescribeListenersResponse() (response *DescribeListenersResponse) {
+ response = &DescribeListenersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeListeners
+// This API is used to get the list of listeners by CLB ID, listener protocol, or listener port. If no filter is specified, all listeners for the CLB instance will be returned.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeListeners(request *DescribeListenersRequest) (response *DescribeListenersResponse, err error) {
+ return c.DescribeListenersWithContext(context.Background(), request)
+}
+
+// DescribeListeners
+// This API is used to get the list of listeners by CLB ID, listener protocol, or listener port. If no filter is specified, all listeners for the CLB instance will be returned.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeListenersWithContext(ctx context.Context, request *DescribeListenersRequest) (response *DescribeListenersResponse, err error) {
+ if request == nil {
+ request = NewDescribeListenersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeListeners")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeListeners require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeListenersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeLoadBalancerListByCertIdRequest() (request *DescribeLoadBalancerListByCertIdRequest) {
+ request = &DescribeLoadBalancerListByCertIdRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancerListByCertId")
+
+
+ return
+}
+
+func NewDescribeLoadBalancerListByCertIdResponse() (response *DescribeLoadBalancerListByCertIdResponse) {
+ response = &DescribeLoadBalancerListByCertIdResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLoadBalancerListByCertId
+// This API is used to query the list of CLB instances associated with a certificate in a region by certificate ID.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLoadBalancerListByCertId(request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error) {
+ return c.DescribeLoadBalancerListByCertIdWithContext(context.Background(), request)
+}
+
+// DescribeLoadBalancerListByCertId
+// This API is used to query the list of CLB instances associated with a certificate in a region by certificate ID.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLoadBalancerListByCertIdWithContext(ctx context.Context, request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error) {
+ if request == nil {
+ request = NewDescribeLoadBalancerListByCertIdRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancerListByCertId")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLoadBalancerListByCertId require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLoadBalancerListByCertIdResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeLoadBalancerOverviewRequest() (request *DescribeLoadBalancerOverviewRequest) {
+ request = &DescribeLoadBalancerOverviewRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancerOverview")
+
+
+ return
+}
+
+func NewDescribeLoadBalancerOverviewResponse() (response *DescribeLoadBalancerOverviewResponse) {
+ response = &DescribeLoadBalancerOverviewResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLoadBalancerOverview
+// Queries the total number of CLB instances and the number of CLB instances in different status (running, isolated and about to expire).
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// DRYRUNOPERATION = "DryRunOperation"
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+func (c *Client) DescribeLoadBalancerOverview(request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error) {
+ return c.DescribeLoadBalancerOverviewWithContext(context.Background(), request)
+}
+
+// DescribeLoadBalancerOverview
+// Queries the total number of CLB instances and the number of CLB instances in different status (running, isolated and about to expire).
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// DRYRUNOPERATION = "DryRunOperation"
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+func (c *Client) DescribeLoadBalancerOverviewWithContext(ctx context.Context, request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error) {
+ if request == nil {
+ request = NewDescribeLoadBalancerOverviewRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancerOverview")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLoadBalancerOverview require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLoadBalancerOverviewResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeLoadBalancerTrafficRequest() (request *DescribeLoadBalancerTrafficRequest) {
+ request = &DescribeLoadBalancerTrafficRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancerTraffic")
+
+
+ return
+}
+
+func NewDescribeLoadBalancerTrafficResponse() (response *DescribeLoadBalancerTrafficResponse) {
+ response = &DescribeLoadBalancerTrafficResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLoadBalancerTraffic
+// This API is used to query CLB instances with high traffic under the current account, and return the top 10 results. For queries using a sub-account, only the CLB instances authorized to the sub-account will be returned.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+func (c *Client) DescribeLoadBalancerTraffic(request *DescribeLoadBalancerTrafficRequest) (response *DescribeLoadBalancerTrafficResponse, err error) {
+ return c.DescribeLoadBalancerTrafficWithContext(context.Background(), request)
+}
+
+// DescribeLoadBalancerTraffic
+// This API is used to query CLB instances with high traffic under the current account, and return the top 10 results. For queries using a sub-account, only the CLB instances authorized to the sub-account will be returned.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+func (c *Client) DescribeLoadBalancerTrafficWithContext(ctx context.Context, request *DescribeLoadBalancerTrafficRequest) (response *DescribeLoadBalancerTrafficResponse, err error) {
+ if request == nil {
+ request = NewDescribeLoadBalancerTrafficRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancerTraffic")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLoadBalancerTraffic require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLoadBalancerTrafficResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeLoadBalancersRequest() (request *DescribeLoadBalancersRequest) {
+ request = &DescribeLoadBalancersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancers")
+
+
+ return
+}
+
+func NewDescribeLoadBalancersResponse() (response *DescribeLoadBalancersResponse) {
+ response = &DescribeLoadBalancersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLoadBalancers
+// This API is used to query the list of CLB instances in a region.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeLoadBalancers(request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error) {
+ return c.DescribeLoadBalancersWithContext(context.Background(), request)
+}
+
+// DescribeLoadBalancers
+// This API is used to query the list of CLB instances in a region.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeLoadBalancersWithContext(ctx context.Context, request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error) {
+ if request == nil {
+ request = NewDescribeLoadBalancersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancers")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLoadBalancers require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLoadBalancersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeLoadBalancersDetailRequest() (request *DescribeLoadBalancersDetailRequest) {
+ request = &DescribeLoadBalancersDetailRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancersDetail")
+
+
+ return
+}
+
+func NewDescribeLoadBalancersDetailResponse() (response *DescribeLoadBalancersDetailResponse) {
+ response = &DescribeLoadBalancersDetailResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeLoadBalancersDetail
+// This API is used to query CLB instance details, including listener, rules, and target real servers.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLoadBalancersDetail(request *DescribeLoadBalancersDetailRequest) (response *DescribeLoadBalancersDetailResponse, err error) {
+ return c.DescribeLoadBalancersDetailWithContext(context.Background(), request)
+}
+
+// DescribeLoadBalancersDetail
+// This API is used to query CLB instance details, including listener, rules, and target real servers.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeLoadBalancersDetailWithContext(ctx context.Context, request *DescribeLoadBalancersDetailRequest) (response *DescribeLoadBalancersDetailResponse, err error) {
+ if request == nil {
+ request = NewDescribeLoadBalancersDetailRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeLoadBalancersDetail")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeLoadBalancersDetail require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeLoadBalancersDetailResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeQuotaRequest() (request *DescribeQuotaRequest) {
+ request = &DescribeQuotaRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeQuota")
+
+
+ return
+}
+
+func NewDescribeQuotaResponse() (response *DescribeQuotaResponse) {
+ response = &DescribeQuotaResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeQuota
+// This API is used to query various quotas in the current region.
+//
+// error code that may be returned:
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeQuota(request *DescribeQuotaRequest) (response *DescribeQuotaResponse, err error) {
+ return c.DescribeQuotaWithContext(context.Background(), request)
+}
+
+// DescribeQuota
+// This API is used to query various quotas in the current region.
+//
+// error code that may be returned:
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeQuotaWithContext(ctx context.Context, request *DescribeQuotaRequest) (response *DescribeQuotaResponse, err error) {
+ if request == nil {
+ request = NewDescribeQuotaRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeQuota")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeQuota require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeQuotaResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeResourcesRequest() (request *DescribeResourcesRequest) {
+ request = &DescribeResourcesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeResources")
+
+
+ return
+}
+
+func NewDescribeResourcesResponse() (response *DescribeResourcesResponse) {
+ response = &DescribeResourcesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeResources
+// This API is used to query the list of AZs and resources supported for the user in the current region.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+func (c *Client) DescribeResources(request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error) {
+ return c.DescribeResourcesWithContext(context.Background(), request)
+}
+
+// DescribeResources
+// This API is used to query the list of AZs and resources supported for the user in the current region.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+func (c *Client) DescribeResourcesWithContext(ctx context.Context, request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error) {
+ if request == nil {
+ request = NewDescribeResourcesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeResources")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeResources require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeResourcesResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeRewriteRequest() (request *DescribeRewriteRequest) {
+ request = &DescribeRewriteRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeRewrite")
+
+
+ return
+}
+
+func NewDescribeRewriteResponse() (response *DescribeRewriteResponse) {
+ response = &DescribeRewriteResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeRewrite
+// This API (DescribeRewrite) is used to query the redirection relationship between the forwarding rules of a CLB instance by instance ID. If no listener ID or forwarding rule ID is specified, all redirection relationships in the instance will be returned.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeRewrite(request *DescribeRewriteRequest) (response *DescribeRewriteResponse, err error) {
+ return c.DescribeRewriteWithContext(context.Background(), request)
+}
+
+// DescribeRewrite
+// This API (DescribeRewrite) is used to query the redirection relationship between the forwarding rules of a CLB instance by instance ID. If no listener ID or forwarding rule ID is specified, all redirection relationships in the instance will be returned.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeRewriteWithContext(ctx context.Context, request *DescribeRewriteRequest) (response *DescribeRewriteResponse, err error) {
+ if request == nil {
+ request = NewDescribeRewriteRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeRewrite")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeRewrite require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeRewriteResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeTargetGroupInstancesRequest() (request *DescribeTargetGroupInstancesRequest) {
+ request = &DescribeTargetGroupInstancesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeTargetGroupInstances")
+
+
+ return
+}
+
+func NewDescribeTargetGroupInstancesResponse() (response *DescribeTargetGroupInstancesResponse) {
+ response = &DescribeTargetGroupInstancesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeTargetGroupInstances
+// This API is used to get the information of servers bound to a target group.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeTargetGroupInstances(request *DescribeTargetGroupInstancesRequest) (response *DescribeTargetGroupInstancesResponse, err error) {
+ return c.DescribeTargetGroupInstancesWithContext(context.Background(), request)
+}
+
+// DescribeTargetGroupInstances
+// This API is used to get the information of servers bound to a target group.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeTargetGroupInstancesWithContext(ctx context.Context, request *DescribeTargetGroupInstancesRequest) (response *DescribeTargetGroupInstancesResponse, err error) {
+ if request == nil {
+ request = NewDescribeTargetGroupInstancesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetGroupInstances")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeTargetGroupInstances require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeTargetGroupInstancesResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeTargetGroupListRequest() (request *DescribeTargetGroupListRequest) {
+ request = &DescribeTargetGroupListRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeTargetGroupList")
+
+
+ return
+}
+
+func NewDescribeTargetGroupListResponse() (response *DescribeTargetGroupListResponse) {
+ response = &DescribeTargetGroupListResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeTargetGroupList
+// This API is used to get the target group list.
+//
+// error code that may be returned:
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeTargetGroupList(request *DescribeTargetGroupListRequest) (response *DescribeTargetGroupListResponse, err error) {
+ return c.DescribeTargetGroupListWithContext(context.Background(), request)
+}
+
+// DescribeTargetGroupList
+// This API is used to get the target group list.
+//
+// error code that may be returned:
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeTargetGroupListWithContext(ctx context.Context, request *DescribeTargetGroupListRequest) (response *DescribeTargetGroupListResponse, err error) {
+ if request == nil {
+ request = NewDescribeTargetGroupListRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetGroupList")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeTargetGroupList require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeTargetGroupListResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeTargetGroupsRequest() (request *DescribeTargetGroupsRequest) {
+ request = &DescribeTargetGroupsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeTargetGroups")
+
+
+ return
+}
+
+func NewDescribeTargetGroupsResponse() (response *DescribeTargetGroupsResponse) {
+ response = &DescribeTargetGroupsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeTargetGroups
+// This API is used to query the target group information.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeTargetGroups(request *DescribeTargetGroupsRequest) (response *DescribeTargetGroupsResponse, err error) {
+ return c.DescribeTargetGroupsWithContext(context.Background(), request)
+}
+
+// DescribeTargetGroups
+// This API is used to query the target group information.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DescribeTargetGroupsWithContext(ctx context.Context, request *DescribeTargetGroupsRequest) (response *DescribeTargetGroupsResponse, err error) {
+ if request == nil {
+ request = NewDescribeTargetGroupsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetGroups")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeTargetGroups require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeTargetGroupsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeTargetHealthRequest() (request *DescribeTargetHealthRequest) {
+ request = &DescribeTargetHealthRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeTargetHealth")
+
+
+ return
+}
+
+func NewDescribeTargetHealthResponse() (response *DescribeTargetHealthResponse) {
+ response = &DescribeTargetHealthResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeTargetHealth
+// This API (DescribeTargetHealth) is used to query the health check result of a real server of a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeTargetHealth(request *DescribeTargetHealthRequest) (response *DescribeTargetHealthResponse, err error) {
+ return c.DescribeTargetHealthWithContext(context.Background(), request)
+}
+
+// DescribeTargetHealth
+// This API (DescribeTargetHealth) is used to query the health check result of a real server of a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeTargetHealthWithContext(ctx context.Context, request *DescribeTargetHealthRequest) (response *DescribeTargetHealthResponse, err error) {
+ if request == nil {
+ request = NewDescribeTargetHealthRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargetHealth")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeTargetHealth require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeTargetHealthResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeTargetsRequest() (request *DescribeTargetsRequest) {
+ request = &DescribeTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeTargets")
+
+
+ return
+}
+
+func NewDescribeTargetsResponse() (response *DescribeTargetsResponse) {
+ response = &DescribeTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeTargets
+// This API (DescribeTargets) is used to query the list of real servers bound to some listeners of a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeTargets(request *DescribeTargetsRequest) (response *DescribeTargetsResponse, err error) {
+ return c.DescribeTargetsWithContext(context.Background(), request)
+}
+
+// DescribeTargets
+// This API (DescribeTargets) is used to query the list of real servers bound to some listeners of a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+// UNSUPPORTEDOPERATION = "UnsupportedOperation"
+func (c *Client) DescribeTargetsWithContext(ctx context.Context, request *DescribeTargetsRequest) (response *DescribeTargetsResponse, err error) {
+ if request == nil {
+ request = NewDescribeTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDescribeTaskStatusRequest() (request *DescribeTaskStatusRequest) {
+ request = &DescribeTaskStatusRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DescribeTaskStatus")
+
+
+ return
+}
+
+func NewDescribeTaskStatusResponse() (response *DescribeTaskStatusResponse) {
+ response = &DescribeTaskStatusResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DescribeTaskStatus
+// This API is used to query the execution status of an async task. After non-query APIs (used to create/delete CLB instances, listeners, or rules or to bind/unbind real servers) are called successfully, this API needs to be used to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+func (c *Client) DescribeTaskStatus(request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error) {
+ return c.DescribeTaskStatusWithContext(context.Background(), request)
+}
+
+// DescribeTaskStatus
+// This API is used to query the execution status of an async task. After non-query APIs (used to create/delete CLB instances, listeners, or rules or to bind/unbind real servers) are called successfully, this API needs to be used to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+func (c *Client) DescribeTaskStatusWithContext(ctx context.Context, request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error) {
+ if request == nil {
+ request = NewDescribeTaskStatusRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DescribeTaskStatus")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DescribeTaskStatus require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDescribeTaskStatusResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDisassociateCustomizedConfigRequest() (request *DisassociateCustomizedConfigRequest) {
+ request = &DisassociateCustomizedConfigRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DisassociateCustomizedConfig")
+
+
+ return
+}
+
+func NewDisassociateCustomizedConfigResponse() (response *DisassociateCustomizedConfigResponse) {
+ response = &DisassociateCustomizedConfigResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DisassociateCustomizedConfig
+// This API is used to disassociate personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DisassociateCustomizedConfig(request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error) {
+ return c.DisassociateCustomizedConfigWithContext(context.Background(), request)
+}
+
+// DisassociateCustomizedConfig
+// This API is used to disassociate personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DisassociateCustomizedConfigWithContext(ctx context.Context, request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error) {
+ if request == nil {
+ request = NewDisassociateCustomizedConfigRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DisassociateCustomizedConfig")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DisassociateCustomizedConfig require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDisassociateCustomizedConfigResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewDisassociateTargetGroupsRequest() (request *DisassociateTargetGroupsRequest) {
+ request = &DisassociateTargetGroupsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "DisassociateTargetGroups")
+
+
+ return
+}
+
+func NewDisassociateTargetGroupsResponse() (response *DisassociateTargetGroupsResponse) {
+ response = &DisassociateTargetGroupsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// DisassociateTargetGroups
+// This API is used to disassociate a target group from a rule.
+//
+// This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// When unbinding a Layer 7 forwarding rule, LocationId is a required item.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DisassociateTargetGroups(request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error) {
+ return c.DisassociateTargetGroupsWithContext(context.Background(), request)
+}
+
+// DisassociateTargetGroups
+// This API is used to disassociate a target group from a rule.
+//
+// This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// When unbinding a Layer 7 forwarding rule, LocationId is a required item.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) DisassociateTargetGroupsWithContext(ctx context.Context, request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error) {
+ if request == nil {
+ request = NewDisassociateTargetGroupsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "DisassociateTargetGroups")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("DisassociateTargetGroups require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewDisassociateTargetGroupsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewInquiryPriceCreateLoadBalancerRequest() (request *InquiryPriceCreateLoadBalancerRequest) {
+ request = &InquiryPriceCreateLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "InquiryPriceCreateLoadBalancer")
+
+
+ return
+}
+
+func NewInquiryPriceCreateLoadBalancerResponse() (response *InquiryPriceCreateLoadBalancerResponse) {
+ response = &InquiryPriceCreateLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// InquiryPriceCreateLoadBalancer
+// This API is used to query the price of creating a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) InquiryPriceCreateLoadBalancer(request *InquiryPriceCreateLoadBalancerRequest) (response *InquiryPriceCreateLoadBalancerResponse, err error) {
+ return c.InquiryPriceCreateLoadBalancerWithContext(context.Background(), request)
+}
+
+// InquiryPriceCreateLoadBalancer
+// This API is used to query the price of creating a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) InquiryPriceCreateLoadBalancerWithContext(ctx context.Context, request *InquiryPriceCreateLoadBalancerRequest) (response *InquiryPriceCreateLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewInquiryPriceCreateLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceCreateLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("InquiryPriceCreateLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewInquiryPriceCreateLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewInquiryPriceModifyLoadBalancerRequest() (request *InquiryPriceModifyLoadBalancerRequest) {
+ request = &InquiryPriceModifyLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "InquiryPriceModifyLoadBalancer")
+
+
+ return
+}
+
+func NewInquiryPriceModifyLoadBalancerResponse() (response *InquiryPriceModifyLoadBalancerResponse) {
+ response = &InquiryPriceModifyLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// InquiryPriceModifyLoadBalancer
+// This API is used to query the price of adjusting the specification of a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) InquiryPriceModifyLoadBalancer(request *InquiryPriceModifyLoadBalancerRequest) (response *InquiryPriceModifyLoadBalancerResponse, err error) {
+ return c.InquiryPriceModifyLoadBalancerWithContext(context.Background(), request)
+}
+
+// InquiryPriceModifyLoadBalancer
+// This API is used to query the price of adjusting the specification of a CLB instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) InquiryPriceModifyLoadBalancerWithContext(ctx context.Context, request *InquiryPriceModifyLoadBalancerRequest) (response *InquiryPriceModifyLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewInquiryPriceModifyLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceModifyLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("InquiryPriceModifyLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewInquiryPriceModifyLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewInquiryPriceRefundLoadBalancerRequest() (request *InquiryPriceRefundLoadBalancerRequest) {
+ request = &InquiryPriceRefundLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "InquiryPriceRefundLoadBalancer")
+
+
+ return
+}
+
+func NewInquiryPriceRefundLoadBalancerResponse() (response *InquiryPriceRefundLoadBalancerResponse) {
+ response = &InquiryPriceRefundLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// InquiryPriceRefundLoadBalancer
+// This API is used to query the refund price of Cloud Load Balancer and only supports prepaid load balancing instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+func (c *Client) InquiryPriceRefundLoadBalancer(request *InquiryPriceRefundLoadBalancerRequest) (response *InquiryPriceRefundLoadBalancerResponse, err error) {
+ return c.InquiryPriceRefundLoadBalancerWithContext(context.Background(), request)
+}
+
+// InquiryPriceRefundLoadBalancer
+// This API is used to query the refund price of Cloud Load Balancer and only supports prepaid load balancing instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+func (c *Client) InquiryPriceRefundLoadBalancerWithContext(ctx context.Context, request *InquiryPriceRefundLoadBalancerRequest) (response *InquiryPriceRefundLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewInquiryPriceRefundLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceRefundLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("InquiryPriceRefundLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewInquiryPriceRefundLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewInquiryPriceRenewLoadBalancerRequest() (request *InquiryPriceRenewLoadBalancerRequest) {
+ request = &InquiryPriceRenewLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "InquiryPriceRenewLoadBalancer")
+
+
+ return
+}
+
+func NewInquiryPriceRenewLoadBalancerResponse() (response *InquiryPriceRenewLoadBalancerResponse) {
+ response = &InquiryPriceRenewLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// InquiryPriceRenewLoadBalancer
+// This API is used to query the price of renewing a CLB instance. It's only available to prepaid CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) InquiryPriceRenewLoadBalancer(request *InquiryPriceRenewLoadBalancerRequest) (response *InquiryPriceRenewLoadBalancerResponse, err error) {
+ return c.InquiryPriceRenewLoadBalancerWithContext(context.Background(), request)
+}
+
+// InquiryPriceRenewLoadBalancer
+// This API is used to query the price of renewing a CLB instance. It's only available to prepaid CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) InquiryPriceRenewLoadBalancerWithContext(ctx context.Context, request *InquiryPriceRenewLoadBalancerRequest) (response *InquiryPriceRenewLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewInquiryPriceRenewLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "InquiryPriceRenewLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("InquiryPriceRenewLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewInquiryPriceRenewLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewManualRewriteRequest() (request *ManualRewriteRequest) {
+ request = &ManualRewriteRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ManualRewrite")
+
+
+ return
+}
+
+func NewManualRewriteResponse() (response *ManualRewriteResponse) {
+ response = &ManualRewriteResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ManualRewrite
+// After the original access address and the address to be redirected are configured manually, the system will automatically redirect requests made to the original access address to the target address of the corresponding path. Multiple paths can be configured as a redirection policy under one domain name to achieve automatic redirection between HTTP and HTTPS. A redirection policy should meet the following rules: if A has already been redirected to B, then it cannot be redirected to C (unless the original redirection relationship is deleted and a new one is created), and B cannot be redirected to any other addresses.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
+// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ManualRewrite(request *ManualRewriteRequest) (response *ManualRewriteResponse, err error) {
+ return c.ManualRewriteWithContext(context.Background(), request)
+}
+
+// ManualRewrite
+// After the original access address and the address to be redirected are configured manually, the system will automatically redirect requests made to the original access address to the target address of the corresponding path. Multiple paths can be configured as a redirection policy under one domain name to achieve automatic redirection between HTTP and HTTPS. A redirection policy should meet the following rules: if A has already been redirected to B, then it cannot be redirected to C (unless the original redirection relationship is deleted and a new one is created), and B cannot be redirected to any other addresses.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
+// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ManualRewriteWithContext(ctx context.Context, request *ManualRewriteRequest) (response *ManualRewriteResponse, err error) {
+ if request == nil {
+ request = NewManualRewriteRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ManualRewrite")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ManualRewrite require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewManualRewriteResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewMigrateClassicalLoadBalancersRequest() (request *MigrateClassicalLoadBalancersRequest) {
+ request = &MigrateClassicalLoadBalancersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "MigrateClassicalLoadBalancers")
+
+
+ return
+}
+
+func NewMigrateClassicalLoadBalancersResponse() (response *MigrateClassicalLoadBalancersResponse) {
+ response = &MigrateClassicalLoadBalancersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// MigrateClassicalLoadBalancers
+// This API is used to upgrade classic CLB instances to application CLB instances.
+//
+// This is an async API. After it is returned successfully, you can check the action result by calling `DescribeLoadBalancers`.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) MigrateClassicalLoadBalancers(request *MigrateClassicalLoadBalancersRequest) (response *MigrateClassicalLoadBalancersResponse, err error) {
+ return c.MigrateClassicalLoadBalancersWithContext(context.Background(), request)
+}
+
+// MigrateClassicalLoadBalancers
+// This API is used to upgrade classic CLB instances to application CLB instances.
+//
+// This is an async API. After it is returned successfully, you can check the action result by calling `DescribeLoadBalancers`.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) MigrateClassicalLoadBalancersWithContext(ctx context.Context, request *MigrateClassicalLoadBalancersRequest) (response *MigrateClassicalLoadBalancersResponse, err error) {
+ if request == nil {
+ request = NewMigrateClassicalLoadBalancersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "MigrateClassicalLoadBalancers")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("MigrateClassicalLoadBalancers require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewMigrateClassicalLoadBalancersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyBlockIPListRequest() (request *ModifyBlockIPListRequest) {
+ request = &ModifyBlockIPListRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyBlockIPList")
+
+
+ return
+}
+
+func NewModifyBlockIPListResponse() (response *ModifyBlockIPListResponse) {
+ response = &ModifyBlockIPListResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyBlockIPList
+// This API is used to modify the client IP blocklist of a CLB instance. One forwarding rule supports blocking up to 2,000,000 IPs. One blocklist can contain up to 2,000,000 entries.
+//
+// (This API is in beta test. To use it, please submit a ticket.)
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyBlockIPList(request *ModifyBlockIPListRequest) (response *ModifyBlockIPListResponse, err error) {
+ return c.ModifyBlockIPListWithContext(context.Background(), request)
+}
+
+// ModifyBlockIPList
+// This API is used to modify the client IP blocklist of a CLB instance. One forwarding rule supports blocking up to 2,000,000 IPs. One blocklist can contain up to 2,000,000 entries.
+//
+// (This API is in beta test. To use it, please submit a ticket.)
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyBlockIPListWithContext(ctx context.Context, request *ModifyBlockIPListRequest) (response *ModifyBlockIPListResponse, err error) {
+ if request == nil {
+ request = NewModifyBlockIPListRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyBlockIPList")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyBlockIPList require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyBlockIPListResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyCustomizedConfigRequest() (request *ModifyCustomizedConfigRequest) {
+ request = &ModifyCustomizedConfigRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyCustomizedConfig")
+
+
+ return
+}
+
+func NewModifyCustomizedConfigResponse() (response *ModifyCustomizedConfigResponse) {
+ response = &ModifyCustomizedConfigResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyCustomizedConfig
+// This API is used to modify personalized configuration. If the configuration is already bound to clb, server or location, update simultaneously. Prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyCustomizedConfig(request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, err error) {
+ return c.ModifyCustomizedConfigWithContext(context.Background(), request)
+}
+
+// ModifyCustomizedConfig
+// This API is used to modify personalized configuration. If the configuration is already bound to clb, server or location, update simultaneously. Prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyCustomizedConfigWithContext(ctx context.Context, request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, err error) {
+ if request == nil {
+ request = NewModifyCustomizedConfigRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyCustomizedConfig")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyCustomizedConfig require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyCustomizedConfigResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyDomainRequest() (request *ModifyDomainRequest) {
+ request = &ModifyDomainRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyDomain")
+
+
+ return
+}
+
+func NewModifyDomainResponse() (response *ModifyDomainResponse) {
+ response = &ModifyDomainResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyDomain
+// This API is used to modify the domain name under a layer-7 (HTTP/HTTPS) listener of Cloud Load Balancer.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyDomain(request *ModifyDomainRequest) (response *ModifyDomainResponse, err error) {
+ return c.ModifyDomainWithContext(context.Background(), request)
+}
+
+// ModifyDomain
+// This API is used to modify the domain name under a layer-7 (HTTP/HTTPS) listener of Cloud Load Balancer.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyDomainWithContext(ctx context.Context, request *ModifyDomainRequest) (response *ModifyDomainResponse, err error) {
+ if request == nil {
+ request = NewModifyDomainRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyDomain")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyDomain require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyDomainResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyDomainAttributesRequest() (request *ModifyDomainAttributesRequest) {
+ request = &ModifyDomainAttributesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyDomainAttributes")
+
+
+ return
+}
+
+func NewModifyDomainAttributesResponse() (response *ModifyDomainAttributesResponse) {
+ response = &ModifyDomainAttributesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyDomainAttributes
+// This API is used to modify domain-level attributes of Cloud Load Balancer layer-7 listener forwarding rules, such as modifying domain name, changing DefaultServer, enabling/disabling Http/2, and modifying certificates.
+//
+// This is an async API. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyDomainAttributes(request *ModifyDomainAttributesRequest) (response *ModifyDomainAttributesResponse, err error) {
+ return c.ModifyDomainAttributesWithContext(context.Background(), request)
+}
+
+// ModifyDomainAttributes
+// This API is used to modify domain-level attributes of Cloud Load Balancer layer-7 listener forwarding rules, such as modifying domain name, changing DefaultServer, enabling/disabling Http/2, and modifying certificates.
+//
+// This is an async API. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyDomainAttributesWithContext(ctx context.Context, request *ModifyDomainAttributesRequest) (response *ModifyDomainAttributesResponse, err error) {
+ if request == nil {
+ request = NewModifyDomainAttributesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyDomainAttributes")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyDomainAttributes require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyDomainAttributesResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyFunctionTargetsRequest() (request *ModifyFunctionTargetsRequest) {
+ request = &ModifyFunctionTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyFunctionTargets")
+
+
+ return
+}
+
+func NewModifyFunctionTargetsResponse() (response *ModifyFunctionTargetsResponse) {
+ response = &ModifyFunctionTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyFunctionTargets
+// This API is used to modify the SCF bound to a Cloud Load Balancer forwarding rule.
+//
+// This API is used to describe restrictions.
+//
+// -Only supports binding SCF of the "Event function" type.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyFunctionTargets(request *ModifyFunctionTargetsRequest) (response *ModifyFunctionTargetsResponse, err error) {
+ return c.ModifyFunctionTargetsWithContext(context.Background(), request)
+}
+
+// ModifyFunctionTargets
+// This API is used to modify the SCF bound to a Cloud Load Balancer forwarding rule.
+//
+// This API is used to describe restrictions.
+//
+// -Only supports binding SCF of the "Event function" type.
+//
+// error code that may be returned:
+// AUTHFAILURE = "AuthFailure"
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyFunctionTargetsWithContext(ctx context.Context, request *ModifyFunctionTargetsRequest) (response *ModifyFunctionTargetsResponse, err error) {
+ if request == nil {
+ request = NewModifyFunctionTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyFunctionTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyFunctionTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyFunctionTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyListenerRequest() (request *ModifyListenerRequest) {
+ request = &ModifyListenerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyListener")
+
+
+ return
+}
+
+func NewModifyListenerResponse() (response *ModifyListenerResponse) {
+ response = &ModifyListenerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyListener
+// This API is used to modify the attributes of a CLB instance listener, including the listener name, health check parameters, certificate information, and forwarding policy. This API does not support classic CLB instances.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyListener(request *ModifyListenerRequest) (response *ModifyListenerResponse, err error) {
+ return c.ModifyListenerWithContext(context.Background(), request)
+}
+
+// ModifyListener
+// This API is used to modify the attributes of a CLB instance listener, including the listener name, health check parameters, certificate information, and forwarding policy. This API does not support classic CLB instances.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyListenerWithContext(ctx context.Context, request *ModifyListenerRequest) (response *ModifyListenerResponse, err error) {
+ if request == nil {
+ request = NewModifyListenerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyListener")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyListener require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyListenerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyLoadBalancerAttributesRequest() (request *ModifyLoadBalancerAttributesRequest) {
+ request = &ModifyLoadBalancerAttributesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyLoadBalancerAttributes")
+
+
+ return
+}
+
+func NewModifyLoadBalancerAttributesResponse() (response *ModifyLoadBalancerAttributesResponse) {
+ response = &ModifyLoadBalancerAttributesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyLoadBalancerAttributes
+// This API is used to modify the attributes of a CLB instance, such as name and cross-region attributes.
+//
+// Non-bandwidth-upshift users must add their CLB instance to a bandwidth package to configure cross-domain attributes. To modify the network billing mode, go to the console.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyLoadBalancerAttributes(request *ModifyLoadBalancerAttributesRequest) (response *ModifyLoadBalancerAttributesResponse, err error) {
+ return c.ModifyLoadBalancerAttributesWithContext(context.Background(), request)
+}
+
+// ModifyLoadBalancerAttributes
+// This API is used to modify the attributes of a CLB instance, such as name and cross-region attributes.
+//
+// Non-bandwidth-upshift users must add their CLB instance to a bandwidth package to configure cross-domain attributes. To modify the network billing mode, go to the console.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyLoadBalancerAttributesWithContext(ctx context.Context, request *ModifyLoadBalancerAttributesRequest) (response *ModifyLoadBalancerAttributesResponse, err error) {
+ if request == nil {
+ request = NewModifyLoadBalancerAttributesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyLoadBalancerAttributes")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyLoadBalancerAttributes require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyLoadBalancerAttributesResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyLoadBalancerSlaRequest() (request *ModifyLoadBalancerSlaRequest) {
+ request = &ModifyLoadBalancerSlaRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyLoadBalancerSla")
+
+
+ return
+}
+
+func NewModifyLoadBalancerSlaResponse() (response *ModifyLoadBalancerSlaResponse) {
+ response = &ModifyLoadBalancerSlaResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyLoadBalancerSla
+// This API is used to adjust the performance capacity specification of usage-based billing mode instances, for example upgrading from shared type to performance capacity type or modifying the specification of LCU-supported instances.
+//
+// This API is used to set use limits.
+//
+// -This API only supports adjustments for pay-as-you-go CLB instances. For CLB instance upgrades with annual/monthly subscription, make adjustments through the console.
+//
+// -After upgrading from a shared instance to a performance and capacity instance, reverting to a shared instance is not supported.
+//
+// -A classic CLB instance does not support upgrading to a performance and capacity instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyLoadBalancerSla(request *ModifyLoadBalancerSlaRequest) (response *ModifyLoadBalancerSlaResponse, err error) {
+ return c.ModifyLoadBalancerSlaWithContext(context.Background(), request)
+}
+
+// ModifyLoadBalancerSla
+// This API is used to adjust the performance capacity specification of usage-based billing mode instances, for example upgrading from shared type to performance capacity type or modifying the specification of LCU-supported instances.
+//
+// This API is used to set use limits.
+//
+// -This API only supports adjustments for pay-as-you-go CLB instances. For CLB instance upgrades with annual/monthly subscription, make adjustments through the console.
+//
+// -After upgrading from a shared instance to a performance and capacity instance, reverting to a shared instance is not supported.
+//
+// -A classic CLB instance does not support upgrading to a performance and capacity instance.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyLoadBalancerSlaWithContext(ctx context.Context, request *ModifyLoadBalancerSlaRequest) (response *ModifyLoadBalancerSlaResponse, err error) {
+ if request == nil {
+ request = NewModifyLoadBalancerSlaRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyLoadBalancerSla")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyLoadBalancerSla require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyLoadBalancerSlaResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyLoadBalancersProjectRequest() (request *ModifyLoadBalancersProjectRequest) {
+ request = &ModifyLoadBalancersProjectRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyLoadBalancersProject")
+
+
+ return
+}
+
+func NewModifyLoadBalancersProjectResponse() (response *ModifyLoadBalancersProjectResponse) {
+ response = &ModifyLoadBalancersProjectResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyLoadBalancersProject
+// This API is used to modify the projects of CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyLoadBalancersProject(request *ModifyLoadBalancersProjectRequest) (response *ModifyLoadBalancersProjectResponse, err error) {
+ return c.ModifyLoadBalancersProjectWithContext(context.Background(), request)
+}
+
+// ModifyLoadBalancersProject
+// This API is used to modify the projects of CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyLoadBalancersProjectWithContext(ctx context.Context, request *ModifyLoadBalancersProjectRequest) (response *ModifyLoadBalancersProjectResponse, err error) {
+ if request == nil {
+ request = NewModifyLoadBalancersProjectRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyLoadBalancersProject")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyLoadBalancersProject require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyLoadBalancersProjectResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyRuleRequest() (request *ModifyRuleRequest) {
+ request = &ModifyRuleRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyRule")
+
+
+ return
+}
+
+func NewModifyRuleResponse() (response *ModifyRuleResponse) {
+ response = &ModifyRuleResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyRule
+// This API is used to modify the properties of forwarding rules under a layer-7 (HTTP/HTTPS) listener in Cloud Load Balancer, including forwarding path, health check attributes and forwarding policy.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyRule(request *ModifyRuleRequest) (response *ModifyRuleResponse, err error) {
+ return c.ModifyRuleWithContext(context.Background(), request)
+}
+
+// ModifyRule
+// This API is used to modify the properties of forwarding rules under a layer-7 (HTTP/HTTPS) listener in Cloud Load Balancer, including forwarding path, health check attributes and forwarding policy.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyRuleWithContext(ctx context.Context, request *ModifyRuleRequest) (response *ModifyRuleResponse, err error) {
+ if request == nil {
+ request = NewModifyRuleRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyRule")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyRule require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyRuleResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyTargetGroupAttributeRequest() (request *ModifyTargetGroupAttributeRequest) {
+ request = &ModifyTargetGroupAttributeRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyTargetGroupAttribute")
+
+
+ return
+}
+
+func NewModifyTargetGroupAttributeResponse() (response *ModifyTargetGroupAttributeResponse) {
+ response = &ModifyTargetGroupAttributeResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyTargetGroupAttribute
+// This API is used to rename a target group or modify its default port attribute.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetGroupAttribute(request *ModifyTargetGroupAttributeRequest) (response *ModifyTargetGroupAttributeResponse, err error) {
+ return c.ModifyTargetGroupAttributeWithContext(context.Background(), request)
+}
+
+// ModifyTargetGroupAttribute
+// This API is used to rename a target group or modify its default port attribute.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetGroupAttributeWithContext(ctx context.Context, request *ModifyTargetGroupAttributeRequest) (response *ModifyTargetGroupAttributeResponse, err error) {
+ if request == nil {
+ request = NewModifyTargetGroupAttributeRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetGroupAttribute")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyTargetGroupAttribute require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyTargetGroupAttributeResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyTargetGroupInstancesPortRequest() (request *ModifyTargetGroupInstancesPortRequest) {
+ request = &ModifyTargetGroupInstancesPortRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyTargetGroupInstancesPort")
+
+
+ return
+}
+
+func NewModifyTargetGroupInstancesPortResponse() (response *ModifyTargetGroupInstancesPortResponse) {
+ response = &ModifyTargetGroupInstancesPortResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyTargetGroupInstancesPort
+// This API is used to modify server ports of a target group in batches.
+//
+// This is an async API. After it is returned successfully, you can call the `DescribeTaskStatus` API with the returned `RequestID` as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetGroupInstancesPort(request *ModifyTargetGroupInstancesPortRequest) (response *ModifyTargetGroupInstancesPortResponse, err error) {
+ return c.ModifyTargetGroupInstancesPortWithContext(context.Background(), request)
+}
+
+// ModifyTargetGroupInstancesPort
+// This API is used to modify server ports of a target group in batches.
+//
+// This is an async API. After it is returned successfully, you can call the `DescribeTaskStatus` API with the returned `RequestID` as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetGroupInstancesPortWithContext(ctx context.Context, request *ModifyTargetGroupInstancesPortRequest) (response *ModifyTargetGroupInstancesPortResponse, err error) {
+ if request == nil {
+ request = NewModifyTargetGroupInstancesPortRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetGroupInstancesPort")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyTargetGroupInstancesPort require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyTargetGroupInstancesPortResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyTargetGroupInstancesWeightRequest() (request *ModifyTargetGroupInstancesWeightRequest) {
+ request = &ModifyTargetGroupInstancesWeightRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyTargetGroupInstancesWeight")
+
+
+ return
+}
+
+func NewModifyTargetGroupInstancesWeightResponse() (response *ModifyTargetGroupInstancesWeightResponse) {
+ response = &ModifyTargetGroupInstancesWeightResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyTargetGroupInstancesWeight
+// This API is used to modify server weights of a target group in batches.
+//
+// This is an async API. After it is returned successfully, you can call the `DescribeTaskStatus` API with the returned `RequestID` as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetGroupInstancesWeight(request *ModifyTargetGroupInstancesWeightRequest) (response *ModifyTargetGroupInstancesWeightResponse, err error) {
+ return c.ModifyTargetGroupInstancesWeightWithContext(context.Background(), request)
+}
+
+// ModifyTargetGroupInstancesWeight
+// This API is used to modify server weights of a target group in batches.
+//
+// This is an async API. After it is returned successfully, you can call the `DescribeTaskStatus` API with the returned `RequestID` as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetGroupInstancesWeightWithContext(ctx context.Context, request *ModifyTargetGroupInstancesWeightRequest) (response *ModifyTargetGroupInstancesWeightResponse, err error) {
+ if request == nil {
+ request = NewModifyTargetGroupInstancesWeightRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetGroupInstancesWeight")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyTargetGroupInstancesWeight require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyTargetGroupInstancesWeightResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyTargetPortRequest() (request *ModifyTargetPortRequest) {
+ request = &ModifyTargetPortRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyTargetPort")
+
+
+ return
+}
+
+func NewModifyTargetPortResponse() (response *ModifyTargetPortResponse) {
+ response = &ModifyTargetPortResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyTargetPort
+// This API (ModifyTargetPort) is used to modify the port of a real server bound to a listener.
+//
+// This is an async API. After it is returned successfully, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetPort(request *ModifyTargetPortRequest) (response *ModifyTargetPortResponse, err error) {
+ return c.ModifyTargetPortWithContext(context.Background(), request)
+}
+
+// ModifyTargetPort
+// This API (ModifyTargetPort) is used to modify the port of a real server bound to a listener.
+//
+// This is an async API. After it is returned successfully, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetPortWithContext(ctx context.Context, request *ModifyTargetPortRequest) (response *ModifyTargetPortResponse, err error) {
+ if request == nil {
+ request = NewModifyTargetPortRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetPort")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyTargetPort require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyTargetPortResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyTargetWeightRequest() (request *ModifyTargetWeightRequest) {
+ request = &ModifyTargetWeightRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ModifyTargetWeight")
+
+
+ return
+}
+
+func NewModifyTargetWeightResponse() (response *ModifyTargetWeightResponse) {
+ response = &ModifyTargetWeightResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyTargetWeight
+// This API is used to modify the forwarding weight of backend service bound to Cloud Load Balancer.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetWeight(request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error) {
+ return c.ModifyTargetWeightWithContext(context.Background(), request)
+}
+
+// ModifyTargetWeight
+// This API is used to modify the forwarding weight of backend service bound to Cloud Load Balancer.
+//
+// This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) ModifyTargetWeightWithContext(ctx context.Context, request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error) {
+ if request == nil {
+ request = NewModifyTargetWeightRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ModifyTargetWeight")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyTargetWeight require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyTargetWeightResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewRegisterFunctionTargetsRequest() (request *RegisterFunctionTargetsRequest) {
+ request = &RegisterFunctionTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "RegisterFunctionTargets")
+
+
+ return
+}
+
+func NewRegisterFunctionTargetsResponse() (response *RegisterFunctionTargetsResponse) {
+ response = &RegisterFunctionTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// RegisterFunctionTargets
+// This API is used to bind a cloud function to the forwarding rule of a Cloud Load Balancer. Before that, you need to create a related HTTP or HTTPS listener and forwarding rule.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// This API is used to describe restrictions.
+//
+// -SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
+//
+// -Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
+//
+// -Classic CLB does not support binding SCF.
+//
+// -Basic Network Type does not support binding SCF.
+//
+// -CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
+//
+// -Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
+//
+// -Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
+//
+// - CLB binding SCF only supports binding SCF of the "Event function" type.
+//
+// -A forwarding rule supports binding only one SCF.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterFunctionTargets(request *RegisterFunctionTargetsRequest) (response *RegisterFunctionTargetsResponse, err error) {
+ return c.RegisterFunctionTargetsWithContext(context.Background(), request)
+}
+
+// RegisterFunctionTargets
+// This API is used to bind a cloud function to the forwarding rule of a Cloud Load Balancer. Before that, you need to create a related HTTP or HTTPS listener and forwarding rule.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// This API is used to describe restrictions.
+//
+// -SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
+//
+// -Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
+//
+// -Classic CLB does not support binding SCF.
+//
+// -Basic Network Type does not support binding SCF.
+//
+// -CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
+//
+// -Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
+//
+// -Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
+//
+// - CLB binding SCF only supports binding SCF of the "Event function" type.
+//
+// -A forwarding rule supports binding only one SCF.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCENOTFOUND = "ResourceNotFound"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterFunctionTargetsWithContext(ctx context.Context, request *RegisterFunctionTargetsRequest) (response *RegisterFunctionTargetsResponse, err error) {
+ if request == nil {
+ request = NewRegisterFunctionTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterFunctionTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("RegisterFunctionTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewRegisterFunctionTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewRegisterTargetGroupInstancesRequest() (request *RegisterTargetGroupInstancesRequest) {
+ request = &RegisterTargetGroupInstancesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "RegisterTargetGroupInstances")
+
+
+ return
+}
+
+func NewRegisterTargetGroupInstancesResponse() (response *RegisterTargetGroupInstancesResponse) {
+ response = &RegisterTargetGroupInstancesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// RegisterTargetGroupInstances
+// This API is used to register servers to a target group.
+//
+// This is an async API. After it is returned successfully, you can call the `DescribeTaskStatus` API with the returned `RequestID` as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterTargetGroupInstances(request *RegisterTargetGroupInstancesRequest) (response *RegisterTargetGroupInstancesResponse, err error) {
+ return c.RegisterTargetGroupInstancesWithContext(context.Background(), request)
+}
+
+// RegisterTargetGroupInstances
+// This API is used to register servers to a target group.
+//
+// This is an async API. After it is returned successfully, you can call the `DescribeTaskStatus` API with the returned `RequestID` as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterTargetGroupInstancesWithContext(ctx context.Context, request *RegisterTargetGroupInstancesRequest) (response *RegisterTargetGroupInstancesResponse, err error) {
+ if request == nil {
+ request = NewRegisterTargetGroupInstancesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterTargetGroupInstances")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("RegisterTargetGroupInstances require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewRegisterTargetGroupInstancesResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewRegisterTargetsRequest() (request *RegisterTargetsRequest) {
+ request = &RegisterTargetsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "RegisterTargets")
+
+
+ return
+}
+
+func NewRegisterTargetsResponse() (response *RegisterTargetsResponse) {
+ response = &RegisterTargetsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// RegisterTargets
+// This API is used to bind one or more backend services to a Cloud Load Balancer listener or layer-7 forwarding rule. Before that, you need to create a related CLB layer-4 listener or layer-7 forwarding rule. For Layer-4 listeners (TCP/UDP), only specify the listener ID. For layer-7 (HTTP/HTTPS) listeners, forwarding rules must be specified through LocationId or Domain+Url.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterTargets(request *RegisterTargetsRequest) (response *RegisterTargetsResponse, err error) {
+ return c.RegisterTargetsWithContext(context.Background(), request)
+}
+
+// RegisterTargets
+// This API is used to bind one or more backend services to a Cloud Load Balancer listener or layer-7 forwarding rule. Before that, you need to create a related CLB layer-4 listener or layer-7 forwarding rule. For Layer-4 listeners (TCP/UDP), only specify the listener ID. For layer-7 (HTTP/HTTPS) listeners, forwarding rules must be specified through LocationId or Domain+Url.
+//
+// This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterTargetsWithContext(ctx context.Context, request *RegisterTargetsRequest) (response *RegisterTargetsResponse, err error) {
+ if request == nil {
+ request = NewRegisterTargetsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterTargets")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("RegisterTargets require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewRegisterTargetsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewRegisterTargetsWithClassicalLBRequest() (request *RegisterTargetsWithClassicalLBRequest) {
+ request = &RegisterTargetsWithClassicalLBRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "RegisterTargetsWithClassicalLB")
+
+
+ return
+}
+
+func NewRegisterTargetsWithClassicalLBResponse() (response *RegisterTargetsWithClassicalLBResponse) {
+ response = &RegisterTargetsWithClassicalLBResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// RegisterTargetsWithClassicalLB
+// This API is used to bind a real server with a classic CLB instance. This is an async API. After it is returned successfully, you can call the API `DescribeTaskStatus` with the returned RequestId as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterTargetsWithClassicalLB(request *RegisterTargetsWithClassicalLBRequest) (response *RegisterTargetsWithClassicalLBResponse, err error) {
+ return c.RegisterTargetsWithClassicalLBWithContext(context.Background(), request)
+}
+
+// RegisterTargetsWithClassicalLB
+// This API is used to bind a real server with a classic CLB instance. This is an async API. After it is returned successfully, you can call the API `DescribeTaskStatus` with the returned RequestId as an input parameter to check whether this task is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// RESOURCEINSUFFICIENT = "ResourceInsufficient"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) RegisterTargetsWithClassicalLBWithContext(ctx context.Context, request *RegisterTargetsWithClassicalLBRequest) (response *RegisterTargetsWithClassicalLBResponse, err error) {
+ if request == nil {
+ request = NewRegisterTargetsWithClassicalLBRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "RegisterTargetsWithClassicalLB")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("RegisterTargetsWithClassicalLB require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewRegisterTargetsWithClassicalLBResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewReplaceCertForLoadBalancersRequest() (request *ReplaceCertForLoadBalancersRequest) {
+ request = &ReplaceCertForLoadBalancersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "ReplaceCertForLoadBalancers")
+
+
+ return
+}
+
+func NewReplaceCertForLoadBalancersResponse() (response *ReplaceCertForLoadBalancersResponse) {
+ response = &ReplaceCertForLoadBalancersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ReplaceCertForLoadBalancers
+// This API (ReplaceCertForLoadBalancers) is used to replace the certificate associated with a CLB instance. A new certificates can be associated with a CLB only after the original certificate is disassociated from it.
+//
+// This API supports replacing server certificates and client certificates.
+//
+// The new certificate to be used can be specified by passing in the certificate ID. If no certificate ID is specified, relevant information such as certificate content must be passed in to create a new certificate and bind it to the CLB.
+//
+// Note: This API can only be called in the Guangzhou region; for other regions, an error will occur due to domain name resolution problems.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+func (c *Client) ReplaceCertForLoadBalancers(request *ReplaceCertForLoadBalancersRequest) (response *ReplaceCertForLoadBalancersResponse, err error) {
+ return c.ReplaceCertForLoadBalancersWithContext(context.Background(), request)
+}
+
+// ReplaceCertForLoadBalancers
+// This API (ReplaceCertForLoadBalancers) is used to replace the certificate associated with a CLB instance. A new certificates can be associated with a CLB only after the original certificate is disassociated from it.
+//
+// This API supports replacing server certificates and client certificates.
+//
+// The new certificate to be used can be specified by passing in the certificate ID. If no certificate ID is specified, relevant information such as certificate content must be passed in to create a new certificate and bind it to the CLB.
+//
+// Note: This API can only be called in the Guangzhou region; for other regions, an error will occur due to domain name resolution problems.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+func (c *Client) ReplaceCertForLoadBalancersWithContext(ctx context.Context, request *ReplaceCertForLoadBalancersRequest) (response *ReplaceCertForLoadBalancersResponse, err error) {
+ if request == nil {
+ request = NewReplaceCertForLoadBalancersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "ReplaceCertForLoadBalancers")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ReplaceCertForLoadBalancers require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewReplaceCertForLoadBalancersResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewSetCustomizedConfigForLoadBalancerRequest() (request *SetCustomizedConfigForLoadBalancerRequest) {
+ request = &SetCustomizedConfigForLoadBalancerRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "SetCustomizedConfigForLoadBalancer")
+
+
+ return
+}
+
+func NewSetCustomizedConfigForLoadBalancerResponse() (response *SetCustomizedConfigForLoadBalancerResponse) {
+ response = &SetCustomizedConfigForLoadBalancerResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// SetCustomizedConfigForLoadBalancer
+// This API is used to create or manage a user-defined CLB configuration template.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetCustomizedConfigForLoadBalancer(request *SetCustomizedConfigForLoadBalancerRequest) (response *SetCustomizedConfigForLoadBalancerResponse, err error) {
+ return c.SetCustomizedConfigForLoadBalancerWithContext(context.Background(), request)
+}
+
+// SetCustomizedConfigForLoadBalancer
+// This API is used to create or manage a user-defined CLB configuration template.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// MISSINGPARAMETER = "MissingParameter"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetCustomizedConfigForLoadBalancerWithContext(ctx context.Context, request *SetCustomizedConfigForLoadBalancerRequest) (response *SetCustomizedConfigForLoadBalancerResponse, err error) {
+ if request == nil {
+ request = NewSetCustomizedConfigForLoadBalancerRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetCustomizedConfigForLoadBalancer")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("SetCustomizedConfigForLoadBalancer require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewSetCustomizedConfigForLoadBalancerResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewSetLoadBalancerClsLogRequest() (request *SetLoadBalancerClsLogRequest) {
+ request = &SetLoadBalancerClsLogRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "SetLoadBalancerClsLog")
+
+
+ return
+}
+
+func NewSetLoadBalancerClsLogResponse() (response *SetLoadBalancerClsLogResponse) {
+ response = &SetLoadBalancerClsLogResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// SetLoadBalancerClsLog
+// This API is used to add, delete, and update the CLS topic of a CLB instance.
+//
+// error code that may be returned:
+// AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure"
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetLoadBalancerClsLog(request *SetLoadBalancerClsLogRequest) (response *SetLoadBalancerClsLogResponse, err error) {
+ return c.SetLoadBalancerClsLogWithContext(context.Background(), request)
+}
+
+// SetLoadBalancerClsLog
+// This API is used to add, delete, and update the CLS topic of a CLB instance.
+//
+// error code that may be returned:
+// AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure"
+// FAILEDOPERATION = "FailedOperation"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetLoadBalancerClsLogWithContext(ctx context.Context, request *SetLoadBalancerClsLogRequest) (response *SetLoadBalancerClsLogResponse, err error) {
+ if request == nil {
+ request = NewSetLoadBalancerClsLogRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetLoadBalancerClsLog")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("SetLoadBalancerClsLog require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewSetLoadBalancerClsLogResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewSetLoadBalancerSecurityGroupsRequest() (request *SetLoadBalancerSecurityGroupsRequest) {
+ request = &SetLoadBalancerSecurityGroupsRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "SetLoadBalancerSecurityGroups")
+
+
+ return
+}
+
+func NewSetLoadBalancerSecurityGroupsResponse() (response *SetLoadBalancerSecurityGroupsResponse) {
+ response = &SetLoadBalancerSecurityGroupsResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// SetLoadBalancerSecurityGroups
+// This API is used to bind or unbind security groups for a public network load balancing instance. To query currently bound security groups of a load balancing instance, use the DescribeLoadBalancers API (https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1). This API follows set semantics.
+//
+// This API is used to pass in all security groups that should be bound to the Cloud Load Balancer instance during the binding operation (bound + new binding).
+//
+// For unbinding operations, the input parameters should specify all security groups bound to a CLB instance after unbinding. If you want to unbind all security groups, you can omit this parameter or input an empty array. Note: After a private network CLB is bound to an EIP, the security groups on the CLB do not take effect for the traffic from the EIP, but take effect for the traffic from the private network CLB.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetLoadBalancerSecurityGroups(request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error) {
+ return c.SetLoadBalancerSecurityGroupsWithContext(context.Background(), request)
+}
+
+// SetLoadBalancerSecurityGroups
+// This API is used to bind or unbind security groups for a public network load balancing instance. To query currently bound security groups of a load balancing instance, use the DescribeLoadBalancers API (https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1). This API follows set semantics.
+//
+// This API is used to pass in all security groups that should be bound to the Cloud Load Balancer instance during the binding operation (bound + new binding).
+//
+// For unbinding operations, the input parameters should specify all security groups bound to a CLB instance after unbinding. If you want to unbind all security groups, you can omit this parameter or input an empty array. Note: After a private network CLB is bound to an EIP, the security groups on the CLB do not take effect for the traffic from the EIP, but take effect for the traffic from the private network CLB.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// LIMITEXCEEDED = "LimitExceeded"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetLoadBalancerSecurityGroupsWithContext(ctx context.Context, request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error) {
+ if request == nil {
+ request = NewSetLoadBalancerSecurityGroupsRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetLoadBalancerSecurityGroups")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("SetLoadBalancerSecurityGroups require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewSetLoadBalancerSecurityGroupsResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewSetLoadBalancerStartStatusRequest() (request *SetLoadBalancerStartStatusRequest) {
+ request = &SetLoadBalancerStartStatusRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "SetLoadBalancerStartStatus")
+
+
+ return
+}
+
+func NewSetLoadBalancerStartStatusResponse() (response *SetLoadBalancerStartStatusResponse) {
+ response = &SetLoadBalancerStartStatusResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// SetLoadBalancerStartStatus
+// This API is used to start or stop a load balancing instance or listener.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// This feature is currently in beta test. To use it, submit a [ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1) for application.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_NOLISTENERINLB = "FailedOperation.NoListenerInLB"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetLoadBalancerStartStatus(request *SetLoadBalancerStartStatusRequest) (response *SetLoadBalancerStartStatusResponse, err error) {
+ return c.SetLoadBalancerStartStatusWithContext(context.Background(), request)
+}
+
+// SetLoadBalancerStartStatus
+// This API is used to start or stop a load balancing instance or listener.
+//
+// This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
+//
+// This feature is currently in beta test. To use it, submit a [ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1) for application.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_NOLISTENERINLB = "FailedOperation.NoListenerInLB"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetLoadBalancerStartStatusWithContext(ctx context.Context, request *SetLoadBalancerStartStatusRequest) (response *SetLoadBalancerStartStatusResponse, err error) {
+ if request == nil {
+ request = NewSetLoadBalancerStartStatusRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetLoadBalancerStartStatus")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("SetLoadBalancerStartStatus require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewSetLoadBalancerStartStatusResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewSetSecurityGroupForLoadbalancersRequest() (request *SetSecurityGroupForLoadbalancersRequest) {
+ request = &SetSecurityGroupForLoadbalancersRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("clb", APIVersion, "SetSecurityGroupForLoadbalancers")
+
+
+ return
+}
+
+func NewSetSecurityGroupForLoadbalancersResponse() (response *SetSecurityGroupForLoadbalancersResponse) {
+ response = &SetSecurityGroupForLoadbalancersResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// SetSecurityGroupForLoadbalancers
+// This API is used to bind or unbind a security group to or from multiple public network CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetSecurityGroupForLoadbalancers(request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error) {
+ return c.SetSecurityGroupForLoadbalancersWithContext(context.Background(), request)
+}
+
+// SetSecurityGroupForLoadbalancers
+// This API is used to bind or unbind a security group to or from multiple public network CLB instances.
+//
+// error code that may be returned:
+// FAILEDOPERATION = "FailedOperation"
+// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+// INTERNALERROR = "InternalError"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+func (c *Client) SetSecurityGroupForLoadbalancersWithContext(ctx context.Context, request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error) {
+ if request == nil {
+ request = NewSetSecurityGroupForLoadbalancersRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "clb", APIVersion, "SetSecurityGroupForLoadbalancers")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("SetSecurityGroupForLoadbalancers require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewSetSecurityGroupForLoadbalancersResponse()
+ err = c.Send(request, response)
+ return
+}
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/errors.go
new file mode 100644
index 0000000000..69a6e0bc3d
--- /dev/null
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/errors.go
@@ -0,0 +1,136 @@
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package v20180317
+
+const (
+ // error codes for specific actions
+
+ // CAM signature/authentication error
+ AUTHFAILURE = "AuthFailure"
+
+ // Token error.
+ AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure"
+
+ // DryRun operation, which means the DryRun parameter is passed in yet the request will still be successful.
+ DRYRUNOPERATION = "DryRunOperation"
+
+ // Operation failed.
+ FAILEDOPERATION = "FailedOperation"
+
+ // Instance deletion is determined to be a high-risk operation through frequency verification. Please check the business or try again later.
+ FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk"
+
+ // Exceptional CLB instance status
+ FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
+
+ // Instances without listeners cannot be stopped.
+ FAILEDOPERATION_NOLISTENERINLB = "FailedOperation.NoListenerInLB"
+
+ // The specified resource is being cloned. please try again later.
+ FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning"
+
+ // The specified resource is currently being operated. Please try again later.
+ FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
+
+ // Instance deletion is determined to be a high-risk operation through rule quantity verification. To forcibly delete the instance, set the forced verification parameter ForceDelete to true.
+ FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk"
+
+ // Instance deletion is determined to be a high-risk operation through traffic verification. To forcibly delete the instance, set the forced verification parameter ForceDelete to true.
+ FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk"
+
+ // Internal error.
+ INTERNALERROR = "InternalError"
+
+ // Parameter error.
+ INVALIDPARAMETER = "InvalidParameter"
+
+ // To ensure no resource leakage and maintain the ID idempotence of created resources, ClientToken is used to create resources. If the order process has ended and shipment failed, or the order process has not been updated for a long time, a message will indicate that the current ClientToken has timed out.
+ INVALIDPARAMETER_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded"
+
+ // Wrong parameter format.
+ INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
+
+ // Failed to query the parameter
+ INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
+
+ // Wrong CLB instance ID.
+ INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
+
+ // Wrong listener ID.
+ INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
+
+ // Unable to find eligible forwarding rules.
+ INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
+
+ // Listener port checks failed due to port conflicts or other reasons.
+ INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
+
+ // Listener protocol checks failed because the protocol used is incompatible with the corresponding operation.
+ INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
+
+ // Invalid region.
+ INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
+
+ // The forwarding rule has already been bound to a redirection relationship.
+ INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
+
+ // Some redirection rules do not exist.
+ INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
+
+ // Incorrect parameter value.
+ INVALIDPARAMETERVALUE = "InvalidParameterValue"
+
+ // Duplicate parameter value.
+ INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
+
+ // Incorrect `Filter` parameter.
+ INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
+
+ // Wrong parameter length.
+ INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
+
+ // Wrong parameter value range.
+ INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+
+ // Quota exceeded.
+ LIMITEXCEEDED = "LimitExceeded"
+
+ // Missing parameter.
+ MISSINGPARAMETER = "MissingParameter"
+
+ // Operation denied.
+ OPERATIONDENIED = "OperationDenied"
+
+ // The number of requests exceeds the frequency limit.
+ REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
+
+ // The resource is occupied.
+ RESOURCEINUSE = "ResourceInUse"
+
+ // Insufficient resources.
+ RESOURCEINSUFFICIENT = "ResourceInsufficient"
+
+ // Resources do not exist.
+ RESOURCENOTFOUND = "ResourceNotFound"
+
+ // The resources have been sold out.
+ RESOURCESSOLDOUT = "ResourcesSoldOut"
+
+ // Unauthorized operation.
+ UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
+
+ // Unsupported operation.
+ UNSUPPORTEDOPERATION = "UnsupportedOperation"
+)
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/models.go
new file mode 100644
index 0000000000..934d6c6998
--- /dev/null
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317/models.go
@@ -0,0 +1,9592 @@
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package v20180317
+
+import (
+ tcerr "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/errors"
+ tchttp "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http"
+ "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/json"
+)
+
+// Predefined struct for user
+type AddCustomizedConfigRequestParams struct {
+ // Configuration name
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // Configuration type. valid values: ["CLB", "SERVER", "LOCATION"], respectively indicating CLB configuration, SERVER configuration, and LOCATION configuration.
+ ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
+
+ // Specifies the configuration content.
+ ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
+
+ // Tag.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+}
+
+type AddCustomizedConfigRequest struct {
+ *tchttp.BaseRequest
+
+ // Configuration name
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // Configuration type. valid values: ["CLB", "SERVER", "LOCATION"], respectively indicating CLB configuration, SERVER configuration, and LOCATION configuration.
+ ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
+
+ // Specifies the configuration content.
+ ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
+
+ // Tag.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+}
+
+func (r *AddCustomizedConfigRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AddCustomizedConfigRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ConfigName")
+ delete(f, "ConfigType")
+ delete(f, "ConfigContent")
+ delete(f, "Tags")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddCustomizedConfigRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type AddCustomizedConfigResponseParams struct {
+ // Configuration ID.
+ ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type AddCustomizedConfigResponse struct {
+ *tchttp.BaseResponse
+ Response *AddCustomizedConfigResponseParams `json:"Response"`
+}
+
+func (r *AddCustomizedConfigResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AddCustomizedConfigResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type AssociateCustomizedConfigRequestParams struct {
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Associated server or location
+ BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
+}
+
+type AssociateCustomizedConfigRequest struct {
+ *tchttp.BaseRequest
+
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Associated server or location
+ BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
+}
+
+func (r *AssociateCustomizedConfigRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AssociateCustomizedConfigRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "UconfigId")
+ delete(f, "BindList")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AssociateCustomizedConfigRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type AssociateCustomizedConfigResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type AssociateCustomizedConfigResponse struct {
+ *tchttp.BaseResponse
+ Response *AssociateCustomizedConfigResponseParams `json:"Response"`
+}
+
+func (r *AssociateCustomizedConfigResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AssociateCustomizedConfigResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type AssociateTargetGroupsRequestParams struct {
+ // Specifies the binding relationship array. the target group type should be the same.
+ // Specifies the maximum number of requests supported in a single request is 20.
+ Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
+}
+
+type AssociateTargetGroupsRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the binding relationship array. the target group type should be the same.
+ // Specifies the maximum number of requests supported in a single request is 20.
+ Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
+}
+
+func (r *AssociateTargetGroupsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AssociateTargetGroupsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Associations")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AssociateTargetGroupsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type AssociateTargetGroupsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type AssociateTargetGroupsResponse struct {
+ *tchttp.BaseResponse
+ Response *AssociateTargetGroupsResponseParams `json:"Response"`
+}
+
+func (r *AssociateTargetGroupsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AssociateTargetGroupsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type AssociationItem struct {
+ // ID of associated CLB instance
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of associated listener
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // ID of associated forwarding rule
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Protocol type of associated listener, such as HTTP or TCP
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Port of associated listener
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Domain name of associated forwarding rule
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // URL of associated forwarding rule
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // CLB instance name
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Listener name
+ ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
+
+ // Weight associated with the target group. this parameter takes effect only for the new version v2 target group.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Advanced routing rule ID.
+ RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
+}
+
+// Predefined struct for user
+type AutoRewriteRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // `HTTPS:443` listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // The domain name to be redirected under the listener `HTTPS:443`. If it is left empty, all domain names under the listener `HTTPS:443` will be configured with redirects.
+ Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
+
+ // Redirection status code. Valid values: 301, 302, and 307.
+ RewriteCodes []*int64 `json:"RewriteCodes,omitnil,omitempty" name:"RewriteCodes"`
+
+ // Whether the matched URL is carried in redirection.
+ TakeUrls []*bool `json:"TakeUrls,omitnil,omitempty" name:"TakeUrls"`
+}
+
+type AutoRewriteRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // `HTTPS:443` listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // The domain name to be redirected under the listener `HTTPS:443`. If it is left empty, all domain names under the listener `HTTPS:443` will be configured with redirects.
+ Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
+
+ // Redirection status code. Valid values: 301, 302, and 307.
+ RewriteCodes []*int64 `json:"RewriteCodes,omitnil,omitempty" name:"RewriteCodes"`
+
+ // Whether the matched URL is carried in redirection.
+ TakeUrls []*bool `json:"TakeUrls,omitnil,omitempty" name:"TakeUrls"`
+}
+
+func (r *AutoRewriteRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AutoRewriteRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Domains")
+ delete(f, "RewriteCodes")
+ delete(f, "TakeUrls")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AutoRewriteRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type AutoRewriteResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type AutoRewriteResponse struct {
+ *tchttp.BaseResponse
+ Response *AutoRewriteResponseParams `json:"Response"`
+}
+
+func (r *AutoRewriteResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *AutoRewriteResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type Backend struct {
+ // Specifies the backend service type. valid values: CVM, ENI, CCN, EVM, GLOBALROUTE, NAT, SRV.
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Unique ID of a real server, which can be obtained from the unInstanceId field in the return of the DescribeInstances API
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // Specifies the listening port of the backend service. if it is a full listening target group bound to a port range listener, this port returns 0, indicating an invalid port. the port of the bound backend service follows the listener port.
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Forwarding weight of a real server. Value range: [0, 100]. Default value: 10.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Public IP of a real server
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
+
+ // Private network IP of the real server
+ PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
+
+ // Real server instance names
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
+
+ // Real server binding time
+ RegisteredTime *string `json:"RegisteredTime,omitnil,omitempty" name:"RegisteredTime"`
+
+ // Unique ENI ID
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
+
+ // Tag.
+ Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
+}
+
+type BasicTargetGroupInfo struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Target group name
+ TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
+
+ // Specifies the weight of the target group.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+// Predefined struct for user
+type BatchDeregisterTargetsRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Unbinding targets
+ Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+type BatchDeregisterTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Unbinding targets
+ Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+func (r *BatchDeregisterTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchDeregisterTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "Targets")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BatchDeregisterTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type BatchDeregisterTargetsResponseParams struct {
+ // IDs of the listeners failed to unbind
+ FailListenerIdSet []*string `json:"FailListenerIdSet,omitnil,omitempty" name:"FailListenerIdSet"`
+
+ // Failed to unbind error reason information.
+ Message *string `json:"Message,omitnil,omitempty" name:"Message"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type BatchDeregisterTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *BatchDeregisterTargetsResponseParams `json:"Response"`
+}
+
+func (r *BatchDeregisterTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchDeregisterTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type BatchModifyTargetTagRequestParams struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of tags to be modified in batches.
+ ModifyList []*RsTagRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
+}
+
+type BatchModifyTargetTagRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of tags to be modified in batches.
+ ModifyList []*RsTagRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
+}
+
+func (r *BatchModifyTargetTagRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchModifyTargetTagRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ModifyList")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BatchModifyTargetTagRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type BatchModifyTargetTagResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type BatchModifyTargetTagResponse struct {
+ *tchttp.BaseResponse
+ Response *BatchModifyTargetTagResponseParams `json:"Response"`
+}
+
+func (r *BatchModifyTargetTagResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchModifyTargetTagResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type BatchModifyTargetWeightRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of weights to be modified in batches
+ ModifyList []*RsWeightRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
+}
+
+type BatchModifyTargetWeightRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of weights to be modified in batches
+ ModifyList []*RsWeightRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
+}
+
+func (r *BatchModifyTargetWeightRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchModifyTargetWeightRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ModifyList")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BatchModifyTargetWeightRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type BatchModifyTargetWeightResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type BatchModifyTargetWeightResponse struct {
+ *tchttp.BaseResponse
+ Response *BatchModifyTargetWeightResponseParams `json:"Response"`
+}
+
+func (r *BatchModifyTargetWeightResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchModifyTargetWeightResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type BatchRegisterTargetsRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Binding target
+ Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+type BatchRegisterTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Binding target
+ Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+func (r *BatchRegisterTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchRegisterTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "Targets")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BatchRegisterTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type BatchRegisterTargetsResponseParams struct {
+ // ID of the listener failed to bind. Empty indicates all listeners are bound successfully.
+ FailListenerIdSet []*string `json:"FailListenerIdSet,omitnil,omitempty" name:"FailListenerIdSet"`
+
+ // Information of the binding failure cause.
+ Message *string `json:"Message,omitnil,omitempty" name:"Message"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type BatchRegisterTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *BatchRegisterTargetsResponseParams `json:"Response"`
+}
+
+func (r *BatchRegisterTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *BatchRegisterTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type BatchTarget struct {
+ // Listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // The port to Bind
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // CVM instance ID. The primary IP of the primary ENI will be bound.
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // It is required for binding an IP. It supports an ENI IP or any other private IP. To bind an ENI IP, the ENI should be bound to a CVM instance before being bound to a CLB instance.
+ // Note: either `InstanceId` or `EniIp` must be passed in, which is required for binding a dual-stack IPv6 CVM instance.
+ EniIp *string `json:"EniIp,omitnil,omitempty" name:"EniIp"`
+
+ // Weight of the CVM instance. Value range: [0, 100]. If it is not specified for binding the instance, 10 will be used by default.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Layer-7 rule ID. This parameter is required for Layer-7 CLB.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Tag.
+ Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
+}
+
+type BindDetailItem struct {
+ // Specifies the ID of CLB to be bound
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the listener bound to the configuration
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Domain name bound to the configuration
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Rule bound to the configuration
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Listener name
+ ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
+
+ // Listener protocol
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port
+ Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
+
+ // URL of the location.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+}
+
+type BindItem struct {
+ // ID of the CLB instance bound to the configuration
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the listener bound to the configuration
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Domain name bound to the configuration
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Rule bound to the configuration
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+}
+
+type BlockedIP struct {
+ // Blacklisted IP
+ IP *string `json:"IP,omitnil,omitempty" name:"IP"`
+
+ // Blacklisted time
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
+
+ // Expiration time
+ ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
+}
+
+type CertIdRelatedWithLoadBalancers struct {
+ // Certificate ID
+ CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
+
+ // List of CLB instances associated with the certificate
+ LoadBalancers []*LoadBalancer `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
+}
+
+type CertInfo struct {
+ // ID of the certificate. If it's not specified, `CertContent` and `CertKey` are required. For a server certificate, you also need to specify `CertName`.
+ CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
+
+ // Name of the uploaded certificate. It's required if `CertId` is not specified.
+ CertName *string `json:"CertName,omitnil,omitempty" name:"CertName"`
+
+ // Public key of the uploaded certificate. This is required if `CertId` is not specified.
+ CertContent *string `json:"CertContent,omitnil,omitempty" name:"CertContent"`
+
+ // Private key of the uploaded server certificate. This is required if `CertId` is not specified.
+ CertKey *string `json:"CertKey,omitnil,omitempty" name:"CertKey"`
+}
+
+type CertificateInput struct {
+ // Authentication type. UNIDIRECTIONAL: one-way authentication; MUTUAL: mutual authentication.
+ // Default value: UNIDIRECTIONAL.
+ SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
+
+ // Whether to enable client authentication for mutual authentication. ON: enable it; OPTIONAL: client certificate not required. Default value: ON.
+ SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
+
+ // Server certificate ID. If this parameter is not specified, you need to upload a certificate and specify CertContent (server certificate content), CertKey (server certificate key), and CertName (server certificate name).
+ CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
+
+ // ID of a client certificate. When the listener adopts mutual authentication (i.e., SSLMode = mutual), if you leave this parameter empty, you must upload the client certificate, including CertCaContent and CertCaName.
+ CertCaId *string `json:"CertCaId,omitnil,omitempty" name:"CertCaId"`
+
+ // Name of the uploaded server certificate. If there is no CertId, this parameter is required.
+ CertName *string `json:"CertName,omitnil,omitempty" name:"CertName"`
+
+ // Key of the uploaded server certificate. If there is no CertId, this parameter is required.
+ CertKey *string `json:"CertKey,omitnil,omitempty" name:"CertKey"`
+
+ // Content of the uploaded server certificate. If there is no CertId, this parameter is required.
+ CertContent *string `json:"CertContent,omitnil,omitempty" name:"CertContent"`
+
+ // Upload client CA certificate name. if SSLMode=MUTUAL and there is no CertCaId, this parameter is required.
+ CertCaName *string `json:"CertCaName,omitnil,omitempty" name:"CertCaName"`
+
+ // Upload client certificate content. if SSLMode is MUTUAL and there is no CertCaId, this parameter is required.
+ CertCaContent *string `json:"CertCaContent,omitnil,omitempty" name:"CertCaContent"`
+}
+
+type CertificateOutput struct {
+ // Authentication type. Value range: UNIDIRECTIONAL (unidirectional authentication), MUTUAL (mutual authentication)
+ SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
+
+ // Specifies whether client certificate verification is enabled. this parameter is valid only when mutual authentication is enabled.
+ SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
+
+ // Server certificate ID.
+ CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
+
+ // Client certificate ID.
+ CertCaId *string `json:"CertCaId,omitnil,omitempty" name:"CertCaId"`
+
+ // Specifies the server certificate ID for multi-server certificate scenario expansion.
+ ExtCertIds []*string `json:"ExtCertIds,omitnil,omitempty" name:"ExtCertIds"`
+}
+
+type ClassicalHealth struct {
+ // Private IP of a real server
+ IP *string `json:"IP,omitnil,omitempty" name:"IP"`
+
+ // Real server port
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // CLB listener port
+ ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
+
+ // Forwarding protocol
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Health check result. Value range: 1 (healthy), 0 (unhealthy)
+ HealthStatus *int64 `json:"HealthStatus,omitnil,omitempty" name:"HealthStatus"`
+}
+
+type ClassicalListener struct {
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // CLB listener port
+ ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
+
+ // Backend forwarding port of a listener
+ InstancePort *int64 `json:"InstancePort,omitnil,omitempty" name:"InstancePort"`
+
+ // Listener name
+ ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
+
+ // Listener protocol type
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Session persistence time
+ SessionExpire *int64 `json:"SessionExpire,omitnil,omitempty" name:"SessionExpire"`
+
+ // Whether health check is enabled. 1: enabled; 0: disabled.
+ HealthSwitch *int64 `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
+
+ // Response timeout period
+ TimeOut *int64 `json:"TimeOut,omitnil,omitempty" name:"TimeOut"`
+
+ // Check interval
+ IntervalTime *int64 `json:"IntervalTime,omitnil,omitempty" name:"IntervalTime"`
+
+ // Health threshold
+ HealthNum *int64 `json:"HealthNum,omitnil,omitempty" name:"HealthNum"`
+
+ // Unhealthy threshold
+ UnhealthNum *int64 `json:"UnhealthNum,omitnil,omitempty" name:"UnhealthNum"`
+
+ // Request balancing method for listeners of the classic public network CLB. An empty string or wrr indicates weighted round robin. ip_hash indicates consistent hashing based on the accessed source IP address. least_conn indicates least connections.
+ HttpHash *string `json:"HttpHash,omitnil,omitempty" name:"HttpHash"`
+
+ // Health check return code for HTTP and HTTPS listeners of a public network classic CLB. For more information, see the explanation of the field in the listener creating API.
+ HttpCode *int64 `json:"HttpCode,omitnil,omitempty" name:"HttpCode"`
+
+ // Health check path for HTTP and HTTPS listeners of a public network classic CLB
+ HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
+
+ // Authentication method for an HTTPS listener of a public network classic CLB
+ SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
+
+ // Server certificate ID for an HTTPS listener of a public network classic CLB
+ CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
+
+ // Client certificate ID for an HTTPS listener of a public network classic CLB
+ CertCaId *string `json:"CertCaId,omitnil,omitempty" name:"CertCaId"`
+
+ // Listener status. Value range: 0 (creating), 1 (running)
+ Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
+}
+
+type ClassicalLoadBalancerInfo struct {
+ // Real server ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // CLB instance ID list
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+type ClassicalTarget struct {
+ // Real server type. Value range: CVM, ENI (coming soon)
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Unique ID of a real server, which can be obtained from the unInstanceId field in the return of the DescribeInstances API
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // Forwarding weight of a real server. Value range: [0, 100]. Default value: 10.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Public network IP of the real server
+ PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
+
+ // Private network IP of the real server
+ PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
+
+ // Instance name of the real server
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
+
+ // Backend service status.
+ // 1: failed; 2: running; 3: creating; 4: shut down; 5: returned; 6: returning; 7: restarting; 8: starting; 9: shutting down; 10: resetting password; 11: formatting; 12: making image; 13: setting bandwidth; 14: reinstalling system; 19: upgrading; 21: hot migrating.
+ RunFlag *int64 `json:"RunFlag,omitnil,omitempty" name:"RunFlag"`
+}
+
+type ClassicalTargetInfo struct {
+ // Real server ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // Weight. Value range: [0, 100]
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+// Predefined struct for user
+type CloneLoadBalancerRequestParams struct {
+ // Specifies the clb ID. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the name of the cloned load balancing instance. rule: 1-60 english letters, chinese characters, digits, connecting lines "-", or underscores "_".
+ // Note: if the name is identical to that of an existing load balancing instance in the system, the system will automatically generate a name for the created cloud load balancer instance.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not passed in, the default project will be used.
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // Sets the primary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`, which is applicable only to public network CLB.
+ // Note: A primary AZ loads traffic, while a secondary AZ does not load traffic by default and will be used only if the primary AZ becomes unavailable. The platform will automatically select the optimal secondary AZ. You can use the `DescribeResource` API to query the primary AZ list of a region.
+ MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
+
+ // Specifies the secondary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`. It is applicable only to public network CLB.
+ // Note: A secondary AZ will load traffic if the primary AZ is faulty. You can use the `DescribeMasterZones` API to query the primary and secondary AZ list of a region.
+ SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
+
+ // Applicable only to public network clb. AZ ID, both availability zone ID and name are supported. specify availability zone to create a load balancing instance, for example: 100001 or ap-guangzhou-1. if not passed, queries CVM instances in all azs. if needed, call the API for the query DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to specify availability zone.
+ ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+
+ // CLB network billing mode, applicable only to public network CLB instances.
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+
+ // It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
+ VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
+
+ // Specifies the Vip to apply for cloud load balancer.
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // Proceed to purchase cloud load balancer and Tag it at the same time.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // Exclusive cluster information.
+ ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
+
+ // BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies this parameter indicates the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE).
+ BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
+
+ // Specifies whether the cross-regional or cross-Vpc IP binding feature is supported.
+ SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
+
+ // Enables cross-regional or cross-Vpc IP binding and creates a SnatIp.
+ SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
+
+ // Public network exclusive cluster ID or CDCId. can be obtained through the [DescribeExclusiveClusters](https://www.tencentcloud.comom/document/product/214/49278?from_cn_redirect=1) api.
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // Performance capacity specification. clb.c2.medium (standard type) clb.c3.small (advanced type 1) clb.c3.medium (advanced type 2) clb.c4.small (high-strength type 1) clb.c4.medium (high-strength type 2) clb.c4.large (high-strength type 3) clb.c4.xlarge (high-strength type 4).
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // Specifies the Tag of the Stgw exclusive cluster.
+ ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
+
+ // Applicable only to private network clb. when connected to nearby, select availability zone for deployment. you can call DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to query the availability zone list.
+ Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
+
+ // The unique ID of EIP, such as EIP-qhx8udkc, applicable only to private network clb binding EIP, can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1).
+ EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
+}
+
+type CloneLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the clb ID. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the name of the cloned load balancing instance. rule: 1-60 english letters, chinese characters, digits, connecting lines "-", or underscores "_".
+ // Note: if the name is identical to that of an existing load balancing instance in the system, the system will automatically generate a name for the created cloud load balancer instance.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not passed in, the default project will be used.
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // Sets the primary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`, which is applicable only to public network CLB.
+ // Note: A primary AZ loads traffic, while a secondary AZ does not load traffic by default and will be used only if the primary AZ becomes unavailable. The platform will automatically select the optimal secondary AZ. You can use the `DescribeResource` API to query the primary AZ list of a region.
+ MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
+
+ // Specifies the secondary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`. It is applicable only to public network CLB.
+ // Note: A secondary AZ will load traffic if the primary AZ is faulty. You can use the `DescribeMasterZones` API to query the primary and secondary AZ list of a region.
+ SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
+
+ // Applicable only to public network clb. AZ ID, both availability zone ID and name are supported. specify availability zone to create a load balancing instance, for example: 100001 or ap-guangzhou-1. if not passed, queries CVM instances in all azs. if needed, call the API for the query DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to specify availability zone.
+ ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+
+ // CLB network billing mode, applicable only to public network CLB instances.
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+
+ // It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
+ VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
+
+ // Specifies the Vip to apply for cloud load balancer.
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // Proceed to purchase cloud load balancer and Tag it at the same time.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // Exclusive cluster information.
+ ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
+
+ // BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies this parameter indicates the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE).
+ BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
+
+ // Specifies whether the cross-regional or cross-Vpc IP binding feature is supported.
+ SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
+
+ // Enables cross-regional or cross-Vpc IP binding and creates a SnatIp.
+ SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
+
+ // Public network exclusive cluster ID or CDCId. can be obtained through the [DescribeExclusiveClusters](https://www.tencentcloud.comom/document/product/214/49278?from_cn_redirect=1) api.
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // Performance capacity specification. clb.c2.medium (standard type) clb.c3.small (advanced type 1) clb.c3.medium (advanced type 2) clb.c4.small (high-strength type 1) clb.c4.medium (high-strength type 2) clb.c4.large (high-strength type 3) clb.c4.xlarge (high-strength type 4).
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // Specifies the Tag of the Stgw exclusive cluster.
+ ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
+
+ // Applicable only to private network clb. when connected to nearby, select availability zone for deployment. you can call DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to query the availability zone list.
+ Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
+
+ // The unique ID of EIP, such as EIP-qhx8udkc, applicable only to private network clb binding EIP, can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1).
+ EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
+}
+
+func (r *CloneLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CloneLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "LoadBalancerName")
+ delete(f, "ProjectId")
+ delete(f, "MasterZoneId")
+ delete(f, "SlaveZoneId")
+ delete(f, "ZoneId")
+ delete(f, "InternetAccessible")
+ delete(f, "VipIsp")
+ delete(f, "Vip")
+ delete(f, "Tags")
+ delete(f, "ExclusiveCluster")
+ delete(f, "BandwidthPackageId")
+ delete(f, "SnatPro")
+ delete(f, "SnatIps")
+ delete(f, "ClusterIds")
+ delete(f, "SlaType")
+ delete(f, "ClusterTag")
+ delete(f, "Zones")
+ delete(f, "EipAddressId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CloneLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CloneLoadBalancerResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CloneLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *CloneLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *CloneLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CloneLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type ClusterItem struct {
+ // Unique cluster ID
+ ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
+
+ // Cluster name.
+ ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
+
+ // Cluster AZ, such as ap-guangzhou-1
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+}
+
+type ConfigListItem struct {
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Configuration type. available values: CLB (instance dimension configuration), SERVER (service dimension configuration), LOCATION (rule dimension configuration).
+ ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
+
+ // Configuration name
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // Configuration content.
+ ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
+
+ // Specifies the configured creation time.
+ // Format: YYYY-MM-DD HH:MM:ss.
+ CreateTimestamp *string `json:"CreateTimestamp,omitnil,omitempty" name:"CreateTimestamp"`
+
+ // Specifies the modification time of the configuration.
+ // Format: YYYY-MM-DD HH:MM:ss.
+ UpdateTimestamp *string `json:"UpdateTimestamp,omitnil,omitempty" name:"UpdateTimestamp"`
+}
+
+// Predefined struct for user
+type CreateClsLogSetRequestParams struct {
+ // Logset name, which must be unique among all CLS logsets; default value: clb_logset
+ LogsetName *string `json:"LogsetName,omitnil,omitempty" name:"LogsetName"`
+
+ // Logset retention period (in days)
+ //
+ // Deprecated: Period is deprecated.
+ Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
+
+ // Logset type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
+ LogsetType *string `json:"LogsetType,omitnil,omitempty" name:"LogsetType"`
+}
+
+type CreateClsLogSetRequest struct {
+ *tchttp.BaseRequest
+
+ // Logset name, which must be unique among all CLS logsets; default value: clb_logset
+ LogsetName *string `json:"LogsetName,omitnil,omitempty" name:"LogsetName"`
+
+ // Logset retention period (in days)
+ Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
+
+ // Logset type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
+ LogsetType *string `json:"LogsetType,omitnil,omitempty" name:"LogsetType"`
+}
+
+func (r *CreateClsLogSetRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateClsLogSetRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LogsetName")
+ delete(f, "Period")
+ delete(f, "LogsetType")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClsLogSetRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateClsLogSetResponseParams struct {
+ // Logset ID.
+ LogsetId *string `json:"LogsetId,omitnil,omitempty" name:"LogsetId"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateClsLogSetResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateClsLogSetResponseParams `json:"Response"`
+}
+
+func (r *CreateClsLogSetResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateClsLogSetResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateListenerRequestParams struct {
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Ports for creating listeners. Each port corresponds to a listener.
+ // Port range: 1–65535.
+ Ports []*int64 `json:"Ports,omitnil,omitempty" name:"Ports"`
+
+ // Listener protocol. Valid values: TCP, UDP, HTTP, HTTPS, TCP_SSL, and QUIC.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // List of names of listeners to be created. The names correspond to ports one by one. This parameter can be left blank if you do not want to name the listeners immediately.
+ ListenerNames []*string `json:"ListenerNames,omitnil,omitempty" name:"ListenerNames"`
+
+ // Health check parameter. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Certificate-related information. The parameter limitations are as follows:
+ // This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.
+ // Either this parameter or the MultiCertInfo parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Session persistence duration, in seconds. Value range: 30–3600. Default value: 0, indicating that session persistence is not enabled by default. This parameter applies only to TCP and UDP listeners.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Listener forwarding mode. valid values: WRR (weighted round-robin), LEAST_CONN (LEAST connections).
+ // Default value: WRR. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. 0: disable; 1: enable.
+ SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
+
+ // Real server type. NODE: ordinary node; TARGETGROUP: real server group. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Session persistence type. If this parameter is not specified or the value is set to NORMAL, the default session persistence type is used. QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules. (If the value is set to QUIC_CID, the Protocol value should be UDP, the Scheduler value should be WRR, and only IPv4 addresses are supported.)
+ SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
+
+ // Whether to enable the persistent connection feature. This parameter applies only to HTTP and HTTPS listeners. 0: disable; 1: enable. This feature is disabled by default.
+ // Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
+ KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // End port. This parameter is required for creating a listener with a port range. In this case, the input parameter Ports allows only one value to indicate the start port. To experience the port range feature, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
+ EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
+
+ // Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
+
+ // Certificate information. You can import multiple server certificates with different algorithms at the same time. The parameter limitations are as follows:
+ // This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.
+ // Either this parameter or the Certificate parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.
+ MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+
+ // Maximum number of connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of connections is not limited. This parameter is not supported for classic network-based instances.
+ MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
+
+ // Maximum number of new connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of new connections is not limited. This parameter is not supported for classic network-based instances.
+ MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
+
+ // Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding the permissible range, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
+ IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
+
+ // Specifies whether PP is supported for TCP_SSL and QUIC.
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
+ SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
+
+ // End port of a listener with a port range. Range of the port: 2–65535.
+ FullEndPorts []*int64 `json:"FullEndPorts,omitnil,omitempty" name:"FullEndPorts"`
+
+ // Enable private network http listener h2c switch. valid values: True (enable), False (disable).
+ // Disabled by default.
+ H2cSwitch *bool `json:"H2cSwitch,omitnil,omitempty" name:"H2cSwitch"`
+
+ // Whether to disable SSL for TCP_SSL listeners. dual-stack binding is still supported after SSL is disabled. valid values: True (disable), False (enable).
+ // Disabled by default.
+ SslCloseSwitch *bool `json:"SslCloseSwitch,omitnil,omitempty" name:"SslCloseSwitch"`
+
+ // Data compression mode. Valid values: transparent (passthrough mode) and compatibility (compatibility mode).
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
+}
+
+type CreateListenerRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Ports for creating listeners. Each port corresponds to a listener.
+ // Port range: 1–65535.
+ Ports []*int64 `json:"Ports,omitnil,omitempty" name:"Ports"`
+
+ // Listener protocol. Valid values: TCP, UDP, HTTP, HTTPS, TCP_SSL, and QUIC.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // List of names of listeners to be created. The names correspond to ports one by one. This parameter can be left blank if you do not want to name the listeners immediately.
+ ListenerNames []*string `json:"ListenerNames,omitnil,omitempty" name:"ListenerNames"`
+
+ // Health check parameter. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Certificate-related information. The parameter limitations are as follows:
+ // This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.
+ // Either this parameter or the MultiCertInfo parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Session persistence duration, in seconds. Value range: 30–3600. Default value: 0, indicating that session persistence is not enabled by default. This parameter applies only to TCP and UDP listeners.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Listener forwarding mode. valid values: WRR (weighted round-robin), LEAST_CONN (LEAST connections).
+ // Default value: WRR. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. 0: disable; 1: enable.
+ SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
+
+ // Real server type. NODE: ordinary node; TARGETGROUP: real server group. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Session persistence type. If this parameter is not specified or the value is set to NORMAL, the default session persistence type is used. QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules. (If the value is set to QUIC_CID, the Protocol value should be UDP, the Scheduler value should be WRR, and only IPv4 addresses are supported.)
+ SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
+
+ // Whether to enable the persistent connection feature. This parameter applies only to HTTP and HTTPS listeners. 0: disable; 1: enable. This feature is disabled by default.
+ // Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
+ KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // End port. This parameter is required for creating a listener with a port range. In this case, the input parameter Ports allows only one value to indicate the start port. To experience the port range feature, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
+ EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
+
+ // Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
+
+ // Certificate information. You can import multiple server certificates with different algorithms at the same time. The parameter limitations are as follows:
+ // This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.
+ // Either this parameter or the Certificate parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.
+ MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+
+ // Maximum number of connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of connections is not limited. This parameter is not supported for classic network-based instances.
+ MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
+
+ // Maximum number of new connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of new connections is not limited. This parameter is not supported for classic network-based instances.
+ MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
+
+ // Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding the permissible range, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
+ IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
+
+ // Specifies whether PP is supported for TCP_SSL and QUIC.
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
+ SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
+
+ // End port of a listener with a port range. Range of the port: 2–65535.
+ FullEndPorts []*int64 `json:"FullEndPorts,omitnil,omitempty" name:"FullEndPorts"`
+
+ // Enable private network http listener h2c switch. valid values: True (enable), False (disable).
+ // Disabled by default.
+ H2cSwitch *bool `json:"H2cSwitch,omitnil,omitempty" name:"H2cSwitch"`
+
+ // Whether to disable SSL for TCP_SSL listeners. dual-stack binding is still supported after SSL is disabled. valid values: True (disable), False (enable).
+ // Disabled by default.
+ SslCloseSwitch *bool `json:"SslCloseSwitch,omitnil,omitempty" name:"SslCloseSwitch"`
+
+ // Data compression mode. Valid values: transparent (passthrough mode) and compatibility (compatibility mode).
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
+}
+
+func (r *CreateListenerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateListenerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "Ports")
+ delete(f, "Protocol")
+ delete(f, "ListenerNames")
+ delete(f, "HealthCheck")
+ delete(f, "Certificate")
+ delete(f, "SessionExpireTime")
+ delete(f, "Scheduler")
+ delete(f, "SniSwitch")
+ delete(f, "TargetType")
+ delete(f, "SessionType")
+ delete(f, "KeepaliveEnable")
+ delete(f, "EndPort")
+ delete(f, "DeregisterTargetRst")
+ delete(f, "MultiCertInfo")
+ delete(f, "MaxConn")
+ delete(f, "MaxCps")
+ delete(f, "IdleConnectTimeout")
+ delete(f, "ProxyProtocol")
+ delete(f, "SnatEnable")
+ delete(f, "FullEndPorts")
+ delete(f, "H2cSwitch")
+ delete(f, "SslCloseSwitch")
+ delete(f, "DataCompressMode")
+ delete(f, "RescheduleTargetZeroWeight")
+ delete(f, "RescheduleUnhealthy")
+ delete(f, "RescheduleExpandTarget")
+ delete(f, "RescheduleStartTime")
+ delete(f, "RescheduleInterval")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateListenerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateListenerResponseParams struct {
+ // Array of the unique IDs of created listeners.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateListenerResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateListenerResponseParams `json:"Response"`
+}
+
+func (r *CreateListenerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateListenerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateLoadBalancerRequestParams struct {
+ // CLB instance network type:
+ // OPEN: public network; INTERNAL: private network.
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // CLB instance type. Valid value: 1 (generic CLB instance).
+ Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
+
+ // CLB instance name, which takes effect only when only one instance is to be created in the request. It can consist 1 to 60 letters, digits, hyphens (-), or underscores (_).
+ // Note: if the name of the new CLB instance already exists, a default name will be generated automatically.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Network ID of the target device on the CLB backend, such as `vpc-12345678`, which can be obtained through the `DescribeVpcEx` API. If this parameter is not entered, `DefaultVPC` is used by default. This parameter is required when creating a private network instance.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // A subnet ID should be specified when you purchase a private network CLB instance under a VPC. The VIP of the private network CLB instance is in this subnet. This parameter is required when you create a private network CLB instance but not supported when you create a public network IPv4 CLB instance.
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
+
+ // ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not entered, the default project will be used.
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // It's only applicable to public network CLB instances. IP version. Values: `IPV4`, `IPV6` and `IPv6FullChain` (case-insensitive). Default: `IPV4`. Note: `IPV6` indicates IPv6 NAT64, while `IPv6FullChain` indicates IPv6.
+ AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
+
+ // Specifies the count of cloud load balancers to create, with a default value of 1. the count must not exceed the maximum value allowed for the account, with a default creation maximum value of 20.
+ Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
+
+ // Applicable only to public network IPv4 cloud load balancer instances. specifies the primary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
+ // Note: the primary AZ loads traffic. the secondary AZ does not load traffic by default and is used only if the primary AZ becomes unavailable.
+ MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
+
+ // Applicable only to public network IPv4 clb instances. specifies the AZ ID or availability zone name for creating a clb instance. for example, 100001 or ap-guangzhou-1.
+ ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+
+ // Network billing mode by the maximum outbound bandwidth. It applies only to private network LCU-supported instances and all public network instances. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+
+ // ISP of VIP. Values: `CMCC` (China Mobile), `CUCC` (China Unicom) and `CTCC` (China Telecom). You need to activate static single-line IPs. This feature is in beta and is only available in Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu and Chongqing regions. To try it out, please contact your sales rep. If it's specified, the network billing mode must be `BANDWIDTH_PACKAGE`. If it's not specified, BGP is used by default. To query ISPs supported in a region, please use [DescribeResources](https://intl.cloud.tencent.com/document/api/214/70213?from_cn_redirect=1).
+ VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
+
+ // Tags the CLB instance when purchasing it. Up to 20 tag key value pairs are supported.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // Specifies the VIP for the application of a CLB instance. This parameter is optional. If you do not specify this parameter, the system automatically assigns a value for the parameter. IPv4 and IPv6 CLB instances support this parameter, but IPv6 NAT64 CLB instances do not.
+ // Note: If the specified VIP is occupied or is not within the IP range of the specified VPC subnet, you cannot use the VIP to create a CLB instance in a private network or an IPv6 BGP CLB instance in a public network.
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies the BANDWIDTH PACKAGE ID. when this parameter is specified, the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE). the attributes of the BANDWIDTH PACKAGE determine the settlement method. for IPv6 clb instances purchased by non-promoted users, if the operator type is not BGP, the BANDWIDTH PACKAGE ID cannot be specified.
+ BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
+
+ // Information about the dedicated CLB instance. You must specify this parameter when you create a dedicated CLB instance in a private network.
+ ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
+
+ // Specification of the LCU-supported instance.- If you need to create an LCU-supported instance, this parameter is required. Valid values:
- clb.c2.medium: Standard
- clb.c3.small: Advanced 1
- clb.c3.medium: Advanced 2
- clb.c4.small: Super Large 1
- clb.c4.medium: Super Large 2
- clb.c4.large: Super Large 3
- clb.c4.xlarge: Super Large 4
- If you need to create a shared instance, this parameter is not required.
For specification details, see [Instance Specifications Comparison](https://intl.cloud.tencent.com/document/product/214/84689?from_cn_redirect=1).
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // Cluster ID. This cluster identifier is used for configuring a public cloud exclusive cluster or a cloud dedicated cluster. To apply for a public cloud exclusive cluster, [submit a ticket](https://console.cloud.tencent.com/workorder/category). For cloud dedicated clusters, see the descriptions in [Cloud Dedicated Cluster](https://intl.cloud.tencent.com/document/product/1346?from_cn_redirect=1).
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
+ ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
+
+ // Whether Binding IPs of other VPCs feature switch
+ SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
+
+ // Creates `SnatIp` when the binding IPs of other VPCs feature is enabled
+ SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
+
+ // Tag for the STGW exclusive cluster.
+ ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
+
+ // Applicable only to public network IPv4 clb instances. specifies the secondary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
+ // Note: The secondary AZ sustains traffic when the primary AZ encounters faults. You can call the [DescribeResources](https://www.tencentcloud.comom/document/api/214/70213?from_cn_redirect=1) API to query the list of primary/secondary AZs in a region. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
+
+ // The unique ID of EIP, which can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1). format: EIP-qhx8udkc. applicable only to private network clb binding EIP.
+ EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
+
+ // Specifies whether to allow CLB traffic to the Target. enable (true): verify security groups on CLB. disable (false): verify security groups on both CLB and backend instances. IPv6 CLB security group default permit, this parameter is not required.
+ LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
+
+ // Upgrades to domain name-based CLB
+ DynamicVip *bool `json:"DynamicVip,omitnil,omitempty" name:"DynamicVip"`
+
+ // Network egress point
+ Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
+
+ // Prepayment-related attributes of a CLB instance. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ LBChargePrepaid *LBChargePrepaid `json:"LBChargePrepaid,omitnil,omitempty" name:"LBChargePrepaid"`
+
+ // Billing type of a CLB instance. Valid values: POSTPAID_BY_HOUR and PREPAID. Default value: POSTPAID_BY_HOUR. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
+
+ // Topic ID of logs of traffic access over layer-7 protocols.
+ AccessLogTopicId *string `json:"AccessLogTopicId,omitnil,omitempty" name:"AccessLogTopicId"`
+
+ // Whether layer-7 advanced routing is enabled.
+ AdvancedRoute *bool `json:"AdvancedRoute,omitnil,omitempty" name:"AdvancedRoute"`
+}
+
+type CreateLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance network type:
+ // OPEN: public network; INTERNAL: private network.
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // CLB instance type. Valid value: 1 (generic CLB instance).
+ Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
+
+ // CLB instance name, which takes effect only when only one instance is to be created in the request. It can consist 1 to 60 letters, digits, hyphens (-), or underscores (_).
+ // Note: if the name of the new CLB instance already exists, a default name will be generated automatically.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Network ID of the target device on the CLB backend, such as `vpc-12345678`, which can be obtained through the `DescribeVpcEx` API. If this parameter is not entered, `DefaultVPC` is used by default. This parameter is required when creating a private network instance.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // A subnet ID should be specified when you purchase a private network CLB instance under a VPC. The VIP of the private network CLB instance is in this subnet. This parameter is required when you create a private network CLB instance but not supported when you create a public network IPv4 CLB instance.
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
+
+ // ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not entered, the default project will be used.
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // It's only applicable to public network CLB instances. IP version. Values: `IPV4`, `IPV6` and `IPv6FullChain` (case-insensitive). Default: `IPV4`. Note: `IPV6` indicates IPv6 NAT64, while `IPv6FullChain` indicates IPv6.
+ AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
+
+ // Specifies the count of cloud load balancers to create, with a default value of 1. the count must not exceed the maximum value allowed for the account, with a default creation maximum value of 20.
+ Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
+
+ // Applicable only to public network IPv4 cloud load balancer instances. specifies the primary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
+ // Note: the primary AZ loads traffic. the secondary AZ does not load traffic by default and is used only if the primary AZ becomes unavailable.
+ MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
+
+ // Applicable only to public network IPv4 clb instances. specifies the AZ ID or availability zone name for creating a clb instance. for example, 100001 or ap-guangzhou-1.
+ ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+
+ // Network billing mode by the maximum outbound bandwidth. It applies only to private network LCU-supported instances and all public network instances. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+
+ // ISP of VIP. Values: `CMCC` (China Mobile), `CUCC` (China Unicom) and `CTCC` (China Telecom). You need to activate static single-line IPs. This feature is in beta and is only available in Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu and Chongqing regions. To try it out, please contact your sales rep. If it's specified, the network billing mode must be `BANDWIDTH_PACKAGE`. If it's not specified, BGP is used by default. To query ISPs supported in a region, please use [DescribeResources](https://intl.cloud.tencent.com/document/api/214/70213?from_cn_redirect=1).
+ VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
+
+ // Tags the CLB instance when purchasing it. Up to 20 tag key value pairs are supported.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // Specifies the VIP for the application of a CLB instance. This parameter is optional. If you do not specify this parameter, the system automatically assigns a value for the parameter. IPv4 and IPv6 CLB instances support this parameter, but IPv6 NAT64 CLB instances do not.
+ // Note: If the specified VIP is occupied or is not within the IP range of the specified VPC subnet, you cannot use the VIP to create a CLB instance in a private network or an IPv6 BGP CLB instance in a public network.
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies the BANDWIDTH PACKAGE ID. when this parameter is specified, the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE). the attributes of the BANDWIDTH PACKAGE determine the settlement method. for IPv6 clb instances purchased by non-promoted users, if the operator type is not BGP, the BANDWIDTH PACKAGE ID cannot be specified.
+ BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
+
+ // Information about the dedicated CLB instance. You must specify this parameter when you create a dedicated CLB instance in a private network.
+ ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
+
+ // Specification of the LCU-supported instance.- If you need to create an LCU-supported instance, this parameter is required. Valid values:
- clb.c2.medium: Standard
- clb.c3.small: Advanced 1
- clb.c3.medium: Advanced 2
- clb.c4.small: Super Large 1
- clb.c4.medium: Super Large 2
- clb.c4.large: Super Large 3
- clb.c4.xlarge: Super Large 4
- If you need to create a shared instance, this parameter is not required.
For specification details, see [Instance Specifications Comparison](https://intl.cloud.tencent.com/document/product/214/84689?from_cn_redirect=1).
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // Cluster ID. This cluster identifier is used for configuring a public cloud exclusive cluster or a cloud dedicated cluster. To apply for a public cloud exclusive cluster, [submit a ticket](https://console.cloud.tencent.com/workorder/category). For cloud dedicated clusters, see the descriptions in [Cloud Dedicated Cluster](https://intl.cloud.tencent.com/document/product/1346?from_cn_redirect=1).
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
+ ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
+
+ // Whether Binding IPs of other VPCs feature switch
+ SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
+
+ // Creates `SnatIp` when the binding IPs of other VPCs feature is enabled
+ SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
+
+ // Tag for the STGW exclusive cluster.
+ ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
+
+ // Applicable only to public network IPv4 clb instances. specifies the secondary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
+ // Note: The secondary AZ sustains traffic when the primary AZ encounters faults. You can call the [DescribeResources](https://www.tencentcloud.comom/document/api/214/70213?from_cn_redirect=1) API to query the list of primary/secondary AZs in a region. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
+
+ // The unique ID of EIP, which can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1). format: EIP-qhx8udkc. applicable only to private network clb binding EIP.
+ EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
+
+ // Specifies whether to allow CLB traffic to the Target. enable (true): verify security groups on CLB. disable (false): verify security groups on both CLB and backend instances. IPv6 CLB security group default permit, this parameter is not required.
+ LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
+
+ // Upgrades to domain name-based CLB
+ DynamicVip *bool `json:"DynamicVip,omitnil,omitempty" name:"DynamicVip"`
+
+ // Network egress point
+ Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
+
+ // Prepayment-related attributes of a CLB instance. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ LBChargePrepaid *LBChargePrepaid `json:"LBChargePrepaid,omitnil,omitempty" name:"LBChargePrepaid"`
+
+ // Billing type of a CLB instance. Valid values: POSTPAID_BY_HOUR and PREPAID. Default value: POSTPAID_BY_HOUR. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
+ LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
+
+ // Topic ID of logs of traffic access over layer-7 protocols.
+ AccessLogTopicId *string `json:"AccessLogTopicId,omitnil,omitempty" name:"AccessLogTopicId"`
+
+ // Whether layer-7 advanced routing is enabled.
+ AdvancedRoute *bool `json:"AdvancedRoute,omitnil,omitempty" name:"AdvancedRoute"`
+}
+
+func (r *CreateLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerType")
+ delete(f, "Forward")
+ delete(f, "LoadBalancerName")
+ delete(f, "VpcId")
+ delete(f, "SubnetId")
+ delete(f, "ProjectId")
+ delete(f, "AddressIPVersion")
+ delete(f, "Number")
+ delete(f, "MasterZoneId")
+ delete(f, "ZoneId")
+ delete(f, "InternetAccessible")
+ delete(f, "VipIsp")
+ delete(f, "Tags")
+ delete(f, "Vip")
+ delete(f, "BandwidthPackageId")
+ delete(f, "ExclusiveCluster")
+ delete(f, "SlaType")
+ delete(f, "ClusterIds")
+ delete(f, "ClientToken")
+ delete(f, "SnatPro")
+ delete(f, "SnatIps")
+ delete(f, "ClusterTag")
+ delete(f, "SlaveZoneId")
+ delete(f, "EipAddressId")
+ delete(f, "LoadBalancerPassToTarget")
+ delete(f, "DynamicVip")
+ delete(f, "Egress")
+ delete(f, "LBChargePrepaid")
+ delete(f, "LBChargeType")
+ delete(f, "AccessLogTopicId")
+ delete(f, "AdvancedRoute")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateLoadBalancerResponseParams struct {
+ // Array of unique CLB instance IDs.
+ // This field may return `null` in some cases, such as there is delay during instance creation. You can query the IDs of the created instances by invoking `DescribeTaskStatus` with the `RequestId` or `DealName` returned by this API.
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Order ID.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *CreateLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateLoadBalancerSnatIpsRequestParams struct {
+ // Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID, such as lb-12345678.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Added SnatIp information. specify IP for request or designated subnet for automatic application. can be accessed through [DescribeSubnets](https://www.tencentcloud.comom/document/api/215/15784?from_cn_redirect=1) to query and retrieve. the default upper limit for one CLB instance is 10.
+ SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
+
+ // Number of SNAT IPs to be added. This parameter is used in conjunction with `SnatIps`. Note that if `Ip` is specified in `SnapIps`, this parameter is not available. It defaults to `1` and the upper limit is `10`.
+ Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
+}
+
+type CreateLoadBalancerSnatIpsRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID, such as lb-12345678.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Added SnatIp information. specify IP for request or designated subnet for automatic application. can be accessed through [DescribeSubnets](https://www.tencentcloud.comom/document/api/215/15784?from_cn_redirect=1) to query and retrieve. the default upper limit for one CLB instance is 10.
+ SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
+
+ // Number of SNAT IPs to be added. This parameter is used in conjunction with `SnatIps`. Note that if `Ip` is specified in `SnapIps`, this parameter is not available. It defaults to `1` and the upper limit is `10`.
+ Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
+}
+
+func (r *CreateLoadBalancerSnatIpsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateLoadBalancerSnatIpsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "SnatIps")
+ delete(f, "Number")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateLoadBalancerSnatIpsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateLoadBalancerSnatIpsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateLoadBalancerSnatIpsResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateLoadBalancerSnatIpsResponseParams `json:"Response"`
+}
+
+func (r *CreateLoadBalancerSnatIpsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateLoadBalancerSnatIpsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateRuleRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the listener ID, which can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Information of the new forwarding rule
+ Rules []*RuleInput `json:"Rules,omitnil,omitempty" name:"Rules"`
+}
+
+type CreateRuleRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the listener ID, which can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Information of the new forwarding rule
+ Rules []*RuleInput `json:"Rules,omitnil,omitempty" name:"Rules"`
+}
+
+func (r *CreateRuleRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateRuleRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Rules")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateRuleRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateRuleResponseParams struct {
+ // Array of unique IDs of created forwarding rules
+ LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateRuleResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateRuleResponseParams `json:"Response"`
+}
+
+func (r *CreateRuleResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateRuleResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateTargetGroupRequestParams struct {
+ // Target group name (up to 50 characters)
+ TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
+
+ // Specifies the vpc id attribute of the target group. uses the default vpc if left empty.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Specifies the default Port of the target group. the default Port can be used when servers are added subsequently. this parameter is not supported for full-listen target groups. for non-full-listen target groups, either Port or Port in TargetGroupInstances.N is required.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Specifies the real servers bound to the target group. supports up to 50 at a time.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+
+ // Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Health check.
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
+ // WRR: weighted round-robin.LEAST_CONN: LEAST connection.IP_HASH: based on IP HASH.default is WRR..
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // Tag.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // Specifies the default weight of the backend service. among them:.
+ // - Value ranges from 0 to 100.
- after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.
- Weight parameter settings not supported for v1 target group type.
.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Full listen target group flag. valid values: true (yes), false (no). only target groups of the new version V2 event type support this parameter.
+ FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
+
+ // Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. 0: disable; 1: enable. this feature is off by default.
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Session hold time, unit: second. value range: 30-3600. default: 0, disabled. this parameter is supported only for target groups with HTTP/HTTPS/GRPC backend forwarding protocol in the new version V2.
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // IP version type.
+ IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
+}
+
+type CreateTargetGroupRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group name (up to 50 characters)
+ TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
+
+ // Specifies the vpc id attribute of the target group. uses the default vpc if left empty.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Specifies the default Port of the target group. the default Port can be used when servers are added subsequently. this parameter is not supported for full-listen target groups. for non-full-listen target groups, either Port or Port in TargetGroupInstances.N is required.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Specifies the real servers bound to the target group. supports up to 50 at a time.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+
+ // Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Health check.
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
+ // WRR: weighted round-robin.LEAST_CONN: LEAST connection.IP_HASH: based on IP HASH.default is WRR..
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // Tag.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // Specifies the default weight of the backend service. among them:.
+ // - Value ranges from 0 to 100.
- after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.
- Weight parameter settings not supported for v1 target group type.
.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Full listen target group flag. valid values: true (yes), false (no). only target groups of the new version V2 event type support this parameter.
+ FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
+
+ // Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. 0: disable; 1: enable. this feature is off by default.
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Session hold time, unit: second. value range: 30-3600. default: 0, disabled. this parameter is supported only for target groups with HTTP/HTTPS/GRPC backend forwarding protocol in the new version V2.
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // IP version type.
+ IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
+}
+
+func (r *CreateTargetGroupRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateTargetGroupRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupName")
+ delete(f, "VpcId")
+ delete(f, "Port")
+ delete(f, "TargetGroupInstances")
+ delete(f, "Type")
+ delete(f, "Protocol")
+ delete(f, "HealthCheck")
+ delete(f, "ScheduleAlgorithm")
+ delete(f, "Tags")
+ delete(f, "Weight")
+ delete(f, "FullListenSwitch")
+ delete(f, "KeepaliveEnable")
+ delete(f, "SessionExpireTime")
+ delete(f, "IpVersion")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTargetGroupRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateTargetGroupResponseParams struct {
+ // ID generated after target group creation
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateTargetGroupResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateTargetGroupResponseParams `json:"Response"`
+}
+
+func (r *CreateTargetGroupResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateTargetGroupResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateTopicRequestParams struct {
+ // Log topic name
+ TopicName *string `json:"TopicName,omitnil,omitempty" name:"TopicName"`
+
+ // The number of topic partitions, which changes as partitions are split or merged. Each log topic can have up to 50 partitions. If this parameter is not passed in, 1 partition will be created by default and up to 10 partitions are allowed to be created.
+ PartitionCount *uint64 `json:"PartitionCount,omitnil,omitempty" name:"PartitionCount"`
+
+ // Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
+ TopicType *string `json:"TopicType,omitnil,omitempty" name:"TopicType"`
+
+ // Storage time in days, defaults to 30.
+ // -Log access to standard storage supports 1 to 3600 days. a value of 3640 indicates permanent retention.
+ // -Log access to infrequent storage supports 7 to 3600 days. a value of 3640 indicates permanent retention.
+ Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
+
+ // Log topic storage type. Valid values: `hot` (STANDARD storage); `cold` (IA storage). Default value: `hot`.
+ StorageType *string `json:"StorageType,omitnil,omitempty" name:"StorageType"`
+}
+
+type CreateTopicRequest struct {
+ *tchttp.BaseRequest
+
+ // Log topic name
+ TopicName *string `json:"TopicName,omitnil,omitempty" name:"TopicName"`
+
+ // The number of topic partitions, which changes as partitions are split or merged. Each log topic can have up to 50 partitions. If this parameter is not passed in, 1 partition will be created by default and up to 10 partitions are allowed to be created.
+ PartitionCount *uint64 `json:"PartitionCount,omitnil,omitempty" name:"PartitionCount"`
+
+ // Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
+ TopicType *string `json:"TopicType,omitnil,omitempty" name:"TopicType"`
+
+ // Storage time in days, defaults to 30.
+ // -Log access to standard storage supports 1 to 3600 days. a value of 3640 indicates permanent retention.
+ // -Log access to infrequent storage supports 7 to 3600 days. a value of 3640 indicates permanent retention.
+ Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
+
+ // Log topic storage type. Valid values: `hot` (STANDARD storage); `cold` (IA storage). Default value: `hot`.
+ StorageType *string `json:"StorageType,omitnil,omitempty" name:"StorageType"`
+}
+
+func (r *CreateTopicRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateTopicRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TopicName")
+ delete(f, "PartitionCount")
+ delete(f, "TopicType")
+ delete(f, "Period")
+ delete(f, "StorageType")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTopicRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type CreateTopicResponseParams struct {
+ // Log topic ID
+ TopicId *string `json:"TopicId,omitnil,omitempty" name:"TopicId"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type CreateTopicResponse struct {
+ *tchttp.BaseResponse
+ Response *CreateTopicResponseParams `json:"Response"`
+}
+
+func (r *CreateTopicResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *CreateTopicResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type CrossTargets struct {
+ // VPC ID of the CLB instance
+ LocalVpcId *string `json:"LocalVpcId,omitnil,omitempty" name:"LocalVpcId"`
+
+ // VPC ID of the CVM or ENI instance
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // IP address of the CVM or ENI instance
+ IP *string `json:"IP,omitnil,omitempty" name:"IP"`
+
+ // VPC name of the CVM or ENI instance
+ VpcName *string `json:"VpcName,omitnil,omitempty" name:"VpcName"`
+
+ // ENI ID of the CVM instance
+ EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
+
+ // Submachine instance ID.
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // Submachine instance name.
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
+
+ // Region of the CVM or ENI instance
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+}
+
+// Predefined struct for user
+type DeleteCustomizedConfigRequestParams struct {
+ // Specifies the configuration ID list for deletion.
+ UconfigIdList []*string `json:"UconfigIdList,omitnil,omitempty" name:"UconfigIdList"`
+}
+
+type DeleteCustomizedConfigRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the configuration ID list for deletion.
+ UconfigIdList []*string `json:"UconfigIdList,omitnil,omitempty" name:"UconfigIdList"`
+}
+
+func (r *DeleteCustomizedConfigRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteCustomizedConfigRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "UconfigIdList")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteCustomizedConfigRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteCustomizedConfigResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteCustomizedConfigResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteCustomizedConfigResponseParams `json:"Response"`
+}
+
+func (r *DeleteCustomizedConfigResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteCustomizedConfigResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteListenerRequestParams struct {
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // The listener ID to be deleted, can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+}
+
+type DeleteListenerRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // The listener ID to be deleted, can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+}
+
+func (r *DeleteListenerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteListenerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteListenerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteListenerResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteListenerResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteListenerResponseParams `json:"Response"`
+}
+
+func (r *DeleteListenerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteListenerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteLoadBalancerListenersRequestParams struct {
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the listener ID array to be deleted, with a maximum of 20 elements. if left blank, all listeners of the clb will be deleted. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+}
+
+type DeleteLoadBalancerListenersRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the listener ID array to be deleted, with a maximum of 20 elements. if left blank, all listeners of the clb will be deleted. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+}
+
+func (r *DeleteLoadBalancerListenersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteLoadBalancerListenersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteLoadBalancerListenersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteLoadBalancerListenersResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteLoadBalancerListenersResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteLoadBalancerListenersResponseParams `json:"Response"`
+}
+
+func (r *DeleteLoadBalancerListenersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteLoadBalancerListenersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteLoadBalancerRequestParams struct {
+ // CLB instance ID array to be deleted, which can be obtained by calling the [DescribeLoadBalancers](https://www.tencentcloud.com/document/product/214/30685?from_cn_redirect=1) API. The array can include up to 20 elements.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Whether to forcibly delete the CLB instance. True indicates forced deletion; False indicates non-forced deletion, and blocking verification is required.
+ // The default value is False.
+ // The deletion operation is blocked by default in the following cases. If you confirm forced deletion, the value of the forced verification parameter ForceDelete should be set to True.
+ // 1. The instance with 20 or more RS bound to the backend is deleted.
+ // 2. The instance with RS bound to the backend and the maximum peak inbound/outbound bandwidth exceeding 10 Mbps within 5 minutes is deleted.
+ // 3. Thirty or more instances are deleted within 5 minutes in a single region.
+ ForceDelete *bool `json:"ForceDelete,omitnil,omitempty" name:"ForceDelete"`
+}
+
+type DeleteLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID array to be deleted, which can be obtained by calling the [DescribeLoadBalancers](https://www.tencentcloud.com/document/product/214/30685?from_cn_redirect=1) API. The array can include up to 20 elements.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Whether to forcibly delete the CLB instance. True indicates forced deletion; False indicates non-forced deletion, and blocking verification is required.
+ // The default value is False.
+ // The deletion operation is blocked by default in the following cases. If you confirm forced deletion, the value of the forced verification parameter ForceDelete should be set to True.
+ // 1. The instance with 20 or more RS bound to the backend is deleted.
+ // 2. The instance with RS bound to the backend and the maximum peak inbound/outbound bandwidth exceeding 10 Mbps within 5 minutes is deleted.
+ // 3. Thirty or more instances are deleted within 5 minutes in a single region.
+ ForceDelete *bool `json:"ForceDelete,omitnil,omitempty" name:"ForceDelete"`
+}
+
+func (r *DeleteLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ delete(f, "ForceDelete")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteLoadBalancerResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *DeleteLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteLoadBalancerSnatIpsRequestParams struct {
+ // Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID, such as lb-12345678.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the address array of SnatIp to delete. maximum deletion supported is 20.
+ Ips []*string `json:"Ips,omitnil,omitempty" name:"Ips"`
+}
+
+type DeleteLoadBalancerSnatIpsRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID, such as lb-12345678.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the address array of SnatIp to delete. maximum deletion supported is 20.
+ Ips []*string `json:"Ips,omitnil,omitempty" name:"Ips"`
+}
+
+func (r *DeleteLoadBalancerSnatIpsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteLoadBalancerSnatIpsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "Ips")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteLoadBalancerSnatIpsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteLoadBalancerSnatIpsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteLoadBalancerSnatIpsResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteLoadBalancerSnatIpsResponseParams `json:"Response"`
+}
+
+func (r *DeleteLoadBalancerSnatIpsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteLoadBalancerSnatIpsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteRewriteRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Source listener ID
+ SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
+
+ // Target listener ID
+ TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
+
+ // Redirection relationship between forwarding rules
+ RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
+}
+
+type DeleteRewriteRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Source listener ID
+ SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
+
+ // Target listener ID
+ TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
+
+ // Redirection relationship between forwarding rules
+ RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
+}
+
+func (r *DeleteRewriteRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteRewriteRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "SourceListenerId")
+ delete(f, "TargetListenerId")
+ delete(f, "RewriteInfos")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRewriteRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteRewriteResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteRewriteResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteRewriteResponseParams `json:"Response"`
+}
+
+func (r *DeleteRewriteResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteRewriteResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteRuleRequestParams struct {
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Array of ids of forwarding rules to be deleted, can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
+ LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
+
+ // Domain name of the forwarding rule to be deleted. if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Forwarding path of the forwarding rule to be deleted can be accessed through the DescribeLoadBalancersDetail api (https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1).
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // A default domain name must be configured under the listener. when you need to delete the default domain name, you can specify another domain name as the new default domain name. if the new default domain name is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
+}
+
+type DeleteRuleRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Array of ids of forwarding rules to be deleted, can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
+ LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
+
+ // Domain name of the forwarding rule to be deleted. if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Forwarding path of the forwarding rule to be deleted can be accessed through the DescribeLoadBalancersDetail api (https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1).
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // A default domain name must be configured under the listener. when you need to delete the default domain name, you can specify another domain name as the new default domain name. if the new default domain name is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
+}
+
+func (r *DeleteRuleRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteRuleRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "LocationIds")
+ delete(f, "Domain")
+ delete(f, "Url")
+ delete(f, "NewDefaultServerDomain")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRuleRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteRuleResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteRuleResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteRuleResponseParams `json:"Response"`
+}
+
+func (r *DeleteRuleResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteRuleResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteTargetGroupsRequestParams struct {
+ // Specifies the ID array of the target group. supports up to 20 deletions.
+ TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
+}
+
+type DeleteTargetGroupsRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the ID array of the target group. supports up to 20 deletions.
+ TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
+}
+
+func (r *DeleteTargetGroupsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteTargetGroupsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTargetGroupsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeleteTargetGroupsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeleteTargetGroupsResponse struct {
+ *tchttp.BaseResponse
+ Response *DeleteTargetGroupsResponseParams `json:"Response"`
+}
+
+func (r *DeleteTargetGroupsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeleteTargetGroupsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterFunctionTargetsRequestParams struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of functions to be unbound
+ FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
+
+ // The ID of target forwarding rule. To unbind a function from an L7 forwarding rule, either `LocationId` or `Domain+Url` is required.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // URL of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+type DeregisterFunctionTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of functions to be unbound
+ FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
+
+ // The ID of target forwarding rule. To unbind a function from an L7 forwarding rule, either `LocationId` or `Domain+Url` is required.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // URL of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+func (r *DeregisterFunctionTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterFunctionTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "FunctionTargets")
+ delete(f, "LocationId")
+ delete(f, "Domain")
+ delete(f, "Url")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeregisterFunctionTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterFunctionTargetsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeregisterFunctionTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *DeregisterFunctionTargetsResponseParams `json:"Response"`
+}
+
+func (r *DeregisterFunctionTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterFunctionTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterTargetGroupInstancesRequestParams struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Specifies information on server to be unbound. supports bulk removal with the largest quantity of 20 per operation.
+ // Port is a required item in this api.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+type DeregisterTargetGroupInstancesRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Specifies information on server to be unbound. supports bulk removal with the largest quantity of 20 per operation.
+ // Port is a required item in this api.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+func (r *DeregisterTargetGroupInstancesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterTargetGroupInstancesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupId")
+ delete(f, "TargetGroupInstances")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeregisterTargetGroupInstancesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterTargetGroupInstancesResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeregisterTargetGroupInstancesResponse struct {
+ *tchttp.BaseResponse
+ Response *DeregisterTargetGroupInstancesResponseParams `json:"Response"`
+}
+
+func (r *DeregisterTargetGroupInstancesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterTargetGroupInstancesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterTargetsFromClassicalLBRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of real server IDs
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+}
+
+type DeregisterTargetsFromClassicalLBRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of real server IDs
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+}
+
+func (r *DeregisterTargetsFromClassicalLBRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterTargetsFromClassicalLBRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "InstanceIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeregisterTargetsFromClassicalLBRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterTargetsFromClassicalLBResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeregisterTargetsFromClassicalLBResponse struct {
+ *tchttp.BaseResponse
+ Response *DeregisterTargetsFromClassicalLBResponseParams `json:"Response"`
+}
+
+func (r *DeregisterTargetsFromClassicalLBResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterTargetsFromClassicalLBResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterTargetsRequestParams struct {
+ // CLB instance ID in the format of "lb-12345678"
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Listener ID in the format of "lbl-12345678"
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers to be unbound. Array length limit: 20.
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Forwarding rule ID in the format of "loc-12345678". When unbinding a server from a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+type DeregisterTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID in the format of "lb-12345678"
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Listener ID in the format of "lbl-12345678"
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers to be unbound. Array length limit: 20.
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Forwarding rule ID in the format of "loc-12345678". When unbinding a server from a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+func (r *DeregisterTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Targets")
+ delete(f, "LocationId")
+ delete(f, "Domain")
+ delete(f, "Url")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeregisterTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DeregisterTargetsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DeregisterTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *DeregisterTargetsResponseParams `json:"Response"`
+}
+
+func (r *DeregisterTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DeregisterTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeBlockIPListRequestParams struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Data offset. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Maximum number of IPs to be returned. Default value: 100,000.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+}
+
+type DescribeBlockIPListRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Data offset. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Maximum number of IPs to be returned. Default value: 100,000.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+}
+
+func (r *DescribeBlockIPListRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeBlockIPListRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "Offset")
+ delete(f, "Limit")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBlockIPListRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeBlockIPListResponseParams struct {
+ // Number of returned IPs
+ BlockedIPCount *uint64 `json:"BlockedIPCount,omitnil,omitempty" name:"BlockedIPCount"`
+
+ // Field for getting real client IP
+ ClientIPField *string `json:"ClientIPField,omitnil,omitempty" name:"ClientIPField"`
+
+ // List of IPs added to blocklist 12360
+ BlockedIPList []*BlockedIP `json:"BlockedIPList,omitnil,omitempty" name:"BlockedIPList"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeBlockIPListResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeBlockIPListResponseParams `json:"Response"`
+}
+
+func (r *DescribeBlockIPListResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeBlockIPListResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeBlockIPTaskRequestParams struct {
+ // Async task ID returned by the `ModifyBlockIPList` API
+ TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+}
+
+type DescribeBlockIPTaskRequest struct {
+ *tchttp.BaseRequest
+
+ // Async task ID returned by the `ModifyBlockIPList` API
+ TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+}
+
+func (r *DescribeBlockIPTaskRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeBlockIPTaskRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TaskId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBlockIPTaskRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeBlockIPTaskResponseParams struct {
+ // 1: running; 2: failed; 6: succeeded
+ Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeBlockIPTaskResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeBlockIPTaskResponseParams `json:"Response"`
+}
+
+func (r *DescribeBlockIPTaskResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeBlockIPTaskResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBByInstanceIdRequestParams struct {
+ // List of real server IDs
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+}
+
+type DescribeClassicalLBByInstanceIdRequest struct {
+ *tchttp.BaseRequest
+
+ // List of real server IDs
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+}
+
+func (r *DescribeClassicalLBByInstanceIdRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBByInstanceIdRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClassicalLBByInstanceIdRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBByInstanceIdResponseParams struct {
+ // CLB information list
+ LoadBalancerInfoList []*ClassicalLoadBalancerInfo `json:"LoadBalancerInfoList,omitnil,omitempty" name:"LoadBalancerInfoList"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClassicalLBByInstanceIdResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClassicalLBByInstanceIdResponseParams `json:"Response"`
+}
+
+func (r *DescribeClassicalLBByInstanceIdResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBByInstanceIdResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBHealthStatusRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+}
+
+type DescribeClassicalLBHealthStatusRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+}
+
+func (r *DescribeClassicalLBHealthStatusRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBHealthStatusRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClassicalLBHealthStatusRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBHealthStatusResponseParams struct {
+ // Backend health status list.
+ HealthList []*ClassicalHealth `json:"HealthList,omitnil,omitempty" name:"HealthList"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClassicalLBHealthStatusResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClassicalLBHealthStatusResponseParams `json:"Response"`
+}
+
+func (r *DescribeClassicalLBHealthStatusResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBHealthStatusResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBListenersRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of CLB listener IDs
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // CLB listening protocol. Valid values: TCP, UDP, HTTP, and HTTPS.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // CLB listening port. Value range: 1 - 65535.
+ ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
+
+ // Listener status. Valid values: 0 (creating) and 1 (running).
+ Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
+}
+
+type DescribeClassicalLBListenersRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of CLB listener IDs
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // CLB listening protocol. Valid values: TCP, UDP, HTTP, and HTTPS.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // CLB listening port. Value range: 1 - 65535.
+ ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
+
+ // Listener status. Valid values: 0 (creating) and 1 (running).
+ Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
+}
+
+func (r *DescribeClassicalLBListenersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBListenersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerIds")
+ delete(f, "Protocol")
+ delete(f, "ListenerPort")
+ delete(f, "Status")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClassicalLBListenersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBListenersResponseParams struct {
+ // Specifies the listener list.
+ Listeners []*ClassicalListener `json:"Listeners,omitnil,omitempty" name:"Listeners"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClassicalLBListenersResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClassicalLBListenersResponseParams `json:"Response"`
+}
+
+func (r *DescribeClassicalLBListenersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBListenersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBTargetsRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+}
+
+type DescribeClassicalLBTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+}
+
+func (r *DescribeClassicalLBTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClassicalLBTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClassicalLBTargetsResponseParams struct {
+ // Real server list.
+ Targets []*ClassicalTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClassicalLBTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClassicalLBTargetsResponseParams `json:"Response"`
+}
+
+func (r *DescribeClassicalLBTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClassicalLBTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClsLogSetRequestParams struct {
+
+}
+
+type DescribeClsLogSetRequest struct {
+ *tchttp.BaseRequest
+
+}
+
+func (r *DescribeClsLogSetRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClsLogSetRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClsLogSetRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeClsLogSetResponseParams struct {
+ // Logset ID
+ LogsetId *string `json:"LogsetId,omitnil,omitempty" name:"LogsetId"`
+
+ // Health check logset ID
+ HealthLogsetId *string `json:"HealthLogsetId,omitnil,omitempty" name:"HealthLogsetId"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeClsLogSetResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeClsLogSetResponseParams `json:"Response"`
+}
+
+func (r *DescribeClsLogSetResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeClsLogSetResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeCrossTargetsRequestParams struct {
+ // Number of real server lists returned. Default value: 20; maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting offset of the real server list returned. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Filter conditions to query CVMs and ENIs
+ // `vpc-id` - String - Required: No - (Filter condition) Filter by VPC ID, such as "vpc-12345678".
+ // `ip` - String - Required: No - (Filter condition) Filter by real server IP, such as "192.168.0.1".
+ // `listener-id` - String - Required: No - (Filter condition) Filter by listener ID, such as "lbl-12345678".
+ // `location-id` - String - Required: No - (Filter condition) Filter by forwarding rule ID of the layer-7 listener, such as "loc-12345678".
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+type DescribeCrossTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // Number of real server lists returned. Default value: 20; maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting offset of the real server list returned. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Filter conditions to query CVMs and ENIs
+ // `vpc-id` - String - Required: No - (Filter condition) Filter by VPC ID, such as "vpc-12345678".
+ // `ip` - String - Required: No - (Filter condition) Filter by real server IP, such as "192.168.0.1".
+ // `listener-id` - String - Required: No - (Filter condition) Filter by listener ID, such as "lbl-12345678".
+ // `location-id` - String - Required: No - (Filter condition) Filter by forwarding rule ID of the layer-7 listener, such as "loc-12345678".
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+func (r *DescribeCrossTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeCrossTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Limit")
+ delete(f, "Offset")
+ delete(f, "Filters")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCrossTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeCrossTargetsResponseParams struct {
+ // Total number of real server lists
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // Real server list
+ CrossTargetSet []*CrossTargets `json:"CrossTargetSet,omitnil,omitempty" name:"CrossTargetSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeCrossTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeCrossTargetsResponseParams `json:"Response"`
+}
+
+func (r *DescribeCrossTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeCrossTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeCustomizedConfigAssociateListRequestParams struct {
+ // Specifies the configuration ID, which can be obtained through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/product/214/60009?from_cn_redirect=1) api.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Start position of the binding list. Default: 0.
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of binding lists to pull. Default: 20.
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Search Domain. can be queried through the `Domain` field in the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/product/214/46916?from_cn_redirect=1) API return value.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+}
+
+type DescribeCustomizedConfigAssociateListRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the configuration ID, which can be obtained through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/product/214/60009?from_cn_redirect=1) api.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Start position of the binding list. Default: 0.
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of binding lists to pull. Default: 20.
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Search Domain. can be queried through the `Domain` field in the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/product/214/46916?from_cn_redirect=1) API return value.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+}
+
+func (r *DescribeCustomizedConfigAssociateListRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeCustomizedConfigAssociateListRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "UconfigId")
+ delete(f, "Offset")
+ delete(f, "Limit")
+ delete(f, "Domain")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCustomizedConfigAssociateListRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeCustomizedConfigAssociateListResponseParams struct {
+ // List of bound resources
+ BindList []*BindDetailItem `json:"BindList,omitnil,omitempty" name:"BindList"`
+
+ // Total number of bound resources
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeCustomizedConfigAssociateListResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeCustomizedConfigAssociateListResponseParams `json:"Response"`
+}
+
+func (r *DescribeCustomizedConfigAssociateListResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeCustomizedConfigAssociateListResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeCustomizedConfigListRequestParams struct {
+ // Configuration type. Valid values: `CLB` (CLB-specific configs), `SERVER` (domain name-specific configs), and `LOCATION` (forwarding rule-specific configs).
+ ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
+
+ // Pagination offset. defaults to 0.
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of results. default value: 20.
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Specifies the name of configs to query. Fuzzy match is supported.
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // Configuration ID, can be accessed through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/api/214/60009?from_cn_redirect=1) api.
+ UconfigIds []*string `json:"UconfigIds,omitnil,omitempty" name:"UconfigIds"`
+
+ // Filter criteria as follows:.
+ // - loadbalancer-id
+ // Filter by [cloud load balancer ID]. instance billing mode such as lb-9vxezxza.
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
+ // - vip
+ // Filter by [clb VIP]. network billing mode such as "1.1.1.1", "2204::22:3".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+type DescribeCustomizedConfigListRequest struct {
+ *tchttp.BaseRequest
+
+ // Configuration type. Valid values: `CLB` (CLB-specific configs), `SERVER` (domain name-specific configs), and `LOCATION` (forwarding rule-specific configs).
+ ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
+
+ // Pagination offset. defaults to 0.
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of results. default value: 20.
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Specifies the name of configs to query. Fuzzy match is supported.
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // Configuration ID, can be accessed through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/api/214/60009?from_cn_redirect=1) api.
+ UconfigIds []*string `json:"UconfigIds,omitnil,omitempty" name:"UconfigIds"`
+
+ // Filter criteria as follows:.
+ // - loadbalancer-id
+ // Filter by [cloud load balancer ID]. instance billing mode such as lb-9vxezxza.
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
+ // - vip
+ // Filter by [clb VIP]. network billing mode such as "1.1.1.1", "2204::22:3".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+func (r *DescribeCustomizedConfigListRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeCustomizedConfigListRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ConfigType")
+ delete(f, "Offset")
+ delete(f, "Limit")
+ delete(f, "ConfigName")
+ delete(f, "UconfigIds")
+ delete(f, "Filters")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCustomizedConfigListRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeCustomizedConfigListResponseParams struct {
+ // Configuration list.
+ ConfigList []*ConfigListItem `json:"ConfigList,omitnil,omitempty" name:"ConfigList"`
+
+ // Number of configurations.
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeCustomizedConfigListResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeCustomizedConfigListResponseParams `json:"Response"`
+}
+
+func (r *DescribeCustomizedConfigListResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeCustomizedConfigListResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeIdleLoadBalancersRequestParams struct {
+ // Data offset. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of returned CLB instances. Default value: 20. Maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // The Region of the cloud load balancer can be obtained through the `RegionSet.Region` field in the API return value of [DescribeRegions](https://www.tencentcloud.comom/document/product/1596/77930?from_cn_redirect=1).
+ LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
+}
+
+type DescribeIdleLoadBalancersRequest struct {
+ *tchttp.BaseRequest
+
+ // Data offset. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of returned CLB instances. Default value: 20. Maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // The Region of the cloud load balancer can be obtained through the `RegionSet.Region` field in the API return value of [DescribeRegions](https://www.tencentcloud.comom/document/product/1596/77930?from_cn_redirect=1).
+ LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
+}
+
+func (r *DescribeIdleLoadBalancersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeIdleLoadBalancersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Offset")
+ delete(f, "Limit")
+ delete(f, "LoadBalancerRegion")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeIdleLoadBalancersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeIdleLoadBalancersResponseParams struct {
+ // Idle instance list.
+ IdleLoadBalancers []*IdleLoadBalancer `json:"IdleLoadBalancers,omitnil,omitempty" name:"IdleLoadBalancers"`
+
+ // Total number of idle CLB instances
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeIdleLoadBalancersResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeIdleLoadBalancersResponseParams `json:"Response"`
+}
+
+func (r *DescribeIdleLoadBalancersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeIdleLoadBalancersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLBListenersRequestParams struct {
+ // List of private network IPs to be queried.
+ Backends []*LbRsItem `json:"Backends,omitnil,omitempty" name:"Backends"`
+}
+
+type DescribeLBListenersRequest struct {
+ *tchttp.BaseRequest
+
+ // List of private network IPs to be queried.
+ Backends []*LbRsItem `json:"Backends,omitnil,omitempty" name:"Backends"`
+}
+
+func (r *DescribeLBListenersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLBListenersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Backends")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLBListenersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLBListenersResponseParams struct {
+ // Listener rule associated with the real server.
+ LoadBalancers []*LBItem `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLBListenersResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLBListenersResponseParams `json:"Response"`
+}
+
+func (r *DescribeLBListenersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLBListenersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLBOperateProtectRequestParams struct {
+ // CLB instance ID.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+type DescribeLBOperateProtectRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+func (r *DescribeLBOperateProtectRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLBOperateProtectRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLBOperateProtectRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLBOperateProtectResponseParams struct {
+ // Describes the returned cloud load balancer operation protection information array.
+ LoadBalancerSet []*LBOperateProtectInfo `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLBOperateProtectResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLBOperateProtectResponseParams `json:"Response"`
+}
+
+func (r *DescribeLBOperateProtectResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLBOperateProtectResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeListenersRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/api/214/30685?from_cn_redirect=1) api to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the array of clb listener ids to query, with a maximum of 100. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/api/214/30686?from_cn_redirect=1) api to obtain the ids.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // Type of the listener protocols to be queried. Values: TCP`, `UDP`, `HTTP`, `HTTPS`, `TCP_SSL` and `QUIC`.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Port of listener to query. value range: 1-65535.
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+}
+
+type DescribeListenersRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/api/214/30685?from_cn_redirect=1) api to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the array of clb listener ids to query, with a maximum of 100. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/api/214/30686?from_cn_redirect=1) api to obtain the ids.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // Type of the listener protocols to be queried. Values: TCP`, `UDP`, `HTTP`, `HTTPS`, `TCP_SSL` and `QUIC`.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Port of listener to query. value range: 1-65535.
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+}
+
+func (r *DescribeListenersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeListenersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerIds")
+ delete(f, "Protocol")
+ delete(f, "Port")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeListenersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeListenersResponseParams struct {
+ // Listener list
+ Listeners []*Listener `json:"Listeners,omitnil,omitempty" name:"Listeners"`
+
+ // Total number of listeners (filtered by port, protocol, and listener ID).
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeListenersResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeListenersResponseParams `json:"Response"`
+}
+
+func (r *DescribeListenersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeListenersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancerListByCertIdRequestParams struct {
+ // Specifies the server certificate ID or client certificate ID. can be accessed through the [DescribeCertificate](https://www.tencentcloud.comom/document/api/400/41674?from_cn_redirect=1) api.
+ // Specifies the maximum length of the array is 20.
+ CertIds []*string `json:"CertIds,omitnil,omitempty" name:"CertIds"`
+}
+
+type DescribeLoadBalancerListByCertIdRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the server certificate ID or client certificate ID. can be accessed through the [DescribeCertificate](https://www.tencentcloud.comom/document/api/400/41674?from_cn_redirect=1) api.
+ // Specifies the maximum length of the array is 20.
+ CertIds []*string `json:"CertIds,omitnil,omitempty" name:"CertIds"`
+}
+
+func (r *DescribeLoadBalancerListByCertIdRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancerListByCertIdRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "CertIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLoadBalancerListByCertIdRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancerListByCertIdResponseParams struct {
+ // Certificate ID and list of CLB instances associated with it
+ CertSet []*CertIdRelatedWithLoadBalancers `json:"CertSet,omitnil,omitempty" name:"CertSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLoadBalancerListByCertIdResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLoadBalancerListByCertIdResponseParams `json:"Response"`
+}
+
+func (r *DescribeLoadBalancerListByCertIdResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancerListByCertIdResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancerOverviewRequestParams struct {
+
+}
+
+type DescribeLoadBalancerOverviewRequest struct {
+ *tchttp.BaseRequest
+
+}
+
+func (r *DescribeLoadBalancerOverviewRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancerOverviewRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLoadBalancerOverviewRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancerOverviewResponseParams struct {
+ // Total number of CLB instances
+ TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // Number of CLB instances that are running
+ RunningCount *int64 `json:"RunningCount,omitnil,omitempty" name:"RunningCount"`
+
+ // Number of CLB instances that are isolated
+ IsolationCount *int64 `json:"IsolationCount,omitnil,omitempty" name:"IsolationCount"`
+
+ // Number of CLB instances that are about to expire
+ WillExpireCount *int64 `json:"WillExpireCount,omitnil,omitempty" name:"WillExpireCount"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLoadBalancerOverviewResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLoadBalancerOverviewResponseParams `json:"Response"`
+}
+
+func (r *DescribeLoadBalancerOverviewResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancerOverviewResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancerTrafficRequestParams struct {
+ // CLB instance region. If this parameter is not passed in, CLB instances in all regions will be returned.
+ LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
+}
+
+type DescribeLoadBalancerTrafficRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance region. If this parameter is not passed in, CLB instances in all regions will be returned.
+ LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
+}
+
+func (r *DescribeLoadBalancerTrafficRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancerTrafficRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerRegion")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLoadBalancerTrafficRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancerTrafficResponseParams struct {
+ // Load balance information sorted in descending order by outbound bandwidth.
+ LoadBalancerTraffic []*LoadBalancerTraffic `json:"LoadBalancerTraffic,omitnil,omitempty" name:"LoadBalancerTraffic"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLoadBalancerTrafficResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLoadBalancerTrafficResponseParams `json:"Response"`
+}
+
+func (r *DescribeLoadBalancerTrafficResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancerTrafficResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancersDetailRequestParams struct {
+ // Number of CLB instance lists returned. Default value: 20; maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting offset of the CLB instance list returned. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // List of fields. Only fields specified will be returned. If it’s left blank, `null` is returned. The fields `LoadBalancerId` and `LoadBalancerName` are added by default. For details about fields, see LoadBalancerDetail.
+ Fields []*string `json:"Fields,omitnil,omitempty" name:"Fields"`
+
+ // When the Fields include TargetId, TargetAddress, TargetPort, TargetWeight, ListenerId, Protocol, Port, LocationId, Domain, and Url, you must select exporting the Target of the Target GROUP or a non-Target GROUP. valid values: NODE, GROUP.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Querying conditions for cloud load balancer detailed information list. detailed filter criteria.
+ // - loadbalancer-id
+ // Filter by [clb ID], for example: lb-rbw5skde.
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
+ // - project-id
+ // Filters by [project ID]. for example: "0", "123".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1).
+ // - network
+ // Filters by [clb network type]. for example: Public.
+ // Type: String.
+ // Required: No
+ // Valid values: Private (Private network), Public (Public network).
+ // - vip
+ // Filter by [cloud load balancer VIP], such as "1.1.1.1", "2204::22:3".
+ // Type: String.
+ // Required: No
+ // - vpcid
+ // Filter by the vpc to which the cloud load balancer belongs, such as "vpc-12345678".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
+ // - target-ip
+ // Filters by the private network IP of the backend destination. for example: "1.1.1.1", "2203::214:4".
+ // Type: String.
+ // Required: No
+ // - zone
+ // Filter by [availability zone of the cloud load balancer]. for example: "ap-guangzhou-1".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
+ // - tag-key
+ // Filters by [tag key of the cloud load balancer tag], for example: "name".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeTags](https://www.tencentcloud.comom/document/api/651/35316?from_cn_redirect=1).
+ // - tag:*
+ // Filter by [cloud load balancer tag], where ':' is followed by the tag key. for example, to filter by tag key 'name' with tag Values 'zhangsan' and 'lisi', use {"name": "tag:name","Values": ["zhangsan", "lisi"]}.
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeTagKeys](https://www.tencentcloud.comom/document/api/651/35318?from_cn_redirect=1).
+ // - fuzzy-search
+ // Searches by [clb VIP, clb name] using fuzzy search, for example: "1.1".
+ // Type: String.
+ // Required: No
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+type DescribeLoadBalancersDetailRequest struct {
+ *tchttp.BaseRequest
+
+ // Number of CLB instance lists returned. Default value: 20; maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting offset of the CLB instance list returned. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // List of fields. Only fields specified will be returned. If it’s left blank, `null` is returned. The fields `LoadBalancerId` and `LoadBalancerName` are added by default. For details about fields, see LoadBalancerDetail.
+ Fields []*string `json:"Fields,omitnil,omitempty" name:"Fields"`
+
+ // When the Fields include TargetId, TargetAddress, TargetPort, TargetWeight, ListenerId, Protocol, Port, LocationId, Domain, and Url, you must select exporting the Target of the Target GROUP or a non-Target GROUP. valid values: NODE, GROUP.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Querying conditions for cloud load balancer detailed information list. detailed filter criteria.
+ // - loadbalancer-id
+ // Filter by [clb ID], for example: lb-rbw5skde.
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
+ // - project-id
+ // Filters by [project ID]. for example: "0", "123".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1).
+ // - network
+ // Filters by [clb network type]. for example: Public.
+ // Type: String.
+ // Required: No
+ // Valid values: Private (Private network), Public (Public network).
+ // - vip
+ // Filter by [cloud load balancer VIP], such as "1.1.1.1", "2204::22:3".
+ // Type: String.
+ // Required: No
+ // - vpcid
+ // Filter by the vpc to which the cloud load balancer belongs, such as "vpc-12345678".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
+ // - target-ip
+ // Filters by the private network IP of the backend destination. for example: "1.1.1.1", "2203::214:4".
+ // Type: String.
+ // Required: No
+ // - zone
+ // Filter by [availability zone of the cloud load balancer]. for example: "ap-guangzhou-1".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
+ // - tag-key
+ // Filters by [tag key of the cloud load balancer tag], for example: "name".
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeTags](https://www.tencentcloud.comom/document/api/651/35316?from_cn_redirect=1).
+ // - tag:*
+ // Filter by [cloud load balancer tag], where ':' is followed by the tag key. for example, to filter by tag key 'name' with tag Values 'zhangsan' and 'lisi', use {"name": "tag:name","Values": ["zhangsan", "lisi"]}.
+ // Type: String.
+ // Required: No
+ // Method for obtaining: [DescribeTagKeys](https://www.tencentcloud.comom/document/api/651/35318?from_cn_redirect=1).
+ // - fuzzy-search
+ // Searches by [clb VIP, clb name] using fuzzy search, for example: "1.1".
+ // Type: String.
+ // Required: No
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+func (r *DescribeLoadBalancersDetailRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancersDetailRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Limit")
+ delete(f, "Offset")
+ delete(f, "Fields")
+ delete(f, "TargetType")
+ delete(f, "Filters")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLoadBalancersDetailRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancersDetailResponseParams struct {
+ // Total number of lists describing CLB instance details.
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // Load balancing detail list.
+ LoadBalancerDetailSet []*LoadBalancerDetail `json:"LoadBalancerDetailSet,omitnil,omitempty" name:"LoadBalancerDetailSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLoadBalancersDetailResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLoadBalancersDetailResponseParams `json:"Response"`
+}
+
+func (r *DescribeLoadBalancersDetailResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancersDetailResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancersRequestParams struct {
+ // CLB instance IDs. There can be up to 20 IDs.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // CLB instance network type:
+ // OPEN: public network; INTERNAL: private network.
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // CLB instance type. 1: generic CLB instance; 0: classic CLB instance
+ Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
+
+ // Specifies the name of the clb instance. fuzzy query is supported.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Tencent cloud assigns a domain name to the cloud load balancer instance. fuzzy query is supported.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // VIP address of a CLB instance (there can be multiple addresses)
+ LoadBalancerVips []*string `json:"LoadBalancerVips,omitnil,omitempty" name:"LoadBalancerVips"`
+
+ // Public IPs of the backend services bound with the load balancer. Only the public IPs of CVMs are supported now.
+ BackendPublicIps []*string `json:"BackendPublicIps,omitnil,omitempty" name:"BackendPublicIps"`
+
+ // Private IPs of the backend services bound with the load balancer. Only the private IPs of CVMs are supported now.
+ BackendPrivateIps []*string `json:"BackendPrivateIps,omitnil,omitempty" name:"BackendPrivateIps"`
+
+ // Data offset. Default value: 0.
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of returned CLB instances. Default value: 20. Maximum value: 100.
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Sorting parameter. supports the following fields:.
+ // - LoadBalancerName
+ // - CreateTime
+ // - Domain
+ // - LoadBalancerType
+ //
+ // Defaults to CreateTime.
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 1 for descending, 0 for ascending, defaults to 1, sorted by creation time in descending order.
+ OrderType *int64 `json:"OrderType,omitnil,omitempty" name:"OrderType"`
+
+ // Specifies the fuzzy search field for fuzzy matching the name, domain name, VIP address, or ID of a cloud load balancer instance.
+ SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
+
+ // Project ID of the cloud load balancer instance. you can call the [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1) api to obtain the ID. defaults to all projects if not passed.
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // Whether a CLB instance is bound to a real server. 0: no; 1: yes; -1: query all.
+ WithRs *int64 `json:"WithRs,omitnil,omitempty" name:"WithRs"`
+
+ // Specifies the unique vpc ID of the load balancing instance, such as vpc-bhqkbhdx. you can call the [DescribeVpcs](https://www.tencentcloud.comom/document/api/215/15778?from_cn_redirect=1) api to obtain it.
+ // Searches for cloud load balancer of basic network type. allows input '0'.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Security group ID, such as sg-m1cc****, can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
+ SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
+
+ // Primary availability zone ID, such as 100001 (corresponding to Guangzhou Zone 1). You can obtain the list of availability zones through [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1).
+ MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
+
+ // Each request can have up to 10 `Filters` and 100 `Filter.Values`. Detailed filter conditions:
+ // internet-charge-type - Type: String - Required: No - Filter by CLB network billing mode, including `TRAFFIC_POSTPAID_BY_HOUR`
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // Specifies the expanded fields to return. not specified, expanded fields do not return by default. supported expanded fields are as follows:.
+ // TargetCount: specifies the number of real servers bound to it..
+ AdditionalFields []*string `json:"AdditionalFields,omitnil,omitempty" name:"AdditionalFields"`
+}
+
+type DescribeLoadBalancersRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance IDs. There can be up to 20 IDs.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // CLB instance network type:
+ // OPEN: public network; INTERNAL: private network.
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // CLB instance type. 1: generic CLB instance; 0: classic CLB instance
+ Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
+
+ // Specifies the name of the clb instance. fuzzy query is supported.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Tencent cloud assigns a domain name to the cloud load balancer instance. fuzzy query is supported.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // VIP address of a CLB instance (there can be multiple addresses)
+ LoadBalancerVips []*string `json:"LoadBalancerVips,omitnil,omitempty" name:"LoadBalancerVips"`
+
+ // Public IPs of the backend services bound with the load balancer. Only the public IPs of CVMs are supported now.
+ BackendPublicIps []*string `json:"BackendPublicIps,omitnil,omitempty" name:"BackendPublicIps"`
+
+ // Private IPs of the backend services bound with the load balancer. Only the private IPs of CVMs are supported now.
+ BackendPrivateIps []*string `json:"BackendPrivateIps,omitnil,omitempty" name:"BackendPrivateIps"`
+
+ // Data offset. Default value: 0.
+ Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Number of returned CLB instances. Default value: 20. Maximum value: 100.
+ Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Sorting parameter. supports the following fields:.
+ // - LoadBalancerName
+ // - CreateTime
+ // - Domain
+ // - LoadBalancerType
+ //
+ // Defaults to CreateTime.
+ OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
+
+ // 1 for descending, 0 for ascending, defaults to 1, sorted by creation time in descending order.
+ OrderType *int64 `json:"OrderType,omitnil,omitempty" name:"OrderType"`
+
+ // Specifies the fuzzy search field for fuzzy matching the name, domain name, VIP address, or ID of a cloud load balancer instance.
+ SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
+
+ // Project ID of the cloud load balancer instance. you can call the [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1) api to obtain the ID. defaults to all projects if not passed.
+ ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // Whether a CLB instance is bound to a real server. 0: no; 1: yes; -1: query all.
+ WithRs *int64 `json:"WithRs,omitnil,omitempty" name:"WithRs"`
+
+ // Specifies the unique vpc ID of the load balancing instance, such as vpc-bhqkbhdx. you can call the [DescribeVpcs](https://www.tencentcloud.comom/document/api/215/15778?from_cn_redirect=1) api to obtain it.
+ // Searches for cloud load balancer of basic network type. allows input '0'.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Security group ID, such as sg-m1cc****, can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
+ SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
+
+ // Primary availability zone ID, such as 100001 (corresponding to Guangzhou Zone 1). You can obtain the list of availability zones through [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1).
+ MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
+
+ // Each request can have up to 10 `Filters` and 100 `Filter.Values`. Detailed filter conditions:
+ // internet-charge-type - Type: String - Required: No - Filter by CLB network billing mode, including `TRAFFIC_POSTPAID_BY_HOUR`
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // Specifies the expanded fields to return. not specified, expanded fields do not return by default. supported expanded fields are as follows:.
+ // TargetCount: specifies the number of real servers bound to it..
+ AdditionalFields []*string `json:"AdditionalFields,omitnil,omitempty" name:"AdditionalFields"`
+}
+
+func (r *DescribeLoadBalancersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ delete(f, "LoadBalancerType")
+ delete(f, "Forward")
+ delete(f, "LoadBalancerName")
+ delete(f, "Domain")
+ delete(f, "LoadBalancerVips")
+ delete(f, "BackendPublicIps")
+ delete(f, "BackendPrivateIps")
+ delete(f, "Offset")
+ delete(f, "Limit")
+ delete(f, "OrderBy")
+ delete(f, "OrderType")
+ delete(f, "SearchKey")
+ delete(f, "ProjectId")
+ delete(f, "WithRs")
+ delete(f, "VpcId")
+ delete(f, "SecurityGroup")
+ delete(f, "MasterZone")
+ delete(f, "Filters")
+ delete(f, "AdditionalFields")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeLoadBalancersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeLoadBalancersResponseParams struct {
+ // Total number of CLB instances that meet the filter criteria. This value is independent of the Limit in the input parameter.
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // Array of returned CLB instances.
+ LoadBalancerSet []*LoadBalancer `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeLoadBalancersResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeLoadBalancersResponseParams `json:"Response"`
+}
+
+func (r *DescribeLoadBalancersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeLoadBalancersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeQuotaRequestParams struct {
+
+}
+
+type DescribeQuotaRequest struct {
+ *tchttp.BaseRequest
+
+}
+
+func (r *DescribeQuotaRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeQuotaRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeQuotaRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeQuotaResponseParams struct {
+ // Quota list
+ QuotaSet []*Quota `json:"QuotaSet,omitnil,omitempty" name:"QuotaSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeQuotaResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeQuotaResponseParams `json:"Response"`
+}
+
+func (r *DescribeQuotaResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeQuotaResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeResourcesRequestParams struct {
+ // Number of returned AZ resources. Default value: 20. Maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting offset of the returned AZ resource list. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Specifies the conditions for querying the availability zone resource list. detailed filter criteria are as follows:.
+ // - master-zone
+ // Filters by regional availability zone, for example: ap-guangzhou-2.
+ // Type: String.
+ // Required: No
+ // - ip-version
+ // Filter by [IP type], such as IPv4.
+ // Type: String.
+ // Required: No
+ // Valid values: IPv4, IPv6, IPv6_Nat.
+ // - isp
+ // Filters by [ISP type], for example: BGP.
+ // Type: String.
+ // Required: No
+ // Optional. valid values: BGP, CMCC (china mobile), CUCC (china unicom), CTCC (china telecom), BGP_PRO, INTERNAL (private network).
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+type DescribeResourcesRequest struct {
+ *tchttp.BaseRequest
+
+ // Number of returned AZ resources. Default value: 20. Maximum value: 100.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting offset of the returned AZ resource list. Default value: 0.
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Specifies the conditions for querying the availability zone resource list. detailed filter criteria are as follows:.
+ // - master-zone
+ // Filters by regional availability zone, for example: ap-guangzhou-2.
+ // Type: String.
+ // Required: No
+ // - ip-version
+ // Filter by [IP type], such as IPv4.
+ // Type: String.
+ // Required: No
+ // Valid values: IPv4, IPv6, IPv6_Nat.
+ // - isp
+ // Filters by [ISP type], for example: BGP.
+ // Type: String.
+ // Required: No
+ // Optional. valid values: BGP, CMCC (china mobile), CUCC (china unicom), CTCC (china telecom), BGP_PRO, INTERNAL (private network).
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+func (r *DescribeResourcesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeResourcesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Limit")
+ delete(f, "Offset")
+ delete(f, "Filters")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeResourcesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeResourcesResponseParams struct {
+ // List of resources supported by the AZ
+ ZoneResourceSet []*ZoneResource `json:"ZoneResourceSet,omitnil,omitempty" name:"ZoneResourceSet"`
+
+ // Number of entries in the AZ resource list.
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeResourcesResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeResourcesResponseParams `json:"Response"`
+}
+
+func (r *DescribeResourcesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeResourcesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeRewriteRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Array of CLB listener IDs
+ SourceListenerIds []*string `json:"SourceListenerIds,omitnil,omitempty" name:"SourceListenerIds"`
+
+ // Array of CLB forwarding rule IDs
+ SourceLocationIds []*string `json:"SourceLocationIds,omitnil,omitempty" name:"SourceLocationIds"`
+}
+
+type DescribeRewriteRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Array of CLB listener IDs
+ SourceListenerIds []*string `json:"SourceListenerIds,omitnil,omitempty" name:"SourceListenerIds"`
+
+ // Array of CLB forwarding rule IDs
+ SourceLocationIds []*string `json:"SourceLocationIds,omitnil,omitempty" name:"SourceLocationIds"`
+}
+
+func (r *DescribeRewriteRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeRewriteRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "SourceListenerIds")
+ delete(f, "SourceLocationIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRewriteRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeRewriteResponseParams struct {
+ // Array of redirection forwarding rules. If there are no redirection rules, an empty array will be returned.
+ RewriteSet []*RuleOutput `json:"RewriteSet,omitnil,omitempty" name:"RewriteSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeRewriteResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeRewriteResponseParams `json:"Response"`
+}
+
+func (r *DescribeRewriteResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeRewriteResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetGroupInstancesRequestParams struct {
+ // Filter criteria, currently supported by multiple conditions combined as TargetGroupId, BindIP, and InstanceId.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // Number of displayed results. Default value: 20
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Display offset. Default value: 0
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+}
+
+type DescribeTargetGroupInstancesRequest struct {
+ *tchttp.BaseRequest
+
+ // Filter criteria, currently supported by multiple conditions combined as TargetGroupId, BindIP, and InstanceId.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // Number of displayed results. Default value: 20
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Display offset. Default value: 0
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+}
+
+func (r *DescribeTargetGroupInstancesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetGroupInstancesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Filters")
+ delete(f, "Limit")
+ delete(f, "Offset")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTargetGroupInstancesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetGroupInstancesResponseParams struct {
+ // Number of results returned for the current query
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // Information of the bound server
+ TargetGroupInstanceSet []*TargetGroupBackend `json:"TargetGroupInstanceSet,omitnil,omitempty" name:"TargetGroupInstanceSet"`
+
+ // The actual total number of bound instances, which is not affected by the setting of `Limit`, `Offset` and the CAM permissions.
+ RealCount *uint64 `json:"RealCount,omitnil,omitempty" name:"RealCount"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeTargetGroupInstancesResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeTargetGroupInstancesResponseParams `json:"Response"`
+}
+
+func (r *DescribeTargetGroupInstancesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetGroupInstancesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetGroupListRequestParams struct {
+ // Target group ID array
+ TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
+
+ // Filter array, which is exclusive of `TargetGroupIds`. Valid values: `TargetGroupVpcId` and `TargetGroupName`. Target group ID will be used first.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // Starting display offset
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Limit of the number of displayed results. Default value: 20.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+}
+
+type DescribeTargetGroupListRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group ID array
+ TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
+
+ // Filter array, which is exclusive of `TargetGroupIds`. Valid values: `TargetGroupVpcId` and `TargetGroupName`. Target group ID will be used first.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+
+ // Starting display offset
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Limit of the number of displayed results. Default value: 20.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+}
+
+func (r *DescribeTargetGroupListRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetGroupListRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupIds")
+ delete(f, "Filters")
+ delete(f, "Offset")
+ delete(f, "Limit")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTargetGroupListRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetGroupListResponseParams struct {
+ // Number of displayed results
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // Information set of displayed target groups
+ TargetGroupSet []*TargetGroupInfo `json:"TargetGroupSet,omitnil,omitempty" name:"TargetGroupSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeTargetGroupListResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeTargetGroupListResponseParams `json:"Response"`
+}
+
+func (r *DescribeTargetGroupListResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetGroupListResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetGroupsRequestParams struct {
+ // Target group ID, which is exclusive of `Filters`.
+ TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
+
+ // Limit of the number of displayed results. Default value: 20.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting display offset
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Filter condition array, mutually exclusive with TargetGroupIds, supports TargetGroupVpcId (vpc ID), TargetGroupName (target group name), and Tag.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+type DescribeTargetGroupsRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group ID, which is exclusive of `Filters`.
+ TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
+
+ // Limit of the number of displayed results. Default value: 20.
+ Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
+
+ // Starting display offset
+ Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
+
+ // Filter condition array, mutually exclusive with TargetGroupIds, supports TargetGroupVpcId (vpc ID), TargetGroupName (target group name), and Tag.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+func (r *DescribeTargetGroupsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetGroupsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupIds")
+ delete(f, "Limit")
+ delete(f, "Offset")
+ delete(f, "Filters")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTargetGroupsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetGroupsResponseParams struct {
+ // Number of displayed results
+ TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
+
+ // Information set of displayed target groups
+ TargetGroupSet []*TargetGroupInfo `json:"TargetGroupSet,omitnil,omitempty" name:"TargetGroupSet"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeTargetGroupsResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeTargetGroupsResponseParams `json:"Response"`
+}
+
+func (r *DescribeTargetGroupsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetGroupsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetHealthRequestParams struct {
+ // List of IDs of CLB instances to be queried
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Specifies the listener ID list to query.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // Specifies the list of rule ids to be queried.
+ LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
+}
+
+type DescribeTargetHealthRequest struct {
+ *tchttp.BaseRequest
+
+ // List of IDs of CLB instances to be queried
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Specifies the listener ID list to query.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // Specifies the list of rule ids to be queried.
+ LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
+}
+
+func (r *DescribeTargetHealthRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetHealthRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ delete(f, "ListenerIds")
+ delete(f, "LocationIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTargetHealthRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetHealthResponseParams struct {
+ // LoadBalancer list.
+ LoadBalancers []*LoadBalancerHealth `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeTargetHealthResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeTargetHealthResponseParams `json:"Response"`
+}
+
+func (r *DescribeTargetHealthResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetHealthResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetsRequestParams struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of listener IDs (20 IDs at most).
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // Listener protocol type
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Conditions for querying the list of real servers bound to the CLB. The filter criteria are as follows: location-id - String - Required: No - (Filter criterion) Filter by rule ID, such as loc-12345678. private-ip-address - String - Required: No - (Filter criterion) Filter by private IP address of the real server, such as 172.16.1.1. tag - String - Required: No - (Filter criterion) Filter by tag, such as tag-test.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+type DescribeTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // List of listener IDs (20 IDs at most).
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+
+ // Listener protocol type
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Conditions for querying the list of real servers bound to the CLB. The filter criteria are as follows: location-id - String - Required: No - (Filter criterion) Filter by rule ID, such as loc-12345678. private-ip-address - String - Required: No - (Filter criterion) Filter by private IP address of the real server, such as 172.16.1.1. tag - String - Required: No - (Filter criterion) Filter by tag, such as tag-test.
+ Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
+}
+
+func (r *DescribeTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerIds")
+ delete(f, "Protocol")
+ delete(f, "Port")
+ delete(f, "Filters")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTargetsResponseParams struct {
+ // Information of real servers bound to the listener.
+ Listeners []*ListenerBackend `json:"Listeners,omitnil,omitempty" name:"Listeners"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeTargetsResponseParams `json:"Response"`
+}
+
+func (r *DescribeTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTaskStatusRequestParams struct {
+ // Request ID, i.e., the RequestId parameter returned by the API.
+ TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // Order ID.
+ // Note: Either `TaskId` or `DealName` is required.
+ DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
+}
+
+type DescribeTaskStatusRequest struct {
+ *tchttp.BaseRequest
+
+ // Request ID, i.e., the RequestId parameter returned by the API.
+ TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
+
+ // Order ID.
+ // Note: Either `TaskId` or `DealName` is required.
+ DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
+}
+
+func (r *DescribeTaskStatusRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTaskStatusRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TaskId")
+ delete(f, "DealName")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTaskStatusRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DescribeTaskStatusResponseParams struct {
+ // Current status of a task. Value range: 0 (succeeded), 1 (failed), 2 (in progress).
+ Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // Array of unique CLB instance IDs.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Auxiliary description information, such as failure cause.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Message *string `json:"Message,omitnil,omitempty" name:"Message"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DescribeTaskStatusResponse struct {
+ *tchttp.BaseResponse
+ Response *DescribeTaskStatusResponseParams `json:"Response"`
+}
+
+func (r *DescribeTaskStatusResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DescribeTaskStatusResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DisassociateCustomizedConfigRequestParams struct {
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Specifies the list of unbinding.
+ BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
+}
+
+type DisassociateCustomizedConfigRequest struct {
+ *tchttp.BaseRequest
+
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Specifies the list of unbinding.
+ BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
+}
+
+func (r *DisassociateCustomizedConfigRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DisassociateCustomizedConfigRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "UconfigId")
+ delete(f, "BindList")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisassociateCustomizedConfigRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DisassociateCustomizedConfigResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DisassociateCustomizedConfigResponse struct {
+ *tchttp.BaseResponse
+ Response *DisassociateCustomizedConfigResponseParams `json:"Response"`
+}
+
+func (r *DisassociateCustomizedConfigResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DisassociateCustomizedConfigResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DisassociateTargetGroupsRequestParams struct {
+ // Specifies the relationship array of rules to be unbound, supports batch operations for multiple listeners with a maximum of 20 per bulk removal.
+ Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
+}
+
+type DisassociateTargetGroupsRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the relationship array of rules to be unbound, supports batch operations for multiple listeners with a maximum of 20 per bulk removal.
+ Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
+}
+
+func (r *DisassociateTargetGroupsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DisassociateTargetGroupsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "Associations")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisassociateTargetGroupsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type DisassociateTargetGroupsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type DisassociateTargetGroupsResponse struct {
+ *tchttp.BaseResponse
+ Response *DisassociateTargetGroupsResponseParams `json:"Response"`
+}
+
+func (r *DisassociateTargetGroupsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *DisassociateTargetGroupsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type ExclusiveCluster struct {
+ // Layer-4 dedicated cluster list
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ L4Clusters []*ClusterItem `json:"L4Clusters,omitnil,omitempty" name:"L4Clusters"`
+
+ // Layer-7 dedicated cluster list
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ L7Clusters []*ClusterItem `json:"L7Clusters,omitnil,omitempty" name:"L7Clusters"`
+
+ // vpcgw cluster
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ ClassicalCluster *ClusterItem `json:"ClassicalCluster,omitnil,omitempty" name:"ClassicalCluster"`
+}
+
+type ExtraInfo struct {
+ // Whether to enable VIP Direct Connect
+ ZhiTong *bool `json:"ZhiTong,omitnil,omitempty" name:"ZhiTong"`
+
+ // TgwGroup name
+ TgwGroupName *string `json:"TgwGroupName,omitnil,omitempty" name:"TgwGroupName"`
+}
+
+type Filter struct {
+ // Filter name
+ Name *string `json:"Name,omitnil,omitempty" name:"Name"`
+
+ // Filter value array
+ Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
+}
+
+type FunctionInfo struct {
+ // Function namespace
+ FunctionNamespace *string `json:"FunctionNamespace,omitnil,omitempty" name:"FunctionNamespace"`
+
+ // Function name
+ FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`
+
+ // Function version name or alias
+ FunctionQualifier *string `json:"FunctionQualifier,omitnil,omitempty" name:"FunctionQualifier"`
+
+ // Function qualifier type. Values: `VERSION`, `ALIAS`.
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ FunctionQualifierType *string `json:"FunctionQualifierType,omitnil,omitempty" name:"FunctionQualifierType"`
+}
+
+type FunctionTarget struct {
+ // SCF information
+ Function *FunctionInfo `json:"Function,omitnil,omitempty" name:"Function"`
+
+ // Weight
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+type HealthCheck struct {
+ // Whether to enable health check. 1: Enable; 0: Disable.
+ //
+ // It is enabled by default.
+ HealthSwitch *int64 `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
+
+ // Health check response timeout, in seconds. Value range: 2–60. Default value: 2. The response timeout should be less than the check interval.
+ TimeOut *int64 `json:"TimeOut,omitnil,omitempty" name:"TimeOut"`
+
+ // Health check interval, in seconds. Default value: 5. Value range: 2–300 for IPv4 CLB instances and 5–300 for IPv6 CLB instances.
+ // Note: The value range is 5–300 for some IPv4 CLB instances of early versions.
+ IntervalTime *int64 `json:"IntervalTime,omitnil,omitempty" name:"IntervalTime"`
+
+ // Healthy threshold. Default: 3, indicating that if a forwarding is found healthy three consecutive times, it is considered to be normal. Value range: 2-10. Unit: times.
+ HealthNum *int64 `json:"HealthNum,omitnil,omitempty" name:"HealthNum"`
+
+ // Unhealthy threshold. Default: 3, indicating that if a forwarding is found unhealthy three consecutive times, it is considered to be exceptional. Value range: 2-10. Unit: times.
+ UnHealthNum *int64 `json:"UnHealthNum,omitnil,omitempty" name:"UnHealthNum"`
+
+ // Health check status code. (This parameter applies only to HTTP/HTTPS forwarding rules and the HTTP health check method of TCP listeners.) Value range: 1–31. Default value: 31.
+ // 1: return 1xx after the check (healthy); 2: return 2xx after the check (healthy); 4: return 3xx after the check (healthy); 8: return 4xx after the check (healthy); 16: return 5xx after the check (healthy). If you expect that multiple codes represent a healthy real server, set the value to the sum of the corresponding values.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCode *int64 `json:"HttpCode,omitnil,omitempty" name:"HttpCode"`
+
+ // Health check path (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners).
+ //
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
+
+ // Health check domain name, which will be contained in a Host header field of the HTTP protocol. (This parameter applies only to HTTP/HTTPS listeners and the HTTP health check method of TCP listeners. For TCP listeners, this parameter is required if the HTTP health check method is used.)
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCheckDomain *string `json:"HttpCheckDomain,omitnil,omitempty" name:"HttpCheckDomain"`
+
+ // Health check method (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners). Default: HEAD. Valid values: HEAD and GET.
+ //
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCheckMethod *string `json:"HttpCheckMethod,omitnil,omitempty" name:"HttpCheckMethod"`
+
+ // Custom check parameters. health check port, defaults to the port of the backend service unless you want to specify a specific port, otherwise leave it blank. pass the parameter value -1 to restore default settings. (applicable only to TCP/UDP listener).
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ CheckPort *int64 `json:"CheckPort,omitnil,omitempty" name:"CheckPort"`
+
+ // A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the input format of the health check. Valid values: HEX and TEXT. If the value is HEX, the characters of SendContext and RecvContext can only be selected from 0123456789ABCDEF and the length must be an even number. (Applicable only to TCP/UDP listeners.)
+ //
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ContextType *string `json:"ContextType,omitnil,omitempty" name:"ContextType"`
+
+ // A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the content of the request sent by the health check. Only ASCII visible characters are allowed, and the maximum length is 500. (Applicable only to TCP/UDP listeners.)
+ //
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ SendContext *string `json:"SendContext,omitnil,omitempty" name:"SendContext"`
+
+ // A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the result returned by the health check. Only ASCII visible characters are allowed, and the maximum length is 500. (Applicable only to TCP/UDP listeners.)
+ //
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ RecvContext *string `json:"RecvContext,omitnil,omitempty" name:"RecvContext"`
+
+ // Protocol used for health checks. Valid values: TCP (for TCP listeners, TCP_SSL listeners, and QUIC listeners), HTTP (for TCP listeners, TCP_SSL listeners, QUIC listeners, HTTP rules, and HTTPS rules), HTTPS (for HTTPS rules), GRPC (for HTTP rules and HTTPS rules), PING (for UDP listeners), and CUSTOM (for UDP listeners and TCP listeners). The default value is HTTP for HTTP listeners, TCP for TCP, TCP_SSL, and QUIC listeners, and PING for UDP listeners. For HTTPS listeners, the protocol is the same as the backend forwarding protocol.
+ CheckType *string `json:"CheckType,omitnil,omitempty" name:"CheckType"`
+
+ // HTTP version. This field indicates the HTTP version of real servers and is required if the value of CheckType is HTTP. Valid values: HTTP/1.0 and HTTP/1.1. (This field applies only to TCP listeners.)
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpVersion *string `json:"HttpVersion,omitnil,omitempty" name:"HttpVersion"`
+
+ // Source IP address type for health checks. 0: use the LB VIP as the source IP address; 1: use an IP address in the 100.64 range as the source IP address.
+ SourceIpType *int64 `json:"SourceIpType,omitnil,omitempty" name:"SourceIpType"`
+
+ // Health check status code when the protocol is GRPC. (This parameter applies only to rules with the backend forwarding protocol of GRPC.) Default value: 12. You can enter a single numerical value, multiple numerical values, or a range. For example, 20, 20,25, or 0-99.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ExtendedCode *string `json:"ExtendedCode,omitnil,omitempty" name:"ExtendedCode"`
+}
+
+type IdleLoadBalancer struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB instance name
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // CLB instance region
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+
+ // CLB instance VIP
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // The reason why the load balancer is considered idle. `NO_RULES`: No rules configured. `NO_RS`: The rules are not associated with servers.
+ IdleReason *string `json:"IdleReason,omitnil,omitempty" name:"IdleReason"`
+
+ // CLB instance status, including:
+ // `0`: Creating; `1`: Running.
+ Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // CLB type. Value range: `1` (CLB); `0` (classic CLB).
+ Forward *uint64 `json:"Forward,omitnil,omitempty" name:"Forward"`
+
+ // Specifies the clb domain name.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+}
+
+// Predefined struct for user
+type InquiryPriceCreateLoadBalancerRequestParams struct {
+ // Network type of the CLB to query. `OPEN`: Public network; `INTERNAL`: Private network is intranet type
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // The billing mode to query. `POSTPAID`:Pay as you go
+ LoadBalancerChargeType *string `json:"LoadBalancerChargeType,omitnil,omitempty" name:"LoadBalancerChargeType"`
+
+ // Reserved field
+ LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
+
+ // The network billing mode to query
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+
+ // Number of CLB instances to query. Default value: 1.
+ GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
+
+ // Availability zone in the format of "ap-guangzhou-1"
+ ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+
+ // Specification of the LCU-supported instance, which is input to query the monthly subscription price. Valid values: clb.c2.medium: Standardclb.c3.small: Advanced 1clb.c3.medium: Advanced 2clb.c4.small: Super Large 1clb.c4.medium: Super Large 2clb.c4.large: Super Large 3clb.c4.xlarge: Super Large 4SLA is input to query the pay-as-you-go price.
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // IP version. Valid values: `IPV4` (default), `IPV6` (IPV6 NAT64 version) or `IPv6FullChain` (IPv6 version).
+ AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
+
+ // It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
+ VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
+}
+
+type InquiryPriceCreateLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // Network type of the CLB to query. `OPEN`: Public network; `INTERNAL`: Private network is intranet type
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // The billing mode to query. `POSTPAID`:Pay as you go
+ LoadBalancerChargeType *string `json:"LoadBalancerChargeType,omitnil,omitempty" name:"LoadBalancerChargeType"`
+
+ // Reserved field
+ LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
+
+ // The network billing mode to query
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+
+ // Number of CLB instances to query. Default value: 1.
+ GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
+
+ // Availability zone in the format of "ap-guangzhou-1"
+ ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+
+ // Specification of the LCU-supported instance, which is input to query the monthly subscription price. Valid values: clb.c2.medium: Standardclb.c3.small: Advanced 1clb.c3.medium: Advanced 2clb.c4.small: Super Large 1clb.c4.medium: Super Large 2clb.c4.large: Super Large 3clb.c4.xlarge: Super Large 4SLA is input to query the pay-as-you-go price.
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // IP version. Valid values: `IPV4` (default), `IPV6` (IPV6 NAT64 version) or `IPv6FullChain` (IPv6 version).
+ AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
+
+ // It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
+ VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
+}
+
+func (r *InquiryPriceCreateLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceCreateLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerType")
+ delete(f, "LoadBalancerChargeType")
+ delete(f, "LoadBalancerChargePrepaid")
+ delete(f, "InternetAccessible")
+ delete(f, "GoodsNum")
+ delete(f, "ZoneId")
+ delete(f, "SlaType")
+ delete(f, "AddressIPVersion")
+ delete(f, "VipIsp")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceCreateLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceCreateLoadBalancerResponseParams struct {
+ // Price of the instance with the specified configurations.
+ Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type InquiryPriceCreateLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *InquiryPriceCreateLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *InquiryPriceCreateLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceCreateLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceModifyLoadBalancerRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // New bandwidth bandwidth specification
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+}
+
+type InquiryPriceModifyLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // New bandwidth bandwidth specification
+ InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
+}
+
+func (r *InquiryPriceModifyLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceModifyLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "InternetAccessible")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceModifyLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceModifyLoadBalancerResponseParams struct {
+ // Pricing information
+ Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type InquiryPriceModifyLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *InquiryPriceModifyLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *InquiryPriceModifyLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceModifyLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceRefundLoadBalancerRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+}
+
+type InquiryPriceRefundLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+}
+
+func (r *InquiryPriceRefundLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceRefundLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceRefundLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceRefundLoadBalancerResponseParams struct {
+ // Price of the instance with the specified configurations.
+ Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type InquiryPriceRefundLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *InquiryPriceRefundLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *InquiryPriceRefundLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceRefundLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceRenewLoadBalancerRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Renewal period
+ LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
+}
+
+type InquiryPriceRenewLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Renewal period
+ LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
+}
+
+func (r *InquiryPriceRenewLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceRenewLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "LoadBalancerChargePrepaid")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceRenewLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceRenewLoadBalancerResponseParams struct {
+ // Price to renew
+ Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type InquiryPriceRenewLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *InquiryPriceRenewLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *InquiryPriceRenewLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceRenewLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type InternetAccessible struct {
+ // TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on an hourly basis. BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on an hourly basis. International site users do not support this billing mode. BANDWIDTH_PACKAGE: Charged by bandwidth package. BANDWIDTH_PREPAID: Bandwidth prepaid.
+ InternetChargeType *string `json:"InternetChargeType,omitnil,omitempty" name:"InternetChargeType"`
+
+ // Maximum outbound bandwidth, in Mbps. This parameter is valid only for public network shared, LCU-supported, and exclusive CLB instances and private network LCU-supported CLB instances.
+ // - The range of the maximum outbound bandwidth for public network shared and exclusive CLB instances is 1 Mbps to 2,048 Mbps.
+ // - The range of the maximum outbound bandwidth for public network and private network LCU-supported CLB instances is 1 Mbps to 61,440 Mbps.
+ // (If this parameter is not specified when CreateLoadBalancer is called to create a CLB instance, the default value of 10 Mbps is used. This value can be modified.)
+ InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitnil,omitempty" name:"InternetMaxBandwidthOut"`
+
+ // Bandwidth package type, for example BGP (multi-line).
+ // Type as follows:.
+ // SINGLEISP: single isp.
+ // BGP: multi-line.
+ // HIGH_QUALITY_BGP: specifies a dedicated bgp bandwidth package.
+ // SINGLEISP_CMCC: specifies a cmcc bandwidth package.
+ // SINGLEISP_CTCC: specifies the ctcc bandwidth package.
+ // SINGLEISP_CUCC: specifies the china unicom bandwidth package.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ BandwidthpkgSubType *string `json:"BandwidthpkgSubType,omitnil,omitempty" name:"BandwidthpkgSubType"`
+}
+
+type ItemPrice struct {
+ // PAYG unit price, in USD.
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ UnitPrice *float64 `json:"UnitPrice,omitnil,omitempty" name:"UnitPrice"`
+
+ // Subsequent billing unit. Value Range:
+ // `HOUR`: Calculate the cost by hour. It's available when "InternetChargeType=POSTPAID_BY_HOUR".
+ // `GB`: Calculate the cost by traffic in GB. It's available when "InternetChargeType=TRAFFIC_POSTPAID_BY_HOUR".
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ ChargeUnit *string `json:"ChargeUnit,omitnil,omitempty" name:"ChargeUnit"`
+
+ // Reserved field
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ OriginalPrice *float64 `json:"OriginalPrice,omitnil,omitempty" name:"OriginalPrice"`
+
+ // Reserved field
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ DiscountPrice *float64 `json:"DiscountPrice,omitnil,omitempty" name:"DiscountPrice"`
+
+ // Discount unit price of a pay-as-you-go instance, in USD.
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ UnitPriceDiscount *float64 `json:"UnitPriceDiscount,omitnil,omitempty" name:"UnitPriceDiscount"`
+
+ // Discount. For example, 20.0 indicates 80% off.
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ Discount *float64 `json:"Discount,omitnil,omitempty" name:"Discount"`
+}
+
+type LBChargePrepaid struct {
+ // Reserved field.
+ RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
+
+ // Reserved field.
+ Period *int64 `json:"Period,omitnil,omitempty" name:"Period"`
+}
+
+type LBItem struct {
+ // String ID of the CLB instance.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // VIP of the CLB instance.
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // Listener rule.
+ Listeners []*ListenerItem `json:"Listeners,omitnil,omitempty" name:"Listeners"`
+
+ // Region of the CLB instance
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+}
+
+type LBOperateProtectInfo struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Protected status. true means operation protection is enabled. false means operation protection is disabled.
+ ProtectState *bool `json:"ProtectState,omitnil,omitempty" name:"ProtectState"`
+
+ // Specifies the uin for operation protection setting.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ OperatorUin *string `json:"OperatorUin,omitnil,omitempty" name:"OperatorUin"`
+
+ // Specifies the description when setting operation protection.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Description *string `json:"Description,omitnil,omitempty" name:"Description"`
+
+ // Specifies the last modification time.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
+}
+
+type LbRsItem struct {
+ // VPC ID in string format. Only string format is supported.
+ // Can be queried through the [DescribeVpcs](https://www.tencentcloud.comom/document/api/215/15778?from_cn_redirect=1) api.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Specifies the private IP address for backend querying, which can be CVM or eni.
+ // Can be queried through the [DescribeAddresses](https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1) api.
+ PrivateIp *string `json:"PrivateIp,omitnil,omitempty" name:"PrivateIp"`
+}
+
+type LbRsTargets struct {
+ // Private network IP type, which can be `cvm` or `eni`.
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Private network IP of the real server.
+ PrivateIp *string `json:"PrivateIp,omitnil,omitempty" name:"PrivateIp"`
+
+ // Port bound to the real server.
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // vpcId of RS
+ VpcId *int64 `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // RS weight
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+type Listener struct {
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Listener protocol. valid values: TCP, UDP, HTTP, HTTPS, TCP_SSL, QUIC.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port. value range: 1-65535.
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Information of certificates bound to the listener
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Certificate *CertificateOutput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Health check information of the listener
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Request scheduling method. WRR, LEAST_CONN, and IP_HASH respectively indicate weighted round robin, least connections, and IP hash.Note: This field may return null, indicating that no valid values can be obtained.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Session persistence time, in seconds. value range: 30-3600. default value: 0, indicating that session persistence is not enabled by default. this parameter applies only to TCP and UDP listeners.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Specifies whether to enable the SNI feature. 1: enable; 0: disable. this parameter is applicable only to HTTPS listeners.
+ SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
+
+ // All forwarding rules under a listener (this parameter is meaningful only for HTTP/HTTPS listeners)
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Rules []*RuleOutput `json:"Rules,omitnil,omitempty" name:"Rules"`
+
+ // Listener name
+ ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
+
+ // Listener creation time
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
+
+ // End port of the port range. value range: 2-65535.
+ EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
+
+ // Backend server type. available values: NODE, POLARIS, TARGETGROUP, TARGETGROUP-V2.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Basic information of a bound target group. This field will be returned when a target group is bound to a listener.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ TargetGroup *BasicTargetGroupInfo `json:"TargetGroup,omitnil,omitempty" name:"TargetGroup"`
+
+ // Session persistence type. NORMAL: Default session persistence type; QUIC_CID: Session persistence by Quic Connection ID.
+ SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
+
+ // Whether a persistent connection is enabled (1: enabled; 0: disabled). This parameter can only be configured in HTTP/HTTPS listeners.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Supports Nat64 CLB TCP listeners only
+ Toa *bool `json:"Toa,omitnil,omitempty" name:"Toa"`
+
+ // Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
+
+ // Describes the attributes of the listener.
+ AttrFlags []*string `json:"AttrFlags,omitnil,omitempty" name:"AttrFlags"`
+
+ // List of bound target groups
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ TargetGroupList []*BasicTargetGroupInfo `json:"TargetGroupList,omitnil,omitempty" name:"TargetGroupList"`
+
+ // Maximum number of connections to a listener. -1 indicates unlimited speed at the listener dimension.
+ MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
+
+ // Maximum number of new connections to a listener. -1 means no speed limit at the listener dimension.
+ MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
+
+ // Connection idle timeout period (in seconds). It’s only available to TCP listeners. Value range: 300-900 for shared and dedicated instances; 300-2000 for LCU-supported CLB instances. It defaults to 900.
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
+
+ // Rescheduling trigger duration, valid values: 0-3600s. only TCP/UDP listeners support this. after triggering rescheduling, persistent connections will disconnect and be reassigned within the set scheduling time.
+ RescheduleInterval *uint64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
+
+ // Data compression mode.
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // Reschedules the startup time. when configured, rescheduling will be triggered upon arrival of the start time.
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+}
+
+type ListenerBackend struct {
+ // Listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Listener protocol
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Information of rules under a listener (applicable only to HTTP/HTTPS listeners)
+ Rules []*RuleTargets `json:"Rules,omitnil,omitempty" name:"Rules"`
+
+ // List of real servers bound to the listener (applicable only to TCP/UDP/TCP_SSL listener)
+ Targets []*Backend `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // End port in a port range if port range is supported, or 0 if port range is not supported
+ EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
+}
+
+type ListenerHealth struct {
+ // Listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Listener name.
+ ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
+
+ // Listener protocol
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // List of forwarding rules of the listener
+ Rules []*RuleHealth `json:"Rules,omitnil,omitempty" name:"Rules"`
+}
+
+type ListenerItem struct {
+ // Listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Listener protocol.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port.
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Bound rule.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ Rules []*RulesItems `json:"Rules,omitnil,omitempty" name:"Rules"`
+
+ // Object bound to the layer-4 listener.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ Targets []*LbRsTargets `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // End port of a port range for a listener
+ EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
+}
+
+type LoadBalancer struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB instance name.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Network type of the load balancing instance.
+ // OPEN: public network attribute. INTERNAL: private network attribute. for a cloud load balancer with private network attribute, you can bind an EIP for public network access. for details, see the EIP document on binding elastic IP (https://www.tencentcloud.comom/document/product/215/16700?from_cn_redirect=1).
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // CLB type identifier. Value range: 1 (CLB); 0 (classic CLB).
+ Forward *uint64 `json:"Forward,omitnil,omitempty" name:"Forward"`
+
+ // The domain name of the cloud load balancer instance. this field is only provided for public network classic and domain name-based load balancing instances. it is being gradually phased out. we recommend using LoadBalancerDomain instead.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // List of VIPs of a CLB instance.
+ LoadBalancerVips []*string `json:"LoadBalancerVips,omitnil,omitempty" name:"LoadBalancerVips"`
+
+ // Specifies the state of the load balancing instance, including.
+ // 0: creating. 1: normal operation.
+ Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // CLB instance creation time
+ // Format: YYYY-MM-DD HH:MM:ss.
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
+
+ // Last status transition time of the CLB instance.
+ // Format: YYYY-MM-DD HH:MM:ss.
+ StatusTime *string `json:"StatusTime,omitnil,omitempty" name:"StatusTime"`
+
+ // ID of the project to which a CLB instance belongs. 0: default project.
+ ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // VPC ID
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Anti-DDoS Pro identifier for CLB. 1: CLB with Anti-DDoS Pro; 0: CLB without Anti-DDoS Pro.
+ OpenBgp *uint64 `json:"OpenBgp,omitnil,omitempty" name:"OpenBgp"`
+
+ // Whether SNAT is enabled. for traditional private network clbs before december 2016, SNAT was enabled.
+ Snat *bool `json:"Snat,omitnil,omitempty" name:"Snat"`
+
+ // Whether isolated. 0 means not isolated. 1 means isolated.
+ Isolation *uint64 `json:"Isolation,omitnil,omitempty" name:"Isolation"`
+
+ // Log information. Only the public network CLB that have HTTP or HTTPS listeners can generate logs.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ //
+ // Deprecated: Log is deprecated.
+ Log *string `json:"Log,omitnil,omitempty" name:"Log"`
+
+ // Subnet of the CLB instance (applicable only to VPC-type CLB instances on private networks)
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
+
+ // CLB instance tag information
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // Security group of the CLB instance
+ SecureGroups []*string `json:"SecureGroups,omitnil,omitempty" name:"SecureGroups"`
+
+ // Basic information of real servers bound to the CLB instance
+ TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitnil,omitempty" name:"TargetRegionInfo"`
+
+ // Anycast CLB release domain. For non-anycast CLB, this field returns an empty string.
+ AnycastZone *string `json:"AnycastZone,omitnil,omitempty" name:"AnycastZone"`
+
+ // IP Version, ipv4 | ipv6
+ AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
+
+ // Specifies the VPC ID in numerical form, obtainable through the DescribeVpcs API (https://www.tencentcloud.comom/document/product/215/15778?from_cn_redirect=1).
+ NumericalVpcId *uint64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
+
+ // Specifies the ISP of the load balancer IP address.
+ //
+ // -BGP (multi-line).
+ // - CMCC: CMCC single line network.
+ // -CTCC: ctcc single-line.
+ // - CUCC: china unicom single-line.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
+
+ // Primary AZ
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ MasterZone *ZoneInfo `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
+
+ // Secondary AZ
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ BackupZoneSet []*ZoneInfo `json:"BackupZoneSet,omitnil,omitempty" name:"BackupZoneSet"`
+
+ // Specifies the isolation time of the cloud load balancer instance.
+ // Format: YYYY-MM-DD HH:MM:ss.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ IsolatedTime *string `json:"IsolatedTime,omitnil,omitempty" name:"IsolatedTime"`
+
+ // CLB instance expiration time, which takes effect only for prepaid instances
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
+
+ // Billing mode of CLB instance. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay as you go).
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ ChargeType *string `json:"ChargeType,omitnil,omitempty" name:"ChargeType"`
+
+ // CLB instance network attributes
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ NetworkAttributes *InternetAccessible `json:"NetworkAttributes,omitnil,omitempty" name:"NetworkAttributes"`
+
+ // Prepaid billing attributes of a CLB instance
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ PrepaidAttributes *LBChargePrepaid `json:"PrepaidAttributes,omitnil,omitempty" name:"PrepaidAttributes"`
+
+ // Log set ID of Cloud Log Service (CLS) for CLB
+ LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
+
+ // Log topic ID of Cloud Log Service (CLS) for CLB
+ LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
+
+ // IPv6 address of a CLB instance
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ AddressIPv6 *string `json:"AddressIPv6,omitnil,omitempty" name:"AddressIPv6"`
+
+ // Reserved field which can be ignored generally.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ExtraInfo *ExtraInfo `json:"ExtraInfo,omitnil,omitempty" name:"ExtraInfo"`
+
+ // Whether an Anti-DDoS Pro instance can be bound
+ IsDDos *bool `json:"IsDDos,omitnil,omitempty" name:"IsDDos"`
+
+ // Custom configuration IDs of CLB instances
+ ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
+
+ // Whether the real server allows traffic from CLB
+ LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
+
+ // Exclusive cluster on the private network
+ ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
+
+ // Specifies the field is meaningful when the IP address version is ipv6. valid values: ipv6Nat64 | ipv6FullChain.
+ // IPv6Nat64: specifies a load balancer based on Nat64 IPv6 transition technology.
+ // IPv6FullChain: specifies a cloud load balancer implemented based on ipv6 single-stack technology.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ IPv6Mode *string `json:"IPv6Mode,omitnil,omitempty" name:"IPv6Mode"`
+
+ // Specifies whether SnatPro is enabled.
+ SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
+
+ // Enables the SnatIp list after turning on SnatPro load balancing.
+ SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
+
+ // Performance capacity specification. - clb.c1.small: minimalist specification
- clb.c2.medium: standard specification
- clb.c3.small: advanced type 1 specification
- clb.c3.medium: advanced type 2 specification
- clb.c4.small: super type 1 specification
- clb.c4.medium: super type 2 specification
- clb.c4.large: super type 3 specification
- clb.c4.xlarge: super type 4 specification
- "" : non-performance capacity instance
.
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // Whether VIP is blocked
+ IsBlock *bool `json:"IsBlock,omitnil,omitempty" name:"IsBlock"`
+
+ // Specifies the blocking or unblocking time.
+ // Format: YYYY-MM-DD HH:MM:ss.
+ IsBlockTime *string `json:"IsBlockTime,omitnil,omitempty" name:"IsBlockTime"`
+
+ // Whether the IP type is Local BGP
+ LocalBgp *bool `json:"LocalBgp,omitnil,omitempty" name:"LocalBgp"`
+
+ // Dedicated layer-7 tag.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
+
+ // If the layer-7 listener of an IPv6FullChain CLB instance is enabled, the CLB instance can be bound with IPv4 and IPv6 CVM instances simultaneously.
+ MixIpTarget *bool `json:"MixIpTarget,omitnil,omitempty" name:"MixIpTarget"`
+
+ // Availability zone of a VPC-based private network CLB instance
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
+
+ // Whether it is an NFV CLB instance. No returned information: no; l7nfv: yes.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ NfvInfo *string `json:"NfvInfo,omitnil,omitempty" name:"NfvInfo"`
+
+ // Health check log set ID of Cloud Log Service (CLS) for CLB
+ HealthLogSetId *string `json:"HealthLogSetId,omitnil,omitempty" name:"HealthLogSetId"`
+
+ // Health check log topic ID of Cloud Log Service (CLS) for CLB
+ HealthLogTopicId *string `json:"HealthLogTopicId,omitnil,omitempty" name:"HealthLogTopicId"`
+
+ // Cluster ID.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
+
+ // Attributes of cloud load balancer, input an array of strings to determine whether it is enabled.
+ // DeleteProtect: specifies deletion protection. once enabled, it prevents the cloud load balancer from being accidentally deleted.
+ // UserInVisible: invisible to users, controls load balancing visibility to users.
+ // BlockStatus: specifies the blockage status, used to limit certain operations or traffic for cloud load balancer.
+ // NoLBNat: disables the NAT feature of cloud load balancer for direct forwarding of traffic in specific scenarios.
+ // BanStatus: specifies the blocking status for suspending the clb service or restricting access.
+ // ShiftupFlag: specifies the upgrade flag used to identify if the cloud load balancer requires a configuration upgrade or performance improvement.
+ // Specifies the stopped status. once enabled, the cloud load balancer suspends service.
+ // NoVpcGw: specifies not to use VPC gateway to bypass the gateway for direct traffic handling.
+ // SgInTgw: specifies the security group in TGW (Transit Gateway) involving network security policy configuration.
+ // SharedLimitFlag: specifies the shared limit flag used to control the resource constraints of cloud load balancer.
+ // WafFlag: specifies the Web application firewall (WAF) flag. enabled to enable WAF protection.
+ // IsDomainCLB: indicates whether the cloud load balancer is domain name-based for traffic distribution.
+ // IPv6Snat: IPv6 source address translation (Snat), used for source address processing in IPv6 networks.
+ // HideDomain. specifies whether to hide the domain name for privacy protection or to avoid exposing it in specific scenarios.
+ // JumboFrame: specifies giant frame support. once enabled, it supports larger data frames to improve network efficiency.
+ // NoLBNatL4IPdc: specifies layer 4 IP direct connection without NAT, used for direct forwarding of IP traffic in layer 4 load balancing.
+ // VpcGwL3Service: specifies the VPC gateway layer-3 Service, which involves the gateway feature of the layer-3 network.
+ // Ipv62Flag: specifies the Ipv6 expansion Flag for specific feature support.
+ // Ipv62ExclusiveFlag: specifies the Ipv6 exclusive flag used for exclusive Ipv6 traffic processing.
+ // BgpPro: specifies BGP Pro support.
+ // ToaClean: TOA (TCP Option Address) cleanup. clears Address information in TCP options.
+ AttributeFlags []*string `json:"AttributeFlags,omitnil,omitempty" name:"AttributeFlags"`
+
+ // Specifies the domain name of the load balancing instance.
+ LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
+
+ // Specifies the network outbound.
+ Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
+
+ // Indicates whether the instance type is dedicated. 1: dedicated instance. 0: non-dedicated instance.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Exclusive *uint64 `json:"Exclusive,omitnil,omitempty" name:"Exclusive"`
+
+ // Specifies the number of bound backend services.
+ TargetCount *uint64 `json:"TargetCount,omitnil,omitempty" name:"TargetCount"`
+
+ // Specifies the Endpoint id associated with the clb instance.
+ AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
+}
+
+type LoadBalancerDetail struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB instance name.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Network type of the load balancing instance.
+ // Public: Public network attribute. Private: Private network attribute. for Private network cloud load balancer, bind EIP for Public network access. refer to EIP document.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
+
+ // CLB instance status, including:
+ // 0: creating; 1: running.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
+
+ // CLB instance VIP.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Address *string `json:"Address,omitnil,omitempty" name:"Address"`
+
+ // IPv6 VIP address of the CLB instance.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ AddressIPv6 *string `json:"AddressIPv6,omitnil,omitempty" name:"AddressIPv6"`
+
+ // IP version of the CLB instance. Valid values: IPv4, IPv6.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
+
+ // IPv6 address type of the CLB instance. Valid values: IPv6Nat64, IPv6FullChain.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ IPv6Mode *string `json:"IPv6Mode,omitnil,omitempty" name:"IPv6Mode"`
+
+ // Availability zone where the CLB instance resides.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+
+ // ISP for the IP address of the CLB instance. Valid values: BGP (multi-line), CMCC (China Mobile), CUCC (China Unicom), CTCC (China Telecom), INTERNAL (private network).Note: This field may return null, indicating that no valid values can be obtained.
+ AddressIsp *string `json:"AddressIsp,omitnil,omitempty" name:"AddressIsp"`
+
+ // ID of the VPC instance to which the CLB instance belongs.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // ID of the project to which the CLB instance belongs. 0: default project.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+
+ // CLB instance creation time.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
+
+ // Billing type of a CLB instance. Valid values: PREPAID (prepaid), POSTPAID_BY_HOUR (pay-as-you-go).Note: This field may return null, indicating that no valid values can be obtained.
+ ChargeType *string `json:"ChargeType,omitnil,omitempty" name:"ChargeType"`
+
+ // CLB instance network attribute.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ NetworkAttributes *InternetAccessible `json:"NetworkAttributes,omitnil,omitempty" name:"NetworkAttributes"`
+
+ // Pay-as-you-go attribute of the CLB instance.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ PrepaidAttributes *LBChargePrepaid `json:"PrepaidAttributes,omitnil,omitempty" name:"PrepaidAttributes"`
+
+ // Reserved field, which can be ignored generally.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ ExtraInfo *ExtraInfo `json:"ExtraInfo,omitnil,omitempty" name:"ExtraInfo"`
+
+ // Custom configuration IDs of CLB instances. Multiple IDs must be separated by commas (,).
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
+
+ // CLB instance tag information.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
+
+ // CLB listener ID.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Listener protocol.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Listener port.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Forwarding rule ID.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the forwarding rule.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Forwarding rule path.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // ID of target real servers.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ TargetId *string `json:"TargetId,omitnil,omitempty" name:"TargetId"`
+
+ // Address of target real servers.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ TargetAddress *string `json:"TargetAddress,omitnil,omitempty" name:"TargetAddress"`
+
+ // Listening port of target real servers.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ TargetPort *uint64 `json:"TargetPort,omitnil,omitempty" name:"TargetPort"`
+
+ // Forwarding weight of target real servers.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ TargetWeight *uint64 `json:"TargetWeight,omitnil,omitempty" name:"TargetWeight"`
+
+ // 0: not isolated; 1: isolated.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ Isolation *uint64 `json:"Isolation,omitnil,omitempty" name:"Isolation"`
+
+ // List of the security groups bound to the CLB instance.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ SecurityGroup []*string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
+
+ // Whether to enable moving up CLB security groups. Valid values: 1 (enabled), 0 (not enabled).Note: This field may return null, indicating that no valid values can be obtained.
+ LoadBalancerPassToTarget *uint64 `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
+
+ // Health status of the target real server.
+ // Note: this field may return `null`, indicating that no valid values can be obtained.
+ TargetHealth *string `json:"TargetHealth,omitnil,omitempty" name:"TargetHealth"`
+
+ // List o domain names associated with the forwarding rule
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ Domains *string `json:"Domains,omitnil,omitempty" name:"Domains"`
+
+ // The secondary zone of multi-AZ CLB instance
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ SlaveZone []*string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
+
+ // The AZ of private CLB instance. This is only available for beta users.
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
+
+ // Whether to enable SNI. `1`: Enable; `0`: Do not enable. This parameter is only meaningful for HTTPS listeners.
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
+
+ // Specifies the domain name of the load balancing instance.
+ LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
+
+ // Specifies the network outbound.
+ Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
+
+ // Specifies the attributes of cloud load balancer.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ AttributeFlags []*string `json:"AttributeFlags,omitnil,omitempty" name:"AttributeFlags"`
+
+ // Specification type information for load balancing instances - clb.c1.small: minimalist specification
- clb.c2.medium: standard specification
- clb.c3.small: advanced type 1 specification
- clb.c3.medium: advanced type 2 specification
- clb.c4.small: ultra type 1 specification
- clb.c4.medium: ultra type 2 specification
- clb.c4.large: ultra type 3 specification
- clb.c4.xlarge: ultra type 4 specification
- "" : non-lcu-supported instance
.
+ //
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+
+ // 0 means non-dedicated instance. 1 means dedicated instance.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Exclusive *uint64 `json:"Exclusive,omitnil,omitempty" name:"Exclusive"`
+}
+
+type LoadBalancerHealth struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies the name of the load balancing instance.
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // Listener list
+ Listeners []*ListenerHealth `json:"Listeners,omitnil,omitempty" name:"Listeners"`
+}
+
+type LoadBalancerTraffic struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB instance name
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // CLB instance region
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+
+ // CLB instance VIP
+ Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
+
+ // Maximum outbound bandwidth in Mbps
+ OutBandwidth *float64 `json:"OutBandwidth,omitnil,omitempty" name:"OutBandwidth"`
+
+ // Specifies the CLB domain name.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+}
+
+// Predefined struct for user
+type ManualRewriteRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Source listener ID
+ SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
+
+ // Target listener ID
+ TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
+
+ // Redirection relationship between forwarding rules
+ RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
+}
+
+type ManualRewriteRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Source listener ID
+ SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
+
+ // Target listener ID
+ TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
+
+ // Redirection relationship between forwarding rules
+ RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
+}
+
+func (r *ManualRewriteRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ManualRewriteRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "SourceListenerId")
+ delete(f, "TargetListenerId")
+ delete(f, "RewriteInfos")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ManualRewriteRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ManualRewriteResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ManualRewriteResponse struct {
+ *tchttp.BaseResponse
+ Response *ManualRewriteResponseParams `json:"Response"`
+}
+
+func (r *ManualRewriteResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ManualRewriteResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type MigrateClassicalLoadBalancersRequestParams struct {
+ // Array of classic CLB instance IDs
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Exclusive cluster information
+ ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
+}
+
+type MigrateClassicalLoadBalancersRequest struct {
+ *tchttp.BaseRequest
+
+ // Array of classic CLB instance IDs
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Exclusive cluster information
+ ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
+}
+
+func (r *MigrateClassicalLoadBalancersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *MigrateClassicalLoadBalancersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ delete(f, "ExclusiveCluster")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "MigrateClassicalLoadBalancersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type MigrateClassicalLoadBalancersResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type MigrateClassicalLoadBalancersResponse struct {
+ *tchttp.BaseResponse
+ Response *MigrateClassicalLoadBalancersResponseParams `json:"Response"`
+}
+
+func (r *MigrateClassicalLoadBalancersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *MigrateClassicalLoadBalancersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyBlockIPListRequestParams struct {
+ // CLB instance ID
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Operation type. Valid values:
+ // add_customized_field (sets header initially to enable the blocklist feature)
+ // set_customized_field (modifies header)
+ // del_customized_field (deletes header)
+ // add_blocked (adds IPs to blocklist)
+ // del_blocked (deletes IPs from blocklist)
+ // flush_blocked (clears blocklist)
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Header field that stores real client IPs
+ ClientIPField *string `json:"ClientIPField,omitnil,omitempty" name:"ClientIPField"`
+
+ // List of blocked IPs. The array can contain up to 200,000 entries in one operation.
+ BlockIPList []*string `json:"BlockIPList,omitnil,omitempty" name:"BlockIPList"`
+
+ // Expiration time in seconds. Default value: 3600
+ ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
+
+ // IP adding policy. Valid value: fifo (if a blocklist is full, new IPs added to the blocklist will adopt the first-in first-out policy)
+ AddStrategy *string `json:"AddStrategy,omitnil,omitempty" name:"AddStrategy"`
+}
+
+type ModifyBlockIPListRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Operation type. Valid values:
+ // add_customized_field (sets header initially to enable the blocklist feature)
+ // set_customized_field (modifies header)
+ // del_customized_field (deletes header)
+ // add_blocked (adds IPs to blocklist)
+ // del_blocked (deletes IPs from blocklist)
+ // flush_blocked (clears blocklist)
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Header field that stores real client IPs
+ ClientIPField *string `json:"ClientIPField,omitnil,omitempty" name:"ClientIPField"`
+
+ // List of blocked IPs. The array can contain up to 200,000 entries in one operation.
+ BlockIPList []*string `json:"BlockIPList,omitnil,omitempty" name:"BlockIPList"`
+
+ // Expiration time in seconds. Default value: 3600
+ ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
+
+ // IP adding policy. Valid value: fifo (if a blocklist is full, new IPs added to the blocklist will adopt the first-in first-out policy)
+ AddStrategy *string `json:"AddStrategy,omitnil,omitempty" name:"AddStrategy"`
+}
+
+func (r *ModifyBlockIPListRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyBlockIPListRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ delete(f, "Type")
+ delete(f, "ClientIPField")
+ delete(f, "BlockIPList")
+ delete(f, "ExpireTime")
+ delete(f, "AddStrategy")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyBlockIPListRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyBlockIPListResponseParams struct {
+ // Async task ID
+ JodId *string `json:"JodId,omitnil,omitempty" name:"JodId"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyBlockIPListResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyBlockIPListResponseParams `json:"Response"`
+}
+
+func (r *ModifyBlockIPListResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyBlockIPListResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyCustomizedConfigRequestParams struct {
+ // Configuration name
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Specifies the configuration content.
+ ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
+}
+
+type ModifyCustomizedConfigRequest struct {
+ *tchttp.BaseRequest
+
+ // Configuration name
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // Configuration ID.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Specifies the configuration content.
+ ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
+}
+
+func (r *ModifyCustomizedConfigRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyCustomizedConfigRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "ConfigName")
+ delete(f, "UconfigId")
+ delete(f, "ConfigContent")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyCustomizedConfigRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyCustomizedConfigResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyCustomizedConfigResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyCustomizedConfigResponseParams `json:"Response"`
+}
+
+func (r *ModifyCustomizedConfigResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyCustomizedConfigResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyDomainAttributesRequestParams struct {
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Domain name (must be a domain name under a created forwarding rule). if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // The one domain name to modify. `NewDomain` and `NewDomains` can not be both specified.
+ NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
+
+ // Certificate information of the domain name. It is only applicable to listeners with SNI enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Specifies whether to enable HTTP/2. note that only HTTPS domain names support HTTP/2.
+ // True: enable HTTP2. false: disable HTTP2.
+ Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
+
+ // Whether to set as the default domain name. Note: Only one default domain name can be set under a listener.
+ // True: set as default domain name. false: do not set as default domain name.
+ DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
+
+ // Specifies whether QUIC is enabled. note that QUIC can only be enabled for HTTPS domains.
+ // True: enable QUIC. False: disable.
+ Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
+
+ // Specifies a new default domain name for the listener. This field is used when the original default domain name is disabled. If there are multiple domain names, specify one of them.
+ NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
+
+ // The new domain names to modify. `NewDomain` and `NewDomains` can not be both specified.
+ NewDomains []*string `json:"NewDomains,omitnil,omitempty" name:"NewDomains"`
+
+ // Certificate information related to the domain name. Note: This applies only to listeners with SNI enabled. Multiple server certificates with different algorithm types can be input simultaneously, but this parameter cannot be input together with the Certificate.
+ MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+}
+
+type ModifyDomainAttributesRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Domain name (must be a domain name under a created forwarding rule). if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // The one domain name to modify. `NewDomain` and `NewDomains` can not be both specified.
+ NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
+
+ // Certificate information of the domain name. It is only applicable to listeners with SNI enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Specifies whether to enable HTTP/2. note that only HTTPS domain names support HTTP/2.
+ // True: enable HTTP2. false: disable HTTP2.
+ Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
+
+ // Whether to set as the default domain name. Note: Only one default domain name can be set under a listener.
+ // True: set as default domain name. false: do not set as default domain name.
+ DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
+
+ // Specifies whether QUIC is enabled. note that QUIC can only be enabled for HTTPS domains.
+ // True: enable QUIC. False: disable.
+ Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
+
+ // Specifies a new default domain name for the listener. This field is used when the original default domain name is disabled. If there are multiple domain names, specify one of them.
+ NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
+
+ // The new domain names to modify. `NewDomain` and `NewDomains` can not be both specified.
+ NewDomains []*string `json:"NewDomains,omitnil,omitempty" name:"NewDomains"`
+
+ // Certificate information related to the domain name. Note: This applies only to listeners with SNI enabled. Multiple server certificates with different algorithm types can be input simultaneously, but this parameter cannot be input together with the Certificate.
+ MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+}
+
+func (r *ModifyDomainAttributesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyDomainAttributesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Domain")
+ delete(f, "NewDomain")
+ delete(f, "Certificate")
+ delete(f, "Http2")
+ delete(f, "DefaultServer")
+ delete(f, "Quic")
+ delete(f, "NewDefaultServerDomain")
+ delete(f, "NewDomains")
+ delete(f, "MultiCertInfo")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDomainAttributesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyDomainAttributesResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyDomainAttributesResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyDomainAttributesResponseParams `json:"Response"`
+}
+
+func (r *ModifyDomainAttributesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyDomainAttributesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyDomainRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the clb listener. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // An existing domain under the listener, can be queried through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // New domain name. Length limit: 1-120. There are three usage formats: non-regular expression, wildcard, and regular expression. A non-regular expression can only contain letters, digits, "-", and ".". In a wildcard, "*" can only be at the beginning or the end. A regular expressions must begin with a "~".
+ NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
+}
+
+type ModifyDomainRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the clb listener. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // An existing domain under the listener, can be queried through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // New domain name. Length limit: 1-120. There are three usage formats: non-regular expression, wildcard, and regular expression. A non-regular expression can only contain letters, digits, "-", and ".". In a wildcard, "*" can only be at the beginning or the end. A regular expressions must begin with a "~".
+ NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
+}
+
+func (r *ModifyDomainRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyDomainRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Domain")
+ delete(f, "NewDomain")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDomainRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyDomainResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyDomainResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyDomainResponseParams `json:"Response"`
+}
+
+func (r *ModifyDomainResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyDomainResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyFunctionTargetsRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Specifies the backend SCF service list to modify. only Event function type is supported.
+ FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
+
+ // Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or `Domain`+`Url`.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if `LocationId` is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if `LocationId` is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+type ModifyFunctionTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Specifies the backend SCF service list to modify. only Event function type is supported.
+ FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
+
+ // Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or `Domain`+`Url`.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if `LocationId` is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if `LocationId` is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+func (r *ModifyFunctionTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyFunctionTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "FunctionTargets")
+ delete(f, "LocationId")
+ delete(f, "Domain")
+ delete(f, "Url")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyFunctionTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyFunctionTargetsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyFunctionTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyFunctionTargetsResponseParams `json:"Response"`
+}
+
+func (r *ModifyFunctionTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyFunctionTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyListenerRequestParams struct {
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the CLB instance listener. You can call the [DescribeListeners](https://intl.cloud.tencent.com/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // New listener name. The maximum length is 255 characters.
+ ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
+
+ // Session persistence time in seconds. Value range: 30-3,600. The default value is 0, indicating that session persistence is not enabled. This parameter is applicable only to TCP/UDP listeners.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Health check parameter. It is only applicable only to TCP, UDP, TCP_SSL and QUIC listeners.
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Certificate information. This parameter is only applicable to HTTPS/TCP_SSL/QUIC listeners. `Certificate` and `MultiCertInfo` cannot be both specified.
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Listener forwarding method. Valid values: WRR (weighted round-robin), LEAST_CONN (least connections), and IP_HASH (IP address hash).
+ // They indicate weighted round-robin and least connections, respectively. Default value: WRR.
+ // Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners. The balancing method for Layer-7 listeners should be modified in the forwarding rules.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. The default value is 0, indicating disabled, and 1 indicates enabled. Note: The SNI feature can be enabled for listeners that have not enabled SNI, but cannot be disabled for listeners that have enabled SNI.
+ SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
+
+ // Target backend type. `NODE`: A single node; `TARGETGROUP`: A target group.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Whether to enable the persistent connection feature. This parameter applies only to HTTP/HTTPS listeners.
+ // The default value is 0, indicating disabled, and 1 indicates enabled.
+ //
+ // Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
+ KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
+
+ // Session persistence type. NORMAL: default session persistence type; QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported.
+ // Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners.
+ //
+ // Default value: NORMAL.
+ SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
+
+ // Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
+ MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+
+ // Maximum number of concurrent connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of concurrent connections for the instance specification. -1 indicates that no limit is set on the concurrent connections at the listener level. Classic network instances do not support this parameter.
+ //
+ // Default value: -1, which indicates no limit.
+ MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
+
+ // Maximum number of new connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of new connections for the instance specification. -1 indicates that no limit is set on the new connections at the listener level. Classic network instances do not support this parameter.
+ //
+ // Default value: -1, which indicates no limit.
+ MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
+
+ // Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding 1980, [submit a ticket application](https://console.cloud.tencent.com/workorder/category). the maximum settable value is 3600.
+ IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
+
+ // Specifies whether PP is supported for TCP_SSL and QUIC.
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
+ SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
+
+ // Data compression mode.
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
+}
+
+type ModifyListenerRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the CLB instance listener. You can call the [DescribeListeners](https://intl.cloud.tencent.com/document/product/214/30686?from_cn_redirect=1) API to query the ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // New listener name. The maximum length is 255 characters.
+ ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
+
+ // Session persistence time in seconds. Value range: 30-3,600. The default value is 0, indicating that session persistence is not enabled. This parameter is applicable only to TCP/UDP listeners.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Health check parameter. It is only applicable only to TCP, UDP, TCP_SSL and QUIC listeners.
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Certificate information. This parameter is only applicable to HTTPS/TCP_SSL/QUIC listeners. `Certificate` and `MultiCertInfo` cannot be both specified.
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Listener forwarding method. Valid values: WRR (weighted round-robin), LEAST_CONN (least connections), and IP_HASH (IP address hash).
+ // They indicate weighted round-robin and least connections, respectively. Default value: WRR.
+ // Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners. The balancing method for Layer-7 listeners should be modified in the forwarding rules.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. The default value is 0, indicating disabled, and 1 indicates enabled. Note: The SNI feature can be enabled for listeners that have not enabled SNI, but cannot be disabled for listeners that have enabled SNI.
+ SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
+
+ // Target backend type. `NODE`: A single node; `TARGETGROUP`: A target group.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Whether to enable the persistent connection feature. This parameter applies only to HTTP/HTTPS listeners.
+ // The default value is 0, indicating disabled, and 1 indicates enabled.
+ //
+ // Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
+ KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
+
+ // Session persistence type. NORMAL: default session persistence type; QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported.
+ // Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners.
+ //
+ // Default value: NORMAL.
+ SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
+
+ // Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
+ MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+
+ // Maximum number of concurrent connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of concurrent connections for the instance specification. -1 indicates that no limit is set on the concurrent connections at the listener level. Classic network instances do not support this parameter.
+ //
+ // Default value: -1, which indicates no limit.
+ MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
+
+ // Maximum number of new connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of new connections for the instance specification. -1 indicates that no limit is set on the new connections at the listener level. Classic network instances do not support this parameter.
+ //
+ // Default value: -1, which indicates no limit.
+ MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
+
+ // Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding 1980, [submit a ticket application](https://console.cloud.tencent.com/workorder/category). the maximum settable value is 3600.
+ IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
+
+ // Specifies whether PP is supported for TCP_SSL and QUIC.
+ ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
+
+ // Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
+ SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
+
+ // Data compression mode.
+ DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
+
+ // Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
+
+ // Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
+
+ // Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
+ RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
+
+ // Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
+ RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
+
+ // Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
+ RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
+}
+
+func (r *ModifyListenerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyListenerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "ListenerName")
+ delete(f, "SessionExpireTime")
+ delete(f, "HealthCheck")
+ delete(f, "Certificate")
+ delete(f, "Scheduler")
+ delete(f, "SniSwitch")
+ delete(f, "TargetType")
+ delete(f, "KeepaliveEnable")
+ delete(f, "DeregisterTargetRst")
+ delete(f, "SessionType")
+ delete(f, "MultiCertInfo")
+ delete(f, "MaxConn")
+ delete(f, "MaxCps")
+ delete(f, "IdleConnectTimeout")
+ delete(f, "ProxyProtocol")
+ delete(f, "SnatEnable")
+ delete(f, "DataCompressMode")
+ delete(f, "RescheduleTargetZeroWeight")
+ delete(f, "RescheduleUnhealthy")
+ delete(f, "RescheduleExpandTarget")
+ delete(f, "RescheduleStartTime")
+ delete(f, "RescheduleInterval")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyListenerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyListenerResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyListenerResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyListenerResponseParams `json:"Response"`
+}
+
+func (r *ModifyListenerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyListenerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyLoadBalancerAttributesRequestParams struct {
+ // Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Load balancing instance name. rule: 1-60 english letters, chinese characters, digits, hyphens "-", or underscores "_".
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // The backend service information of cross-region binding 1.0
+ TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitnil,omitempty" name:"TargetRegionInfo"`
+
+ // Network billing parameter
+ InternetChargeInfo *InternetAccessible `json:"InternetChargeInfo,omitnil,omitempty" name:"InternetChargeInfo"`
+
+ // Specifies whether to allow CLB traffic to the Target.
+ // Enable pass-through (true): verify security groups on CLB only.
+ // Denies CLB traffic to the target (false): verify security groups on both CLB and backend instances.
+ // Specifies no modification if left blank.
+ LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
+
+ // Specifies whether the cross-region binding 2.0 feature is enabled. leave blank for no modification.
+ SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
+
+ // Specifies whether to enable deletion protection. leave it blank to keep the current setting.
+ DeleteProtect *bool `json:"DeleteProtect,omitnil,omitempty" name:"DeleteProtect"`
+
+ // Modifies the second-level domain name of cloud load balancer from mycloud.com to tencentclb.com. the subdomain will be transformed, and the mycloud.com domain name will become invalid after modification. leave it blank if no modification is required.
+ ModifyClassicDomain *bool `json:"ModifyClassicDomain,omitnil,omitempty" name:"ModifyClassicDomain"`
+
+ // The associated endpoint Id, which can be queried via the [DescribeVpcEndPoint](https://www.tencentcloud.comom/document/product/215/54679?from_cn_redirect=1) api. input an empty string to unbind.
+ AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
+}
+
+type ModifyLoadBalancerAttributesRequest struct {
+ *tchttp.BaseRequest
+
+ // Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Load balancing instance name. rule: 1-60 english letters, chinese characters, digits, hyphens "-", or underscores "_".
+ LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
+
+ // The backend service information of cross-region binding 1.0
+ TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitnil,omitempty" name:"TargetRegionInfo"`
+
+ // Network billing parameter
+ InternetChargeInfo *InternetAccessible `json:"InternetChargeInfo,omitnil,omitempty" name:"InternetChargeInfo"`
+
+ // Specifies whether to allow CLB traffic to the Target.
+ // Enable pass-through (true): verify security groups on CLB only.
+ // Denies CLB traffic to the target (false): verify security groups on both CLB and backend instances.
+ // Specifies no modification if left blank.
+ LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
+
+ // Specifies whether the cross-region binding 2.0 feature is enabled. leave blank for no modification.
+ SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
+
+ // Specifies whether to enable deletion protection. leave it blank to keep the current setting.
+ DeleteProtect *bool `json:"DeleteProtect,omitnil,omitempty" name:"DeleteProtect"`
+
+ // Modifies the second-level domain name of cloud load balancer from mycloud.com to tencentclb.com. the subdomain will be transformed, and the mycloud.com domain name will become invalid after modification. leave it blank if no modification is required.
+ ModifyClassicDomain *bool `json:"ModifyClassicDomain,omitnil,omitempty" name:"ModifyClassicDomain"`
+
+ // The associated endpoint Id, which can be queried via the [DescribeVpcEndPoint](https://www.tencentcloud.comom/document/product/215/54679?from_cn_redirect=1) api. input an empty string to unbind.
+ AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
+}
+
+func (r *ModifyLoadBalancerAttributesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyLoadBalancerAttributesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "LoadBalancerName")
+ delete(f, "TargetRegionInfo")
+ delete(f, "InternetChargeInfo")
+ delete(f, "LoadBalancerPassToTarget")
+ delete(f, "SnatPro")
+ delete(f, "DeleteProtect")
+ delete(f, "ModifyClassicDomain")
+ delete(f, "AssociateEndpoint")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyLoadBalancerAttributesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyLoadBalancerAttributesResponseParams struct {
+ // This parameter can be used to query whether CLB billing mode switch is successful.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyLoadBalancerAttributesResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyLoadBalancerAttributesResponseParams `json:"Response"`
+}
+
+func (r *ModifyLoadBalancerAttributesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyLoadBalancerAttributesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyLoadBalancerSlaRequestParams struct {
+ // CLB instance information.
+ LoadBalancerSla []*SlaUpdateParam `json:"LoadBalancerSla,omitnil,omitempty" name:"LoadBalancerSla"`
+
+ // Whether to force upgrade. The default is no.
+ Force *bool `json:"Force,omitnil,omitempty" name:"Force"`
+}
+
+type ModifyLoadBalancerSlaRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance information.
+ LoadBalancerSla []*SlaUpdateParam `json:"LoadBalancerSla,omitnil,omitempty" name:"LoadBalancerSla"`
+
+ // Whether to force upgrade. The default is no.
+ Force *bool `json:"Force,omitnil,omitempty" name:"Force"`
+}
+
+func (r *ModifyLoadBalancerSlaRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyLoadBalancerSlaRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerSla")
+ delete(f, "Force")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyLoadBalancerSlaRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyLoadBalancerSlaResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyLoadBalancerSlaResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyLoadBalancerSlaResponseParams `json:"Response"`
+}
+
+func (r *ModifyLoadBalancerSlaResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyLoadBalancerSlaResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyLoadBalancersProjectRequestParams struct {
+ // One or more load balancing instance ids to be operated. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ids.
+ // Specifies the maximum length supported by the list is 20.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Project ID. You can obtain it through the [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1) API.
+ ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+}
+
+type ModifyLoadBalancersProjectRequest struct {
+ *tchttp.BaseRequest
+
+ // One or more load balancing instance ids to be operated. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ids.
+ // Specifies the maximum length supported by the list is 20.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+
+ // Project ID. You can obtain it through the [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1) API.
+ ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
+}
+
+func (r *ModifyLoadBalancersProjectRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyLoadBalancersProjectRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerIds")
+ delete(f, "ProjectId")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyLoadBalancersProjectRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyLoadBalancersProjectResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyLoadBalancersProjectResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyLoadBalancersProjectResponseParams `json:"Response"`
+}
+
+func (r *ModifyLoadBalancersProjectResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyLoadBalancersProjectResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyRuleRequestParams struct {
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the clb listener. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Specifies the rule ID of the forwarding rule to be modified, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1).
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // New forwarding path of the forwarding rule. This parameter is not required if the URL does not need to be modified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // Health check information
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Request forwarding method of the rule. Value range: WRR, LEAST_CONN, IP_HASH
+ // They represent weighted round robin, least connections, and IP hash, respectively. Default value: WRR.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Session persistence duration, in seconds. Value range: 0 or 30-86400.
+ // Defaults to 0.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Forwarding protocol between a CLB instance and the real server. Default value: HTTP. Valid values: HTTP, HTTPS, GRPC. This parameter is valid only for HTTPS listeners.
+ ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
+
+ // TRPC callee server route, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
+ TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
+
+ // TRPC calling service API, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
+ TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
+
+ // OAuth configuration information.
+ OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
+
+ // Specifies the custom cookie name.
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
+}
+
+type ModifyRuleRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // ID of the clb listener. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Specifies the rule ID of the forwarding rule to be modified, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1).
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // New forwarding path of the forwarding rule. This parameter is not required if the URL does not need to be modified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // Health check information
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Request forwarding method of the rule. Value range: WRR, LEAST_CONN, IP_HASH
+ // They represent weighted round robin, least connections, and IP hash, respectively. Default value: WRR.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Session persistence duration, in seconds. Value range: 0 or 30-86400.
+ // Defaults to 0.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Forwarding protocol between a CLB instance and the real server. Default value: HTTP. Valid values: HTTP, HTTPS, GRPC. This parameter is valid only for HTTPS listeners.
+ ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
+
+ // TRPC callee server route, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
+ TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
+
+ // TRPC calling service API, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
+ TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
+
+ // OAuth configuration information.
+ OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
+
+ // Specifies the custom cookie name.
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
+}
+
+func (r *ModifyRuleRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyRuleRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "LocationId")
+ delete(f, "Url")
+ delete(f, "HealthCheck")
+ delete(f, "Scheduler")
+ delete(f, "SessionExpireTime")
+ delete(f, "ForwardType")
+ delete(f, "TrpcCallee")
+ delete(f, "TrpcFunc")
+ delete(f, "OAuth")
+ delete(f, "CookieName")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRuleRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyRuleResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyRuleResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyRuleResponseParams `json:"Response"`
+}
+
+func (r *ModifyRuleResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyRuleResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetGroupAttributeRequestParams struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // New name of target group
+ TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
+
+ // The new default port of the target group. this parameter is not supported for full listen target groups.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
+ // WRR: weighted round-robin.LEAST_CONN: LEAST connection.IP_HASH: based on IP HASH.default is WRR..
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // Health check details.
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Default Weight for backend service. among them: - value ranges from 0 to 100.
- after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.
- Weight parameter settings not supported for v1 target group type.
.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. true: disable; false: enable. this feature is off by default.
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Specifies the session persistence time in seconds. value range: 30-3600. default: 0 (disabled). this parameter is unsupported for TCP/UDP target groups.
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+}
+
+type ModifyTargetGroupAttributeRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // New name of target group
+ TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
+
+ // The new default port of the target group. this parameter is not supported for full listen target groups.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
+ // WRR: weighted round-robin.LEAST_CONN: LEAST connection.IP_HASH: based on IP HASH.default is WRR..
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // Health check details.
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Default Weight for backend service. among them: - value ranges from 0 to 100.
- after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.
- Weight parameter settings not supported for v1 target group type.
.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. true: disable; false: enable. this feature is off by default.
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Specifies the session persistence time in seconds. value range: 30-3600. default: 0 (disabled). this parameter is unsupported for TCP/UDP target groups.
+ SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+}
+
+func (r *ModifyTargetGroupAttributeRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetGroupAttributeRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupId")
+ delete(f, "TargetGroupName")
+ delete(f, "Port")
+ delete(f, "ScheduleAlgorithm")
+ delete(f, "HealthCheck")
+ delete(f, "Weight")
+ delete(f, "KeepaliveEnable")
+ delete(f, "SessionExpireTime")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTargetGroupAttributeRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetGroupAttributeResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyTargetGroupAttributeResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyTargetGroupAttributeResponseParams `json:"Response"`
+}
+
+func (r *ModifyTargetGroupAttributeResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetGroupAttributeResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetGroupInstancesPortRequestParams struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Array of servers whose Port is to be modified. NewPort and Port are required items in this api.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+type ModifyTargetGroupInstancesPortRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Array of servers whose Port is to be modified. NewPort and Port are required items in this api.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+func (r *ModifyTargetGroupInstancesPortRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetGroupInstancesPortRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupId")
+ delete(f, "TargetGroupInstances")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTargetGroupInstancesPortRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetGroupInstancesPortResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyTargetGroupInstancesPortResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyTargetGroupInstancesPortResponseParams `json:"Response"`
+}
+
+func (r *ModifyTargetGroupInstancesPortResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetGroupInstancesPortResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetGroupInstancesWeightRequestParams struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Array of servers whose weight is to be modified. Port is a required item in this api.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+type ModifyTargetGroupInstancesWeightRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Array of servers whose weight is to be modified. Port is a required item in this api.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+func (r *ModifyTargetGroupInstancesWeightRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetGroupInstancesWeightRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupId")
+ delete(f, "TargetGroupInstances")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTargetGroupInstancesWeightRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetGroupInstancesWeightResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyTargetGroupInstancesWeightResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyTargetGroupInstancesWeightResponseParams `json:"Response"`
+}
+
+func (r *ModifyTargetGroupInstancesWeightResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetGroupInstancesWeightResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetPortRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers for which to modify the ports
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // New port of the real server bound to a listener or forwarding rule
+ NewPort *int64 `json:"NewPort,omitnil,omitempty" name:"NewPort"`
+
+ // Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+type ModifyTargetPortRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers for which to modify the ports
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // New port of the real server bound to a listener or forwarding rule
+ NewPort *int64 `json:"NewPort,omitnil,omitempty" name:"NewPort"`
+
+ // Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+func (r *ModifyTargetPortRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetPortRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Targets")
+ delete(f, "NewPort")
+ delete(f, "LocationId")
+ delete(f, "Domain")
+ delete(f, "Url")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTargetPortRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetPortResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyTargetPortResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyTargetPortResponseParams `json:"Response"`
+}
+
+func (r *ModifyTargetPortResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetPortResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetWeightRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers for which to modify the weights
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // New forwarding weight of a real server. Value range: 0-100. Default value: 10. If the Targets.Weight parameter is set, this parameter will not take effect.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+type ModifyTargetWeightRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers for which to modify the weights
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // New forwarding weight of a real server. Value range: 0-100. Default value: 10. If the Targets.Weight parameter is set, this parameter will not take effect.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+func (r *ModifyTargetWeightRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetWeightRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Targets")
+ delete(f, "LocationId")
+ delete(f, "Domain")
+ delete(f, "Url")
+ delete(f, "Weight")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTargetWeightRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyTargetWeightResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyTargetWeightResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyTargetWeightResponseParams `json:"Response"`
+}
+
+func (r *ModifyTargetWeightResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyTargetWeightResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type MultiCertInfo struct {
+ // Authentication type. Values: `UNIDIRECTIONAL` (one-way authentication), `MUTUAL` (two-way authentication)
+ SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
+
+ // List of listener or rule certificates. One-way and two-way authentication are supported. Only one certificate can be specified for one algorithm. If `SSLMode` is `MUTUAL` (two-way authentication), at least one CA certificate is required.
+ CertList []*CertInfo `json:"CertList,omitnil,omitempty" name:"CertList"`
+
+ // Whether to enable client authentication for mutual authentication. ON: enable it; OPTIONAL: client certificate not required. Default value: ON.
+ SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
+}
+
+type OAuth struct {
+ // Specifies whether to turn on or off authentication.
+ // True: enable.
+ // False: disabled.
+ // Disabled by default.
+ OAuthEnable *bool `json:"OAuthEnable,omitnil,omitempty" name:"OAuthEnable"`
+
+ // Deny requests or allow when all iaps fail.
+ // BYPASS: specifies the bypass.
+ // REJECT.
+ // Defaults to BYPASS.
+ OAuthFailureStatus *string `json:"OAuthFailureStatus,omitnil,omitempty" name:"OAuthFailureStatus"`
+}
+
+type Price struct {
+ // Describes the instance pricing.
+ InstancePrice *ItemPrice `json:"InstancePrice,omitnil,omitempty" name:"InstancePrice"`
+
+ // Network price.
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ BandwidthPrice *ItemPrice `json:"BandwidthPrice,omitnil,omitempty" name:"BandwidthPrice"`
+
+ // LCU price.
+ // Note: This field may return·null, indicating that no valid values can be obtained.
+ LcuPrice *ItemPrice `json:"LcuPrice,omitnil,omitempty" name:"LcuPrice"`
+}
+
+type Quota struct {
+ // Quota name. value range:.
+ // TOTAL_OPEN_CLB_QUOTA: specifies the public network clb quota in the current region for the user..
+ // TOTAL_INTERNAL_CLB_QUOTA: specifies the private network clb quota in the current region for the user..
+ // TOTAL_LISTENER_QUOTA: specifies the LISTENER QUOTA under a CLB..
+ // TOTAL_LISTENER_RULE_QUOTA: specifies the forwarding rule quota under a listener..
+ // TOTAL_TARGET_BIND_QUOTA: specifies the quota of devices that can be bound to a forwarding rule..
+ // TOTAL_SNAT_IP_QUOTA: specifies the SNAT IP QUOTA for a cross-regional 2.0 CLB instance. .
+ // TOTAL_ISP_CLB_QUOTA: specifies the quota of triple-isp (cmcc/cucc/ctcc) clb instances in the current region for the user..
+ // TOTAL_FULL_PORT_RANGE_LISTENER_QUOTA: specifies the QUOTA of single-protocol FULL PORT RANGE listeners for a CLB instance..
+ QuotaId *string `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
+
+ // Currently used quantity. If it is `null`, it is meaningless.
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ QuotaCurrent *int64 `json:"QuotaCurrent,omitnil,omitempty" name:"QuotaCurrent"`
+
+ // Quota limit.
+ QuotaLimit *int64 `json:"QuotaLimit,omitnil,omitempty" name:"QuotaLimit"`
+}
+
+// Predefined struct for user
+type RegisterFunctionTargetsRequestParams struct {
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // SCF functions to be bound.
+ FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
+
+ // ID of the target forwarding rule. To bind an SCF function to a L7 forwarding rule, this parameter or `Domain+Url` is required.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // URL of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+type RegisterFunctionTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // SCF functions to be bound.
+ FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
+
+ // ID of the target forwarding rule. To bind an SCF function to a L7 forwarding rule, this parameter or `Domain+Url` is required.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // URL of the target forwarding rule. It is ignored if `LocationId` is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+func (r *RegisterFunctionTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterFunctionTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "FunctionTargets")
+ delete(f, "LocationId")
+ delete(f, "Domain")
+ delete(f, "Url")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RegisterFunctionTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RegisterFunctionTargetsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type RegisterFunctionTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *RegisterFunctionTargetsResponseParams `json:"Response"`
+}
+
+func (r *RegisterFunctionTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterFunctionTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RegisterTargetGroupInstancesRequestParams struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Server instance array. the VPC of the server and target group must be the same.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+type RegisterTargetGroupInstancesRequest struct {
+ *tchttp.BaseRequest
+
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Server instance array. the VPC of the server and target group must be the same.
+ TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
+}
+
+func (r *RegisterTargetGroupInstancesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterTargetGroupInstancesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "TargetGroupId")
+ delete(f, "TargetGroupInstances")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RegisterTargetGroupInstancesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RegisterTargetGroupInstancesResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type RegisterTargetGroupInstancesResponse struct {
+ *tchttp.BaseResponse
+ Response *RegisterTargetGroupInstancesResponseParams `json:"Response"`
+}
+
+func (r *RegisterTargetGroupInstancesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterTargetGroupInstancesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RegisterTargetsRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers to be bound. Array length limit: 20.
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Specifies the forwarding rule ID, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1). you must provide this parameter or either Domain or Url when binding a backend service to a layer-7 forwarding rule.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target forwarding rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target forwarding rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+type RegisterTargetsRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // CLB listener ID
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers to be bound. Array length limit: 20.
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Specifies the forwarding rule ID, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1). you must provide this parameter or either Domain or Url when binding a backend service to a layer-7 forwarding rule.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target forwarding rule domain name. This parameter does not take effect if LocationId is specified.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target forwarding rule URL. This parameter does not take effect if LocationId is specified.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+func (r *RegisterTargetsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterTargetsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerId")
+ delete(f, "Targets")
+ delete(f, "LocationId")
+ delete(f, "Domain")
+ delete(f, "Url")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RegisterTargetsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RegisterTargetsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type RegisterTargetsResponse struct {
+ *tchttp.BaseResponse
+ Response *RegisterTargetsResponseParams `json:"Response"`
+}
+
+func (r *RegisterTargetsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterTargetsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RegisterTargetsWithClassicalLBRequestParams struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Real server information
+ Targets []*ClassicalTargetInfo `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+type RegisterTargetsWithClassicalLBRequest struct {
+ *tchttp.BaseRequest
+
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Real server information
+ Targets []*ClassicalTargetInfo `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+func (r *RegisterTargetsWithClassicalLBRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterTargetsWithClassicalLBRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "Targets")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RegisterTargetsWithClassicalLBRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RegisterTargetsWithClassicalLBResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type RegisterTargetsWithClassicalLBResponse struct {
+ *tchttp.BaseResponse
+ Response *RegisterTargetsWithClassicalLBResponseParams `json:"Response"`
+}
+
+func (r *RegisterTargetsWithClassicalLBResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RegisterTargetsWithClassicalLBResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ReplaceCertForLoadBalancersRequestParams struct {
+ // ID of the certificate to be replaced, which can be a server certificate or a client certificate.
+ OldCertificateId *string `json:"OldCertificateId,omitnil,omitempty" name:"OldCertificateId"`
+
+ // Information such as the content of the new certificate
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+}
+
+type ReplaceCertForLoadBalancersRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the certificate to be replaced, which can be a server certificate or a client certificate.
+ OldCertificateId *string `json:"OldCertificateId,omitnil,omitempty" name:"OldCertificateId"`
+
+ // Information such as the content of the new certificate
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+}
+
+func (r *ReplaceCertForLoadBalancersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ReplaceCertForLoadBalancersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "OldCertificateId")
+ delete(f, "Certificate")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ReplaceCertForLoadBalancersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ReplaceCertForLoadBalancersResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ReplaceCertForLoadBalancersResponse struct {
+ *tchttp.BaseResponse
+ Response *ReplaceCertForLoadBalancersResponseParams `json:"Response"`
+}
+
+func (r *ReplaceCertForLoadBalancersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ReplaceCertForLoadBalancersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type Resource struct {
+ // Specific ISP resource information, Vaules: `CMCC`, `CUCC`, `CTCC`, `BGP`, and `INTERNAL`.
+ Type []*string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // ISP information, such as `CMCC`, `CUCC`, `CTCC`, `BGP`, and `INTERNAL`.
+ Isp *string `json:"Isp,omitnil,omitempty" name:"Isp"`
+
+ // Available resources.
+ AvailabilitySet []*ResourceAvailability `json:"AvailabilitySet,omitnil,omitempty" name:"AvailabilitySet"`
+
+ // Operator type info.
+ TypeSet []*TypeInfo `json:"TypeSet,omitnil,omitempty" name:"TypeSet"`
+}
+
+type ResourceAvailability struct {
+ // Specific ISP resource information. Values: `CMCC`, `CUCC`, `CTCC`, `BGP`.
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Whether the resource is available. Values: `Available`, `Unavailable`
+ Availability *string `json:"Availability,omitnil,omitempty" name:"Availability"`
+}
+
+type RewriteLocationMap struct {
+ // Source forwarding rule ID
+ SourceLocationId *string `json:"SourceLocationId,omitnil,omitempty" name:"SourceLocationId"`
+
+ // ID of the forwarding rule of the destination
+ TargetLocationId *string `json:"TargetLocationId,omitnil,omitempty" name:"TargetLocationId"`
+
+ // Redirection status code. Valid values: 301, 302, and 307.
+ RewriteCode *int64 `json:"RewriteCode,omitnil,omitempty" name:"RewriteCode"`
+
+ // Whether the matched URL is carried in redirection. It is required when configuring `RewriteCode`.
+ TakeUrl *bool `json:"TakeUrl,omitnil,omitempty" name:"TakeUrl"`
+
+ // Original domain name of redirection, which must be the corresponding domain name of `SourceLocationId`. It is required when configuring `RewriteCode`.
+ SourceDomain *string `json:"SourceDomain,omitnil,omitempty" name:"SourceDomain"`
+}
+
+type RewriteTarget struct {
+ // Listener ID of the redirection target. this field is valid only when redirection is configured.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
+
+ // Specifies the forwarding rule ID of redirection target. field is valid only when redirection is configured.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ TargetLocationId *string `json:"TargetLocationId,omitnil,omitempty" name:"TargetLocationId"`
+
+ // Specifies the redirection status code.
+ RewriteCode *int64 `json:"RewriteCode,omitnil,omitempty" name:"RewriteCode"`
+
+ // Whether the matched URL is carried in redirection
+ TakeUrl *bool `json:"TakeUrl,omitnil,omitempty" name:"TakeUrl"`
+
+ // Redirection type. Manual: Manual redirection; Auto: Automatic redirection
+ RewriteType *string `json:"RewriteType,omitnil,omitempty" name:"RewriteType"`
+}
+
+type RsTagRule struct {
+ // CLB listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers with tags to be modified.
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Forwarding rule ID, which is required only for Layer-7 rules but not for Layer-4 rules.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Modified Tag of the backend service. this parameter has a lower priority than the Tag parameter in the aforementioned [Target](https://www.tencentcloud.comom/document/api/214/30694?from_cn_redirect=1#Target). the final Tag value is based on the Tag parameter in the Target. the Tag parameter in RsTagRule will be used only when the Tag parameter in the Target is empty.
+ Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
+}
+
+type RsWeightRule struct {
+ // CLB listener ID.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // List of real servers whose weights to modify.
+ Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Forwarding rule ID, which is required only for layer-7 rules.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Target rule domain name. This parameter does not take effect if LocationId is specified
+ //
+ // Deprecated: Domain is deprecated.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Target rule URL. This parameter does not take effect if LocationId is specified
+ //
+ // Deprecated: Url is deprecated.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // The new forwarding weight of the real server. Value range: [0, 100]. This parameter takes lower precedence than `Weight` in [`Targets`](https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#Target), which means that this parameter only takes effect when the `Weight` in `RsWeightRule` is left empty.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+type RuleHealth struct {
+ // Forwarding rule ID
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the forwarding rule
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Forwarding rule Url
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // Advanced routing rule ID.
+ RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
+
+ // Indicates the health check status of the backend service bound to this rule.
+ Targets []*TargetHealth `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+type RuleInput struct {
+ // Forwarding rule path. Length: 1-200.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // The domain name associated with the forwarding rule. It can contain 1-80 characters. Only one domain name can be entered. If you need to enter multiple domain names, use `Domains`.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Session persistence duration, in seconds. 0 indicates that session persistence is disabled, and a value ranging from 30 to 86400 indicates that session persistence is enabled.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Health check information. For more information, please see [Health Check](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1)
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Certificate information. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
+ Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Request forwarding method of the rule. Value range: WRR, LEAST_CONN, IP_HASH
+ // They represent weighted round robin, least connections, and IP hash, respectively. Default value: WRR.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // Specifies the forwarding protocol between cloud load balancer and backend service. currently supports HTTP/HTTPS/GRPC/GRPCS/TRPC. TRPC is not yet available. default HTTP.
+ ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
+
+ // Whether to set this domain name as the default domain name. Note: Only one default domain name can be set under one listener.
+ DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
+
+ // Whether to enable HTTP/2. Note: HTTP/2 can be enabled only for HTTPS domain names.
+ Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
+
+ // Target real server type. NODE: binding a general node; TARGETGROUP: binding a target group.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // TRPC callee server route, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
+ TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
+
+ // TRPC calling service API, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
+ TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
+
+ // Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names
+ Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
+
+ // The domain name associated with the forwarding rule. Each contain 1-80 characters. If you only need to enter one domain name, use `Domain` instead.
+ Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
+
+ // Certificate information. You can specify multiple server-side certificates with different algorithm types. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
+ MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
+
+ // Specifies the custom cookie name.
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
+}
+
+type RuleOutput struct {
+ // Forwarding rule ID
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the forwarding rule
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Path of forwarding rules.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // Session persistence time
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // Health Check Information
+ HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Certificate information
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Certificate *CertificateOutput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
+
+ // Request forwarding method in the rules.WRR, LEAST_CONN, and IP_HASH respectively indicate weighted round robin, least connections, and IP hash.
+ Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
+
+ // ID of the listener to which the forwarding rule belongs
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Redirection target information of the forwarding rule
+ RewriteTarget *RewriteTarget `json:"RewriteTarget,omitnil,omitempty" name:"RewriteTarget"`
+
+ // Whether to enable gzip
+ HttpGzip *bool `json:"HttpGzip,omitnil,omitempty" name:"HttpGzip"`
+
+ // Whether the forwarding rule is automatically created
+ BeAutoCreated *bool `json:"BeAutoCreated,omitnil,omitempty" name:"BeAutoCreated"`
+
+ // Whether to use as the default domain name
+ DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
+
+ // Whether to enable Http2
+ Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
+
+ // Forwarding protocol between CLB and real server
+ ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
+
+ // Forwarding rule creation time
+ CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
+
+ // Real server type. NODE indicates binding to a general node, and TARGETGROUP indicates binding to a target group.
+ TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
+
+ // Basic information of a bound target group. This field will be returned if a target group is bound to a rule.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ TargetGroup *BasicTargetGroupInfo `json:"TargetGroup,omitnil,omitempty" name:"TargetGroup"`
+
+ // WAF instance ID.
+ WafDomainId *string `json:"WafDomainId,omitnil,omitempty" name:"WafDomainId"`
+
+ // Called server routing. valid when ForwardType is TRPC. currently not yet available.
+ TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
+
+ // TRPC calling service api. valid when ForwardType is TRPC. currently not yet available.
+ TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
+
+ // QUIC status. QUIC_ACTIVE means enabled, QUIC_INACTIVE means not enabled. note that only HTTPS domain names can enable QUIC.
+ QuicStatus *string `json:"QuicStatus,omitnil,omitempty" name:"QuicStatus"`
+
+ // Specifies the domain name list of the forwarding rule.
+ Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
+
+ // List of bound target groups
+ // Note: This field may return `null`, indicating that no valid values can be obtained.
+ TargetGroupList []*BasicTargetGroupInfo `json:"TargetGroupList,omitnil,omitempty" name:"TargetGroupList"`
+
+ // OAuth configuration status.
+ OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
+
+ // Specifies the custom cookie name.
+ CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
+}
+
+type RuleTargets struct {
+ // Forwarding rule ID
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name of the forwarding rule
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Forwarding rule path.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // Real server information
+ Targets []*Backend `json:"Targets,omitnil,omitempty" name:"Targets"`
+
+ // Describes the backend cloud function info.
+ FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
+}
+
+type RulesItems struct {
+ // Rule ID.
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Domain name.
+ Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
+
+ // Uri
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+
+ // Object bound to the real server.
+ Targets []*LbRsTargets `json:"Targets,omitnil,omitempty" name:"Targets"`
+}
+
+// Predefined struct for user
+type SetCustomizedConfigForLoadBalancerRequestParams struct {
+ // Operation type.
+ // -ADD. specifies the creation.
+ // - DELETE: DELETE.
+ // -UPDATE: modify.
+ // -BIND: specifies the binding status.
+ // -UNBIND: unbind.
+ OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
+
+ // Personalized configuration ID. this field is required except when creating a custom configuration, for example: pz-1234abcd.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Specifies the personalized configuration content. this field is required when creating or modifying custom configuration.
+ // Specifies specific restrictions. view layer-7 personalized configuration (https://www.tencentcloud.comom/document/product/214/15171?from_cn_redirect=1).
+ ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
+
+ // Custom configuration name. specifies the name when creating or modifying a custom configuration. this field is required.
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // CLB instance ID. this field is required for bind/unbind operations.
+ // Can be queried through the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) api.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+type SetCustomizedConfigForLoadBalancerRequest struct {
+ *tchttp.BaseRequest
+
+ // Operation type.
+ // -ADD. specifies the creation.
+ // - DELETE: DELETE.
+ // -UPDATE: modify.
+ // -BIND: specifies the binding status.
+ // -UNBIND: unbind.
+ OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
+
+ // Personalized configuration ID. this field is required except when creating a custom configuration, for example: pz-1234abcd.
+ UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
+
+ // Specifies the personalized configuration content. this field is required when creating or modifying custom configuration.
+ // Specifies specific restrictions. view layer-7 personalized configuration (https://www.tencentcloud.comom/document/product/214/15171?from_cn_redirect=1).
+ ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
+
+ // Custom configuration name. specifies the name when creating or modifying a custom configuration. this field is required.
+ ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
+
+ // CLB instance ID. this field is required for bind/unbind operations.
+ // Can be queried through the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) api.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+func (r *SetCustomizedConfigForLoadBalancerRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetCustomizedConfigForLoadBalancerRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "OperationType")
+ delete(f, "UconfigId")
+ delete(f, "ConfigContent")
+ delete(f, "ConfigName")
+ delete(f, "LoadBalancerIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetCustomizedConfigForLoadBalancerRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetCustomizedConfigForLoadBalancerResponseParams struct {
+ // Configuration ID, such as "pz-1234abcd"
+ ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type SetCustomizedConfigForLoadBalancerResponse struct {
+ *tchttp.BaseResponse
+ Response *SetCustomizedConfigForLoadBalancerResponseParams `json:"Response"`
+}
+
+func (r *SetCustomizedConfigForLoadBalancerResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetCustomizedConfigForLoadBalancerResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetLoadBalancerClsLogRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Log set ID of cloud log service (CLS).
+ // Specifies the logset ID that can be obtained by calling the [DescribeLogsets](https://www.tencentcloud.comom/document/product/614/58624?from_cn_redirect=1) API when adding or updating a log topic..
+ // When deleting a log topic, set this parameter to an empty string..
+ LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
+
+ // Specifies the log topic ID of cloud log service (CLS).
+ // Specifies the log topic ID can be obtained by calling the [DescribeTopics](https://www.tencentcloud.comom/document/product/614/56454?from_cn_redirect=1) API when adding or updating a log topic..
+ // When deleting a log topic, set this parameter to an empty string..
+ LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
+
+ // Log type:
+ // `ACCESS`: access logs
+ // `HEALTH`: health check logs
+ // Default: `ACCESS`
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+}
+
+type SetLoadBalancerClsLogRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Log set ID of cloud log service (CLS).
+ // Specifies the logset ID that can be obtained by calling the [DescribeLogsets](https://www.tencentcloud.comom/document/product/614/58624?from_cn_redirect=1) API when adding or updating a log topic..
+ // When deleting a log topic, set this parameter to an empty string..
+ LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
+
+ // Specifies the log topic ID of cloud log service (CLS).
+ // Specifies the log topic ID can be obtained by calling the [DescribeTopics](https://www.tencentcloud.comom/document/product/614/56454?from_cn_redirect=1) API when adding or updating a log topic..
+ // When deleting a log topic, set this parameter to an empty string..
+ LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
+
+ // Log type:
+ // `ACCESS`: access logs
+ // `HEALTH`: health check logs
+ // Default: `ACCESS`
+ LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
+}
+
+func (r *SetLoadBalancerClsLogRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetLoadBalancerClsLogRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "LogSetId")
+ delete(f, "LogTopicId")
+ delete(f, "LogType")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetLoadBalancerClsLogRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetLoadBalancerClsLogResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type SetLoadBalancerClsLogResponse struct {
+ *tchttp.BaseResponse
+ Response *SetLoadBalancerClsLogResponseParams `json:"Response"`
+}
+
+func (r *SetLoadBalancerClsLogResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetLoadBalancerClsLogResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetLoadBalancerSecurityGroupsRequestParams struct {
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies an array of security group ids. a load balancing instance supports a maximum binding of 50 security groups. to unbind all security groups, omit this parameter.
+ // Can be queried through the [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1) api.
+ SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
+}
+
+type SetLoadBalancerSecurityGroupsRequest struct {
+ *tchttp.BaseRequest
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specifies an array of security group ids. a load balancing instance supports a maximum binding of 50 security groups. to unbind all security groups, omit this parameter.
+ // Can be queried through the [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1) api.
+ SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
+}
+
+func (r *SetLoadBalancerSecurityGroupsRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetLoadBalancerSecurityGroupsRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "LoadBalancerId")
+ delete(f, "SecurityGroups")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetLoadBalancerSecurityGroupsRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetLoadBalancerSecurityGroupsResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type SetLoadBalancerSecurityGroupsResponse struct {
+ *tchttp.BaseResponse
+ Response *SetLoadBalancerSecurityGroupsResponseParams `json:"Response"`
+}
+
+func (r *SetLoadBalancerSecurityGroupsResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetLoadBalancerSecurityGroupsResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetLoadBalancerStartStatusRequestParams struct {
+ // Operation type. Start: Start the instance; Stop: Stop the instance.
+ OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Listener ID. If this field is empty, it indicates operating the CLB instance; if not empty, it indicates operating the listener.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+}
+
+type SetLoadBalancerStartStatusRequest struct {
+ *tchttp.BaseRequest
+
+ // Operation type. Start: Start the instance; Stop: Stop the instance.
+ OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
+
+ // ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Listener ID. If this field is empty, it indicates operating the CLB instance; if not empty, it indicates operating the listener.
+ ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
+}
+
+func (r *SetLoadBalancerStartStatusRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetLoadBalancerStartStatusRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "OperationType")
+ delete(f, "LoadBalancerId")
+ delete(f, "ListenerIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetLoadBalancerStartStatusRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetLoadBalancerStartStatusResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type SetLoadBalancerStartStatusResponse struct {
+ *tchttp.BaseResponse
+ Response *SetLoadBalancerStartStatusResponseParams `json:"Response"`
+}
+
+func (r *SetLoadBalancerStartStatusResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetLoadBalancerStartStatusResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetSecurityGroupForLoadbalancersRequestParams struct {
+ // Security group ID, such as sg-12345678. can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
+ SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
+
+ // ADD: bind a security group;
+ // DEL: unbind a security group
+ OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
+
+ // ID array of the clb instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ // Specifies the maximum length supported by the list is 20.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+type SetSecurityGroupForLoadbalancersRequest struct {
+ *tchttp.BaseRequest
+
+ // Security group ID, such as sg-12345678. can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
+ SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
+
+ // ADD: bind a security group;
+ // DEL: unbind a security group
+ OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
+
+ // ID array of the clb instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
+ // Specifies the maximum length supported by the list is 20.
+ LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
+}
+
+func (r *SetSecurityGroupForLoadbalancersRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetSecurityGroupForLoadbalancersRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "SecurityGroup")
+ delete(f, "OperationType")
+ delete(f, "LoadBalancerIds")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetSecurityGroupForLoadbalancersRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type SetSecurityGroupForLoadbalancersResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type SetSecurityGroupForLoadbalancersResponse struct {
+ *tchttp.BaseResponse
+ Response *SetSecurityGroupForLoadbalancersResponseParams `json:"Response"`
+}
+
+func (r *SetSecurityGroupForLoadbalancersResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *SetSecurityGroupForLoadbalancersResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+type SlaUpdateParam struct {
+ // CLB instance ID.
+ // Can be queried through the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) api.
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Specification of the LCU-supported instance. Valid values: clb.c2.medium: Standard clb.c3.small: Advanced 1 clb.c3.medium: Advanced 2 clb.c4.small: Super Large 1 clb.c4.medium: Super Large 2 clb.c4.large: Super Large 3 clb.c4.xlarge: Super Large 4 For specification details, see [Instance Specifications Comparison](https://intl.cloud.tencent.com/document/product/214/84689?from_cn_redirect=1).
+ SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
+}
+
+type SnatIp struct {
+ // Unique VPC subnet ID, such as `subnet-12345678`.
+ SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
+
+ // IP address, such as 192.168.0.1
+ Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`
+}
+
+type SpecAvailability struct {
+ // Specifies the specification type.
+ // Clb.C2.Medium (standard type)clb.c3.small (advanced type 1)clb.c3.medium (advanced type 2).
+ // clb.c4.small (high-strength type 1) clb.c4.medium (high-strength type 2) clb.c4.large (high-strength type 3) clb.c4.xlarge (high-strength type 4) shared (shared type).
+ SpecType *string `json:"SpecType,omitnil,omitempty" name:"SpecType"`
+
+ // Specification availability. resource availability, "Available": Available, "Unavailable": Unavailable.
+ Availability *string `json:"Availability,omitnil,omitempty" name:"Availability"`
+}
+
+type TagInfo struct {
+ // Tag key
+ TagKey *string `json:"TagKey,omitnil,omitempty" name:"TagKey"`
+
+ // Tag value
+ TagValue *string `json:"TagValue,omitnil,omitempty" name:"TagValue"`
+}
+
+type Target struct {
+ // Specifies the listening port of the backend service.
+ // Note: this parameter must be specified when binding to CVM (cloud virtual machine) or ENI (elastic network interface).
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Specifies the backend service type. valid values: CVM (cloud virtual machine), ENI (elastic network interface). as an input parameter, this parameter does not take effect currently.
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // This parameter must be passed in when binding to CVM. it represents the unique ID of the CVM and can be obtained from the InstanceId field in the response of the DescribeInstances api. indicates binding the primary IPv4 address of the primary network interface. the InstanceId cannot be specified in the following scenarios: binding to non-CVM resources, binding to auxiliary network interface ips on CVM, binding to CVM through cross-domain 2.0, and binding to IPv6 addresses of CVM.
+ // Note: you can only input one of the InstanceId parameter or the EniIp parameter.
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // The new forwarding weight of the real server. Value range: [0, 100]. Default: 10. This parameter takes priority over `Weight` in [`RsWeightRule`](https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#RsWeightRule). If it’s left empty, the value of `Weight` in `RsWeightRule` will be used.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // This parameter must be passed in for IP binding. it supports eni ips and other private IP addresses. if it is an eni, it must first be bound to a CVM before binding to a cloud load balancer instance.
+ // Note: only one of the InstanceId parameter and EniIp parameter can be passed. if binding a dual-stack IPV6 instance, this parameter must be passed. if it is a cross-region binding, the parameter must be passed and the InstanceId parameter is not supported.
+ EniIp *string `json:"EniIp,omitnil,omitempty" name:"EniIp"`
+
+ // Tag.
+ Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
+}
+
+type TargetGroupAssociation struct {
+ // CLB instance ID
+ LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
+
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Listener ID. This parameter is required when the AssociateTargetGroups and DisassociateTargetGroups APIs are called.
+ ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
+
+ // Forwarding rule ID
+ LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
+
+ // Weight of the target group. Value range: [0, 100]. It takes effect only for binding v2 target groups. If not specified, it defaults to 10.
+ Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+type TargetGroupBackend struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Real server type. Valid values: CVM, ENI (coming soon)
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Unique real server ID
+ InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
+
+ // Specifies the listening port of the backend service. for a port range listener, this field returns 0, representing an invalid port, indicating settings not supported.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Forwarding weight of real server. Value range: [0, 100]. Default value: 10.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Public network IP of the real server
+ PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
+
+ // Private network IP of the real server
+ PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
+
+ // Instance name of the real server
+ InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
+
+ // Real server binding time
+ // Note: this field may return null, indicating that no valid values can be obtained.
+ RegisteredTime *string `json:"RegisteredTime,omitnil,omitempty" name:"RegisteredTime"`
+
+ // Unique ID of the ENI
+ EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
+
+ // Specifies the availability zone ID of the backend service.
+ ZoneId *uint64 `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+}
+
+type TargetGroupHealthCheck struct {
+ // Whether to enable the health check.
+ HealthSwitch *bool `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
+
+ // Health check method. among them, only the new version V2 target group type supports this parameter. valid values: TCP | HTTP | HTTPS | PING | CUSTOM. among them:.
+ // When the backend forwarding protocol of the target group is TCP, the health check method supports TCP/HTTP/CUSTOM, with a default value of TCP.when the backend forwarding protocol of the target group is UDP, the health check method supports PING/CUSTOM, with a default value of PING.when the backend forwarding protocol of the target group is HTTP, the health check method supports HTTP/TCP, with a default value of HTTP.when the backend forwarding protocol of the target group is HTTPS, the health check method supports HTTPS/TCP, with a default value of HTTPS.when the backend forwarding protocol of the target group is GRPC, the health check method supports GRPC/TCP, with a default value of GRPC..
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Custom check parameters. health check port, defaults to the port of the backend service unless you want to specify a specific port, otherwise leave it blank. (applicable only to TCP/UDP target group).
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
+ Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"`
+
+ // Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
+ GapTime *int64 `json:"GapTime,omitnil,omitempty" name:"GapTime"`
+
+ // Health detection threshold. The default is 3 times. Value range: 2-10 times.
+ GoodLimit *int64 `json:"GoodLimit,omitnil,omitempty" name:"GoodLimit"`
+
+ // Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
+ BadLimit *int64 `json:"BadLimit,omitnil,omitempty" name:"BadLimit"`
+
+ // Indicates whether jumbo frames are enabled for probe packets of all rss in the target group. enabled by default. this parameter is supported only for GWLB type target groups.
+ JumboFrame *bool `json:"JumboFrame,omitnil,omitempty" name:"JumboFrame"`
+
+ // Health check status code (applicable only to HTTP/HTTPS target group and HTTP health check method of TCP target group). value range: 1~31. default: 31. among them: 1 means post-detection return value 1xx represents health. 2 means return 2xx represents health. 4 means return 3xx represents health. 8 means return 4xx represents health. 16 means return 5xx represents health. to have multiple return codes represent health, sum up corresponding values.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCode *int64 `json:"HttpCode,omitnil,omitempty" name:"HttpCode"`
+
+ // Health check domain name. among them: applicable only to HTTP/HTTPS target groups and TCP target groups when using HTTP health check method.targeting HTTP/HTTPS target groups, this parameter is required when using HTTP health check method..
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCheckDomain *string `json:"HttpCheckDomain,omitnil,omitempty" name:"HttpCheckDomain"`
+
+ // Health check path (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners).
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
+
+ // Health check method (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners). Default: HEAD. Valid values: HEAD and GET.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpCheckMethod *string `json:"HttpCheckMethod,omitnil,omitempty" name:"HttpCheckMethod"`
+
+ // Input format of health check. required when health check method is CUSTOM. valid values: HEX or TEXT. among them:TEXT: TEXT format.HEX: hexadecimal format. characters of SendContext and RecvContext can only be selected from 0123456789ABCDEF and the length must be an even number.applicable only to TCP/UDP target group..
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ContextType *string `json:"ContextType,omitnil,omitempty" name:"ContextType"`
+
+ // CUSTOM check parameters. required when the CheckType value is CUSTOM, represents the content of the request sent by the health check, only ASCII visible characters, maximum length limit 500. applicable only to TCP/UDP target group.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ SendContext *string `json:"SendContext,omitnil,omitempty" name:"SendContext"`
+
+ // CUSTOM check parameters. required when the CheckType value is CUSTOM. represents the result returned by the health check. only ASCII visible characters are allowed. maximum length limit is 500. (applicable only to TCP/UDP target group).
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ RecvContext *string `json:"RecvContext,omitnil,omitempty" name:"RecvContext"`
+
+ // HTTP version, where: this field is required if the value of CheckType is HTTP.supports configuration options: HTTP/1.0, HTTP/1.1.applicable only to TCP target group..
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HttpVersion *string `json:"HttpVersion,omitnil,omitempty" name:"HttpVersion"`
+
+ // Health check status code when the protocol is GRPC. (this parameter applies only to target groups with the backend forwarding protocol of GRPC.) default value: 12. valid values: a single numerical value, multiple numerical values, or a range. for example, 20, 20,25, or 0-99.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ExtendedCode *string `json:"ExtendedCode,omitnil,omitempty" name:"ExtendedCode"`
+}
+
+type TargetGroupInfo struct {
+ // Target group ID
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // `vpcid` of target group
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Target group name
+ TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
+
+ // Specifies the default port of the target group. for a full listen target group, this field returns 0, indicating an invalid port.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Target group creation time
+ CreatedTime *string `json:"CreatedTime,omitnil,omitempty" name:"CreatedTime"`
+
+ // Target group modification time
+ UpdatedTime *string `json:"UpdatedTime,omitnil,omitempty" name:"UpdatedTime"`
+
+ // Associated rule array. This parameter cannot be obtained when the DescribeTargetGroupList API is called.Note: This field may return null, indicating that no valid values can be obtained.
+ AssociatedRule []*AssociationItem `json:"AssociatedRule,omitnil,omitempty" name:"AssociatedRule"`
+
+ // Backend forwarding protocol of the target group. only returns valid values for the new version (v2) target group.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
+
+ // Scheduling algorithm. returns a valid value only when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
+ //
+ // WRR: weighted round-robin..
+ // LEAST_CONN: specifies the least connection..
+ // IP_HASH: based on ip hash..
+ //
+ //
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
+
+ // Health check details.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
+
+ // Target group type, currently supported v1 (legacy version target group) and v2 (new version target group). defaults to v1 (legacy version target group).
+ TargetGroupType *string `json:"TargetGroupType,omitnil,omitempty" name:"TargetGroupType"`
+
+ // Number of rules associated with the target group.
+ AssociatedRuleCount *int64 `json:"AssociatedRuleCount,omitnil,omitempty" name:"AssociatedRuleCount"`
+
+ // Specifies the number of instances in the target group.
+ RegisteredInstancesCount *int64 `json:"RegisteredInstancesCount,omitnil,omitempty" name:"RegisteredInstancesCount"`
+
+ // Tag.
+ Tag []*TagInfo `json:"Tag,omitnil,omitempty" name:"Tag"`
+
+ // Default weight. only target groups of v2 type return this field. when NULL is returned, it means the default weight is not set.
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // Specifies whether to listen to all target groups.
+ FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
+
+ // Whether to enable persistent connections. valid only when the backend forwarding protocol is HTTP/HTTPS/GRPC and returned by the target group.
+ KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
+
+ // Session persistence time. valid only when the backend forwarding protocol is HTTP/HTTPS/GRPC and the target group returns a valid value.
+ SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
+
+ // IP version.
+ IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
+}
+
+type TargetGroupInstance struct {
+ // Private IP of target group instance
+ BindIP *string `json:"BindIP,omitnil,omitempty" name:"BindIP"`
+
+ // Port of target group instance. this field is not supported for full listen target groups.
+ Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Weight of a target group instance
+ // Specifies that the Weight must be configured for a v2 target group. when calling the CreateTargetGroup API for target group creation, this parameter is used in combination with the Weight parameter in the create api, and one of them is required.
+ // Valid values: 0-100.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+
+ // The new port of the target group instance. this field is not supported for full listen target groups.
+ NewPort *uint64 `json:"NewPort,omitnil,omitempty" name:"NewPort"`
+}
+
+type TargetHealth struct {
+ // Private IP of the target
+ IP *string `json:"IP,omitnil,omitempty" name:"IP"`
+
+ // Port bound to the target
+ Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
+
+ // Current health status. true: healthy; false: unhealthy.
+ HealthStatus *bool `json:"HealthStatus,omitnil,omitempty" name:"HealthStatus"`
+
+ // Instance ID of the target, such as ins-12345678
+ TargetId *string `json:"TargetId,omitnil,omitempty" name:"TargetId"`
+
+ // Describes the detailed information of the current health status. for example: Alive, Dead, Unknown, Close. Alive status is healthy, Dead state is abnormal, Unknown status includes not started, checking, Unknown status, Close means health check disabled or listener status stop.
+ HealthStatusDetail *string `json:"HealthStatusDetail,omitnil,omitempty" name:"HealthStatusDetail"`
+
+ // (**This parameter will be disused soon. Please use `HealthStatusDetail` instead.**) Details of the current health status. Values: `Alive` (healthy), `Dead` (abnormal), `Unknown` (Health check not started/checking/unknown status)
+ //
+ // Deprecated: HealthStatusDetial is deprecated.
+ HealthStatusDetial *string `json:"HealthStatusDetial,omitnil,omitempty" name:"HealthStatusDetial"`
+
+ // Target group unique ID.
+ TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
+
+ // Specifies the weight of the Target.
+ Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
+}
+
+type TargetRegionInfo struct {
+ // Region of the target, such as ap-guangzhou
+ Region *string `json:"Region,omitnil,omitempty" name:"Region"`
+
+ // Network of the target, which is in the format of vpc-abcd1234 for VPC or 0 for basic network
+ VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
+
+ // Target'S network, in the format of 86323 for a private network, or 0 if it is a basic network.
+ NumericalVpcId *int64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
+}
+
+type TypeInfo struct {
+ // Operator type.
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+
+ // Specification availability.
+ SpecAvailabilitySet []*SpecAvailability `json:"SpecAvailabilitySet,omitnil,omitempty" name:"SpecAvailabilitySet"`
+}
+
+type ZoneInfo struct {
+ // Unique ID of the AZ in numeric form, such as 100001
+ ZoneId *uint64 `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
+
+ // Unique ID of the AZ in string format, such as ap-guangzhou-1
+ Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
+
+ // AZ name, such as Guangzhou 1
+ ZoneName *string `json:"ZoneName,omitnil,omitempty" name:"ZoneName"`
+
+ // Specifies the region of the availability zone, for example: ap-guangzhou.
+ ZoneRegion *string `json:"ZoneRegion,omitnil,omitempty" name:"ZoneRegion"`
+
+ // Indicates whether the AZ is a LocalZone az, for example: false.
+ LocalZone *bool `json:"LocalZone,omitnil,omitempty" name:"LocalZone"`
+
+ // Indicates whether the AZ is an EdgeZone az, for example: false.
+ EdgeZone *bool `json:"EdgeZone,omitnil,omitempty" name:"EdgeZone"`
+}
+
+type ZoneResource struct {
+ // Primary AZ, such as "ap-guangzhou-1".
+ MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
+
+ // Resource list.
+ ResourceSet []*Resource `json:"ResourceSet,omitnil,omitempty" name:"ResourceSet"`
+
+ // Secondary AZ, such as "ap-guangzhou-2".
+ // Note: This field may return null, indicating that no valid values can be obtained.
+ SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
+
+ // IP version. Values: `IPv4`, `IPv6`, and `IPv6_Nat`.
+ IPVersion *string `json:"IPVersion,omitnil,omitempty" name:"IPVersion"`
+
+ // Region of the AZ, such as `ap-guangzhou`.
+ ZoneRegion *string `json:"ZoneRegion,omitnil,omitempty" name:"ZoneRegion"`
+
+ // Whether the AZ is a `LocalZone`. Values: `true`, `false`.
+ LocalZone *bool `json:"LocalZone,omitnil,omitempty" name:"LocalZone"`
+
+ // Type of resources in the zone. Values: `SHARED`, `EXCLUSIVE`
+ ZoneResourceType *string `json:"ZoneResourceType,omitnil,omitempty" name:"ZoneResourceType"`
+
+ // Whether the AZ is an edge zone. Values: `true`, `false`.
+ EdgeZone *bool `json:"EdgeZone,omitnil,omitempty" name:"EdgeZone"`
+
+ // Specifies the network outbound.
+ Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/client.go
index 37b287ae19..67a0aa9f89 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/client.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/client.go
@@ -102,7 +102,14 @@ func (c *Client) completeRequest(request tchttp.Request) {
if domain == "" {
domain = request.GetServiceDomain(request.GetService())
}
- request.SetDomain(domain)
+ pathIdx := strings.IndexByte(domain, '/')
+ if pathIdx >= 0 {
+ request.SetDomain(domain[:pathIdx])
+ request.SetPath(domain[pathIdx:])
+ } else {
+ request.SetDomain(domain)
+ request.SetPath("/")
+ }
}
if request.GetHttpMethod() == "" {
@@ -170,8 +177,11 @@ func (c *Client) sendWithoutSignature(request tchttp.Request, response tchttp.Re
if c.region != "" {
headers["X-TC-Region"] = c.region
}
- if c.credential != nil && c.credential.GetToken() != "" {
- headers["X-TC-Token"] = c.credential.GetToken()
+ if c.credential != nil {
+ credToken := c.credential.GetToken()
+ if credToken != "" {
+ headers["X-TC-Token"] = credToken
+ }
}
if request.GetHttpMethod() == "GET" {
headers["Content-Type"] = "application/x-www-form-urlencoded"
@@ -194,16 +204,6 @@ func (c *Client) sendWithoutSignature(request tchttp.Request, response tchttp.Re
}
}
- for k, v := range request.GetHeader() {
- switch k {
- case "X-TC-Action", "X-TC-Version", "X-TC-Timestamp", "X-TC-RequestClient",
- "X-TC-Language", "Content-Type", "X-TC-Region", "X-TC-Token":
- c.logger.Printf("Skip header \"%s\": can not specify built-in header", k)
- default:
- headers[k] = v
- }
- }
-
if !isOctetStream && request.GetContentType() == octetStream {
isOctetStream = true
b, _ := json.Marshal(request)
@@ -266,7 +266,11 @@ func (c *Client) sendWithoutSignature(request tchttp.Request, response tchttp.Re
}
httpRequest = httpRequest.WithContext(request.GetContext())
for k, v := range headers {
- httpRequest.Header[k] = []string{v}
+ if strings.EqualFold(k, "Host") {
+ httpRequest.Host = v
+ } else {
+ httpRequest.Header.Set(k, v)
+ }
}
httpResponse, err := c.sendWithRateLimitRetry(httpRequest, isRetryable(request))
if err != nil {
@@ -297,7 +301,11 @@ func (c *Client) sendWithSignatureV1(request tchttp.Request, response tchttp.Res
}
for k, v := range request.GetHeader() {
- httpRequest.Header.Set(k, v)
+ if strings.EqualFold(k, "Host") {
+ httpRequest.Host = v
+ } else {
+ httpRequest.Header.Set(k, v)
+ }
}
httpResponse, err := c.sendWithRateLimitRetry(httpRequest, isRetryable(request))
@@ -355,18 +363,6 @@ func (c *Client) sendWithSignatureV3(request tchttp.Request, response tchttp.Res
}
}
- // Merge any additional headers from the request, but skip built-in headers
- // to prevent them from being overridden.
- for k, v := range request.GetHeader() {
- switch k {
- case "X-TC-Action", "X-TC-Version", "X-TC-Timestamp", "X-TC-RequestClient",
- "X-TC-Language", "X-TC-Region", "X-TC-Token":
- c.logger.Printf("Skip header \"%s\": can not specify built-in header", k)
- default:
- headers[k] = v
- }
- }
-
// Handle the case where the request content type is explicitly set to octet-stream,
// but it's not already handled as an OctetStream CommonRequest.
if !isOctetStream && request.GetContentType() == octetStream {
@@ -382,6 +378,12 @@ func (c *Client) sendWithSignatureV3(request tchttp.Request, response tchttp.Res
headers["Content-Type"] = octetStream
octetStreamBody = request.GetBody()
}
+
+ // Merge any additional headers from the request
+ for k, v := range request.GetHeader() {
+ headers[k] = v
+ }
+
// --- Begin Signature Version 3 (TC3-HMAC-SHA256) Signing Process ---
// 1. Construct the Canonical Request
@@ -525,7 +527,11 @@ func (c *Client) sendWithSignatureV3(request tchttp.Request, response tchttp.Res
// Set all the headers on the request.
for k, v := range headers {
- httpRequest.Header[k] = []string{v}
+ if strings.EqualFold(k, "Host") {
+ httpRequest.Host = v
+ } else {
+ httpRequest.Header.Set(k, v)
+ }
}
// Send the HTTP request with rate limit retry logic.
@@ -579,6 +585,7 @@ func (c *Client) GetRegion() string {
}
func (c *Client) Init(region string) *Client {
+ const defaultIdleConnTimeout = 30 * time.Second
if DefaultHttpClient == nil {
// try not to modify http.DefaultTransport if possible
@@ -587,7 +594,11 @@ func (c *Client) Init(region string) *Client {
if _, ok := transport.(*http.Transport); ok {
// http.Transport.Clone is only available after go1.12
if cloneMethod, hasClone := reflect.TypeOf(transport).MethodByName("Clone"); hasClone {
- transport = cloneMethod.Func.Call([]reflect.Value{reflect.ValueOf(transport)})[0].Interface().(http.RoundTripper)
+ cloned := cloneMethod.Func.Call([]reflect.Value{reflect.ValueOf(transport)})[0].Interface().(http.RoundTripper)
+ if clonedTransport, ok := cloned.(*http.Transport); ok {
+ clonedTransport.IdleConnTimeout = defaultIdleConnTimeout
+ transport = clonedTransport
+ }
}
}
@@ -721,3 +732,17 @@ func NewClientWithProviders(region string, providers ...Provider) (client *Clien
}
return client.WithProvider(pc)
}
+
+func (c *Client) InitBaseRequest(req **tchttp.BaseRequest, mod, ver, act string) {
+ if *req == nil {
+ *req = &tchttp.BaseRequest{}
+ }
+
+ if (*req).GetParams() == nil {
+ (*req).Init()
+ }
+
+ if (*req).GetAction() == "" {
+ (*req).WithApiInfo(mod, ver, act)
+ }
+}
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/cvm_role_credential.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/cvm_role_credential.go
index f4f4d30b72..ad71a46017 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/cvm_role_credential.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/cvm_role_credential.go
@@ -2,6 +2,7 @@ package common
import (
"log"
+ "sync"
"time"
)
@@ -14,9 +15,13 @@ type CvmRoleCredential struct {
tmpSecretKey string
token string
source *CvmRoleProvider
+ mu sync.Mutex
}
func (c *CvmRoleCredential) GetSecretId() string {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -24,6 +29,9 @@ func (c *CvmRoleCredential) GetSecretId() string {
}
func (c *CvmRoleCredential) GetToken() string {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -31,6 +39,9 @@ func (c *CvmRoleCredential) GetToken() string {
}
func (c *CvmRoleCredential) GetSecretKey() string {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -38,6 +49,9 @@ func (c *CvmRoleCredential) GetSecretKey() string {
}
func (c *CvmRoleCredential) GetCredential() (string, string, string) {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -57,5 +71,12 @@ func (c *CvmRoleCredential) refresh() {
log.Println(err)
return
}
- *c = *newCre.(*CvmRoleCredential)
+
+ newCred := newCre.(*CvmRoleCredential)
+ c.roleName = newCred.roleName
+ c.expiredTime = newCred.expiredTime
+ c.tmpSecretId = newCred.tmpSecretId
+ c.tmpSecretKey = newCred.tmpSecretKey
+ c.token = newCred.token
+ c.source = newCred.source
}
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http/request.go
index 7681372819..902d6dc8ef 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http/request.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http/request.go
@@ -265,7 +265,7 @@ func CompleteCommonParams(request Request, region string, requestClient string)
params["Action"] = request.GetAction()
params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10)
params["Nonce"] = strconv.Itoa(rand.Int())
- params["RequestClient"] = "SDK_GO_3.0.1214"
+ params["RequestClient"] = "SDK_GO_3.0.1315"
if requestClient != "" {
params["RequestClient"] += ": " + requestClient
}
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_credential.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_credential.go
index e668c3d19d..9688ded1d9 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_credential.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_credential.go
@@ -2,6 +2,7 @@ package common
import (
"log"
+ "sync"
"time"
)
@@ -14,9 +15,13 @@ type RoleArnCredential struct {
tmpSecretId string
tmpSecretKey string
source Provider
+ mu sync.Mutex
}
func (c *RoleArnCredential) GetSecretId() string {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -24,6 +29,9 @@ func (c *RoleArnCredential) GetSecretId() string {
}
func (c *RoleArnCredential) GetSecretKey() string {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -32,6 +40,9 @@ func (c *RoleArnCredential) GetSecretKey() string {
}
func (c *RoleArnCredential) GetToken() string {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -39,6 +50,9 @@ func (c *RoleArnCredential) GetToken() string {
}
func (c *RoleArnCredential) GetCredential() (string, string, string) {
+ c.mu.Lock()
+ defer c.mu.Unlock()
+
if c.needRefresh() {
c.refresh()
}
@@ -58,5 +72,14 @@ func (c *RoleArnCredential) refresh() {
log.Println(err)
return
}
- *c = *newCre.(*RoleArnCredential)
+
+ newCred := newCre.(*RoleArnCredential)
+ c.roleArn = newCred.roleArn
+ c.roleSessionName = newCred.roleSessionName
+ c.durationSeconds = newCred.durationSeconds
+ c.expiredTime = newCred.expiredTime
+ c.token = newCred.token
+ c.tmpSecretId = newCred.tmpSecretId
+ c.tmpSecretKey = newCred.tmpSecretKey
+ c.source = newCred.source
}
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_provider.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_provider.go
index e75a4dd9a6..1017ca3a37 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_provider.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/role_arn_provider.go
@@ -27,6 +27,7 @@ type RoleArnProvider struct {
roleArn string
roleSessionName string
durationSeconds int64
+ Endpoint string
}
type stsRsp struct {
@@ -65,7 +66,11 @@ func (r *RoleArnProvider) GetCredential() (CredentialIface, error) {
}
credential := NewCredential(r.longSecretId, r.longSecretKey)
cpf := profile.NewClientProfile()
- cpf.HttpProfile.Endpoint = endpoint
+ providerEndpoint := r.Endpoint
+ if providerEndpoint == "" {
+ providerEndpoint = endpoint
+ }
+ cpf.HttpProfile.Endpoint = providerEndpoint
cpf.HttpProfile.ReqMethod = "POST"
client := NewCommonClient(credential, region, cpf)
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/sign.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/sign.go
index b06be99bfe..dc6bcc6502 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/sign.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/sign.go
@@ -62,7 +62,10 @@ func signRequest(request tchttp.Request, credential CredentialIface, method stri
func getStringToSign(request tchttp.Request) string {
method := request.GetHttpMethod()
- domain := request.GetDomain()
+ domain := request.GetHeader()["Host"]
+ if domain == "" {
+ domain = request.GetDomain()
+ }
path := request.GetPath()
var buf bytes.Buffer
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/client.go
index 8e138f08da..257daf6f23 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/client.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/client.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -67,8 +67,6 @@ func NewAllocateHostsResponse() (response *AllocateHostsResponse) {
// AllocateHosts
// This API is used to create CDH instances with specified configuration.
//
-// * When HostChargeType is PREPAID, the HostChargePrepaid parameter must be specified.
-//
// error code that may be returned:
// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
// INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
@@ -86,8 +84,6 @@ func (c *Client) AllocateHosts(request *AllocateHostsRequest) (response *Allocat
// AllocateHosts
// This API is used to create CDH instances with specified configuration.
//
-// * When HostChargeType is PREPAID, the HostChargePrepaid parameter must be specified.
-//
// error code that may be returned:
// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
// INVALIDHOSTID_MALFORMED = "InvalidHostId.Malformed"
@@ -102,6 +98,7 @@ func (c *Client) AllocateHostsWithContext(ctx context.Context, request *Allocate
if request == nil {
request = NewAllocateHostsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "AllocateHosts")
if c.GetCredential() == nil {
return nil, errors.New("AllocateHosts require credential")
@@ -227,6 +224,7 @@ func (c *Client) AssociateInstancesKeyPairsWithContext(ctx context.Context, requ
if request == nil {
request = NewAssociateInstancesKeyPairsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "AssociateInstancesKeyPairs")
if c.GetCredential() == nil {
return nil, errors.New("AssociateInstancesKeyPairs require credential")
@@ -304,6 +302,7 @@ func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request
if request == nil {
request = NewAssociateSecurityGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "AssociateSecurityGroups")
if c.GetCredential() == nil {
return nil, errors.New("AssociateSecurityGroups require credential")
@@ -379,6 +378,7 @@ func (c *Client) ConfigureChcAssistVpcWithContext(ctx context.Context, request *
if request == nil {
request = NewConfigureChcAssistVpcRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ConfigureChcAssistVpc")
if c.GetCredential() == nil {
return nil, errors.New("ConfigureChcAssistVpc require credential")
@@ -450,6 +450,7 @@ func (c *Client) ConfigureChcDeployVpcWithContext(ctx context.Context, request *
if request == nil {
request = NewConfigureChcDeployVpcRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ConfigureChcDeployVpc")
if c.GetCredential() == nil {
return nil, errors.New("ConfigureChcDeployVpc require credential")
@@ -523,6 +524,7 @@ func (c *Client) ConvertOperatingSystemsWithContext(ctx context.Context, request
if request == nil {
request = NewConvertOperatingSystemsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ConvertOperatingSystems")
if c.GetCredential() == nil {
return nil, errors.New("ConvertOperatingSystems require credential")
@@ -578,6 +580,7 @@ func (c *Client) CreateDisasterRecoverGroupWithContext(ctx context.Context, requ
if request == nil {
request = NewCreateDisasterRecoverGroupRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "CreateDisasterRecoverGroup")
if c.GetCredential() == nil {
return nil, errors.New("CreateDisasterRecoverGroup require credential")
@@ -727,6 +730,7 @@ func (c *Client) CreateImageWithContext(ctx context.Context, request *CreateImag
if request == nil {
request = NewCreateImageRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "CreateImage")
if c.GetCredential() == nil {
return nil, errors.New("CreateImage require credential")
@@ -816,6 +820,7 @@ func (c *Client) CreateKeyPairWithContext(ctx context.Context, request *CreateKe
if request == nil {
request = NewCreateKeyPairRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "CreateKeyPair")
if c.GetCredential() == nil {
return nil, errors.New("CreateKeyPair require credential")
@@ -1059,6 +1064,7 @@ func (c *Client) CreateLaunchTemplateWithContext(ctx context.Context, request *C
if request == nil {
request = NewCreateLaunchTemplateRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "CreateLaunchTemplate")
if c.GetCredential() == nil {
return nil, errors.New("CreateLaunchTemplate require credential")
@@ -1258,6 +1264,7 @@ func (c *Client) CreateLaunchTemplateVersionWithContext(ctx context.Context, req
if request == nil {
request = NewCreateLaunchTemplateVersionRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "CreateLaunchTemplateVersion")
if c.GetCredential() == nil {
return nil, errors.New("CreateLaunchTemplateVersion require credential")
@@ -1315,6 +1322,7 @@ func (c *Client) DeleteDisasterRecoverGroupsWithContext(ctx context.Context, req
if request == nil {
request = NewDeleteDisasterRecoverGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DeleteDisasterRecoverGroups")
if c.GetCredential() == nil {
return nil, errors.New("DeleteDisasterRecoverGroups require credential")
@@ -1396,6 +1404,7 @@ func (c *Client) DeleteImagesWithContext(ctx context.Context, request *DeleteIma
if request == nil {
request = NewDeleteImagesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DeleteImages")
if c.GetCredential() == nil {
return nil, errors.New("DeleteImages require credential")
@@ -1471,6 +1480,7 @@ func (c *Client) DeleteKeyPairsWithContext(ctx context.Context, request *DeleteK
if request == nil {
request = NewDeleteKeyPairsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DeleteKeyPairs")
if c.GetCredential() == nil {
return nil, errors.New("DeleteKeyPairs require credential")
@@ -1532,6 +1542,7 @@ func (c *Client) DeleteLaunchTemplateWithContext(ctx context.Context, request *D
if request == nil {
request = NewDeleteLaunchTemplateRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DeleteLaunchTemplate")
if c.GetCredential() == nil {
return nil, errors.New("DeleteLaunchTemplate require credential")
@@ -1599,6 +1610,7 @@ func (c *Client) DeleteLaunchTemplateVersionsWithContext(ctx context.Context, re
if request == nil {
request = NewDeleteLaunchTemplateVersionsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DeleteLaunchTemplateVersions")
if c.GetCredential() == nil {
return nil, errors.New("DeleteLaunchTemplateVersions require credential")
@@ -1652,6 +1664,7 @@ func (c *Client) DescribeChcDeniedActionsWithContext(ctx context.Context, reques
if request == nil {
request = NewDescribeChcDeniedActionsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeChcDeniedActions")
if c.GetCredential() == nil {
return nil, errors.New("DescribeChcDeniedActions require credential")
@@ -1739,6 +1752,7 @@ func (c *Client) DescribeChcHostsWithContext(ctx context.Context, request *Descr
if request == nil {
request = NewDescribeChcHostsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeChcHosts")
if c.GetCredential() == nil {
return nil, errors.New("DescribeChcHosts require credential")
@@ -1814,6 +1828,7 @@ func (c *Client) DescribeDisasterRecoverGroupQuotaWithContext(ctx context.Contex
if request == nil {
request = NewDescribeDisasterRecoverGroupQuotaRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeDisasterRecoverGroupQuota")
if c.GetCredential() == nil {
return nil, errors.New("DescribeDisasterRecoverGroupQuota require credential")
@@ -1865,6 +1880,7 @@ func (c *Client) DescribeDisasterRecoverGroupsWithContext(ctx context.Context, r
if request == nil {
request = NewDescribeDisasterRecoverGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeDisasterRecoverGroups")
if c.GetCredential() == nil {
return nil, errors.New("DescribeDisasterRecoverGroups require credential")
@@ -1928,6 +1944,7 @@ func (c *Client) DescribeHostsWithContext(ctx context.Context, request *Describe
if request == nil {
request = NewDescribeHostsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeHosts")
if c.GetCredential() == nil {
return nil, errors.New("DescribeHosts require credential")
@@ -1991,6 +2008,7 @@ func (c *Client) DescribeImageFromFamilyWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeImageFromFamilyRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeImageFromFamily")
if c.GetCredential() == nil {
return nil, errors.New("DescribeImageFromFamily require credential")
@@ -2054,6 +2072,7 @@ func (c *Client) DescribeImageQuotaWithContext(ctx context.Context, request *Des
if request == nil {
request = NewDescribeImageQuotaRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeImageQuota")
if c.GetCredential() == nil {
return nil, errors.New("DescribeImageQuota require credential")
@@ -2115,6 +2134,7 @@ func (c *Client) DescribeImageSharePermissionWithContext(ctx context.Context, re
if request == nil {
request = NewDescribeImageSharePermissionRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeImageSharePermission")
if c.GetCredential() == nil {
return nil, errors.New("DescribeImageSharePermission require credential")
@@ -2210,6 +2230,7 @@ func (c *Client) DescribeImagesWithContext(ctx context.Context, request *Describ
if request == nil {
request = NewDescribeImagesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeImages")
if c.GetCredential() == nil {
return nil, errors.New("DescribeImages require credential")
@@ -2293,6 +2314,7 @@ func (c *Client) DescribeImportImageOsWithContext(ctx context.Context, request *
if request == nil {
request = NewDescribeImportImageOsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeImportImageOs")
if c.GetCredential() == nil {
return nil, errors.New("DescribeImportImageOs require credential")
@@ -2346,6 +2368,7 @@ func (c *Client) DescribeInstanceFamilyConfigsWithContext(ctx context.Context, r
if request == nil {
request = NewDescribeInstanceFamilyConfigsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeInstanceFamilyConfigs")
if c.GetCredential() == nil {
return nil, errors.New("DescribeInstanceFamilyConfigs require credential")
@@ -2461,6 +2484,7 @@ func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *Desc
if request == nil {
request = NewDescribeInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeInstances")
if c.GetCredential() == nil {
return nil, errors.New("DescribeInstances require credential")
@@ -2512,6 +2536,7 @@ func (c *Client) DescribeInstancesAttributesWithContext(ctx context.Context, req
if request == nil {
request = NewDescribeInstancesAttributesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeInstancesAttributes")
if c.GetCredential() == nil {
return nil, errors.New("DescribeInstancesAttributes require credential")
@@ -2575,6 +2600,7 @@ func (c *Client) DescribeInstancesOperationLimitWithContext(ctx context.Context,
if request == nil {
request = NewDescribeInstancesOperationLimitRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeInstancesOperationLimit")
if c.GetCredential() == nil {
return nil, errors.New("DescribeInstancesOperationLimit require credential")
@@ -2650,6 +2676,7 @@ func (c *Client) DescribeInstancesStatusWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeInstancesStatusRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeInstancesStatus")
if c.GetCredential() == nil {
return nil, errors.New("DescribeInstancesStatus require credential")
@@ -2713,6 +2740,7 @@ func (c *Client) DescribeInternetChargeTypeConfigsWithContext(ctx context.Contex
if request == nil {
request = NewDescribeInternetChargeTypeConfigsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeInternetChargeTypeConfigs")
if c.GetCredential() == nil {
return nil, errors.New("DescribeInternetChargeTypeConfigs require credential")
@@ -2792,6 +2820,7 @@ func (c *Client) DescribeKeyPairsWithContext(ctx context.Context, request *Descr
if request == nil {
request = NewDescribeKeyPairsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeKeyPairs")
if c.GetCredential() == nil {
return nil, errors.New("DescribeKeyPairs require credential")
@@ -2875,6 +2904,7 @@ func (c *Client) DescribeLaunchTemplateVersionsWithContext(ctx context.Context,
if request == nil {
request = NewDescribeLaunchTemplateVersionsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeLaunchTemplateVersions")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLaunchTemplateVersions require credential")
@@ -2944,6 +2974,7 @@ func (c *Client) DescribeLaunchTemplatesWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeLaunchTemplatesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeLaunchTemplates")
if c.GetCredential() == nil {
return nil, errors.New("DescribeLaunchTemplates require credential")
@@ -2993,6 +3024,7 @@ func (c *Client) DescribeRegionsWithContext(ctx context.Context, request *Descri
if request == nil {
request = NewDescribeRegionsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeRegions")
if c.GetCredential() == nil {
return nil, errors.New("DescribeRegions require credential")
@@ -3058,6 +3090,7 @@ func (c *Client) DescribeReservedInstancesWithContext(ctx context.Context, reque
if request == nil {
request = NewDescribeReservedInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeReservedInstances")
if c.GetCredential() == nil {
return nil, errors.New("DescribeReservedInstances require credential")
@@ -3113,6 +3146,7 @@ func (c *Client) DescribeReservedInstancesConfigInfosWithContext(ctx context.Con
if request == nil {
request = NewDescribeReservedInstancesConfigInfosRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeReservedInstancesConfigInfos")
if c.GetCredential() == nil {
return nil, errors.New("DescribeReservedInstancesConfigInfos require credential")
@@ -3178,6 +3212,7 @@ func (c *Client) DescribeReservedInstancesOfferingsWithContext(ctx context.Conte
if request == nil {
request = NewDescribeReservedInstancesOfferingsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeReservedInstancesOfferings")
if c.GetCredential() == nil {
return nil, errors.New("DescribeReservedInstancesOfferings require credential")
@@ -3253,6 +3288,7 @@ func (c *Client) DescribeZoneInstanceConfigInfosWithContext(ctx context.Context,
if request == nil {
request = NewDescribeZoneInstanceConfigInfosRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeZoneInstanceConfigInfos")
if c.GetCredential() == nil {
return nil, errors.New("DescribeZoneInstanceConfigInfos require credential")
@@ -3308,6 +3344,7 @@ func (c *Client) DescribeZonesWithContext(ctx context.Context, request *Describe
if request == nil {
request = NewDescribeZonesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DescribeZones")
if c.GetCredential() == nil {
return nil, errors.New("DescribeZones require credential")
@@ -3425,6 +3462,7 @@ func (c *Client) DisassociateInstancesKeyPairsWithContext(ctx context.Context, r
if request == nil {
request = NewDisassociateInstancesKeyPairsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DisassociateInstancesKeyPairs")
if c.GetCredential() == nil {
return nil, errors.New("DisassociateInstancesKeyPairs require credential")
@@ -3494,6 +3532,7 @@ func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, requ
if request == nil {
request = NewDisassociateSecurityGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "DisassociateSecurityGroups")
if c.GetCredential() == nil {
return nil, errors.New("DisassociateSecurityGroups require credential")
@@ -3591,6 +3630,7 @@ func (c *Client) EnterRescueModeWithContext(ctx context.Context, request *EnterR
if request == nil {
request = NewEnterRescueModeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "EnterRescueMode")
if c.GetCredential() == nil {
return nil, errors.New("EnterRescueMode require credential")
@@ -3666,6 +3706,7 @@ func (c *Client) ExitRescueModeWithContext(ctx context.Context, request *ExitRes
if request == nil {
request = NewExitRescueModeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ExitRescueMode")
if c.GetCredential() == nil {
return nil, errors.New("ExitRescueMode require credential")
@@ -3757,6 +3798,7 @@ func (c *Client) ExportImagesWithContext(ctx context.Context, request *ExportIma
if request == nil {
request = NewExportImagesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ExportImages")
if c.GetCredential() == nil {
return nil, errors.New("ExportImages require credential")
@@ -3832,6 +3874,7 @@ func (c *Client) ImportImageWithContext(ctx context.Context, request *ImportImag
if request == nil {
request = NewImportImageRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ImportImage")
if c.GetCredential() == nil {
return nil, errors.New("ImportImage require credential")
@@ -3919,6 +3962,7 @@ func (c *Client) ImportKeyPairWithContext(ctx context.Context, request *ImportKe
if request == nil {
request = NewImportKeyPairRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ImportKeyPair")
if c.GetCredential() == nil {
return nil, errors.New("ImportKeyPair require credential")
@@ -3972,6 +4016,7 @@ func (c *Client) InquirePricePurchaseReservedInstancesOfferingWithContext(ctx co
if request == nil {
request = NewInquirePricePurchaseReservedInstancesOfferingRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquirePricePurchaseReservedInstancesOffering")
if c.GetCredential() == nil {
return nil, errors.New("InquirePricePurchaseReservedInstancesOffering require credential")
@@ -3984,6 +4029,206 @@ func (c *Client) InquirePricePurchaseReservedInstancesOfferingWithContext(ctx co
return
}
+func NewInquiryPriceModifyInstancesChargeTypeRequest() (request *InquiryPriceModifyInstancesChargeTypeRequest) {
+ request = &InquiryPriceModifyInstancesChargeTypeRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cvm", APIVersion, "InquiryPriceModifyInstancesChargeType")
+
+
+ return
+}
+
+func NewInquiryPriceModifyInstancesChargeTypeResponse() (response *InquiryPriceModifyInstancesChargeTypeResponse) {
+ response = &InquiryPriceModifyInstancesChargeTypeResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// InquiryPriceModifyInstancesChargeType
+// This API is used to inquire about the price for switching billing modes of instance.
+//
+//
+//
+//
+//
+// This API is used to indicate that instances with no charge when shut down, instances of the model families Batch Computing BC1 and Batch Computing BS1, instances of scheduled termination, and spot instances do not support this operation.
+//
+// error code that may be returned:
+// ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions"
+// FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"
+// FAILEDOPERATION_INQUIRYREFUNDPRICEFAILED = "FailedOperation.InquiryRefundPriceFailed"
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId"
+// INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEUNDERWRITE = "InvalidParameterValue.InvalidInstanceTypeUnderwrite"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPERIOD = "InvalidPeriod"
+// INVALIDPERMISSION = "InvalidPermission"
+// LIMITEXCEEDED_INSTANCETYPEBANDWIDTH = "LimitExceeded.InstanceTypeBandwidth"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+func (c *Client) InquiryPriceModifyInstancesChargeType(request *InquiryPriceModifyInstancesChargeTypeRequest) (response *InquiryPriceModifyInstancesChargeTypeResponse, err error) {
+ return c.InquiryPriceModifyInstancesChargeTypeWithContext(context.Background(), request)
+}
+
+// InquiryPriceModifyInstancesChargeType
+// This API is used to inquire about the price for switching billing modes of instance.
+//
+//
+//
+//
+//
+// This API is used to indicate that instances with no charge when shut down, instances of the model families Batch Computing BC1 and Batch Computing BS1, instances of scheduled termination, and spot instances do not support this operation.
+//
+// error code that may be returned:
+// ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions"
+// FAILEDOPERATION_INQUIRYPRICEFAILED = "FailedOperation.InquiryPriceFailed"
+// FAILEDOPERATION_INQUIRYREFUNDPRICEFAILED = "FailedOperation.InquiryRefundPriceFailed"
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INVALIDIMAGEID = "InvalidParameterValue.InvalidImageId"
+// INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEUNDERWRITE = "InvalidParameterValue.InvalidInstanceTypeUnderwrite"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPERIOD = "InvalidPeriod"
+// INVALIDPERMISSION = "InvalidPermission"
+// LIMITEXCEEDED_INSTANCETYPEBANDWIDTH = "LimitExceeded.InstanceTypeBandwidth"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+func (c *Client) InquiryPriceModifyInstancesChargeTypeWithContext(ctx context.Context, request *InquiryPriceModifyInstancesChargeTypeRequest) (response *InquiryPriceModifyInstancesChargeTypeResponse, err error) {
+ if request == nil {
+ request = NewInquiryPriceModifyInstancesChargeTypeRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquiryPriceModifyInstancesChargeType")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("InquiryPriceModifyInstancesChargeType require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewInquiryPriceModifyInstancesChargeTypeResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewInquiryPriceRenewInstancesRequest() (request *InquiryPriceRenewInstancesRequest) {
+ request = &InquiryPriceRenewInstancesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cvm", APIVersion, "InquiryPriceRenewInstances")
+
+
+ return
+}
+
+func NewInquiryPriceRenewInstancesResponse() (response *InquiryPriceRenewInstancesResponse) {
+ response = &InquiryPriceRenewInstancesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// InquiryPriceRenewInstances
+// This API is used to inquire about the price for renewing a monthly subscription instance.
+//
+//
+//
+// This API is used to query the renewal price of monthly subscription instances.
+//
+// error code that may be returned:
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
+// INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INSTANCENOTSUPPORTEDMIXPRICINGMODEL = "InvalidParameterValue.InstanceNotSupportedMixPricingModel"
+// INVALIDPARAMETERVALUE_INVALIDAPPIDFORMAT = "InvalidParameterValue.InvalidAppIdFormat"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// INVALIDPERIOD = "InvalidPeriod"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
+// RESOURCEUNAVAILABLE = "ResourceUnavailable"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
+// UNSUPPORTEDOPERATION_INVALIDDISKBACKUPQUOTA = "UnsupportedOperation.InvalidDiskBackupQuota"
+// UNSUPPORTEDOPERATION_UNDERWRITINGINSTANCETYPEONLYSUPPORTAUTORENEW = "UnsupportedOperation.UnderwritingInstanceTypeOnlySupportAutoRenew"
+func (c *Client) InquiryPriceRenewInstances(request *InquiryPriceRenewInstancesRequest) (response *InquiryPriceRenewInstancesResponse, err error) {
+ return c.InquiryPriceRenewInstancesWithContext(context.Background(), request)
+}
+
+// InquiryPriceRenewInstances
+// This API is used to inquire about the price for renewing a monthly subscription instance.
+//
+//
+//
+// This API is used to query the renewal price of monthly subscription instances.
+//
+// error code that may be returned:
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
+// INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INSTANCENOTSUPPORTEDMIXPRICINGMODEL = "InvalidParameterValue.InstanceNotSupportedMixPricingModel"
+// INVALIDPARAMETERVALUE_INVALIDAPPIDFORMAT = "InvalidParameterValue.InvalidAppIdFormat"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
+// INVALIDPERIOD = "InvalidPeriod"
+// MISSINGPARAMETER = "MissingParameter"
+// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
+// RESOURCEUNAVAILABLE = "ResourceUnavailable"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
+// UNSUPPORTEDOPERATION_INVALIDDISKBACKUPQUOTA = "UnsupportedOperation.InvalidDiskBackupQuota"
+// UNSUPPORTEDOPERATION_UNDERWRITINGINSTANCETYPEONLYSUPPORTAUTORENEW = "UnsupportedOperation.UnderwritingInstanceTypeOnlySupportAutoRenew"
+func (c *Client) InquiryPriceRenewInstancesWithContext(ctx context.Context, request *InquiryPriceRenewInstancesRequest) (response *InquiryPriceRenewInstancesResponse, err error) {
+ if request == nil {
+ request = NewInquiryPriceRenewInstancesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquiryPriceRenewInstances")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("InquiryPriceRenewInstances require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewInquiryPriceRenewInstancesResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewInquiryPriceResetInstanceRequest() (request *InquiryPriceResetInstanceRequest) {
request = &InquiryPriceResetInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -4034,6 +4279,7 @@ func NewInquiryPriceResetInstanceResponse() (response *InquiryPriceResetInstance
// MISSINGPARAMETER_MONITORSERVICE = "MissingParameter.MonitorService"
// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
// RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INVALIDIMAGELICENSETYPEFORRESET = "UnsupportedOperation.InvalidImageLicenseTypeForReset"
// UNSUPPORTEDOPERATION_MODIFYENCRYPTIONNOTSUPPORTED = "UnsupportedOperation.ModifyEncryptionNotSupported"
// UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"
@@ -4072,6 +4318,7 @@ func (c *Client) InquiryPriceResetInstance(request *InquiryPriceResetInstanceReq
// MISSINGPARAMETER_MONITORSERVICE = "MissingParameter.MonitorService"
// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
// RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INVALIDIMAGELICENSETYPEFORRESET = "UnsupportedOperation.InvalidImageLicenseTypeForReset"
// UNSUPPORTEDOPERATION_MODIFYENCRYPTIONNOTSUPPORTED = "UnsupportedOperation.ModifyEncryptionNotSupported"
// UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"
@@ -4079,6 +4326,7 @@ func (c *Client) InquiryPriceResetInstanceWithContext(ctx context.Context, reque
if request == nil {
request = NewInquiryPriceResetInstanceRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquiryPriceResetInstance")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceResetInstance require credential")
@@ -4176,6 +4424,7 @@ func (c *Client) InquiryPriceResetInstancesInternetMaxBandwidthWithContext(ctx c
if request == nil {
request = NewInquiryPriceResetInstancesInternetMaxBandwidthRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquiryPriceResetInstancesInternetMaxBandwidth")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceResetInstancesInternetMaxBandwidth require credential")
@@ -4252,6 +4501,7 @@ func NewInquiryPriceResetInstancesTypeResponse() (response *InquiryPriceResetIns
// RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
// RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
// UNSUPPORTEDOPERATION_HETEROGENEOUSCHANGEINSTANCEFAMILY = "UnsupportedOperation.HeterogeneousChangeInstanceFamily"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDRESETINSTANCETYPE = "UnsupportedOperation.InstanceMixedResetInstanceType"
// UNSUPPORTEDOPERATION_LOCALDATADISKCHANGEINSTANCEFAMILY = "UnsupportedOperation.LocalDataDiskChangeInstanceFamily"
// UNSUPPORTEDOPERATION_ORIGINALINSTANCETYPEINVALID = "UnsupportedOperation.OriginalInstanceTypeInvalid"
// UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"
@@ -4309,6 +4559,7 @@ func (c *Client) InquiryPriceResetInstancesType(request *InquiryPriceResetInstan
// RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
// RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
// UNSUPPORTEDOPERATION_HETEROGENEOUSCHANGEINSTANCEFAMILY = "UnsupportedOperation.HeterogeneousChangeInstanceFamily"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDRESETINSTANCETYPE = "UnsupportedOperation.InstanceMixedResetInstanceType"
// UNSUPPORTEDOPERATION_LOCALDATADISKCHANGEINSTANCEFAMILY = "UnsupportedOperation.LocalDataDiskChangeInstanceFamily"
// UNSUPPORTEDOPERATION_ORIGINALINSTANCETYPEINVALID = "UnsupportedOperation.OriginalInstanceTypeInvalid"
// UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"
@@ -4321,6 +4572,7 @@ func (c *Client) InquiryPriceResetInstancesTypeWithContext(ctx context.Context,
if request == nil {
request = NewInquiryPriceResetInstancesTypeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquiryPriceResetInstancesType")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceResetInstancesType require credential")
@@ -4416,6 +4668,7 @@ func (c *Client) InquiryPriceResizeInstanceDisksWithContext(ctx context.Context,
if request == nil {
request = NewInquiryPriceResizeInstanceDisksRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquiryPriceResizeInstanceDisks")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceResizeInstanceDisks require credential")
@@ -4524,6 +4777,7 @@ func NewInquiryPriceRunInstancesResponse() (response *InquiryPriceRunInstancesRe
// RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
// RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
// UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTJUMBOFRAME = "UnsupportedOperation.InstanceTypeNotSupportJumboFrame"
// UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"
// UNSUPPORTEDOPERATION_INVALIDREGIONDISKENCRYPT = "UnsupportedOperation.InvalidRegionDiskEncrypt"
@@ -4614,6 +4868,7 @@ func (c *Client) InquiryPriceRunInstances(request *InquiryPriceRunInstancesReque
// RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
// RESOURCESSOLDOUT_SPECIFIEDINSTANCETYPE = "ResourcesSoldOut.SpecifiedInstanceType"
// UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTJUMBOFRAME = "UnsupportedOperation.InstanceTypeNotSupportJumboFrame"
// UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"
// UNSUPPORTEDOPERATION_INVALIDREGIONDISKENCRYPT = "UnsupportedOperation.InvalidRegionDiskEncrypt"
@@ -4627,6 +4882,7 @@ func (c *Client) InquiryPriceRunInstancesWithContext(ctx context.Context, reques
if request == nil {
request = NewInquiryPriceRunInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "InquiryPriceRunInstances")
if c.GetCredential() == nil {
return nil, errors.New("InquiryPriceRunInstances require credential")
@@ -4694,6 +4950,7 @@ func (c *Client) ModifyChcAttributeWithContext(ctx context.Context, request *Mod
if request == nil {
request = NewModifyChcAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyChcAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyChcAttribute require credential")
@@ -4747,6 +5004,7 @@ func (c *Client) ModifyDisasterRecoverGroupAttributeWithContext(ctx context.Cont
if request == nil {
request = NewModifyDisasterRecoverGroupAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyDisasterRecoverGroupAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyDisasterRecoverGroupAttribute require credential")
@@ -4802,6 +5060,7 @@ func (c *Client) ModifyHostsAttributeWithContext(ctx context.Context, request *M
if request == nil {
request = NewModifyHostsAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyHostsAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyHostsAttribute require credential")
@@ -4849,6 +5108,7 @@ func NewModifyImageAttributeResponse() (response *ModifyImageAttributeResponse)
// INVALIDPARAMETERVALUE_INVALIDIMAGEFAMILY = "InvalidParameterValue.InvalidImageFamily"
// INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"
// UNAUTHORIZEDOPERATION_INVALIDTOKEN = "UnauthorizedOperation.InvalidToken"
+// UNSUPPORTEDOPERATION_SHAREDIMAGEMODIFYUNSUPPORTED = "UnsupportedOperation.SharedImageModifyUnsupported"
func (c *Client) ModifyImageAttribute(request *ModifyImageAttributeRequest) (response *ModifyImageAttributeResponse, err error) {
return c.ModifyImageAttributeWithContext(context.Background(), request)
}
@@ -4869,10 +5129,12 @@ func (c *Client) ModifyImageAttribute(request *ModifyImageAttributeRequest) (res
// INVALIDPARAMETERVALUE_INVALIDIMAGEFAMILY = "InvalidParameterValue.InvalidImageFamily"
// INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"
// UNAUTHORIZEDOPERATION_INVALIDTOKEN = "UnauthorizedOperation.InvalidToken"
+// UNSUPPORTEDOPERATION_SHAREDIMAGEMODIFYUNSUPPORTED = "UnsupportedOperation.SharedImageModifyUnsupported"
func (c *Client) ModifyImageAttributeWithContext(ctx context.Context, request *ModifyImageAttributeRequest) (response *ModifyImageAttributeResponse, err error) {
if request == nil {
request = NewModifyImageAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyImageAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyImageAttribute require credential")
@@ -4980,6 +5242,7 @@ func (c *Client) ModifyImageSharePermissionWithContext(ctx context.Context, requ
if request == nil {
request = NewModifyImageSharePermissionRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyImageSharePermission")
if c.GetCredential() == nil {
return nil, errors.New("ModifyImageSharePermission require credential")
@@ -5012,19 +5275,21 @@ func NewModifyInstancesAttributeResponse() (response *ModifyInstancesAttributeRe
}
// ModifyInstancesAttribute
-// The API is used to modify the attributes of an instance. Only the name and the associated security groups can be modified for now.
+// This API is used to modify instance attributes.
//
//
//
-// * An attribute must be specified in the request.
+// This API is used to modify one attribute of the instance per request. The attribute must be specified.
+//
+// The instance name is only for user convenience in management. Tencent Cloud does not use this name as the basis for online support or to perform instance management operations.
//
-// * "Instance name" is a custom name for easier management. Tencent Cloud does not use the name for online support or instance management.
+// This API is used to support batch operations. The maximum of 100 batch instances per request is supported.
//
-// * Batch operations are supported. Each request can modify up to 100 instances.
+// This API is used to modify the security group association. The originally associated security group of the instance will be unbound.
//
-// * When you modify the security groups associated with an instance is modified, the original security groups are disassociated.
+// * You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
//
-// * You can use the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) to query the instance operation result. If the 'LatestOperationState' in the response is **SUCCESS**, the operation is successful.
+// This API is used to modify the hostname. The instance restarts immediately after hostname modification, and the new hostname takes effect after restart.
//
// error code that may be returned:
// AUTHFAILURE_CAMROLENAMEAUTHENTICATEFAILED = "AuthFailure.CamRoleNameAuthenticateFailed"
@@ -5066,6 +5331,7 @@ func NewModifyInstancesAttributeResponse() (response *ModifyInstancesAttributeRe
// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTHIGHDENSITYMODESETTING = "UnsupportedOperation.InstanceTypeNotSupportHighDensityModeSetting"
// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTJUMBOFRAME = "UnsupportedOperation.InstanceTypeNotSupportJumboFrame"
// UNSUPPORTEDOPERATION_INSTANCESENABLEJUMBOWITHOUTREBOOT = "UnsupportedOperation.InstancesEnableJumboWithoutReboot"
// UNSUPPORTEDOPERATION_INVALIDINSTANCENOTSUPPORTEDPROTECTEDINSTANCE = "UnsupportedOperation.InvalidInstanceNotSupportedProtectedInstance"
@@ -5075,19 +5341,21 @@ func (c *Client) ModifyInstancesAttribute(request *ModifyInstancesAttributeReque
}
// ModifyInstancesAttribute
-// The API is used to modify the attributes of an instance. Only the name and the associated security groups can be modified for now.
+// This API is used to modify instance attributes.
//
//
//
-// * An attribute must be specified in the request.
+// This API is used to modify one attribute of the instance per request. The attribute must be specified.
//
-// * "Instance name" is a custom name for easier management. Tencent Cloud does not use the name for online support or instance management.
+// The instance name is only for user convenience in management. Tencent Cloud does not use this name as the basis for online support or to perform instance management operations.
//
-// * Batch operations are supported. Each request can modify up to 100 instances.
+// This API is used to support batch operations. The maximum of 100 batch instances per request is supported.
//
-// * When you modify the security groups associated with an instance is modified, the original security groups are disassociated.
+// This API is used to modify the security group association. The originally associated security group of the instance will be unbound.
//
-// * You can use the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) to query the instance operation result. If the 'LatestOperationState' in the response is **SUCCESS**, the operation is successful.
+// * You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
+//
+// This API is used to modify the hostname. The instance restarts immediately after hostname modification, and the new hostname takes effect after restart.
//
// error code that may be returned:
// AUTHFAILURE_CAMROLENAMEAUTHENTICATEFAILED = "AuthFailure.CamRoleNameAuthenticateFailed"
@@ -5129,6 +5397,7 @@ func (c *Client) ModifyInstancesAttribute(request *ModifyInstancesAttributeReque
// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTHIGHDENSITYMODESETTING = "UnsupportedOperation.InstanceTypeNotSupportHighDensityModeSetting"
// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTJUMBOFRAME = "UnsupportedOperation.InstanceTypeNotSupportJumboFrame"
// UNSUPPORTEDOPERATION_INSTANCESENABLEJUMBOWITHOUTREBOOT = "UnsupportedOperation.InstancesEnableJumboWithoutReboot"
// UNSUPPORTEDOPERATION_INVALIDINSTANCENOTSUPPORTEDPROTECTEDINSTANCE = "UnsupportedOperation.InvalidInstanceNotSupportedProtectedInstance"
@@ -5137,6 +5406,7 @@ func (c *Client) ModifyInstancesAttributeWithContext(ctx context.Context, reques
if request == nil {
request = NewModifyInstancesAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyInstancesAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyInstancesAttribute require credential")
@@ -5149,6 +5419,236 @@ func (c *Client) ModifyInstancesAttributeWithContext(ctx context.Context, reques
return
}
+func NewModifyInstancesChargeTypeRequest() (request *ModifyInstancesChargeTypeRequest) {
+ request = &ModifyInstancesChargeTypeRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cvm", APIVersion, "ModifyInstancesChargeType")
+
+
+ return
+}
+
+func NewModifyInstancesChargeTypeResponse() (response *ModifyInstancesChargeTypeResponse) {
+ response = &ModifyInstancesChargeTypeResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyInstancesChargeType
+// This API is used to switch the billing mode of an instance.
+//
+//
+//
+// This API is used to perform operations that do not support instances with no charge when shut down, instances of the model families Batch Compute BC1 and Batch Compute BS1, or instances of scheduled termination.
+//
+// * You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
+//
+// error code that may be returned:
+// ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions"
+// FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLEEMR = "FailedOperation.InvalidInstanceApplicationRoleEmr"
+// FAILEDOPERATION_PROMOTIONALPERIORESTRICTION = "FailedOperation.PromotionalPerioRestriction"
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
+// INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEUNDERWRITE = "InvalidParameterValue.InvalidInstanceTypeUnderwrite"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPERIOD = "InvalidPeriod"
+// INVALIDPERMISSION = "InvalidPermission"
+// LIMITEXCEEDED_INSTANCEQUOTA = "LimitExceeded.InstanceQuota"
+// LIMITEXCEEDED_INSTANCETYPEBANDWIDTH = "LimitExceeded.InstanceTypeBandwidth"
+// MISSINGPARAMETER = "MissingParameter"
+// OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
+// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
+// UNSUPPORTEDOPERATION_COMMERCIALIMAGECHANGECHARGETYPE = "UnsupportedOperation.CommercialImageChangeChargeType"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEBANNING = "UnsupportedOperation.InstanceStateBanning"
+// UNSUPPORTEDOPERATION_INSTANCESTATEFREEZING = "UnsupportedOperation.InstanceStateFreezing"
+// UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
+// UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
+// UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
+// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_REDHATINSTANCEUNSUPPORTED = "UnsupportedOperation.RedHatInstanceUnsupported"
+// UNSUPPORTEDOPERATION_UNDERWRITEDISCOUNTGREATERTHANPREPAIDDISCOUNT = "UnsupportedOperation.UnderwriteDiscountGreaterThanPrepaidDiscount"
+// UNSUPPORTEDOPERATION_UNDERWRITINGINSTANCETYPEONLYSUPPORTAUTORENEW = "UnsupportedOperation.UnderwritingInstanceTypeOnlySupportAutoRenew"
+func (c *Client) ModifyInstancesChargeType(request *ModifyInstancesChargeTypeRequest) (response *ModifyInstancesChargeTypeResponse, err error) {
+ return c.ModifyInstancesChargeTypeWithContext(context.Background(), request)
+}
+
+// ModifyInstancesChargeType
+// This API is used to switch the billing mode of an instance.
+//
+//
+//
+// This API is used to perform operations that do not support instances with no charge when shut down, instances of the model families Batch Compute BC1 and Batch Compute BS1, or instances of scheduled termination.
+//
+// * You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
+//
+// error code that may be returned:
+// ACCOUNTQUALIFICATIONRESTRICTIONS = "AccountQualificationRestrictions"
+// FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLEEMR = "FailedOperation.InvalidInstanceApplicationRoleEmr"
+// FAILEDOPERATION_PROMOTIONALPERIORESTRICTION = "FailedOperation.PromotionalPerioRestriction"
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
+// INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETER = "InvalidParameter"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEUNDERWRITE = "InvalidParameterValue.InvalidInstanceTypeUnderwrite"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPERIOD = "InvalidPeriod"
+// INVALIDPERMISSION = "InvalidPermission"
+// LIMITEXCEEDED_INSTANCEQUOTA = "LimitExceeded.InstanceQuota"
+// LIMITEXCEEDED_INSTANCETYPEBANDWIDTH = "LimitExceeded.InstanceTypeBandwidth"
+// MISSINGPARAMETER = "MissingParameter"
+// OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
+// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
+// UNSUPPORTEDOPERATION_COMMERCIALIMAGECHANGECHARGETYPE = "UnsupportedOperation.CommercialImageChangeChargeType"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEBANNING = "UnsupportedOperation.InstanceStateBanning"
+// UNSUPPORTEDOPERATION_INSTANCESTATEFREEZING = "UnsupportedOperation.InstanceStateFreezing"
+// UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
+// UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
+// UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
+// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_REDHATINSTANCEUNSUPPORTED = "UnsupportedOperation.RedHatInstanceUnsupported"
+// UNSUPPORTEDOPERATION_UNDERWRITEDISCOUNTGREATERTHANPREPAIDDISCOUNT = "UnsupportedOperation.UnderwriteDiscountGreaterThanPrepaidDiscount"
+// UNSUPPORTEDOPERATION_UNDERWRITINGINSTANCETYPEONLYSUPPORTAUTORENEW = "UnsupportedOperation.UnderwritingInstanceTypeOnlySupportAutoRenew"
+func (c *Client) ModifyInstancesChargeTypeWithContext(ctx context.Context, request *ModifyInstancesChargeTypeRequest) (response *ModifyInstancesChargeTypeResponse, err error) {
+ if request == nil {
+ request = NewModifyInstancesChargeTypeRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyInstancesChargeType")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyInstancesChargeType require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyInstancesChargeTypeResponse()
+ err = c.Send(request, response)
+ return
+}
+
+func NewModifyInstancesDisasterRecoverGroupRequest() (request *ModifyInstancesDisasterRecoverGroupRequest) {
+ request = &ModifyInstancesDisasterRecoverGroupRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cvm", APIVersion, "ModifyInstancesDisasterRecoverGroup")
+
+
+ return
+}
+
+func NewModifyInstancesDisasterRecoverGroupResponse() (response *ModifyInstancesDisasterRecoverGroupResponse) {
+ response = &ModifyInstancesDisasterRecoverGroupResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// ModifyInstancesDisasterRecoverGroup
+// This API is used to adjust the placement group of an instance.
+//
+// * Currently only basic networks or Virtual Private Cloud (VPC) instances are supported.
+//
+// error code that may be returned:
+// FAILEDOPERATION_ALREADYINDISASTERRECOVERGROUP = "FailedOperation.AlreadyInDisasterRecoverGroup"
+// FAILEDOPERATION_DISASTERRECOVERGROUPNOTFOUND = "FailedOperation.DisasterRecoverGroupNotFound"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETERVALUE_DISASTERRECOVERGROUPIDMALFORMED = "InvalidParameterValue.DisasterRecoverGroupIdMalformed"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported"
+// LIMITEXCEEDED_DISASTERRECOVERGROUP = "LimitExceeded.DisasterRecoverGroup"
+// MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
+// OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
+// RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
+// UNSUPPORTEDOPERATION_CBSREMOTESSDNOTSUPPORT = "UnsupportedOperation.CbsRemoteSsdNotSupport"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEBANNING = "UnsupportedOperation.InstanceStateBanning"
+// UNSUPPORTEDOPERATION_INSTANCESTATEFREEZING = "UnsupportedOperation.InstanceStateFreezing"
+// UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
+// UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
+// UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
+// UNSUPPORTEDOPERATION_NOVPCNETWORK = "UnsupportedOperation.NoVpcNetwork"
+// UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
+// UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"
+func (c *Client) ModifyInstancesDisasterRecoverGroup(request *ModifyInstancesDisasterRecoverGroupRequest) (response *ModifyInstancesDisasterRecoverGroupResponse, err error) {
+ return c.ModifyInstancesDisasterRecoverGroupWithContext(context.Background(), request)
+}
+
+// ModifyInstancesDisasterRecoverGroup
+// This API is used to adjust the placement group of an instance.
+//
+// * Currently only basic networks or Virtual Private Cloud (VPC) instances are supported.
+//
+// error code that may be returned:
+// FAILEDOPERATION_ALREADYINDISASTERRECOVERGROUP = "FailedOperation.AlreadyInDisasterRecoverGroup"
+// FAILEDOPERATION_DISASTERRECOVERGROUPNOTFOUND = "FailedOperation.DisasterRecoverGroupNotFound"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETERVALUE_DISASTERRECOVERGROUPIDMALFORMED = "InvalidParameterValue.DisasterRecoverGroupIdMalformed"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported"
+// LIMITEXCEEDED_DISASTERRECOVERGROUP = "LimitExceeded.DisasterRecoverGroup"
+// MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
+// OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
+// RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
+// UNSUPPORTEDOPERATION_CBSREMOTESSDNOTSUPPORT = "UnsupportedOperation.CbsRemoteSsdNotSupport"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEBANNING = "UnsupportedOperation.InstanceStateBanning"
+// UNSUPPORTEDOPERATION_INSTANCESTATEFREEZING = "UnsupportedOperation.InstanceStateFreezing"
+// UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
+// UNSUPPORTEDOPERATION_INSTANCESTATERESCUEMODE = "UnsupportedOperation.InstanceStateRescueMode"
+// UNSUPPORTEDOPERATION_INSTANCESTATESHUTDOWN = "UnsupportedOperation.InstanceStateShutdown"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
+// UNSUPPORTEDOPERATION_NOVPCNETWORK = "UnsupportedOperation.NoVpcNetwork"
+// UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
+// UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = "UnsupportedOperation.StoppedModeStopCharging"
+func (c *Client) ModifyInstancesDisasterRecoverGroupWithContext(ctx context.Context, request *ModifyInstancesDisasterRecoverGroupRequest) (response *ModifyInstancesDisasterRecoverGroupResponse, err error) {
+ if request == nil {
+ request = NewModifyInstancesDisasterRecoverGroupRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyInstancesDisasterRecoverGroup")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("ModifyInstancesDisasterRecoverGroup require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewModifyInstancesDisasterRecoverGroupResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewModifyInstancesProjectRequest() (request *ModifyInstancesProjectRequest) {
request = &ModifyInstancesProjectRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -5228,6 +5728,7 @@ func (c *Client) ModifyInstancesProjectWithContext(ctx context.Context, request
if request == nil {
request = NewModifyInstancesProjectRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyInstancesProject")
if c.GetCredential() == nil {
return nil, errors.New("ModifyInstancesProject require credential")
@@ -5343,6 +5844,7 @@ func (c *Client) ModifyInstancesRenewFlagWithContext(ctx context.Context, reques
if request == nil {
request = NewModifyInstancesRenewFlagRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyInstancesRenewFlag")
if c.GetCredential() == nil {
return nil, errors.New("ModifyInstancesRenewFlag require credential")
@@ -5486,6 +5988,7 @@ func (c *Client) ModifyInstancesVpcAttributeWithContext(ctx context.Context, req
if request == nil {
request = NewModifyInstancesVpcAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyInstancesVpcAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyInstancesVpcAttribute require credential")
@@ -5571,6 +6074,7 @@ func (c *Client) ModifyKeyPairAttributeWithContext(ctx context.Context, request
if request == nil {
request = NewModifyKeyPairAttributeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyKeyPairAttribute")
if c.GetCredential() == nil {
return nil, errors.New("ModifyKeyPairAttribute require credential")
@@ -5638,6 +6142,7 @@ func (c *Client) ModifyLaunchTemplateDefaultVersionWithContext(ctx context.Conte
if request == nil {
request = NewModifyLaunchTemplateDefaultVersionRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ModifyLaunchTemplateDefaultVersion")
if c.GetCredential() == nil {
return nil, errors.New("ModifyLaunchTemplateDefaultVersion require credential")
@@ -5701,6 +6206,7 @@ func (c *Client) PurchaseReservedInstancesOfferingWithContext(ctx context.Contex
if request == nil {
request = NewPurchaseReservedInstancesOfferingRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "PurchaseReservedInstancesOffering")
if c.GetCredential() == nil {
return nil, errors.New("PurchaseReservedInstancesOffering require credential")
@@ -5832,6 +6338,7 @@ func (c *Client) RebootInstancesWithContext(ctx context.Context, request *Reboot
if request == nil {
request = NewRebootInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "RebootInstances")
if c.GetCredential() == nil {
return nil, errors.New("RebootInstances require credential")
@@ -5887,6 +6394,7 @@ func (c *Client) RemoveChcAssistVpcWithContext(ctx context.Context, request *Rem
if request == nil {
request = NewRemoveChcAssistVpcRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "RemoveChcAssistVpc")
if c.GetCredential() == nil {
return nil, errors.New("RemoveChcAssistVpc require credential")
@@ -5944,6 +6452,7 @@ func (c *Client) RemoveChcDeployVpcWithContext(ctx context.Context, request *Rem
if request == nil {
request = NewRemoveChcDeployVpcRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "RemoveChcDeployVpc")
if c.GetCredential() == nil {
return nil, errors.New("RemoveChcDeployVpc require credential")
@@ -5956,6 +6465,124 @@ func (c *Client) RemoveChcDeployVpcWithContext(ctx context.Context, request *Rem
return
}
+func NewRenewInstancesRequest() (request *RenewInstancesRequest) {
+ request = &RenewInstancesRequest{
+ BaseRequest: &tchttp.BaseRequest{},
+ }
+
+ request.Init().WithApiInfo("cvm", APIVersion, "RenewInstances")
+
+
+ return
+}
+
+func NewRenewInstancesResponse() (response *RenewInstancesResponse) {
+ response = &RenewInstancesResponse{
+ BaseResponse: &tchttp.BaseResponse{},
+ }
+ return
+
+}
+
+// RenewInstances
+// This API is used to renew annual and monthly subscription instances.
+//
+//
+//
+// This API is used to operate on monthly subscription instances only.
+//
+// This API is used to ensure your account balance is sufficient for renewal. You can check the balance via the DescribeAccountBalance API (https://www.tencentcloud.comom/document/product/555/20253?from_cn_redirect=1).
+//
+// * You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLE = "FailedOperation.InvalidInstanceApplicationRole"
+// FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLEEMR = "FailedOperation.InvalidInstanceApplicationRoleEmr"
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
+// INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INSTANCENOTSUPPORTEDMIXPRICINGMODEL = "InvalidParameterValue.InstanceNotSupportedMixPricingModel"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPERIOD = "InvalidPeriod"
+// MISSINGPARAMETER = "MissingParameter"
+// OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEBANNING = "UnsupportedOperation.InstanceStateBanning"
+// UNSUPPORTEDOPERATION_INSTANCESTATEFREEZING = "UnsupportedOperation.InstanceStateFreezing"
+// UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
+// UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
+// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_INVALIDDISKBACKUPQUOTA = "UnsupportedOperation.InvalidDiskBackupQuota"
+// UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
+func (c *Client) RenewInstances(request *RenewInstancesRequest) (response *RenewInstancesResponse, err error) {
+ return c.RenewInstancesWithContext(context.Background(), request)
+}
+
+// RenewInstances
+// This API is used to renew annual and monthly subscription instances.
+//
+//
+//
+// This API is used to operate on monthly subscription instances only.
+//
+// This API is used to ensure your account balance is sufficient for renewal. You can check the balance via the DescribeAccountBalance API (https://www.tencentcloud.comom/document/product/555/20253?from_cn_redirect=1).
+//
+// * You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
+//
+// error code that may be returned:
+// FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLE = "FailedOperation.InvalidInstanceApplicationRole"
+// FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLEEMR = "FailedOperation.InvalidInstanceApplicationRoleEmr"
+// INTERNALERROR_TRADEUNKNOWNERROR = "InternalError.TradeUnknownError"
+// INTERNALSERVERERROR = "InternalServerError"
+// INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
+// INVALIDACCOUNT_UNPAIDORDER = "InvalidAccount.UnpaidOrder"
+// INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
+// INVALIDINSTANCEID_MALFORMED = "InvalidInstanceId.Malformed"
+// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
+// INVALIDPARAMETERVALUE = "InvalidParameterValue"
+// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+// INVALIDPARAMETERVALUE_INSTANCENOTSUPPORTEDMIXPRICINGMODEL = "InvalidParameterValue.InstanceNotSupportedMixPricingModel"
+// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
+// INVALIDPERIOD = "InvalidPeriod"
+// MISSINGPARAMETER = "MissingParameter"
+// OPERATIONDENIED_INSTANCEOPERATIONINPROGRESS = "OperationDenied.InstanceOperationInProgress"
+// UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = "UnsupportedOperation.InstanceChargeType"
+// UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+// UNSUPPORTEDOPERATION_INSTANCESTATEBANNING = "UnsupportedOperation.InstanceStateBanning"
+// UNSUPPORTEDOPERATION_INSTANCESTATEFREEZING = "UnsupportedOperation.InstanceStateFreezing"
+// UNSUPPORTEDOPERATION_INSTANCESTATEPENDING = "UnsupportedOperation.InstanceStatePending"
+// UNSUPPORTEDOPERATION_INSTANCESTATEREBOOTING = "UnsupportedOperation.InstanceStateRebooting"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTARTING = "UnsupportedOperation.InstanceStateStarting"
+// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
+// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_INVALIDDISKBACKUPQUOTA = "UnsupportedOperation.InvalidDiskBackupQuota"
+// UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
+func (c *Client) RenewInstancesWithContext(ctx context.Context, request *RenewInstancesRequest) (response *RenewInstancesResponse, err error) {
+ if request == nil {
+ request = NewRenewInstancesRequest()
+ }
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "RenewInstances")
+
+ if c.GetCredential() == nil {
+ return nil, errors.New("RenewInstances require credential")
+ }
+
+ request.SetContext(ctx)
+
+ response = NewRenewInstancesResponse()
+ err = c.Send(request, response)
+ return
+}
+
func NewResetInstanceRequest() (request *ResetInstanceRequest) {
request = &ResetInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
@@ -6056,6 +6683,7 @@ func NewResetInstanceResponse() (response *ResetInstanceResponse) {
// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INVALIDIMAGELICENSETYPEFORRESET = "UnsupportedOperation.InvalidImageLicenseTypeForReset"
// UNSUPPORTEDOPERATION_KEYPAIRUNSUPPORTEDWINDOWS = "UnsupportedOperation.KeyPairUnsupportedWindows"
// UNSUPPORTEDOPERATION_MODIFYENCRYPTIONNOTSUPPORTED = "UnsupportedOperation.ModifyEncryptionNotSupported"
@@ -6146,6 +6774,7 @@ func (c *Client) ResetInstance(request *ResetInstanceRequest) (response *ResetIn
// UNSUPPORTEDOPERATION_INSTANCESTATESTOPPING = "UnsupportedOperation.InstanceStateStopping"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATED = "UnsupportedOperation.InstanceStateTerminated"
// UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INVALIDIMAGELICENSETYPEFORRESET = "UnsupportedOperation.InvalidImageLicenseTypeForReset"
// UNSUPPORTEDOPERATION_KEYPAIRUNSUPPORTEDWINDOWS = "UnsupportedOperation.KeyPairUnsupportedWindows"
// UNSUPPORTEDOPERATION_MODIFYENCRYPTIONNOTSUPPORTED = "UnsupportedOperation.ModifyEncryptionNotSupported"
@@ -6155,6 +6784,7 @@ func (c *Client) ResetInstanceWithContext(ctx context.Context, request *ResetIns
if request == nil {
request = NewResetInstanceRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ResetInstance")
if c.GetCredential() == nil {
return nil, errors.New("ResetInstance require credential")
@@ -6286,6 +6916,7 @@ func (c *Client) ResetInstancesInternetMaxBandwidthWithContext(ctx context.Conte
if request == nil {
request = NewResetInstancesInternetMaxBandwidthRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ResetInstancesInternetMaxBandwidth")
if c.GetCredential() == nil {
return nil, errors.New("ResetInstancesInternetMaxBandwidth require credential")
@@ -6415,6 +7046,7 @@ func (c *Client) ResetInstancesPasswordWithContext(ctx context.Context, request
if request == nil {
request = NewResetInstancesPasswordRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ResetInstancesPassword")
if c.GetCredential() == nil {
return nil, errors.New("ResetInstancesPassword require credential")
@@ -6610,6 +7242,7 @@ func (c *Client) ResetInstancesTypeWithContext(ctx context.Context, request *Res
if request == nil {
request = NewResetInstancesTypeRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ResetInstancesType")
if c.GetCredential() == nil {
return nil, errors.New("ResetInstancesType require credential")
@@ -6743,6 +7376,7 @@ func (c *Client) ResizeInstanceDisksWithContext(ctx context.Context, request *Re
if request == nil {
request = NewResizeInstanceDisksRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "ResizeInstanceDisks")
if c.GetCredential() == nil {
return nil, errors.New("ResizeInstanceDisks require credential")
@@ -6840,12 +7474,15 @@ func NewRunInstancesResponse() (response *RunInstancesResponse) {
// INVALIDPARAMETERVALUE_DEDICATEDCLUSTERNOTSUPPORTEDCHARGETYPE = "InvalidParameterValue.DedicatedClusterNotSupportedChargeType"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_DUPLICATETAGS = "InvalidParameterValue.DuplicateTags"
+// INVALIDPARAMETERVALUE_ELASTICNETWORKNOTEXIST = "InvalidParameterValue.ElasticNetworkNotExist"
+// INVALIDPARAMETERVALUE_ELASTICNETWORKVPCSUBNETMISMATCH = "InvalidParameterValue.ElasticNetworkVpcSubnetMismatch"
// INVALIDPARAMETERVALUE_EXTERNALIPQUOTALIMITED = "InvalidParameterValue.ExternalIpQuotaLimited"
// INVALIDPARAMETERVALUE_HPCCLUSTERIDZONEIDNOTMATCH = "InvalidParameterValue.HpcClusterIdZoneIdNotMatch"
// INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = "InvalidParameterValue.IPAddressMalformed"
// INVALIDPARAMETERVALUE_ILLEGALHOSTNAME = "InvalidParameterValue.IllegalHostName"
// INVALIDPARAMETERVALUE_INCORRECTFORMAT = "InvalidParameterValue.IncorrectFormat"
// INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"
+// INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTELASTICNETWORKS = "InvalidParameterValue.InstanceTypeNotSupportElasticNetworks"
// INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTHPCCLUSTER = "InvalidParameterValue.InstanceTypeNotSupportHpcCluster"
// INVALIDPARAMETERVALUE_INSTANCETYPEREQUIREDHPCCLUSTER = "InvalidParameterValue.InstanceTypeRequiredHpcCluster"
// INVALIDPARAMETERVALUE_INSUFFICIENTOFFERING = "InvalidParameterValue.InsufficientOffering"
@@ -6857,9 +7494,12 @@ func NewRunInstancesResponse() (response *RunInstancesResponse) {
// INVALIDPARAMETERVALUE_INVALIDIMAGEOSNAME = "InvalidParameterValue.InvalidImageOsName"
// INVALIDPARAMETERVALUE_INVALIDIMAGESTATE = "InvalidParameterValue.InvalidImageState"
// INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"
+// INVALIDPARAMETERVALUE_INVALIDNETWORKINTERFACEID = "InvalidParameterValue.InvalidNetworkInterfaceId"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERMINCOUNT = "InvalidParameterValue.InvalidParameterMinCount"
// INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword"
// INVALIDPARAMETERVALUE_INVALIDTIMEFORMAT = "InvalidParameterValue.InvalidTimeFormat"
// INVALIDPARAMETERVALUE_INVALIDUSERDATAFORMAT = "InvalidParameterValue.InvalidUserDataFormat"
+// INVALIDPARAMETERVALUE_INVALIDVPCIDSUBNETIDNOTFOUND = "InvalidParameterValue.InvalidVpcIdSubnetIdNotFound"
// INVALIDPARAMETERVALUE_ISPNOTSUPPORTFOREDGEZONE = "InvalidParameterValue.IspNotSupportForEdgeZone"
// INVALIDPARAMETERVALUE_ISPVALUEREPEATED = "InvalidParameterValue.IspValueRepeated"
// INVALIDPARAMETERVALUE_KEYPAIRNOTFOUND = "InvalidParameterValue.KeyPairNotFound"
@@ -6869,10 +7509,12 @@ func NewRunInstancesResponse() (response *RunInstancesResponse) {
// INVALIDPARAMETERVALUE_LAUNCHTEMPLATEVERSION = "InvalidParameterValue.LaunchTemplateVersion"
// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
// INVALIDPARAMETERVALUE_MUSTDHCPENABLEDVPC = "InvalidParameterValue.MustDhcpEnabledVpc"
+// INVALIDPARAMETERVALUE_MUSTENABLEDISRDMA = "InvalidParameterValue.MustEnabledIsRdma"
// INVALIDPARAMETERVALUE_NOTCDCSUBNET = "InvalidParameterValue.NotCdcSubnet"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
// INVALIDPARAMETERVALUE_SUBNETIDMALFORMED = "InvalidParameterValue.SubnetIdMalformed"
+// INVALIDPARAMETERVALUE_SUBNETIDZONEIDNOTMATCH = "InvalidParameterValue.SubnetIdZoneIdNotMatch"
// INVALIDPARAMETERVALUE_SUBNETNOTEXIST = "InvalidParameterValue.SubnetNotExist"
// INVALIDPARAMETERVALUE_TAGKEYNOTFOUND = "InvalidParameterValue.TagKeyNotFound"
// INVALIDPARAMETERVALUE_TAGQUOTALIMITEXCEEDED = "InvalidParameterValue.TagQuotaLimitExceeded"
@@ -6880,6 +7522,7 @@ func NewRunInstancesResponse() (response *RunInstancesResponse) {
// INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"
// INVALIDPARAMETERVALUE_VPCIDMALFORMED = "InvalidParameterValue.VpcIdMalformed"
// INVALIDPARAMETERVALUE_VPCIDNOTEXIST = "InvalidParameterValue.VpcIdNotExist"
+// INVALIDPARAMETERVALUE_VPCIDSUBNETIDNOTMATCH = "InvalidParameterValue.VpcIdSubnetIdNotMatch"
// INVALIDPARAMETERVALUE_VPCIDZONEIDNOTMATCH = "InvalidParameterValue.VpcIdZoneIdNotMatch"
// INVALIDPARAMETERVALUE_VPCNOTSUPPORTIPV6ADDRESS = "InvalidParameterValue.VpcNotSupportIpv6Address"
// INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"
@@ -6912,6 +7555,7 @@ func NewRunInstancesResponse() (response *RunInstancesResponse) {
// RESOURCEINSUFFICIENT_CLOUDDISKSOLDOUT = "ResourceInsufficient.CloudDiskSoldOut"
// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
// RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
+// RESOURCEINSUFFICIENT_INSUFFICIENTOFFERINGMINIMUM = "ResourceInsufficient.InsufficientOfferingMinimum"
// RESOURCEINSUFFICIENT_SPECIFIEDINSTANCETYPE = "ResourceInsufficient.SpecifiedInstanceType"
// RESOURCENOTFOUND_HPCCLUSTER = "ResourceNotFound.HpcCluster"
// RESOURCENOTFOUND_KEYPAIRNOTFOUND = "ResourceNotFound.KeyPairNotFound"
@@ -6925,14 +7569,19 @@ func NewRunInstancesResponse() (response *RunInstancesResponse) {
// UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
// UNSUPPORTEDOPERATION_HIBERNATIONOSVERSION = "UnsupportedOperation.HibernationOsVersion"
// UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTCONFIDENTIALITY = "UnsupportedOperation.InstanceTypeNotSupportConfidentiality"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTJUMBOFRAME = "UnsupportedOperation.InstanceTypeNotSupportJumboFrame"
// UNSUPPORTEDOPERATION_INSTANCESENABLEJUMBOWITHOUTREBOOT = "UnsupportedOperation.InstancesEnableJumboWithoutReboot"
// UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"
// UNSUPPORTEDOPERATION_INVALIDREGIONDISKENCRYPT = "UnsupportedOperation.InvalidRegionDiskEncrypt"
// UNSUPPORTEDOPERATION_KEYPAIRUNSUPPORTEDWINDOWS = "UnsupportedOperation.KeyPairUnsupportedWindows"
+// UNSUPPORTEDOPERATION_MINCOUNTUNSUPPORTEDCHARGETYPE = "UnsupportedOperation.MinCountUnsupportedChargeType"
+// UNSUPPORTEDOPERATION_MINCOUNTUNSUPPORTEDREGION = "UnsupportedOperation.MinCountUnsupportedRegion"
// UNSUPPORTEDOPERATION_NOINSTANCETYPESUPPORTSPOT = "UnsupportedOperation.NoInstanceTypeSupportSpot"
// UNSUPPORTEDOPERATION_NOTSUPPORTIMPORTINSTANCESACTIONTIMER = "UnsupportedOperation.NotSupportImportInstancesActionTimer"
// UNSUPPORTEDOPERATION_ONLYFORPREPAIDACCOUNT = "UnsupportedOperation.OnlyForPrepaidAccount"
+// UNSUPPORTEDOPERATION_PERIODICCONTRACTNOTSUPPORTMANUALRENEW = "UnsupportedOperation.PeriodicContractNotSupportManualRenew"
// UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"
// UNSUPPORTEDOPERATION_SPOTUNSUPPORTEDREGION = "UnsupportedOperation.SpotUnsupportedRegion"
// UNSUPPORTEDOPERATION_UNDERWRITINGINSTANCETYPEONLYSUPPORTAUTORENEW = "UnsupportedOperation.UnderwritingInstanceTypeOnlySupportAutoRenew"
@@ -7009,12 +7658,15 @@ func (c *Client) RunInstances(request *RunInstancesRequest) (response *RunInstan
// INVALIDPARAMETERVALUE_DEDICATEDCLUSTERNOTSUPPORTEDCHARGETYPE = "InvalidParameterValue.DedicatedClusterNotSupportedChargeType"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_DUPLICATETAGS = "InvalidParameterValue.DuplicateTags"
+// INVALIDPARAMETERVALUE_ELASTICNETWORKNOTEXIST = "InvalidParameterValue.ElasticNetworkNotExist"
+// INVALIDPARAMETERVALUE_ELASTICNETWORKVPCSUBNETMISMATCH = "InvalidParameterValue.ElasticNetworkVpcSubnetMismatch"
// INVALIDPARAMETERVALUE_EXTERNALIPQUOTALIMITED = "InvalidParameterValue.ExternalIpQuotaLimited"
// INVALIDPARAMETERVALUE_HPCCLUSTERIDZONEIDNOTMATCH = "InvalidParameterValue.HpcClusterIdZoneIdNotMatch"
// INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = "InvalidParameterValue.IPAddressMalformed"
// INVALIDPARAMETERVALUE_ILLEGALHOSTNAME = "InvalidParameterValue.IllegalHostName"
// INVALIDPARAMETERVALUE_INCORRECTFORMAT = "InvalidParameterValue.IncorrectFormat"
// INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"
+// INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTELASTICNETWORKS = "InvalidParameterValue.InstanceTypeNotSupportElasticNetworks"
// INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTHPCCLUSTER = "InvalidParameterValue.InstanceTypeNotSupportHpcCluster"
// INVALIDPARAMETERVALUE_INSTANCETYPEREQUIREDHPCCLUSTER = "InvalidParameterValue.InstanceTypeRequiredHpcCluster"
// INVALIDPARAMETERVALUE_INSUFFICIENTOFFERING = "InvalidParameterValue.InsufficientOffering"
@@ -7026,9 +7678,12 @@ func (c *Client) RunInstances(request *RunInstancesRequest) (response *RunInstan
// INVALIDPARAMETERVALUE_INVALIDIMAGEOSNAME = "InvalidParameterValue.InvalidImageOsName"
// INVALIDPARAMETERVALUE_INVALIDIMAGESTATE = "InvalidParameterValue.InvalidImageState"
// INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"
+// INVALIDPARAMETERVALUE_INVALIDNETWORKINTERFACEID = "InvalidParameterValue.InvalidNetworkInterfaceId"
+// INVALIDPARAMETERVALUE_INVALIDPARAMETERMINCOUNT = "InvalidParameterValue.InvalidParameterMinCount"
// INVALIDPARAMETERVALUE_INVALIDPASSWORD = "InvalidParameterValue.InvalidPassword"
// INVALIDPARAMETERVALUE_INVALIDTIMEFORMAT = "InvalidParameterValue.InvalidTimeFormat"
// INVALIDPARAMETERVALUE_INVALIDUSERDATAFORMAT = "InvalidParameterValue.InvalidUserDataFormat"
+// INVALIDPARAMETERVALUE_INVALIDVPCIDSUBNETIDNOTFOUND = "InvalidParameterValue.InvalidVpcIdSubnetIdNotFound"
// INVALIDPARAMETERVALUE_ISPNOTSUPPORTFOREDGEZONE = "InvalidParameterValue.IspNotSupportForEdgeZone"
// INVALIDPARAMETERVALUE_ISPVALUEREPEATED = "InvalidParameterValue.IspValueRepeated"
// INVALIDPARAMETERVALUE_KEYPAIRNOTFOUND = "InvalidParameterValue.KeyPairNotFound"
@@ -7038,10 +7693,12 @@ func (c *Client) RunInstances(request *RunInstancesRequest) (response *RunInstan
// INVALIDPARAMETERVALUE_LAUNCHTEMPLATEVERSION = "InvalidParameterValue.LaunchTemplateVersion"
// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
// INVALIDPARAMETERVALUE_MUSTDHCPENABLEDVPC = "InvalidParameterValue.MustDhcpEnabledVpc"
+// INVALIDPARAMETERVALUE_MUSTENABLEDISRDMA = "InvalidParameterValue.MustEnabledIsRdma"
// INVALIDPARAMETERVALUE_NOTCDCSUBNET = "InvalidParameterValue.NotCdcSubnet"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// INVALIDPARAMETERVALUE_SNAPSHOTIDMALFORMED = "InvalidParameterValue.SnapshotIdMalformed"
// INVALIDPARAMETERVALUE_SUBNETIDMALFORMED = "InvalidParameterValue.SubnetIdMalformed"
+// INVALIDPARAMETERVALUE_SUBNETIDZONEIDNOTMATCH = "InvalidParameterValue.SubnetIdZoneIdNotMatch"
// INVALIDPARAMETERVALUE_SUBNETNOTEXIST = "InvalidParameterValue.SubnetNotExist"
// INVALIDPARAMETERVALUE_TAGKEYNOTFOUND = "InvalidParameterValue.TagKeyNotFound"
// INVALIDPARAMETERVALUE_TAGQUOTALIMITEXCEEDED = "InvalidParameterValue.TagQuotaLimitExceeded"
@@ -7049,6 +7706,7 @@ func (c *Client) RunInstances(request *RunInstancesRequest) (response *RunInstan
// INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge"
// INVALIDPARAMETERVALUE_VPCIDMALFORMED = "InvalidParameterValue.VpcIdMalformed"
// INVALIDPARAMETERVALUE_VPCIDNOTEXIST = "InvalidParameterValue.VpcIdNotExist"
+// INVALIDPARAMETERVALUE_VPCIDSUBNETIDNOTMATCH = "InvalidParameterValue.VpcIdSubnetIdNotMatch"
// INVALIDPARAMETERVALUE_VPCIDZONEIDNOTMATCH = "InvalidParameterValue.VpcIdZoneIdNotMatch"
// INVALIDPARAMETERVALUE_VPCNOTSUPPORTIPV6ADDRESS = "InvalidParameterValue.VpcNotSupportIpv6Address"
// INVALIDPARAMETERVALUE_ZONENOTSUPPORTED = "InvalidParameterValue.ZoneNotSupported"
@@ -7081,6 +7739,7 @@ func (c *Client) RunInstances(request *RunInstancesRequest) (response *RunInstan
// RESOURCEINSUFFICIENT_CLOUDDISKSOLDOUT = "ResourceInsufficient.CloudDiskSoldOut"
// RESOURCEINSUFFICIENT_CLOUDDISKUNAVAILABLE = "ResourceInsufficient.CloudDiskUnavailable"
// RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
+// RESOURCEINSUFFICIENT_INSUFFICIENTOFFERINGMINIMUM = "ResourceInsufficient.InsufficientOfferingMinimum"
// RESOURCEINSUFFICIENT_SPECIFIEDINSTANCETYPE = "ResourceInsufficient.SpecifiedInstanceType"
// RESOURCENOTFOUND_HPCCLUSTER = "ResourceNotFound.HpcCluster"
// RESOURCENOTFOUND_KEYPAIRNOTFOUND = "ResourceNotFound.KeyPairNotFound"
@@ -7094,14 +7753,19 @@ func (c *Client) RunInstances(request *RunInstancesRequest) (response *RunInstan
// UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
// UNSUPPORTEDOPERATION_HIBERNATIONOSVERSION = "UnsupportedOperation.HibernationOsVersion"
// UNSUPPORTEDOPERATION_INSTANCESTATEISOLATING = "UnsupportedOperation.InstanceStateIsolating"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTCONFIDENTIALITY = "UnsupportedOperation.InstanceTypeNotSupportConfidentiality"
+// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
// UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTJUMBOFRAME = "UnsupportedOperation.InstanceTypeNotSupportJumboFrame"
// UNSUPPORTEDOPERATION_INSTANCESENABLEJUMBOWITHOUTREBOOT = "UnsupportedOperation.InstancesEnableJumboWithoutReboot"
// UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"
// UNSUPPORTEDOPERATION_INVALIDREGIONDISKENCRYPT = "UnsupportedOperation.InvalidRegionDiskEncrypt"
// UNSUPPORTEDOPERATION_KEYPAIRUNSUPPORTEDWINDOWS = "UnsupportedOperation.KeyPairUnsupportedWindows"
+// UNSUPPORTEDOPERATION_MINCOUNTUNSUPPORTEDCHARGETYPE = "UnsupportedOperation.MinCountUnsupportedChargeType"
+// UNSUPPORTEDOPERATION_MINCOUNTUNSUPPORTEDREGION = "UnsupportedOperation.MinCountUnsupportedRegion"
// UNSUPPORTEDOPERATION_NOINSTANCETYPESUPPORTSPOT = "UnsupportedOperation.NoInstanceTypeSupportSpot"
// UNSUPPORTEDOPERATION_NOTSUPPORTIMPORTINSTANCESACTIONTIMER = "UnsupportedOperation.NotSupportImportInstancesActionTimer"
// UNSUPPORTEDOPERATION_ONLYFORPREPAIDACCOUNT = "UnsupportedOperation.OnlyForPrepaidAccount"
+// UNSUPPORTEDOPERATION_PERIODICCONTRACTNOTSUPPORTMANUALRENEW = "UnsupportedOperation.PeriodicContractNotSupportManualRenew"
// UNSUPPORTEDOPERATION_RAWLOCALDISKINSREINSTALLTOQCOW2 = "UnsupportedOperation.RawLocalDiskInsReinstalltoQcow2"
// UNSUPPORTEDOPERATION_SPOTUNSUPPORTEDREGION = "UnsupportedOperation.SpotUnsupportedRegion"
// UNSUPPORTEDOPERATION_UNDERWRITINGINSTANCETYPEONLYSUPPORTAUTORENEW = "UnsupportedOperation.UnderwritingInstanceTypeOnlySupportAutoRenew"
@@ -7112,6 +7776,7 @@ func (c *Client) RunInstancesWithContext(ctx context.Context, request *RunInstan
if request == nil {
request = NewRunInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "RunInstances")
if c.GetCredential() == nil {
return nil, errors.New("RunInstances require credential")
@@ -7231,6 +7896,7 @@ func (c *Client) StartInstancesWithContext(ctx context.Context, request *StartIn
if request == nil {
request = NewStartInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "StartInstances")
if c.GetCredential() == nil {
return nil, errors.New("StartInstances require credential")
@@ -7368,6 +8034,7 @@ func (c *Client) StopInstancesWithContext(ctx context.Context, request *StopInst
if request == nil {
request = NewStopInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "StopInstances")
if c.GetCredential() == nil {
return nil, errors.New("StopInstances require credential")
@@ -7469,6 +8136,7 @@ func (c *Client) SyncImagesWithContext(ctx context.Context, request *SyncImagesR
if request == nil {
request = NewSyncImagesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "SyncImages")
if c.GetCredential() == nil {
return nil, errors.New("SyncImages require credential")
@@ -7624,6 +8292,7 @@ func (c *Client) TerminateInstancesWithContext(ctx context.Context, request *Ter
if request == nil {
request = NewTerminateInstancesRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "cvm", APIVersion, "TerminateInstances")
if c.GetCredential() == nil {
return nil, errors.New("TerminateInstances require credential")
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/errors.go
index 713a42e61b..ae0bb7392f 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/errors.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/errors.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -32,6 +32,9 @@ const (
// You cannot share images with yourself.
FAILEDOPERATION_ACCOUNTISYOURSELF = "FailedOperation.AccountIsYourSelf"
+ // The instance `ins-xxxxxxx` is already in the instance placement group `dgroup-xxxxxx`.
+ FAILEDOPERATION_ALREADYINDISASTERRECOVERGROUP = "FailedOperation.AlreadyInDisasterRecoverGroup"
+
// BYOL images cannot be shared.
FAILEDOPERATION_BYOLIMAGESHAREFAILED = "FailedOperation.BYOLImageShareFailed"
@@ -56,7 +59,7 @@ const (
// The image is busy. Please try again later.
FAILEDOPERATION_INVALIDIMAGESTATE = "FailedOperation.InvalidImageState"
- //
+ // The applicationRole instance does not support the operation.
FAILEDOPERATION_INVALIDINSTANCEAPPLICATIONROLE = "FailedOperation.InvalidInstanceApplicationRole"
// The EMR instance `ins-xxxxxxxx` does not support this operation.
@@ -137,7 +140,7 @@ const (
// Invalid filter.
INVALIDFILTER = "InvalidFilter"
- // [`Filter`](https://intl.cloud.tencent.com/document/api/213/15753?from_cn_redirect=1#Filter)
+ // The value of [`Filter`](https://www.tencentcloud.com/document/api/213/15753?from_cn_redirect=1#Filter) exceeds the limit.
INVALIDFILTERVALUE_LIMITEXCEEDED = "InvalidFilterValue.LimitExceeded"
// The specified operation on this CDH instance is not support .
@@ -182,7 +185,7 @@ const (
// No instance found.
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
- // The specified InstanceName exceeds the maximum length of 60 bytes.
+ // The specified InstanceName exceeds the maximum length of 128 bytes.
INVALIDINSTANCENAME_TOOLONG = "InvalidInstanceName.TooLong"
// This instance does not meet the [Return Policy](https://intl.cloud.tencent.com/document/product/213/9711?from_cn_redirect=1) for prepaid instances.
@@ -224,7 +227,7 @@ const (
// Automatic snapshot creation is not supported.
INVALIDPARAMETER_AUTOSNAPSHOTNOTSUPPORTED = "InvalidParameter.AutoSnapshotNotSupported"
- //
+ // The parameter CdcId is not supported.
INVALIDPARAMETER_CDCNOTSUPPORTED = "InvalidParameter.CdcNotSupported"
// RootDisk ID should not be passed to DataDiskIds.
@@ -350,7 +353,7 @@ const (
// Invalid `CamRoleName`. This parameter must contain only letters, numbers and symbols (`+`, `=`, `,`, `.`, `@`, `_`, `-`).
INVALIDPARAMETERVALUE_CAMROLENAMEMALFORMED = "InvalidParameterValue.CamRoleNameMalformed"
- //
+ // CDH disk expansion only supports LOCAL_BASIC and LOCAL_SSD.
INVALIDPARAMETERVALUE_CDHONLYLOCALDATADISKRESIZE = "InvalidParameterValue.CdhOnlyLocalDataDiskResize"
// Corresponding CHC hosts not found.
@@ -365,7 +368,7 @@ const (
// Invalid number of cores.
INVALIDPARAMETERVALUE_CORECOUNTVALUE = "InvalidParameterValue.CoreCountValue"
- //
+ // CDC does not support the specified billing mode.
INVALIDPARAMETERVALUE_DEDICATEDCLUSTERNOTSUPPORTEDCHARGETYPE = "InvalidParameterValue.DedicatedClusterNotSupportedChargeType"
// A deployment VPC already exists.
@@ -380,13 +383,19 @@ const (
// Duplicate tags.
INVALIDPARAMETERVALUE_DUPLICATETAGS = "InvalidParameterValue.DuplicateTags"
+ // ENI data does not exist.
+ INVALIDPARAMETERVALUE_ELASTICNETWORKNOTEXIST = "InvalidParameterValue.ElasticNetworkNotExist"
+
+ // The eni data vpc subnet is mismatched. it must be in the same vpc but different subnets.
+ INVALIDPARAMETERVALUE_ELASTICNETWORKVPCSUBNETMISMATCH = "InvalidParameterValue.ElasticNetworkVpcSubnetMismatch"
+
// The number of requested public IP addresses exceeds the quota of this instance type.
INVALIDPARAMETERVALUE_EXTERNALIPQUOTALIMITED = "InvalidParameterValue.ExternalIpQuotaLimited"
// Non-GPU instances cannot be changed to the GPU instance.
INVALIDPARAMETERVALUE_GPUINSTANCEFAMILY = "InvalidParameterValue.GPUInstanceFamily"
- //
+ // Your High-Performance Computing (HPC) cluster is already bound to another Availability Zone, so you cannot purchase machines in the current Availability Zone.
INVALIDPARAMETERVALUE_HPCCLUSTERIDZONEIDNOTMATCH = "InvalidParameterValue.HpcClusterIdZoneIdNotMatch"
// Invalid IP format
@@ -407,9 +416,15 @@ const (
// Invalid instance ID. Please enter a valid ID, such as ins-xxxxxxxx (“x” represents a lower-case letter or a number).
INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed"
+ // Operation not supported for instances with different billing modes.
+ INVALIDPARAMETERVALUE_INSTANCENOTSUPPORTEDMIXPRICINGMODEL = "InvalidParameterValue.InstanceNotSupportedMixPricingModel"
+
// The specified instance type does not exist.
INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = "InvalidParameterValue.InstanceTypeNotFound"
+ // The instance type does not support eni data.
+ INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTELASTICNETWORKS = "InvalidParameterValue.InstanceTypeNotSupportElasticNetworks"
+
// This type of instances cannot be added to the HPC cluster.
INVALIDPARAMETERVALUE_INSTANCETYPENOTSUPPORTHPCCLUSTER = "InvalidParameterValue.InstanceTypeNotSupportHpcCluster"
@@ -452,7 +467,7 @@ const (
// The image cannot be used to reinstall the current instance.
INVALIDPARAMETERVALUE_INVALIDIMAGEIDFORRETSETINSTANCE = "InvalidParameterValue.InvalidImageIdForRetsetInstance"
- //
+ // The specified image ID is a shared image.
INVALIDPARAMETERVALUE_INVALIDIMAGEIDISSHARED = "InvalidParameterValue.InvalidImageIdIsShared"
// The operating system of the specified image is not available in the current region.
@@ -464,6 +479,9 @@ const (
// The instance configuration is upgraded for free and cannot be downgraded within 3 months.
INVALIDPARAMETERVALUE_INVALIDINSTANCESOURCE = "InvalidParameterValue.InvalidInstanceSource"
+ // The specified instance type does not support exclusive sales payment mode.
+ INVALIDPARAMETERVALUE_INVALIDINSTANCETYPEUNDERWRITE = "InvalidParameterValue.InvalidInstanceTypeUnderwrite"
+
// Invalid IP address.
INVALIDPARAMETERVALUE_INVALIDIPFORMAT = "InvalidParameterValue.InvalidIpFormat"
@@ -479,6 +497,12 @@ const (
// Invalid license type.
INVALIDPARAMETERVALUE_INVALIDLICENSETYPE = "InvalidParameterValue.InvalidLicenseType"
+ // The specified eni id is not a vrdma network interface card.
+ INVALIDPARAMETERVALUE_INVALIDNETWORKINTERFACEID = "InvalidParameterValue.InvalidNetworkInterfaceId"
+
+ // The value of parameter MinCount must be less than InstanceCount.
+ INVALIDPARAMETERVALUE_INVALIDPARAMETERMINCOUNT = "InvalidParameterValue.InvalidParameterMinCount"
+
// Invalid parameter value.
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUELIMIT = "InvalidParameterValue.InvalidParameterValueLimit"
@@ -497,6 +521,9 @@ const (
// Invalid fuzzy query string
INVALIDPARAMETERVALUE_INVALIDVAGUENAME = "InvalidParameterValue.InvalidVagueName"
+ // This special VpcId or SubnetId is not found in the elastic network data structure.
+ INVALIDPARAMETERVALUE_INVALIDVPCIDSUBNETIDNOTFOUND = "InvalidParameterValue.InvalidVpcIdSubnetIdNotFound"
+
// Edge zones do not support this ISP.
INVALIDPARAMETERVALUE_ISPNOTSUPPORTFOREDGEZONE = "InvalidParameterValue.IspNotSupportForEdgeZone"
@@ -536,6 +563,9 @@ const (
// The parameter value must be a DHCP-enabled VPC.
INVALIDPARAMETERVALUE_MUSTDHCPENABLEDVPC = "InvalidParameterValue.MustDhcpEnabledVpc"
+ // The parameter value must enable the elastic rdma api.
+ INVALIDPARAMETERVALUE_MUSTENABLEDISRDMA = "InvalidParameterValue.MustEnabledIsRdma"
+
// The subnet is not in the CDC cluster.
INVALIDPARAMETERVALUE_NOTCDCSUBNET = "InvalidParameterValue.NotCdcSubnet"
@@ -551,13 +581,13 @@ const (
// Preheating is not supported in this availability zone.
INVALIDPARAMETERVALUE_PREHEATNOTSUPPORTEDZONE = "InvalidParameterValue.PreheatNotSupportedZone"
- //
+ // The pre-warming region is unavailable. Please check if the pre-warming region is correct.
INVALIDPARAMETERVALUE_PREHEATUNAVAILABLEZONES = "InvalidParameterValue.PreheatUnavailableZones"
// Invalid parameter value: invalid parameter value range.
INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
- //
+ // The request requires a regional image.
INVALIDPARAMETERVALUE_REQUIREDLOCATIONIMAGE = "InvalidParameterValue.RequiredLocationImage"
// Invalid snapshot ID. Provide a snapshot ID in the format of snap-xxxxxxxx, where the letter x refers to lowercase letter or number.
@@ -566,6 +596,9 @@ const (
// Invalid subnet ID. Please provide a subnet ID in the format of subnet-xxxxxxxx, where “x” can be a lowercase letter or number.
INVALIDPARAMETERVALUE_SUBNETIDMALFORMED = "InvalidParameterValue.SubnetIdMalformed"
+ // The subnet ID availability zone does not match the instance location.
+ INVALIDPARAMETERVALUE_SUBNETIDZONEIDNOTMATCH = "InvalidParameterValue.SubnetIdZoneIdNotMatch"
+
// Creation failed: the subnet does not exist. Please specify another subnet.
INVALIDPARAMETERVALUE_SUBNETNOTEXIST = "InvalidParameterValue.SubnetNotExist"
@@ -593,6 +626,9 @@ const (
// The specified VpcId doesn't exist.
INVALIDPARAMETERVALUE_VPCIDNOTEXIST = "InvalidParameterValue.VpcIdNotExist"
+ // The specified VpcId and SubnetId do not match.
+ INVALIDPARAMETERVALUE_VPCIDSUBNETIDNOTMATCH = "InvalidParameterValue.VpcIdSubnetIdNotMatch"
+
// The VPC and instance must be in the same availability zone.
INVALIDPARAMETERVALUE_VPCIDZONEIDNOTMATCH = "InvalidParameterValue.VpcIdZoneIdNotMatch"
@@ -656,7 +692,7 @@ const (
// The number of EIPs of an ENI contained in a specific instance has exceeded the maximum allowed EIPs of the target instance type. Please delete some EIPs and try again.
LIMITEXCEEDED_EIPNUMLIMIT = "LimitExceeded.EipNumLimit"
- //
+ // The number of network interfaces exceeds the maximum limit for the instance.
LIMITEXCEEDED_ENILIMITINSTANCETYPE = "LimitExceeded.EniLimitInstanceType"
// The number of ENIs on a specified instance exceeds the maximum ENIs allowed for the target instance type. Delete some ENIs and try again.
@@ -689,7 +725,7 @@ const (
// Your quota for monthly-subscribed instances is used up. Increase your quota and try again.
LIMITEXCEEDED_PREPAYQUOTA = "LimitExceeded.PrepayQuota"
- //
+ // The purchased quantity of committed instances has reached the maximum quota.
LIMITEXCEEDED_PREPAYUNDERWRITEQUOTA = "LimitExceeded.PrepayUnderwriteQuota"
// The number of security groups exceeds the quota limit.
@@ -725,7 +761,7 @@ const (
// An identical job is running.
MUTEXOPERATION_TASKRUNNING = "MutexOperation.TaskRunning"
- //
+ // Operation not supported for this account.
OPERATIONDENIED_ACCOUNTNOTSUPPORTED = "OperationDenied.AccountNotSupported"
// A CHC instance without network configured is not allowed for the installation of a cloud image
@@ -749,13 +785,13 @@ const (
// The resource is in use.
RESOURCEINUSE = "ResourceInUse"
- //
+ // The disk rollback is in progress. Please try again later.
RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking"
// The availability zone has been sold out.
RESOURCEINSUFFICIENT_AVAILABILITYZONESOLDOUT = "ResourceInsufficient.AvailabilityZoneSoldOut"
- //
+ // Insufficient subnet resources.
RESOURCEINSUFFICIENT_CIDRBLOCK = "ResourceInsufficient.CidrBlock"
// The specified cloud disk has been sold out.
@@ -767,9 +803,12 @@ const (
// The number of instances exceeded the quota limit of spread placement groups.
RESOURCEINSUFFICIENT_DISASTERRECOVERGROUPCVMQUOTA = "ResourceInsufficient.DisasterRecoverGroupCvmQuota"
- //
+ // Insufficient security group quota.
RESOURCEINSUFFICIENT_INSUFFICIENTGROUPQUOTA = "ResourceInsufficient.InsufficientGroupQuota"
+ // Inventory fails to satisfy the minimum purchasable quantity.
+ RESOURCEINSUFFICIENT_INSUFFICIENTOFFERINGMINIMUM = "ResourceInsufficient.InsufficientOfferingMinimum"
+
// The specified instance type is insufficient.
RESOURCEINSUFFICIENT_SPECIFIEDINSTANCETYPE = "ResourceInsufficient.SpecifiedInstanceType"
@@ -785,7 +824,7 @@ const (
// This instance type is not supported in the AZ.
RESOURCENOTFOUND_INVALIDZONEINSTANCETYPE = "ResourceNotFound.InvalidZoneInstanceType"
- //
+ // The specified key pair does not exist.
RESOURCENOTFOUND_KEYPAIRNOTFOUND = "ResourceNotFound.KeyPairNotFound"
// No default CBS resources are available.
@@ -794,6 +833,9 @@ const (
// No default CBS resources are available.
RESOURCENOTFOUND_NODEFAULTCBSWITHREASON = "ResourceNotFound.NoDefaultCbsWithReason"
+ // Resources are unavailable.
+ RESOURCEUNAVAILABLE = "ResourceUnavailable"
+
// This instance type is unavailable in the availability zone.
RESOURCEUNAVAILABLE_INSTANCETYPE = "ResourceUnavailable.InstanceType"
@@ -812,7 +854,7 @@ const (
// A general error occurred during the security group service API call.
SECGROUPACTIONFAILURE = "SecGroupActionFailure"
- //
+ // Unauthorized operation.
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// The specified image does not belong to the user.
@@ -842,10 +884,16 @@ const (
// The specified instance or network cannot use the bandwidth package.
UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported"
+ // The far end ssd disk does not support this operation.
+ UNSUPPORTEDOPERATION_CBSREMOTESSDNOTSUPPORT = "UnsupportedOperation.CbsRemoteSsdNotSupport"
+
+ // Commercial image instance use cannot be adjusted for payment mode.
+ UNSUPPORTEDOPERATION_COMMERCIALIMAGECHANGECHARGETYPE = "UnsupportedOperation.CommercialImageChangeChargeType"
+
// Only one snapshot can be created in 24 hours.
UNSUPPORTEDOPERATION_DISKSNAPCREATETIMETOOOLD = "UnsupportedOperation.DiskSnapCreateTimeTooOld"
- //
+ // Edge Zone instances do not support this operation.
UNSUPPORTEDOPERATION_EDGEZONEINSTANCE = "UnsupportedOperation.EdgeZoneInstance"
// The selected edge zone does not support cloud disk operations.
@@ -863,7 +911,7 @@ const (
// Instances with hibernation disabled are not supported.
UNSUPPORTEDOPERATION_HIBERNATIONFORNORMALINSTANCE = "UnsupportedOperation.HibernationForNormalInstance"
- //
+ // The current image does not support hibernation.
UNSUPPORTEDOPERATION_HIBERNATIONOSVERSION = "UnsupportedOperation.HibernationOsVersion"
// IPv6 instances cannot be migrated from Classiclink to VPC.
@@ -878,13 +926,19 @@ const (
// A mixed payment mode is not supported.
UNSUPPORTEDOPERATION_INSTANCEMIXEDPRICINGMODEL = "UnsupportedOperation.InstanceMixedPricingModel"
+ //
+ UNSUPPORTEDOPERATION_INSTANCEMIXEDRESETINSTANCETYPE = "UnsupportedOperation.InstanceMixedResetInstanceType"
+
+ // Central AZ and edge zone instances cannot be mixed in batch operation.
+ UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = "UnsupportedOperation.InstanceMixedZoneType"
+
// The specified instance does not support operating system switching.
UNSUPPORTEDOPERATION_INSTANCEOSCONVERTOSNOTSUPPORT = "UnsupportedOperation.InstanceOsConvertOsNotSupport"
// The instance `ins-xxxxxx` with the `Xserver windows2012cndatacenterx86_64` operating system does not support this operation.
UNSUPPORTEDOPERATION_INSTANCEOSWINDOWS = "UnsupportedOperation.InstanceOsWindows"
- //
+ // The current instance is in a failed OS reinstallation state and does not support this operation. We recommend reinstalling the operating system again. Alternatively, you may terminate/return the instance or submit a support ticket.
UNSUPPORTEDOPERATION_INSTANCEREINSTALLFAILED = "UnsupportedOperation.InstanceReinstallFailed"
// This CVM is blocked. Please submit a ticket.
@@ -950,6 +1004,15 @@ const (
// The instance is being terminated, and the operation is not supported.
UNSUPPORTEDOPERATION_INSTANCESTATETERMINATING = "UnsupportedOperation.InstanceStateTerminating"
+ // The instance type does not support setting the `Confidentiality` status.
+ UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTCONFIDENTIALITY = "UnsupportedOperation.InstanceTypeNotSupportConfidentiality"
+
+ // The instance type does not support setting the `GridDriverService` status.
+ UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTGRIDLICENCE = "UnsupportedOperation.InstanceTypeNotSupportGridLicence"
+
+ // The instance type does not support setting the HighDensityMode status.
+ UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTHIGHDENSITYMODESETTING = "UnsupportedOperation.InstanceTypeNotSupportHighDensityModeSetting"
+
// The instance type does not support setting the `EnableJumboFrame` status.
UNSUPPORTEDOPERATION_INSTANCETYPENOTSUPPORTJUMBOFRAME = "UnsupportedOperation.InstanceTypeNotSupportJumboFrame"
@@ -965,7 +1028,10 @@ const (
// The specified disk is not supported.
UNSUPPORTEDOPERATION_INVALIDDISK = "UnsupportedOperation.InvalidDisk"
- //
+ // Cloud block storage does not support backup points.
+ UNSUPPORTEDOPERATION_INVALIDDISKBACKUPQUOTA = "UnsupportedOperation.InvalidDiskBackupQuota"
+
+ // Fast rollback is not supported.
UNSUPPORTEDOPERATION_INVALIDDISKFASTROLLBACK = "UnsupportedOperation.InvalidDiskFastRollback"
// The image license type does not match the instance. Select another image.
@@ -1004,6 +1070,12 @@ const (
// The custom images created with the market images cannot be exported.
UNSUPPORTEDOPERATION_MARKETIMAGEEXPORTUNSUPPORTED = "UnsupportedOperation.MarketImageExportUnsupported"
+ // This billing mode does not support the MinCount parameter.
+ UNSUPPORTEDOPERATION_MINCOUNTUNSUPPORTEDCHARGETYPE = "UnsupportedOperation.MinCountUnsupportedChargeType"
+
+ // This region does not currently support the MinCount parameter.
+ UNSUPPORTEDOPERATION_MINCOUNTUNSUPPORTEDREGION = "UnsupportedOperation.MinCountUnsupportedRegion"
+
// Encryption attributes of the system disk cannot be modified.
UNSUPPORTEDOPERATION_MODIFYENCRYPTIONNOTSUPPORTED = "UnsupportedOperation.ModifyEncryptionNotSupported"
@@ -1034,6 +1106,9 @@ const (
// The original instance type is invalid.
UNSUPPORTEDOPERATION_ORIGINALINSTANCETYPEINVALID = "UnsupportedOperation.OriginalInstanceTypeInvalid"
+ //
+ UNSUPPORTEDOPERATION_PERIODICCONTRACTNOTSUPPORTMANUALRENEW = "UnsupportedOperation.PeriodicContractNotSupportManualRenew"
+
// Image preheating is not supported under your account.
UNSUPPORTEDOPERATION_PREHEATIMAGE = "UnsupportedOperation.PreheatImage"
@@ -1064,6 +1139,9 @@ const (
// Shared images cannot be exported.
UNSUPPORTEDOPERATION_SHAREDIMAGEEXPORTUNSUPPORTED = "UnsupportedOperation.SharedImageExportUnsupported"
+ //
+ UNSUPPORTEDOPERATION_SHAREDIMAGEMODIFYUNSUPPORTED = "UnsupportedOperation.SharedImageModifyUnsupported"
+
// This special instance type does not support the operation.
UNSUPPORTEDOPERATION_SPECIALINSTANCETYPE = "UnsupportedOperation.SpecialInstanceType"
@@ -1079,16 +1157,19 @@ const (
// The specified image does not support synchronization to an encrypted custom image.
UNSUPPORTEDOPERATION_SYNCENCRYPTIMAGENOTSUPPORT = "UnsupportedOperation.SyncEncryptImageNotSupport"
- //
+ // The request does not support this type of system disk.
UNSUPPORTEDOPERATION_SYSTEMDISKTYPE = "UnsupportedOperation.SystemDiskType"
// The operation is not supported when TencentCloud Automation Tools are offline.
UNSUPPORTEDOPERATION_TATAGENTNOTONLINE = "UnsupportedOperation.TatAgentNotOnline"
+ // Monthly subscription to subcontracted exclusive sale does not support exclusive sales discount higher than existing annual/monthly subscription discount.
+ UNSUPPORTEDOPERATION_UNDERWRITEDISCOUNTGREATERTHANPREPAIDDISCOUNT = "UnsupportedOperation.UnderwriteDiscountGreaterThanPrepaidDiscount"
+
// For an underwriting instance, `RenewFlag` can only be set to `NOTIFY_AND_AUTO_RENEW`.
UNSUPPORTEDOPERATION_UNDERWRITINGINSTANCETYPEONLYSUPPORTAUTORENEW = "UnsupportedOperation.UnderwritingInstanceTypeOnlySupportAutoRenew"
- //
+ // The current instance does not allow resizing to non-ARM instance types.
UNSUPPORTEDOPERATION_UNSUPPORTEDARMCHANGEINSTANCEFAMILY = "UnsupportedOperation.UnsupportedARMChangeInstanceFamily"
// The specified model does not support cross-model configuration adjustment.
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/models.go
index 075df4a41c..2be57373b1 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/models.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/cvm/v20170312/models.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -48,10 +48,10 @@ type AllocateHostsRequestParams struct {
// A string used to ensure the idempotency of the request.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
- // Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.
+ // Not supported. Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.
HostChargePrepaid *ChargePrepaid `json:"HostChargePrepaid,omitnil,omitempty" name:"HostChargePrepaid"`
- // Instance billing model, only monthly or yearly subscription supported. Default value: `PREPAID'.
+ // Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
`POSTPAID_BY_HOUR`: Hourly-based pay-as-you-go
HostChargeType *string `json:"HostChargeType,omitnil,omitempty" name:"HostChargeType"`
// CDH instance model. Default value: `HS1`.
@@ -73,10 +73,10 @@ type AllocateHostsRequest struct {
// A string used to ensure the idempotency of the request.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
- // Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.
+ // Not supported. Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.
HostChargePrepaid *ChargePrepaid `json:"HostChargePrepaid,omitnil,omitempty" name:"HostChargePrepaid"`
- // Instance billing model, only monthly or yearly subscription supported. Default value: `PREPAID'.
+ // Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
`POSTPAID_BY_HOUR`: Hourly-based pay-as-you-go
HostChargeType *string `json:"HostChargeType,omitnil,omitempty" name:"HostChargeType"`
// CDH instance model. Default value: `HS1`.
@@ -283,6 +283,16 @@ type ChargePrepaid struct {
type ChcDeployExtraConfig struct {
+ MiniOsType *string `json:"MiniOsType,omitnil,omitempty" name:"MiniOsType"`
+
+
+ BootType *string `json:"BootType,omitnil,omitempty" name:"BootType"`
+
+
+ BootFile *string `json:"BootFile,omitnil,omitempty" name:"BootFile"`
+
+
+ NextServerAddress *string `json:"NextServerAddress,omitnil,omitempty" name:"NextServerAddress"`
}
type ChcHost struct {
@@ -404,6 +414,9 @@ type ConfigureChcAssistVpcRequestParams struct {
// Deployment network security group list
DeploySecurityGroupIds []*string `json:"DeploySecurityGroupIds,omitnil,omitempty" name:"DeploySecurityGroupIds"`
+
+
+ ChcDeployExtraConfig *ChcDeployExtraConfig `json:"ChcDeployExtraConfig,omitnil,omitempty" name:"ChcDeployExtraConfig"`
}
type ConfigureChcAssistVpcRequest struct {
@@ -423,6 +436,8 @@ type ConfigureChcAssistVpcRequest struct {
// Deployment network security group list
DeploySecurityGroupIds []*string `json:"DeploySecurityGroupIds,omitnil,omitempty" name:"DeploySecurityGroupIds"`
+
+ ChcDeployExtraConfig *ChcDeployExtraConfig `json:"ChcDeployExtraConfig,omitnil,omitempty" name:"ChcDeployExtraConfig"`
}
func (r *ConfigureChcAssistVpcRequest) ToJsonString() string {
@@ -442,6 +457,7 @@ func (r *ConfigureChcAssistVpcRequest) FromJsonString(s string) error {
delete(f, "BmcSecurityGroupIds")
delete(f, "DeployVirtualPrivateCloud")
delete(f, "DeploySecurityGroupIds")
+ delete(f, "ChcDeployExtraConfig")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ConfigureChcAssistVpcRequest has unknown keys!", "")
}
@@ -480,6 +496,9 @@ type ConfigureChcDeployVpcRequestParams struct {
// Deployment network security group list
DeploySecurityGroupIds []*string `json:"DeploySecurityGroupIds,omitnil,omitempty" name:"DeploySecurityGroupIds"`
+
+
+ ChcDeployExtraConfig *ChcDeployExtraConfig `json:"ChcDeployExtraConfig,omitnil,omitempty" name:"ChcDeployExtraConfig"`
}
type ConfigureChcDeployVpcRequest struct {
@@ -493,6 +512,8 @@ type ConfigureChcDeployVpcRequest struct {
// Deployment network security group list
DeploySecurityGroupIds []*string `json:"DeploySecurityGroupIds,omitnil,omitempty" name:"DeploySecurityGroupIds"`
+
+ ChcDeployExtraConfig *ChcDeployExtraConfig `json:"ChcDeployExtraConfig,omitnil,omitempty" name:"ChcDeployExtraConfig"`
}
func (r *ConfigureChcDeployVpcRequest) ToJsonString() string {
@@ -510,6 +531,7 @@ func (r *ConfigureChcDeployVpcRequest) FromJsonString(s string) error {
delete(f, "ChcIds")
delete(f, "DeployVirtualPrivateCloud")
delete(f, "DeploySecurityGroupIds")
+ delete(f, "ChcDeployExtraConfig")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ConfigureChcDeployVpcRequest has unknown keys!", "")
}
@@ -1026,6 +1048,9 @@ type CreateLaunchTemplateRequestParams struct {
// Instance destruction protection flag: indicates whether an instance is allowed to be deleted through an api. value ranges from: - **TRUE**: indicates that instance protection is enabled, deletion through apis is not allowed. - **FALSE**: indicates that instance protection is disabled, deletion through apis is allowed. default value: FALSE.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
+
+ EnableJumboFrame *bool `json:"EnableJumboFrame,omitnil,omitempty" name:"EnableJumboFrame"`
+
// Description list of tags. by specifying this parameter, tags can be bound to the instance launch template.
LaunchTemplateTagSpecification []*TagSpecification `json:"LaunchTemplateTagSpecification,omitnil,omitempty" name:"LaunchTemplateTagSpecification"`
@@ -1131,6 +1156,8 @@ type CreateLaunchTemplateRequest struct {
// Instance destruction protection flag: indicates whether an instance is allowed to be deleted through an api. value ranges from: - **TRUE**: indicates that instance protection is enabled, deletion through apis is not allowed. - **FALSE**: indicates that instance protection is disabled, deletion through apis is allowed. default value: FALSE.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
+ EnableJumboFrame *bool `json:"EnableJumboFrame,omitnil,omitempty" name:"EnableJumboFrame"`
+
// Description list of tags. by specifying this parameter, tags can be bound to the instance launch template.
LaunchTemplateTagSpecification []*TagSpecification `json:"LaunchTemplateTagSpecification,omitnil,omitempty" name:"LaunchTemplateTagSpecification"`
@@ -1185,6 +1212,7 @@ func (r *CreateLaunchTemplateRequest) FromJsonString(s string) error {
delete(f, "InstanceChargeType")
delete(f, "InstanceChargePrepaid")
delete(f, "DisableApiTermination")
+ delete(f, "EnableJumboFrame")
delete(f, "LaunchTemplateTagSpecification")
delete(f, "Metadata")
delete(f, "TemplateDataModifyAction")
@@ -1311,6 +1339,9 @@ type CreateLaunchTemplateVersionRequestParams struct {
// Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:
TRUE: Instance protection is enabled, and the instance is not allowed to be deleted through the API.
FALSE: Instance protection is disabled, and the instance is allowed to be deleted through the API.
Default value: FALSE.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
+
+ EnableJumboFrame *bool `json:"EnableJumboFrame,omitnil,omitempty" name:"EnableJumboFrame"`
+
// Custom metadata. specifies that custom metadata key-value pairs can be added when creating a CVM.
// Note: this field is in beta test.
Metadata *Metadata `json:"Metadata,omitnil,omitempty" name:"Metadata"`
@@ -1416,6 +1447,8 @@ type CreateLaunchTemplateVersionRequest struct {
// Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:
TRUE: Instance protection is enabled, and the instance is not allowed to be deleted through the API.
FALSE: Instance protection is disabled, and the instance is allowed to be deleted through the API.
Default value: FALSE.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
+ EnableJumboFrame *bool `json:"EnableJumboFrame,omitnil,omitempty" name:"EnableJumboFrame"`
+
// Custom metadata. specifies that custom metadata key-value pairs can be added when creating a CVM.
// Note: this field is in beta test.
Metadata *Metadata `json:"Metadata,omitnil,omitempty" name:"Metadata"`
@@ -1468,6 +1501,7 @@ func (r *CreateLaunchTemplateVersionRequest) FromJsonString(s string) error {
delete(f, "InstanceChargeType")
delete(f, "InstanceChargePrepaid")
delete(f, "DisableApiTermination")
+ delete(f, "EnableJumboFrame")
delete(f, "Metadata")
delete(f, "TemplateDataModifyAction")
if len(f) > 0 {
@@ -1505,7 +1539,7 @@ type DataDisk struct {
// Data disk size, unit: GiB. the minimum adjustment step size is 10 GiB. the value ranges of different data disk types vary. for specific limitations, see the storage overview (https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). the default value is 0, which means no data disk purchase. for more restrictions, see the product document.
DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"`
- // Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview](https://cloud.tencent.com/document/product/213/4952). Valid values:
LOCAL_BASIC: Local Disk
LOCAL_SSD: Local SSD
LOCAL_NVME: Local NVMe Disk, which is strongly related with InstanceType and can not be specified
LOCAL_PRO: Local HDD, which is strongly related with InstanceType and can not be specified
CLOUD_BASIC: Basic Cloud Disk
CLOUD_PREMIUM: Premium Disk
CLOUD_SSD: Cloud SSD
CLOUD_HSSD: Enhanced SSD
CLOUD_TSSD: Tremendous SSD
CLOUD_BSSD: Balanced SSD
Default value: LOCAL_BASIC.
This parameter is invalid for the `ResizeInstanceDisk` API.
+ // Specifies the data disk type. for restrictions on data disk types, refer to [storage overview](https://www.tencentcloud.com/document/product/213/4952?from_cn_redirect=1). valid values:
LOCAL_BASIC: LOCAL disk LOCAL_SSD: LOCAL SSDLOCAL_NVME: LOCAL NVME disk, which is closely related to InstanceType and cannot be specifiedLOCAL_PRO: LOCAL HDD, which is closely related to InstanceType and cannot be specifiedcloud_BASIC: BASIC cloud diskcloud_PREMIUM: high-performance cloud block storagecloud_SSD: SSD cloud diskcloud_HSSD: enhanced SSD cloud disk cloud_TSSD: ultra-fast SSD cbscloud_BSSD: universal SSD cloud disk
default: LOCAL_BASIC.
this parameter is invalid for the `ResizeInstanceDisk` api.
DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"`
// Specifies the data disk ID.
@@ -1521,21 +1555,24 @@ type DataDisk struct {
// Specifies whether the data disk is encrypted. value range: true: encrypted false: unencrypted
default value: false
this parameter is currently only used for the `RunInstances` api.
Encrypt *bool `json:"Encrypt,omitnil,omitempty" name:"Encrypt"`
- // Custom CMK's corresponding ID, with a value of UUID or something similar to kms - abcd1234. used for encrypting cloud disks.
+ // Custom CMK ID, value is UUID or similar to kms-abcd1234. used for encrypted cloud disk.
//
// This parameter is currently only used for the `RunInstances` api.
+ // Note: This field may return null, indicating that no valid value is found.
KmsKeyId *string `json:"KmsKeyId,omitnil,omitempty" name:"KmsKeyId"`
- // Specifies the cloud disk performance (unit: MiB/s). using this parameter allows you to purchase additional performance for the cloud disk.
- // Currently only supports ultra-fast CLOUD disk (CLOUD_TSSD) and enhanced SSD CLOUD disk (CLOUD_HSSD).
+ // Cloud disk performance (unit: MiB/s). specifies additional performance for cloud disks.
+ // Currently only supports extreme cbs (CLOUD_TSSD) and enhanced SSD CLOUD disk (CLOUD_HSSD).
+ // Note: This field may return null, indicating that no valid value is found.
ThroughputPerformance *int64 `json:"ThroughputPerformance,omitnil,omitempty" name:"ThroughputPerformance"`
- // Specifies the exclusive cluster ID it belongs to.
+ // Specifies the dedicated cluster ID belonging to.
+ // Note: This field may return null, indicating that no valid value is found.
CdcId *string `json:"CdcId,omitnil,omitempty" name:"CdcId"`
- // Burst performance.
+ // Burstable performance.
//
- // Note: this feature is in beta test..
+ // Note: this field is in beta test..
BurstPerformance *bool `json:"BurstPerformance,omitnil,omitempty" name:"BurstPerformance"`
// Disk name, with a length not exceeding 128 characters.
@@ -1896,7 +1933,7 @@ type DescribeChcHostsRequestParams struct {
ChcIds []*string `json:"ChcIds,omitnil,omitempty" name:"ChcIds"`
// zone
- // Filter by the availability zone, such as `ap-guangzhou-1`.
Type: String
Optional
Valid values: See Regions and Availability Zones
+ // Filter by the availability zone, such as `ap-guangzhou-6`.
Type: String
Optional
Valid values: See Regions and Availability Zones
// instance-name
// Filter by the instance name.
Type: String
Optional
// instance-state
@@ -1923,7 +1960,7 @@ type DescribeChcHostsRequest struct {
ChcIds []*string `json:"ChcIds,omitnil,omitempty" name:"ChcIds"`
// zone
- // Filter by the availability zone, such as `ap-guangzhou-1`.
Type: String
Optional
Valid values: See Regions and Availability Zones
+ // Filter by the availability zone, such as `ap-guangzhou-6`.
Type: String
Optional
Valid values: See Regions and Availability Zones
// instance-name
// Filter by the instance name.
Type: String
Optional
// instance-state
@@ -2034,11 +2071,16 @@ type DescribeDisasterRecoverGroupQuotaResponseParams struct {
CvmInHostGroupQuota *int64 `json:"CvmInHostGroupQuota,omitnil,omitempty" name:"CvmInHostGroupQuota"`
// Quota on instances in a switch-type disaster recovery group.
+ //
+ // Deprecated: CvmInSwGroupQuota is deprecated.
CvmInSwGroupQuota *int64 `json:"CvmInSwGroupQuota,omitnil,omitempty" name:"CvmInSwGroupQuota"`
// Quota on instances in a rack-type disaster recovery group.
CvmInRackGroupQuota *int64 `json:"CvmInRackGroupQuota,omitnil,omitempty" name:"CvmInRackGroupQuota"`
+
+ CvmInSwitchGroupQuota *int64 `json:"CvmInSwitchGroupQuota,omitnil,omitempty" name:"CvmInSwitchGroupQuota"`
+
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
@@ -2156,7 +2198,7 @@ func (r *DescribeDisasterRecoverGroupsResponse) FromJsonString(s string) error {
// Predefined struct for user
type DescribeHostsRequestParams struct {
// zone
- // Filter by the availability zone, such as `ap-guangzhou-1`.
Type: String
Optional
Valid values: See Regions and Availability Zones
+ // Filter by the availability zone, such as `ap-guangzhou-6`.
Type: String
Optional
Valid values: See Regions and Availability Zones
// project-id
// Filter by the project ID. You can query the list of created projects by calling `DescribeProject` or logging in to the [CVM console](https://console.cloud.tencent.com/cvm/index). You can also call `AddProject` to create projects. The project ID is like 1002189.
Type: Integer
Optional
// host-id
@@ -2179,7 +2221,7 @@ type DescribeHostsRequest struct {
*tchttp.BaseRequest
// zone
- // Filter by the availability zone, such as `ap-guangzhou-1`.
Type: String
Optional
Valid values: See Regions and Availability Zones
+ // Filter by the availability zone, such as `ap-guangzhou-6`.
Type: String
Optional
Valid values: See Regions and Availability Zones
// project-id
// Filter by the project ID. You can query the list of created projects by calling `DescribeProject` or logging in to the [CVM console](https://console.cloud.tencent.com/cvm/index). You can also call `AddProject` to create projects. The project ID is like 1002189.
Type: Integer
Optional
// host-id
@@ -2436,7 +2478,7 @@ type DescribeImagesRequestParams struct {
// tag-value
// Filter by the tag value.
Type: String
Optional
// tag:tag-key
- // Filter by the tag key-value pair. Replace “tag-key” with the actual value.
Type: String
Optional
+ // Filter by the tag key-value pair. Replace "tag-key" with the actual value.
Type: String
Optional
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
@@ -2445,7 +2487,7 @@ type DescribeImagesRequestParams struct {
// Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // Instance type, e.g. `S1.SMALL1`
+ // Instance type, e.g. `SA5.MEDIUM2`
InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
}
@@ -2470,7 +2512,7 @@ type DescribeImagesRequest struct {
// tag-value
// Filter by the tag value.
Type: String
Optional
// tag:tag-key
- // Filter by the tag key-value pair. Replace “tag-key” with the actual value.
Type: String
Optional
+ // Filter by the tag key-value pair. Replace "tag-key" with the actual value.
Type: String
Optional
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
@@ -2479,7 +2521,7 @@ type DescribeImagesRequest struct {
// Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
- // Instance type, e.g. `S1.SMALL1`
+ // Instance type, e.g. `SA5.MEDIUM2`
InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
}
@@ -3946,6 +3988,9 @@ type DisasterRecoverGroup struct {
// Note: This field may return null, indicating that no valid value is found.
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
+
+ Affinity *int64 `json:"Affinity,omitnil,omitempty" name:"Affinity"`
+
// List of tags associated with the placement group.
Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`
}
@@ -3973,7 +4018,12 @@ type EnterRescueModeRequestParams struct {
Username *string `json:"Username,omitnil,omitempty" name:"Username"`
// Whether to perform forced shutdown.
+ //
+ // Deprecated: ForceStop is deprecated.
ForceStop *bool `json:"ForceStop,omitnil,omitempty" name:"ForceStop"`
+
+
+ StopType *string `json:"StopType,omitnil,omitempty" name:"StopType"`
}
type EnterRescueModeRequest struct {
@@ -3990,6 +4040,8 @@ type EnterRescueModeRequest struct {
// Whether to perform forced shutdown.
ForceStop *bool `json:"ForceStop,omitnil,omitempty" name:"ForceStop"`
+
+ StopType *string `json:"StopType,omitnil,omitempty" name:"StopType"`
}
func (r *EnterRescueModeRequest) ToJsonString() string {
@@ -4008,6 +4060,7 @@ func (r *EnterRescueModeRequest) FromJsonString(s string) error {
delete(f, "Password")
delete(f, "Username")
delete(f, "ForceStop")
+ delete(f, "StopType")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EnterRescueModeRequest has unknown keys!", "")
}
@@ -4212,16 +4265,13 @@ type Filter struct {
}
type GPUInfo struct {
- // Number of GPUs.
- // Note: this field may return `null`, indicating that no valid value can be found.
+ // Specifies the GPU count of the instance. a value less than 1 indicates VGPU type, and a value larger than 1 indicates GPU passthrough type.
GPUCount *float64 `json:"GPUCount,omitnil,omitempty" name:"GPUCount"`
- // GPU address
- // Note: this field may return `null`, indicating that no valid value can be found.
+ // Specifies the GPU address of the instance.
GPUId []*string `json:"GPUId,omitnil,omitempty" name:"GPUId"`
- // GPU type of the instance.
- // Note: this field may return `null`, indicating that no valid value can be found.
+ // Specifies the GPU type of the instance.
GPUType *string `json:"GPUType,omitnil,omitempty" name:"GPUType"`
}
@@ -4602,7 +4652,7 @@ type InquirePricePurchaseReservedInstancesOfferingRequestParams struct {
// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, see Ensuring Idempotency.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
- // Reserved instance name.
The RI name defaults to “unnamed” if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
+ // Reserved instance name.
The RI name defaults to "unnamed" if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
ReservedInstanceName *string `json:"ReservedInstanceName,omitnil,omitempty" name:"ReservedInstanceName"`
}
@@ -4621,7 +4671,7 @@ type InquirePricePurchaseReservedInstancesOfferingRequest struct {
// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, see Ensuring Idempotency.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
- // Reserved instance name.
The RI name defaults to “unnamed” if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
+ // Reserved instance name.
The RI name defaults to "unnamed" if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
ReservedInstanceName *string `json:"ReservedInstanceName,omitnil,omitempty" name:"ReservedInstanceName"`
}
@@ -4673,6 +4723,170 @@ func (r *InquirePricePurchaseReservedInstancesOfferingResponse) FromJsonString(s
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type InquiryPriceModifyInstancesChargeTypeRequestParams struct {
+ // One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.com/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Modified instance [billing type](https://www.tencentcloud.com/document/product/213/2180?from_cn_redirect=1).
`PREPAID`: monthly subscription.
+ //
+ // **Note:** Only supports converting pay-as-you-go instances to annual and monthly subscription instances.
+ //
+ // default value: `PREPAID`
+ InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`
+
+ // Prepaid mode, parameter settings related to monthly/annual subscription. through this parameter, specify the purchase duration of annual and monthly subscription instances, whether to enable auto-renewal, and other attributes.
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Whether to switch the billing mode of elastic data cloud disks simultaneously. valid values:
true: means switching the billing mode of elastic data cloud disksfalse: means not switching the billing mode of elastic data cloud disks
default value: false.
+ ModifyPortableDataDisk *bool `json:"ModifyPortableDataDisk,omitnil,omitempty" name:"ModifyPortableDataDisk"`
+}
+
+type InquiryPriceModifyInstancesChargeTypeRequest struct {
+ *tchttp.BaseRequest
+
+ // One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.com/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Modified instance [billing type](https://www.tencentcloud.com/document/product/213/2180?from_cn_redirect=1).
`PREPAID`: monthly subscription.
+ //
+ // **Note:** Only supports converting pay-as-you-go instances to annual and monthly subscription instances.
+ //
+ // default value: `PREPAID`
+ InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`
+
+ // Prepaid mode, parameter settings related to monthly/annual subscription. through this parameter, specify the purchase duration of annual and monthly subscription instances, whether to enable auto-renewal, and other attributes.
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Whether to switch the billing mode of elastic data cloud disks simultaneously. valid values:
true: means switching the billing mode of elastic data cloud disksfalse: means not switching the billing mode of elastic data cloud disks
default value: false.
+ ModifyPortableDataDisk *bool `json:"ModifyPortableDataDisk,omitnil,omitempty" name:"ModifyPortableDataDisk"`
+}
+
+func (r *InquiryPriceModifyInstancesChargeTypeRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceModifyInstancesChargeTypeRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceIds")
+ delete(f, "InstanceChargeType")
+ delete(f, "InstanceChargePrepaid")
+ delete(f, "ModifyPortableDataDisk")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceModifyInstancesChargeTypeRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceModifyInstancesChargeTypeResponseParams struct {
+ // This parameter indicates the price for switching the billing mode of the corresponding configuration instance.
+ Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type InquiryPriceModifyInstancesChargeTypeResponse struct {
+ *tchttp.BaseResponse
+ Response *InquiryPriceModifyInstancesChargeTypeResponseParams `json:"Response"`
+}
+
+func (r *InquiryPriceModifyInstancesChargeTypeResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceModifyInstancesChargeTypeResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceRenewInstancesRequestParams struct {
+ // One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Prepaid mode, that is, monthly subscription-related parameter settings. You can specify attributes of a monthly subscription instance, such as purchase duration and whether to set auto-renewal, through this parameter.
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Trial run, for testing purposes, does not execute specific logic. valid values: `true`: skip execution logic `false`: execute logic default value: `false`.
+ DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"`
+
+ // Whether to renew the elastic data disk. valid values:
true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneouslyfalse: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk
default value: true.
+ RenewPortableDataDisk *bool `json:"RenewPortableDataDisk,omitnil,omitempty" name:"RenewPortableDataDisk"`
+}
+
+type InquiryPriceRenewInstancesRequest struct {
+ *tchttp.BaseRequest
+
+ // One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Prepaid mode, that is, monthly subscription-related parameter settings. You can specify attributes of a monthly subscription instance, such as purchase duration and whether to set auto-renewal, through this parameter.
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Trial run, for testing purposes, does not execute specific logic. valid values: `true`: skip execution logic `false`: execute logic default value: `false`.
+ DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"`
+
+ // Whether to renew the elastic data disk. valid values:
true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneouslyfalse: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk
default value: true.
+ RenewPortableDataDisk *bool `json:"RenewPortableDataDisk,omitnil,omitempty" name:"RenewPortableDataDisk"`
+}
+
+func (r *InquiryPriceRenewInstancesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceRenewInstancesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceIds")
+ delete(f, "InstanceChargePrepaid")
+ delete(f, "DryRun")
+ delete(f, "RenewPortableDataDisk")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceRenewInstancesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type InquiryPriceRenewInstancesResponseParams struct {
+ // This parameter indicates the price for the corresponding configuration instance.
+ Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
+
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type InquiryPriceRenewInstancesResponse struct {
+ *tchttp.BaseResponse
+ Response *InquiryPriceRenewInstancesResponseParams `json:"Response"`
+}
+
+func (r *InquiryPriceRenewInstancesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *InquiryPriceRenewInstancesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type InquiryPriceResetInstanceRequestParams struct {
// Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
@@ -4689,6 +4903,9 @@ type InquiryPriceResetInstanceRequestParams struct {
// Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Monitor and Cloud Security. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
EnhancedService *EnhancedService `json:"EnhancedService,omitnil,omitempty" name:"EnhancedService"`
+
+
+ UserData *string `json:"UserData,omitnil,omitempty" name:"UserData"`
}
type InquiryPriceResetInstanceRequest struct {
@@ -4708,6 +4925,8 @@ type InquiryPriceResetInstanceRequest struct {
// Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Monitor and Cloud Security. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
EnhancedService *EnhancedService `json:"EnhancedService,omitnil,omitempty" name:"EnhancedService"`
+
+ UserData *string `json:"UserData,omitnil,omitempty" name:"UserData"`
}
func (r *InquiryPriceResetInstanceRequest) ToJsonString() string {
@@ -4727,6 +4946,7 @@ func (r *InquiryPriceResetInstanceRequest) FromJsonString(s string) error {
delete(f, "SystemDisk")
delete(f, "LoginSettings")
delete(f, "EnhancedService")
+ delete(f, "UserData")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquiryPriceResetInstanceRequest has unknown keys!", "")
}
@@ -4989,7 +5209,8 @@ type InquiryPriceRunInstancesRequestParams struct {
// Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
- // The instance model. Different resource specifications are specified for different models. For specific values, call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) to retrieve the latest specification list or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). If the parameter is not specified, `S1.SMALL1` will be used by default.
+ // Instance model. Different instance models specify different resource specifications.
+ //
For instances created with the payment modes PREPAID or POSTPAID_BY_HOUR, specifies the specific values obtained BY calling the [DescribeInstanceTypeConfigs](https://www.tencentcloud.comom/document/api/213/15749?from_cn_redirect=1) api for the latest specification table or referring to [instance specifications](https://www.tencentcloud.comom/document/product/213/11518?from_cn_redirect=1). if not specified, the system will dynamically assign a default model based on the current resource sales situation in a region.
for instances created with the payment mode CDHPAID, indicates this parameter uses the prefix "CDH_" and is generated based on CPU and memory configuration. the specific format is: CDH_XCXG. for example, for creating a CDH instance with 1 CPU core and 1 gb memory, this parameter should be CDH_1C1G..
InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// System disk configuration of the instance. If this parameter is not specified, the default value will be used.
@@ -5007,13 +5228,13 @@ type InquiryPriceRunInstancesRequestParams struct {
// Number of instances to purchase. Value range: 1 (default) to 100. It cannot exceed the remaining CVM quota of the user. For more information on quota, see [Restrictions on CVM Instance Purchase](https://intl.cloud.tencent.com/document/product/213/2664).
InstanceCount *int64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
- // Instance name.
If this parameter is not specified, "Unnamed" will be displayed by default.If you purchase multiple instances and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. For example, you specify a pattern string `server_{R:3}`. If you purchase only one instance, the instance will be named `server_3`; if you purchase two, they will be named `server_3` and `server_4`. You can specify multiple pattern strings in the format of `{R:x}`.If you purchase multiple instances without specifying a pattern string, the instance names will be suffixed with `1, 2...n`, where `n` represents the number of instances purchased. For example, if you purchase two instances with the name `server_`, the instance names will be `server_1` and `server_2`.This parameter can contain up to 60 characters (including pattern strings).
+ // Instance display name. if no instance display name is specified, it will display 'unnamed' by default. when purchasing multiple instances, if the pattern string `{R:x}` is specified, it means generating numbers `[x, x+n-1]`, where `n` represents the number of purchased instances. for example, `server_{R:3}`: when purchasing 1 instance, the instance display name is `server_3`; when purchasing 2 instances, the instance display names are `server_3` and `server_4` respectively. supports specifying multiple pattern strings `{R:x}`. when purchasing multiple instances without specifying a pattern string, suffixes `1, 2...n` will be added to the instance display name, where `n` represents the number of purchased instances. for example, `server_`: when purchasing 2 instances, the instance display names are `server_1` and `server_2` respectively. supports up to 128 characters (including pattern strings)..
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance, or keep the original login settings of the image. By default, a random password will be generated and sent to you via the Message Center.
LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"`
- // Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will not be associated with any security group by default.
+ // Security group to which an instance belongs. obtain this parameter by calling the `SecurityGroupId` field in the return value of [DescribeSecurityGroups](https://www.tencentcloud.comom/document/api/215/15808?from_cn_redirect=1). if not specified, bind the default security group under the designated project. if the default security group does not exist, automatically create it.
SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
@@ -5031,6 +5252,11 @@ type InquiryPriceRunInstancesRequestParams struct {
// The market options of the instance.
InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitnil,omitempty" name:"InstanceMarketOptions"`
+ // Custom metadata, supports creating key-value pairs of custom metadata when creating a CVM.
+ //
+ // **Note: this field is in beta test.**.
+ Metadata *Metadata `json:"Metadata,omitnil,omitempty" name:"Metadata"`
+
// HPC cluster ID.
HpcClusterId *string `json:"HpcClusterId,omitnil,omitempty" name:"HpcClusterId"`
@@ -5058,7 +5284,8 @@ type InquiryPriceRunInstancesRequest struct {
// Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
- // The instance model. Different resource specifications are specified for different models. For specific values, call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) to retrieve the latest specification list or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). If the parameter is not specified, `S1.SMALL1` will be used by default.
+ // Instance model. Different instance models specify different resource specifications.
+ //
For instances created with the payment modes PREPAID or POSTPAID_BY_HOUR, specifies the specific values obtained BY calling the [DescribeInstanceTypeConfigs](https://www.tencentcloud.comom/document/api/213/15749?from_cn_redirect=1) api for the latest specification table or referring to [instance specifications](https://www.tencentcloud.comom/document/product/213/11518?from_cn_redirect=1). if not specified, the system will dynamically assign a default model based on the current resource sales situation in a region.
for instances created with the payment mode CDHPAID, indicates this parameter uses the prefix "CDH_" and is generated based on CPU and memory configuration. the specific format is: CDH_XCXG. for example, for creating a CDH instance with 1 CPU core and 1 gb memory, this parameter should be CDH_1C1G..
InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// System disk configuration of the instance. If this parameter is not specified, the default value will be used.
@@ -5076,13 +5303,13 @@ type InquiryPriceRunInstancesRequest struct {
// Number of instances to purchase. Value range: 1 (default) to 100. It cannot exceed the remaining CVM quota of the user. For more information on quota, see [Restrictions on CVM Instance Purchase](https://intl.cloud.tencent.com/document/product/213/2664).
InstanceCount *int64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
- // Instance name.
If this parameter is not specified, "Unnamed" will be displayed by default.If you purchase multiple instances and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. For example, you specify a pattern string `server_{R:3}`. If you purchase only one instance, the instance will be named `server_3`; if you purchase two, they will be named `server_3` and `server_4`. You can specify multiple pattern strings in the format of `{R:x}`.If you purchase multiple instances without specifying a pattern string, the instance names will be suffixed with `1, 2...n`, where `n` represents the number of instances purchased. For example, if you purchase two instances with the name `server_`, the instance names will be `server_1` and `server_2`.This parameter can contain up to 60 characters (including pattern strings).
+ // Instance display name. if no instance display name is specified, it will display 'unnamed' by default. when purchasing multiple instances, if the pattern string `{R:x}` is specified, it means generating numbers `[x, x+n-1]`, where `n` represents the number of purchased instances. for example, `server_{R:3}`: when purchasing 1 instance, the instance display name is `server_3`; when purchasing 2 instances, the instance display names are `server_3` and `server_4` respectively. supports specifying multiple pattern strings `{R:x}`. when purchasing multiple instances without specifying a pattern string, suffixes `1, 2...n` will be added to the instance display name, where `n` represents the number of purchased instances. for example, `server_`: when purchasing 2 instances, the instance display names are `server_1` and `server_2` respectively. supports up to 128 characters (including pattern strings)..
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance, or keep the original login settings of the image. By default, a random password will be generated and sent to you via the Message Center.
LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"`
- // Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will not be associated with any security group by default.
+ // Security group to which an instance belongs. obtain this parameter by calling the `SecurityGroupId` field in the return value of [DescribeSecurityGroups](https://www.tencentcloud.comom/document/api/215/15808?from_cn_redirect=1). if not specified, bind the default security group under the designated project. if the default security group does not exist, automatically create it.
SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
@@ -5100,6 +5327,11 @@ type InquiryPriceRunInstancesRequest struct {
// The market options of the instance.
InstanceMarketOptions *InstanceMarketOptionsRequest `json:"InstanceMarketOptions,omitnil,omitempty" name:"InstanceMarketOptions"`
+ // Custom metadata, supports creating key-value pairs of custom metadata when creating a CVM.
+ //
+ // **Note: this field is in beta test.**.
+ Metadata *Metadata `json:"Metadata,omitnil,omitempty" name:"Metadata"`
+
// HPC cluster ID.
HpcClusterId *string `json:"HpcClusterId,omitnil,omitempty" name:"HpcClusterId"`
@@ -5139,6 +5371,7 @@ func (r *InquiryPriceRunInstancesRequest) FromJsonString(s string) error {
delete(f, "HostName")
delete(f, "TagSpecification")
delete(f, "InstanceMarketOptions")
+ delete(f, "Metadata")
delete(f, "HpcClusterId")
delete(f, "CpuTopology")
delete(f, "LaunchTemplate")
@@ -5186,10 +5419,10 @@ type Instance struct {
// Number of CPU cores of the instance; unit: core
CPU *int64 `json:"CPU,omitnil,omitempty" name:"CPU"`
- // Memory capacity; unit: `GB`.
+ // Instance memory capacity. unit: GiB.
Memory *int64 `json:"Memory,omitnil,omitempty" name:"Memory"`
- // Instance status. Valid values:
NORMAL: instance is normal.
EXPIRED: instance expired.
PROTECTIVELY_ISOLATED: instance is protectively isolated.
+ // Instance business status. valid values:
NORMAL: indicates an instance in the NORMAL stateEXPIRED: indicates an EXPIRED instancePROTECTIVELY_ISOLATED: PROTECTIVELY ISOLATED instance.
RestrictState *string `json:"RestrictState,omitnil,omitempty" name:"RestrictState"`
// Instance name
@@ -5220,8 +5453,8 @@ type Instance struct {
// `ID` of the image used to create the instance.
ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"`
- // Auto renewal flag. Valid values:
`NOTIFY_AND_MANUAL_RENEW`: notify upon expiration, but do not renew automatically
`NOTIFY_AND_AUTO_RENEW`: notify upon expiration and renew automatically
`DISABLE_NOTIFY_AND_MANUAL_RENEW`: do not notify upon expiration and do not renew automatically.
- //
Note: this parameter is `null` for postpaid instances.
+ // AUTO-Renewal flag. valid values:
`NOTIFY_AND_MANUAL_RENEW`: indicates that a notification of impending expiration is made but AUTO-renewal is not performed`NOTIFY_AND_AUTO_RENEW`: indicates that a notification of impending expiration is made AND AUTO-renewal is performed`DISABLE_NOTIFY_AND_MANUAL_RENEW`: indicates that notification that it is about to expire is not made AND AUTO-renewal is not performed.
+ // Note: this field is null in postpaid mode.
RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
// Creation time following the `ISO8601` standard and using `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.
@@ -5239,14 +5472,15 @@ type Instance struct {
// Login settings of the instance. Currently only the key associated with the instance is returned.
LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"`
- // Instance state. Valid values:
PENDING: creating
LAUNCH_FAILED: creation failed
RUNNING: running
STOPPED: shut down
STARTING: starting
STOPPING: shutting down
REBOOTING: rebooting
SHUTDOWN: shut down and to be terminated
TERMINATING: terminating.
+ // Instance status. for specific status types, see the [instance status table](https://www.tencentcloud.com/document/product/213/15753#instancestatus)
InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"`
// List of tags associated with the instance.
Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`
- // Instance billing method after shutdown.
- // Valid values:
KEEP_CHARGING: billing continues after shutdown
STOP_CHARGING: billing stops after shutdown NOT_APPLICABLE: the instance is not shut down or stopping billing after shutdown is not applicable to the instance.
+ // Shutdown billing mode of an instance.
+ //
+ // Valid values:
KEEP_CHARGING: billing continues after shutdownSTOP_CHARGING: billing stops after shutdownNOT_APPLICABLE: the instance is NOT shut down or stopping billing after shutdown is NOT APPLICABLE to the instance.
StopChargingMode *string `json:"StopChargingMode,omitnil,omitempty" name:"StopChargingMode"`
// Globally unique ID of the instance.
@@ -5255,14 +5489,14 @@ type Instance struct {
// Last operation of the instance, such as StopInstances or ResetInstance.
LatestOperation *string `json:"LatestOperation,omitnil,omitempty" name:"LatestOperation"`
- // The latest operation status of the instance. Valid values:
SUCCESS: operation succeeded
OPERATING: operation in progress
FAILED: operation failed
+ // The latest operation status of the instance. valid values:
SUCCESS: indicates that the operation succeededOPERATING: indicates that the operation is in progressFAILED: indicates that the operation FAILED.
+ // Note: This field may return null, indicating that no valid value is found.
LatestOperationState *string `json:"LatestOperationState,omitnil,omitempty" name:"LatestOperationState"`
// Unique request ID for the last operation of the instance.
LatestOperationRequestId *string `json:"LatestOperationRequestId,omitnil,omitempty" name:"LatestOperationRequestId"`
- // ID of a spread placement group.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Spread placement group ID.
DisasterRecoverGroupId *string `json:"DisasterRecoverGroupId,omitnil,omitempty" name:"DisasterRecoverGroupId"`
// IPv6 address of the instance.
@@ -5273,29 +5507,26 @@ type Instance struct {
// Note: this field may return null, indicating that no valid value is obtained.
CamRoleName *string `json:"CamRoleName,omitnil,omitempty" name:"CamRoleName"`
- // HPC cluster ID.
- // Note: this field may return null, indicating that no valid value was found.
+ // High-performance computing cluster ID.
HpcClusterId *string `json:"HpcClusterId,omitnil,omitempty" name:"HpcClusterId"`
// IP list of HPC cluster.
// Note: this field may return null, indicating that no valid value was found.
RdmaIpAddresses []*string `json:"RdmaIpAddresses,omitnil,omitempty" name:"RdmaIpAddresses"`
-
+ // Dedicated cluster ID where the instance is located.
DedicatedClusterId *string `json:"DedicatedClusterId,omitnil,omitempty" name:"DedicatedClusterId"`
- // The isolation status of the instance. Valid values:
`ARREAR`: isolated due to overdue payment;
`EXPIRE`: isolated upon expiration;
`MANMADE`: isolated after manual returning;
`NOTISOLATED`: not isolated
- // Note: this field may return null, indicating that no valid value was found.
+ // Instance isolation type. valid values:
ARREAR: indicates arrears isolation
EXPIRE: indicates isolation upon expiration
MANMADE: indicates voluntarily refunded isolation
NOTISOLATED: indicates unisolated
.
IsolatedSource *string `json:"IsolatedSource,omitnil,omitempty" name:"IsolatedSource"`
- // GPU information. This field is only returned for GPU instances.
- // Note: this field may return null, indicating that no valid value was found.
+ // GPU information. if it is a gpu type instance, this value will be returned. for other type instances, it does not return.
GPUInfo *GPUInfo `json:"GPUInfo,omitnil,omitempty" name:"GPUInfo"`
// Instance OS license type. Default value: `TencentCloud`
LicenseType *string `json:"LicenseType,omitnil,omitempty" name:"LicenseType"`
- // Whether the termination protection is enabled. Values:
`TRUE`: Enable instance protection, which means that this instance can not be deleted by an API action.
`FALSE`: Do not enable the instance protection.
Default value: `FALSE`.
+ // Instance destruction protection flag indicates whether an instance is allowed to be deleted through an api. value ranges from:
true: indicates that instance protection is enabled, deletion through apis is not allowedfalse: indicates that instance protection is disabled, allow passage
default value: false.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
// Default login user
@@ -5307,6 +5538,12 @@ type Instance struct {
// Latest operation errors of the instance.
// Note: This field may return `null`, indicating that no valid values can be obtained.
LatestOperationErrorMsg *string `json:"LatestOperationErrorMsg,omitnil,omitempty" name:"LatestOperationErrorMsg"`
+
+ // Custom metadata. this parameter corresponds to the metadata information specified when creating a CVM. **note: in beta test**.
+ Metadata *Metadata `json:"Metadata,omitnil,omitempty" name:"Metadata"`
+
+ // Specifies the public IPv6 address bound to the instance.
+ PublicIPv6Addresses []*string `json:"PublicIPv6Addresses,omitnil,omitempty" name:"PublicIPv6Addresses"`
}
type InstanceAttribute struct {
@@ -5428,7 +5665,10 @@ type InstanceTypeQuotaItem struct {
}
type InternetAccessible struct {
- // Network connection billing plan. Valid value:
TRAFFIC_POSTPAID_BY_HOUR: pay after use. You are billed for your traffic, by the hour.
+ // Network connection billing plan. Valid value:
+ //
+ // TRAFFIC_POSTPAID_BY_HOUR: pay after use. You are billed for your traffic, by the hour.
+ // BANDWIDTH_PACKAGE: Bandwidth package user.
InternetChargeType *string `json:"InternetChargeType,omitnil,omitempty" name:"InternetChargeType"`
// The maximum outbound bandwidth of the public network, in Mbps. The default value is 0 Mbps. The upper limit of bandwidth varies for different models. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/12523?from_cn_redirect=1).
@@ -5439,6 +5679,37 @@ type InternetAccessible struct {
// Bandwidth package ID. it can be obtained through the `BandwidthPackageId` in the return value from the DescribeBandwidthPackages api. this parameter is used as an input parameter only in the RunInstances api.
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
+
+ // Line type. for details on various types of lines and supported regions, refer to [EIP IP address types](https://cloud.tencent.com/document/product/1199/41646). default value: BGP.
+ // BGP: specifies the general bgp line..
+ // For a user with static single-line IP allowlist enabled, valid values include:.
+ // CMCC: china mobile..
+ // CTCC: china telecom.
+ // CUCC: china unicom.
+ // Note: The static single-line IP is only supported in some regions.
+ //
+ InternetServiceProvider *string `json:"InternetServiceProvider,omitnil,omitempty" name:"InternetServiceProvider"`
+
+ // Specifies the public IP type.
+ //
+ // WanIP: specifies the public ip address..
+ // HighQualityEIP: specifies a high quality ip. high quality ip is only supported in Singapore and hong kong (china)..
+ // AntiDDoSEIP: specifies the anti-ddos eip. only partial regions support anti-ddos eip. details visible in the [elastic IP product overview](https://www.tencentcloud.comom/document/product/1199/41646?from_cn_redirect=1)..
+ // If needed, assign a public IPv4 address to the resource by specifying the IPv4 address type.
+ //
+ // This feature is in beta test in selected regions. submit a ticket for consultation (https://console.cloud.tencent.com/workorder/category) if needed.
+ IPv4AddressType *string `json:"IPv4AddressType,omitnil,omitempty" name:"IPv4AddressType"`
+
+ // Indicates the type of elastic public IPv6.
+ // EIPv6: elastic ip version 6..
+ // HighQualityEIPv6: specifies the high quality ipv6. highqualityeipv6 is only supported in hong kong (china)..
+ // If needed, assign an elastic IPv6 address for resource allocation.
+ //
+ // This feature is in beta test in selected regions. submit a ticket for consultation (https://console.cloud.tencent.com/workorder/category) if needed.
+ IPv6AddressType *string `json:"IPv6AddressType,omitnil,omitempty" name:"IPv6AddressType"`
+
+ // DDoS protection package unique ID. this field is required when applying for a ddos protection IP.
+ AntiDDoSPackageId *string `json:"AntiDDoSPackageId,omitnil,omitempty" name:"AntiDDoSPackageId"`
}
type InternetChargeTypeConfig struct {
@@ -5450,89 +5721,70 @@ type InternetChargeTypeConfig struct {
}
type ItemPrice struct {
- // The original unit price for pay-as-you-go mode in USD.
When a billing tier is returned, it indicates the price fo the returned billing tier. For example, if `UnitPriceSecondStep` is returned, it refers to the unit price for the usage between 0 to 96 hours. Otherwise, it refers to that the unit price for unlimited usage.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Original price of subsequent total costs, postpaid billing mode usage, unit: usd. if other time interval items are returned, such as UnitPriceSecondStep, this item represents the time interval (0, 96) hr. if no other time interval items are returned, this item represents the full period (0, ∞) hr.
UnitPrice *float64 `json:"UnitPrice,omitnil,omitempty" name:"UnitPrice"`
- // Billing unit for pay-as-you-go mode. Valid values:
HOUR: billed on an hourly basis. It's used for hourly postpaid instances (`POSTPAID_BY_HOUR`).
GB: bill by traffic in GB. It's used for postpaid products that are billed by the hourly traffic (`TRAFFIC_POSTPAID_BY_HOUR`).
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Billing unit for pay-as-you-go mode. valid values:
HOUR: billed on an hourly basis. it's used for hourly POSTPAID instances (`POSTPAID_BY_HOUR`).
GB: bill BY TRAFFIC in GB. it's used for POSTPAID products that are billed BY the hourly TRAFFIC (`TRAFFIC_POSTPAID_BY_HOUR`).
ChargeUnit *string `json:"ChargeUnit,omitnil,omitempty" name:"ChargeUnit"`
- // The original price of a pay-in-advance instance, in USD.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Original price of total prepaid costs. measurement unit: usd.
OriginalPrice *float64 `json:"OriginalPrice,omitnil,omitempty" name:"OriginalPrice"`
- // Discount price of a prepaid instance, in USD.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Discount price of total prepaid costs. unit: usd.
DiscountPrice *float64 `json:"DiscountPrice,omitnil,omitempty" name:"DiscountPrice"`
- // Percentage of the original price. For example, if you enter "20.0", the discounted price will be 20% of the original price.
- // Note: this field may return null, indicating that no valid values can be obtained.
+ // Discount, such as 20.0 representing 80% off.
Discount *float64 `json:"Discount,omitnil,omitempty" name:"Discount"`
- // The discounted unit price for pay-as-you-go mode in USD.
When a billing tier is returned, it indicates the price fo the returned billing tier. For example, if `UnitPriceSecondStep` is returned, it refers to the unit price for the usage between 0 to 96 hours. Otherwise, it refers to that the unit price for unlimited usage.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Discounted price of subsequent total cost, postpaid billing mode usage, unit: usd if other time interval items are returned, such as UnitPriceDiscountSecondStep, this item represents the time interval (0, 96) hr; if no other time interval items are returned, this item represents the full period (0, ∞) hr.
UnitPriceDiscount *float64 `json:"UnitPriceDiscount,omitnil,omitempty" name:"UnitPriceDiscount"`
- // Original unit price for the usage between 96 to 360 hours in USD. It's applicable to pay-as-you-go mode.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Original price of subsequent total costs for usage time range (96, 360) hr in postpaid billing mode. unit: usd.
UnitPriceSecondStep *float64 `json:"UnitPriceSecondStep,omitnil,omitempty" name:"UnitPriceSecondStep"`
- // Discounted unit price for the usage between 96 to 360 hours in USD. It's applicable to pay-as-you-go mode.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Discounted price of subsequent total cost for usage time interval (96, 360) hr in postpaid billing mode. unit: usd.
UnitPriceDiscountSecondStep *float64 `json:"UnitPriceDiscountSecondStep,omitnil,omitempty" name:"UnitPriceDiscountSecondStep"`
- // Original unit price for the usage after 360 hours in USD. It's applicable to pay-as-you-go mode.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Specifies the original price of subsequent total costs with a usage time interval exceeding 360 hr in postpaid billing mode. measurement unit: usd.
UnitPriceThirdStep *float64 `json:"UnitPriceThirdStep,omitnil,omitempty" name:"UnitPriceThirdStep"`
- // Discounted unit price for the usage after 360 hours in USD. It's applicable to pay-as-you-go mode.
- // Note: this field may return null, indicating that no valid value is obtained.
+ // Discounted price of subsequent total cost for usage time interval exceeding 360 hr in postpaid billing mode. measurement unit: usd.
UnitPriceDiscountThirdStep *float64 `json:"UnitPriceDiscountThirdStep,omitnil,omitempty" name:"UnitPriceDiscountThirdStep"`
- // Original 3-year payment, in USD. This parameter is only available to upfront payment mode.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Specifies the original price of total 3-year prepaid costs in prepaid billing mode. measurement unit: usd.
+ // Note: This field may return null, indicating that no valid value is found.
OriginalPriceThreeYear *float64 `json:"OriginalPriceThreeYear,omitnil,omitempty" name:"OriginalPriceThreeYear"`
- // Discounted 3-year upfront payment, in USD. This parameter is only available to upfront payment mode.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Specifies the discount price for an advance payment of the total fee for three years, prepaid mode usage, measurement unit: usd.
+ // Note: This field may return null, indicating that no valid value is found.
DiscountPriceThreeYear *float64 `json:"DiscountPriceThreeYear,omitnil,omitempty" name:"DiscountPriceThreeYear"`
- // Discount for 3-year upfront payment. For example, 20.0 indicates 80% off.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Specifies the discount for a 3-year advance payment, for example 20.0 represents 80% off.
+ // Note: This field may return null, indicating that no valid value is found.
DiscountThreeYear *float64 `json:"DiscountThreeYear,omitnil,omitempty" name:"DiscountThreeYear"`
- // Original 5-year payment, in USD. This parameter is only available to upfront payment mode.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Specifies the original price of the 5-year total cost with advance payment, using prepaid billing mode. measurement unit: usd.
+ // Note: This field may return null, indicating that no valid value is found.
OriginalPriceFiveYear *float64 `json:"OriginalPriceFiveYear,omitnil,omitempty" name:"OriginalPriceFiveYear"`
- // Discounted 5-year upfront payment, in USD. This parameter is only available to upfront payment mode.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Prepaid 5-year total cost discount price, prepaid billing mode usage. unit: usd.
+ // Note: This field may return null, indicating that no valid value is found.
DiscountPriceFiveYear *float64 `json:"DiscountPriceFiveYear,omitnil,omitempty" name:"DiscountPriceFiveYear"`
- // Discount for 5-year upfront payment. For example, 20.0 indicates 80% off.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Specifies the discount for 5-year advance payment, such as 20.0 for 80% off.
+ // Note: This field may return null, indicating that no valid value is found.
DiscountFiveYear *float64 `json:"DiscountFiveYear,omitnil,omitempty" name:"DiscountFiveYear"`
- // Original 1-year payment, in USD. This parameter is only available to upfront payment mode.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Original price of one-year advance payment total cost. prepaid mode usage. unit: usd.
+ // Note: This field may return null, indicating that no valid value is found.
OriginalPriceOneYear *float64 `json:"OriginalPriceOneYear,omitnil,omitempty" name:"OriginalPriceOneYear"`
- // Discounted 1-year payment, in USD. This parameter is only available to upfront payment mode.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Discount price for total advance payment for one year. specifies prepaid mode usage. measurement unit: usd.
+ // Note: This field may return null, indicating that no valid value is found.
DiscountPriceOneYear *float64 `json:"DiscountPriceOneYear,omitnil,omitempty" name:"DiscountPriceOneYear"`
- // Discount for 1-year upfront payment. For example, 20.0 indicates 80% off.
- // Note: this field may return `null`, indicating that no valid value was found.
- // Note: this field may return `null`, indicating that no valid value was found.
+ // Specifies the discount for a one-year advance payment, such as 20.0 for 80% off.
+ // Note: This field may return null, indicating that no valid value is found.
DiscountOneYear *float64 `json:"DiscountOneYear,omitnil,omitempty" name:"DiscountOneYear"`
}
@@ -5767,10 +6019,10 @@ type Metadata struct {
}
type MetadataItem struct {
- // Custom metadata key. it must comply with the regular expression ^[a-zA-Z0-9_-]+$. the length is less than or equal to 128 bytes (case-sensitive).
+ // Custom metadata key, consisting of uppercase letters (A-Z), lowercase letters (A-Z), digits (0-9), underscores (_), or hyphens (-), with a size limit of 128 bytes.
Key *string `json:"Key,omitnil,omitempty" name:"Key"`
- // Specifies a custom metadata value. it supports any data . The size is ≤ 256 KB. it is case-sensitive.
+ // Custom metadata value. The upper limit of message size is 256 KB.
Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}
@@ -6154,14 +6406,13 @@ type ModifyInstancesAttributeRequestParams struct {
// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
- // The instance name, which can not exceed 60 characters
- // Either `InstanceName` or `SecurityGroups` must be specified, but they can not be both specified.
+ // Modified instance name. can be named as required but should not exceed 128 characters.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// User data provided to an instance, which needs to be encoded in Base64 format with a maximum size of 16 KB. For details on obtaining this parameter, refer to the startup commands for [Windows](https://intl.cloud.tencent.com/document/product/213/17526?from_cn_redirect=1) and [Linux](https://intl.cloud.tencent.com/document/product/213/17525?from_cn_redirect=1).
UserData *string `json:"UserData,omitnil,omitempty" name:"UserData"`
- // IDs of security groups associated with the specified instance. You can associate with a security group by adding its ID, or cancel the association with a security group by removing its ID. Either `InstanceName` or `SecurityGroups` must be specified, but they cannot be both set.
+ // Specifies the security group Id list of the specified instance after modification. the instance will reassociate with the security groups in the specified list, and the associated security group will be unbound.
SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
// The role bound with the instance. If it is not specified, it indicates to unbind the current role of the CVM.
@@ -6173,9 +6424,9 @@ type ModifyInstancesAttributeRequestParams struct {
// Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:true: Instance protection is enabled, and the instance is not allowed to be deleted through the API.false: Instance protection is disabled, and the instance is allowed to be deleted through the API.Default value: false.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
- // The role type, which is used in conjunction with `CamRoleName`. The value is obtained in `RoleType` field, returning by `CAM DescribeRoleList` and `GetRole` APIs. Valid value: `user`, `system` and `service_linked`.
- // For example, when `LinkedRoleIn` is contained in `CamRoleName` (such as `TKE_QCSLinkedRoleInPrometheusService`), the returned `RoleType` of `DescribeRoleList` and `GetRoleis` is `service_linked`, and the `CamRoleType` `service_linked`.
- // When the value obtained in `RoleType` is `user` (default) or `system`, `CamRoleType` can be left empty.
+ // Role type, used in conjunction with CamRoleName. this value can be obtained from the RoleType field in the API response of CAM [DescribeRoleList](https://www.tencentcloud.comom/document/product/598/36223?from_cn_redirect=1) or [GetRole](https://www.tencentcloud.comom/document/product/598/36221?from_cn_redirect=1). currently, only user, system, and service_linked types are accepted.
+ // For example, when CamRoleName contains "LinkedRoleIn" (such as TKE_QCSLinkedRoleInPrometheusService), DescribeRoleList and GetRole return RoleType as service_linked, this parameter must also transmit service_linked.
+ // The parameter default value is user. this parameter can be omitted if CameRoleName is not of the service_linked kind.
CamRoleType *string `json:"CamRoleType,omitnil,omitempty" name:"CamRoleType"`
// Whether to automatically restart an instance when modifying a hostname. If not specified, the instance will automatically restart by default.
@@ -6191,14 +6442,13 @@ type ModifyInstancesAttributeRequest struct {
// Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
- // The instance name, which can not exceed 60 characters
- // Either `InstanceName` or `SecurityGroups` must be specified, but they can not be both specified.
+ // Modified instance name. can be named as required but should not exceed 128 characters.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// User data provided to an instance, which needs to be encoded in Base64 format with a maximum size of 16 KB. For details on obtaining this parameter, refer to the startup commands for [Windows](https://intl.cloud.tencent.com/document/product/213/17526?from_cn_redirect=1) and [Linux](https://intl.cloud.tencent.com/document/product/213/17525?from_cn_redirect=1).
UserData *string `json:"UserData,omitnil,omitempty" name:"UserData"`
- // IDs of security groups associated with the specified instance. You can associate with a security group by adding its ID, or cancel the association with a security group by removing its ID. Either `InstanceName` or `SecurityGroups` must be specified, but they cannot be both set.
+ // Specifies the security group Id list of the specified instance after modification. the instance will reassociate with the security groups in the specified list, and the associated security group will be unbound.
SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
// The role bound with the instance. If it is not specified, it indicates to unbind the current role of the CVM.
@@ -6210,9 +6460,9 @@ type ModifyInstancesAttributeRequest struct {
// Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:true: Instance protection is enabled, and the instance is not allowed to be deleted through the API.false: Instance protection is disabled, and the instance is allowed to be deleted through the API.Default value: false.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
- // The role type, which is used in conjunction with `CamRoleName`. The value is obtained in `RoleType` field, returning by `CAM DescribeRoleList` and `GetRole` APIs. Valid value: `user`, `system` and `service_linked`.
- // For example, when `LinkedRoleIn` is contained in `CamRoleName` (such as `TKE_QCSLinkedRoleInPrometheusService`), the returned `RoleType` of `DescribeRoleList` and `GetRoleis` is `service_linked`, and the `CamRoleType` `service_linked`.
- // When the value obtained in `RoleType` is `user` (default) or `system`, `CamRoleType` can be left empty.
+ // Role type, used in conjunction with CamRoleName. this value can be obtained from the RoleType field in the API response of CAM [DescribeRoleList](https://www.tencentcloud.comom/document/product/598/36223?from_cn_redirect=1) or [GetRole](https://www.tencentcloud.comom/document/product/598/36221?from_cn_redirect=1). currently, only user, system, and service_linked types are accepted.
+ // For example, when CamRoleName contains "LinkedRoleIn" (such as TKE_QCSLinkedRoleInPrometheusService), DescribeRoleList and GetRole return RoleType as service_linked, this parameter must also transmit service_linked.
+ // The parameter default value is user. this parameter can be omitted if CameRoleName is not of the service_linked kind.
CamRoleType *string `json:"CamRoleType,omitnil,omitempty" name:"CamRoleType"`
// Whether to automatically restart an instance when modifying a hostname. If not specified, the instance will automatically restart by default.
@@ -6271,6 +6521,155 @@ func (r *ModifyInstancesAttributeResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type ModifyInstancesChargeTypeRequestParams struct {
+ // One or more instance ids to be operated. you can obtain the instance ID through the `InstanceId` in the return value from the api [DescribeInstances](https://www.tencentcloud.com/document/api/213/15728?from_cn_redirect=1). the maximum number of instances per request is 30.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Modified instance [billing type](https://www.tencentcloud.com/document/product/213/2180?from_cn_redirect=1). `PREPAID`: monthly subscription.
+ // **Note:** Only supports converting pay-as-you-go instances to annual and monthly subscription instances.
+ //
+ // default value: `PREPAID`
+ InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`
+
+ // Modified prepaid mode, parameter settings related to monthly/annual subscription. by specifying this parameter, you can specify the purchase duration of annual and monthly subscription instances, whether to enable auto-renewal, and other attributes.
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Whether to switch the billing mode of elastic data cloud disks simultaneously. valid values: true: means switching the billing mode of elastic data cloud disks false: means not switching the billing mode of elastic data cloud disksdefault value: false.
+ ModifyPortableDataDisk *bool `json:"ModifyPortableDataDisk,omitnil,omitempty" name:"ModifyPortableDataDisk"`
+}
+
+type ModifyInstancesChargeTypeRequest struct {
+ *tchttp.BaseRequest
+
+ // One or more instance ids to be operated. you can obtain the instance ID through the `InstanceId` in the return value from the api [DescribeInstances](https://www.tencentcloud.com/document/api/213/15728?from_cn_redirect=1). the maximum number of instances per request is 30.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Modified instance [billing type](https://www.tencentcloud.com/document/product/213/2180?from_cn_redirect=1). `PREPAID`: monthly subscription.
+ // **Note:** Only supports converting pay-as-you-go instances to annual and monthly subscription instances.
+ //
+ // default value: `PREPAID`
+ InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`
+
+ // Modified prepaid mode, parameter settings related to monthly/annual subscription. by specifying this parameter, you can specify the purchase duration of annual and monthly subscription instances, whether to enable auto-renewal, and other attributes.
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Whether to switch the billing mode of elastic data cloud disks simultaneously. valid values: true: means switching the billing mode of elastic data cloud disks false: means not switching the billing mode of elastic data cloud disksdefault value: false.
+ ModifyPortableDataDisk *bool `json:"ModifyPortableDataDisk,omitnil,omitempty" name:"ModifyPortableDataDisk"`
+}
+
+func (r *ModifyInstancesChargeTypeRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyInstancesChargeTypeRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceIds")
+ delete(f, "InstanceChargeType")
+ delete(f, "InstanceChargePrepaid")
+ delete(f, "ModifyPortableDataDisk")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyInstancesChargeTypeRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyInstancesChargeTypeResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyInstancesChargeTypeResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyInstancesChargeTypeResponseParams `json:"Response"`
+}
+
+func (r *ModifyInstancesChargeTypeResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyInstancesChargeTypeResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyInstancesDisasterRecoverGroupRequestParams struct {
+ // One or more instance ids to be operated. you can obtain the instance ID through the `InstanceId` in the return value from the api [DescribeInstances](https://www.tencentcloud.com/zh/document/api/213/33258). the maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Spread placement group ID. obtain through the api [DescribeDisasterRecoverGroups](https://www.tencentcloud.com/zh/document/api/213/33261).
+ DisasterRecoverGroupId *string `json:"DisasterRecoverGroupId,omitnil,omitempty" name:"DisasterRecoverGroupId"`
+
+ // Whether to forcibly change instance hosts. value range:
true: indicates that the instance is allowed to change hosts, allowing the instance to reboot. local disk machine does not support specifying this parameter.
false: does not allow the instance to change hosts. instances can only be added to the placement group on the current host. this may result in a failure to change the placement group.
default value: false.
+ Force *bool `json:"Force,omitnil,omitempty" name:"Force"`
+}
+
+type ModifyInstancesDisasterRecoverGroupRequest struct {
+ *tchttp.BaseRequest
+
+ // One or more instance ids to be operated. you can obtain the instance ID through the `InstanceId` in the return value from the api [DescribeInstances](https://www.tencentcloud.com/zh/document/api/213/33258). the maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Spread placement group ID. obtain through the api [DescribeDisasterRecoverGroups](https://www.tencentcloud.com/zh/document/api/213/33261).
+ DisasterRecoverGroupId *string `json:"DisasterRecoverGroupId,omitnil,omitempty" name:"DisasterRecoverGroupId"`
+
+ // Whether to forcibly change instance hosts. value range:
true: indicates that the instance is allowed to change hosts, allowing the instance to reboot. local disk machine does not support specifying this parameter.
false: does not allow the instance to change hosts. instances can only be added to the placement group on the current host. this may result in a failure to change the placement group.
default value: false.
+ Force *bool `json:"Force,omitnil,omitempty" name:"Force"`
+}
+
+func (r *ModifyInstancesDisasterRecoverGroupRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyInstancesDisasterRecoverGroupRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceIds")
+ delete(f, "DisasterRecoverGroupId")
+ delete(f, "Force")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyInstancesDisasterRecoverGroupRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type ModifyInstancesDisasterRecoverGroupResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type ModifyInstancesDisasterRecoverGroupResponse struct {
+ *tchttp.BaseResponse
+ Response *ModifyInstancesDisasterRecoverGroupResponseParams `json:"Response"`
+}
+
+func (r *ModifyInstancesDisasterRecoverGroupResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *ModifyInstancesDisasterRecoverGroupResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
// Predefined struct for user
type ModifyInstancesProjectRequestParams struct {
// Instance IDs. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. You can operate up to 100 instances in each request.
@@ -6626,10 +7025,10 @@ type Placement struct {
// ID of the availability zone where the instance resides. You can call the [DescribeZones](https://intl.cloud.tencent.com/document/product/213/35071) API and obtain the ID in the returned `Zone` field.
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
- // ID of the project to which the instance belongs. This parameter can be obtained from the `projectId` returned by [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1). If this is left empty, the default project is used.
+ // Instance'S project ID. obtain this parameter by calling the `ProjectId` field in the return value of [DescribeProject](https://www.tencentcloud.com/document/product/651/54679). default value 0 means default project.
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
- // ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
+ // Specifies the dedicated host ID list for instance ownership, only used for input parameters. if you purchase a dedicated host and specify this parameter, instances you purchase will be randomly deployed on these dedicated hosts. obtain this parameter by calling the `HostId` field in the return value of [DescribeHosts](https://www.tencentcloud.com/document/product/213/33279?lang=en).
HostIds []*string `json:"HostIds,omitnil,omitempty" name:"HostIds"`
// The ID of the CDH to which the instance belongs, only used as an output parameter.
@@ -6658,7 +7057,7 @@ type PurchaseReservedInstancesOfferingRequestParams struct {
// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, see Ensuring Idempotency.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
- // Reserved instance name.
The RI name defaults to “unnamed” if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
+ // Reserved instance name.
The RI name defaults to "unnamed" if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
ReservedInstanceName *string `json:"ReservedInstanceName,omitnil,omitempty" name:"ReservedInstanceName"`
}
@@ -6677,7 +7076,7 @@ type PurchaseReservedInstancesOfferingRequest struct {
// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
For more information, see Ensuring Idempotency.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
- // Reserved instance name.
The RI name defaults to “unnamed” if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
+ // Reserved instance name.
The RI name defaults to "unnamed" if this parameter is left empty.You can enter any name within 60 characters (including the pattern string).
ReservedInstanceName *string `json:"ReservedInstanceName,omitnil,omitempty" name:"ReservedInstanceName"`
}
@@ -6916,6 +7315,76 @@ func (r *RemoveChcDeployVpcResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+// Predefined struct for user
+type RenewInstancesRequestParams struct {
+ // One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Prepaid mode, that is, parameter settings related to monthly/annual subscription. specifies attributes of a monthly subscription instance, such as renewal duration and whether to enable auto-renewal, by specifying this parameter. .
+ // Annual and monthly subscription instances. this parameter is a required parameter..
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Whether to renew the elastic data disk. valid values:
true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneouslyfalse: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk
default value: true.
+ RenewPortableDataDisk *bool `json:"RenewPortableDataDisk,omitnil,omitempty" name:"RenewPortableDataDisk"`
+}
+
+type RenewInstancesRequest struct {
+ *tchttp.BaseRequest
+
+ // One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
+ InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+
+ // Prepaid mode, that is, parameter settings related to monthly/annual subscription. specifies attributes of a monthly subscription instance, such as renewal duration and whether to enable auto-renewal, by specifying this parameter. .
+ // Annual and monthly subscription instances. this parameter is a required parameter..
+ InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`
+
+ // Whether to renew the elastic data disk. valid values:
true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneouslyfalse: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk
default value: true.
+ RenewPortableDataDisk *bool `json:"RenewPortableDataDisk,omitnil,omitempty" name:"RenewPortableDataDisk"`
+}
+
+func (r *RenewInstancesRequest) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RenewInstancesRequest) FromJsonString(s string) error {
+ f := make(map[string]interface{})
+ if err := json.Unmarshal([]byte(s), &f); err != nil {
+ return err
+ }
+ delete(f, "InstanceIds")
+ delete(f, "InstanceChargePrepaid")
+ delete(f, "RenewPortableDataDisk")
+ if len(f) > 0 {
+ return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RenewInstancesRequest has unknown keys!", "")
+ }
+ return json.Unmarshal([]byte(s), &r)
+}
+
+// Predefined struct for user
+type RenewInstancesResponseParams struct {
+ // The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
+ RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
+}
+
+type RenewInstancesResponse struct {
+ *tchttp.BaseResponse
+ Response *RenewInstancesResponseParams `json:"Response"`
+}
+
+func (r *RenewInstancesResponse) ToJsonString() string {
+ b, _ := json.Marshal(r)
+ return string(b)
+}
+
+// FromJsonString It is highly **NOT** recommended to use this function
+// because it has no param check, nor strict type check
+func (r *RenewInstancesResponse) FromJsonString(s string) error {
+ return json.Unmarshal([]byte(s), &r)
+}
+
type ReservedInstanceConfigInfoItem struct {
// Abbreviation name of the instance type.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
@@ -7452,18 +7921,17 @@ func (r *ResetInstancesTypeResponse) FromJsonString(s string) error {
// Predefined struct for user
type ResizeInstanceDisksRequestParams struct {
- // Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
+ // Instance ID to be operated. can be obtained from the `InstanceId` in the return value from the DescribeInstances api (https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1).
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
- // Configuration information of a data disk to be expanded. Only inelastic data disks (with `Portable` being `false` in the return values of [DescribeDisks](https://intl.cloud.tencent.com/document/api/362/16315?from_cn_redirect=1)) can be expanded. The unit of data disk capacity is GB. The minimum expansion step is 10 GB. For more information about data disk types, refer to [Disk Product Introduction](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). The available data disk type is restricted by the instance type `InstanceType`. Additionally, the maximum allowable capacity for expansion varies by data disk type.
+ // Specifies the configuration information of the data disk to be expanded, only supporting specifying the target capacity of the disk to be expanded. only non-elastic data disks (with `Portable` being `false` in the return values of [DescribeDisks](https://www.tencentcloud.comom/document/api/362/16315?from_cn_redirect=1)) can be expanded. the unit of data disk capacity is GiB. the minimum expansion step is 10 GiB. for data disk type selection, refer to [disk product introduction](https://www.tencentcloud.comom/document/product/362/2353?from_cn_redirect=1). the available data disk type is restricted by the instance type `InstanceType`. additionally, the maximum allowable capacity for expansion varies by data disk type.
// You should specify either DataDisks or SystemDisk, but you cannot specify both at the same time.
DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"`
- // Whether to forcibly shut down a running instance. It is recommended to manually shut down a running instance first and then reset the user password. Valid values:
true: Forcibly shut down an instance after a normal shutdown fails.
false: Do not forcibly shut down an instance after a normal shutdown fails.
Default value: false.
Forced shutdown is equivalent to turning off a physical computer's power switch. Forced shutdown may cause data loss or file system corruption and should only be used when a server cannot be shut down normally.
+ // Specifies whether to forcibly shut down a running instance. it is recommended to manually shut down a running instance first and then expand the instance disk. valid values:
true: forcibly shut down an instance after a normal shutdown fails.
false: do not forcibly shut down an instance after a normal shutdown fails.
default value: false.
forced shutdown is equivalent to turning off a physical computer's power switch. forced shutdown may cause data loss or file system corruption and should only be used when a server cannot be shut down normally.
ForceStop *bool `json:"ForceStop,omitnil,omitempty" name:"ForceStop"`
- // Configuration information of a system disk to be expanded. Only cloud disks can be expanded.
- //
+ // System disk configuration information to be expanded. only supports specifying the purpose capacity of the disk to be expanded. only supports cloud disk expansion.
// You should specify either DataDisks or SystemDisk, but you cannot specify both at the same time.
SystemDisk *SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"`
@@ -7474,18 +7942,17 @@ type ResizeInstanceDisksRequestParams struct {
type ResizeInstanceDisksRequest struct {
*tchttp.BaseRequest
- // Instance ID. To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response.
+ // Instance ID to be operated. can be obtained from the `InstanceId` in the return value from the DescribeInstances api (https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1).
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
- // Configuration information of a data disk to be expanded. Only inelastic data disks (with `Portable` being `false` in the return values of [DescribeDisks](https://intl.cloud.tencent.com/document/api/362/16315?from_cn_redirect=1)) can be expanded. The unit of data disk capacity is GB. The minimum expansion step is 10 GB. For more information about data disk types, refer to [Disk Product Introduction](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). The available data disk type is restricted by the instance type `InstanceType`. Additionally, the maximum allowable capacity for expansion varies by data disk type.
+ // Specifies the configuration information of the data disk to be expanded, only supporting specifying the target capacity of the disk to be expanded. only non-elastic data disks (with `Portable` being `false` in the return values of [DescribeDisks](https://www.tencentcloud.comom/document/api/362/16315?from_cn_redirect=1)) can be expanded. the unit of data disk capacity is GiB. the minimum expansion step is 10 GiB. for data disk type selection, refer to [disk product introduction](https://www.tencentcloud.comom/document/product/362/2353?from_cn_redirect=1). the available data disk type is restricted by the instance type `InstanceType`. additionally, the maximum allowable capacity for expansion varies by data disk type.
// You should specify either DataDisks or SystemDisk, but you cannot specify both at the same time.
DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"`
- // Whether to forcibly shut down a running instance. It is recommended to manually shut down a running instance first and then reset the user password. Valid values:
true: Forcibly shut down an instance after a normal shutdown fails.
false: Do not forcibly shut down an instance after a normal shutdown fails.
Default value: false.
Forced shutdown is equivalent to turning off a physical computer's power switch. Forced shutdown may cause data loss or file system corruption and should only be used when a server cannot be shut down normally.
+ // Specifies whether to forcibly shut down a running instance. it is recommended to manually shut down a running instance first and then expand the instance disk. valid values:
true: forcibly shut down an instance after a normal shutdown fails.
false: do not forcibly shut down an instance after a normal shutdown fails.
default value: false.
forced shutdown is equivalent to turning off a physical computer's power switch. forced shutdown may cause data loss or file system corruption and should only be used when a server cannot be shut down normally.
ForceStop *bool `json:"ForceStop,omitnil,omitempty" name:"ForceStop"`
- // Configuration information of a system disk to be expanded. Only cloud disks can be expanded.
- //
+ // System disk configuration information to be expanded. only supports specifying the purpose capacity of the disk to be expanded. only supports cloud disk expansion.
// You should specify either DataDisks or SystemDisk, but you cannot specify both at the same time.
SystemDisk *SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"`
@@ -7545,7 +8012,7 @@ type RunAutomationServiceEnabled struct {
// Predefined struct for user
type RunInstancesRequestParams struct {
- // Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
`POSTPAID_BY_HOUR`: Hourly-based pay-as-you-go
`CDHPAID`: Dedicated CVM (associated with a dedicated host. Resource usage of the dedicated host is free of charge.)
`SPOTPAID`: [Spot instance](https://intl.cloud.tencent.com/document/product/213/17817)
Default value: `POSTPAID_BY_HOUR`.
+ // Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
`PREPAID`: Monthly Subscription, used for at least one month
`POSTPAID_BY_HOUR`: Hourly-based pay-as-you-go
`CDHPAID`: [Dedicated CVM](https://www.tencentcloud.com/document/product/416/5068?lang=en&pg=) (associated with a dedicated host. Resource usage of the dedicated host is free of charge.)
`SPOTPAID`: [Spot instance](https://intl.cloud.tencent.com/document/product/213/17817)
Default value: `POSTPAID_BY_HOUR`.
InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`
// Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
@@ -7556,7 +8023,7 @@ type RunInstancesRequestParams struct {
Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"`
// The instance model.
- //
To view specific values for `POSTPAID_BY_HOUR` instances, you can call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). If this parameter is not specified, `S1.SMALL1` will be used by default.
For `CDHPAID` instances, the value of this parameter is in the format of `CDH_XCXG` based on the number of CPU cores and memory capacity. For example, if you want to create a CDH instance with a single-core CPU and 1 GB memory, specify this parameter as `CDH_1C1G`.
+ //
To view specific values for `POSTPAID_BY_HOUR` instances, you can call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1).
For `CDHPAID` instances, the value of this parameter is in the format of `CDH_XCXG` based on the number of CPU cores and memory capacity. For example, if you want to create a CDH instance with a single-core CPU and 1 GB memory, specify this parameter as `CDH_1C1G`.
InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// The [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images:
Public imagesCustom imagesShared images
To check the image ID:
For public images, custom images, and shared images, go to the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE). Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1), pass in `InstanceType` to retrieve the list of images supported by the current model, and then find the `ImageId` in the response.
@@ -7578,13 +8045,19 @@ type RunInstancesRequestParams struct {
// The number of instances to be purchased. Value range for pay-as-you-go instances: [1, 100]. Default value: `1`. The specified number of instances to be purchased cannot exceed the remaining quota allowed for the user. For more information on the quota, see [Quota for CVM Instances](https://intl.cloud.tencent.com/document/product/213/2664).
InstanceCount *int64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
- // Instance name.
If this parameter is not specified, "Unnamed" will be displayed by default.If you purchase multiple instances and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. For example, you specify a pattern string `server_{R:3}`. If you purchase only one instance, the instance will be named `server_3`; if you purchase two, they will be named `server_3` and `server_4`. You can specify multiple pattern strings in the format of `{R:x}`.If you purchase multiple instances without specifying a pattern string, the instance names will be suffixed with `1, 2...n`, where `n` represents the number of instances purchased. For example, if you purchase two instances with the name `server_`, the instance names will be `server_1` and `server_2`.This parameter can contain up to 60 characters (including pattern strings).
+ // Specifies the minimum number of instances to create. value range: positive integer not greater than InstanceCount.
+ // Specifies the minimum purchasable quantity, guarantees to create at least MinCount instances, and creates InstanceCount instances as much as possible.
+ // Insufficient inventory to meet the minimum purchasable quantity will trigger an error info indicating insufficient stock.
+ // Only applicable to accounts, regions, and billing modes (annual/monthly subscription, pay-as-you-go, spot instance, exclusive sales) with partial support.
+ MinCount *int64 `json:"MinCount,omitnil,omitempty" name:"MinCount"`
+
+ // Instance display name. if no instance display name is specified, it will display 'unnamed' by default. when purchasing multiple instances, if the pattern string `{R:x}` is specified, it means generating numbers `[x, x+n-1]`, where `n` represents the number of purchased instances. for example, `server_{R:3}`: when purchasing 1 instance, the instance display name is `server_3`; when purchasing 2 instances, the instance display names are `server_3` and `server_4` respectively. supports specifying multiple pattern strings `{R:x}`. when purchasing multiple instances without specifying a pattern string, suffixes `1, 2...n` will be added to the instance display name, where `n` represents the number of purchased instances. for example, `server_`: when purchasing 2 instances, the instance display names are `server_1` and `server_2` respectively. supports up to 128 characters (including pattern strings)..
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Instance login settings. You can use this parameter to set the login method, password and key of the instance, or keep the original login settings of the image. If it's not specified, the user needs to set the login password using the "Reset password" option in the CVM console or calling the API `ResetInstancesPassword` to complete the creation of the CVM instance(s).
LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"`
- // Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will be associated with default security groups.
+ // Security group to which an instance belongs. obtain this parameter by calling the `SecurityGroupId` field in the return value of [DescribeSecurityGroups](https://www.tencentcloud.com/document/product/215/15808?from_search=1). if not specified, bind the default security group under the designated project. if the default security group does not exist, automatically create it.
SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default. However, for custom images and images from the marketplace, Anti-DDoS and Cloud Monitor are not enabled by default. The original services in the image will be retained.
@@ -7611,6 +8084,10 @@ type RunInstancesRequestParams struct {
// User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB. For more information on how to get the value of this parameter, see the commands you need to execute on startup for [Windows](https://intl.cloud.tencent.com/document/product/213/17526) or [Linux](https://intl.cloud.tencent.com/document/product/213/17525).
UserData *string `json:"UserData,omitnil,omitempty" name:"UserData"`
+ // Custom metadata. specifies the support for creating custom metadata key-value pairs when creating a CVM.
+ // **Note: this field is in beta test.**.
+ Metadata *Metadata `json:"Metadata,omitnil,omitempty" name:"Metadata"`
+
// Whether the request is a dry run only.
// `true`: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available.
// If the dry run fails, the corresponding error code will be returned.
@@ -7638,12 +8115,15 @@ type RunInstancesRequestParams struct {
// Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:
true: Instance protection is enabled, and the instance is not allowed to be deleted through the API.
false: Instance protection is disabled, and the instance is allowed to be deleted through the API.
Default value: false.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
+
+ // Whether the instance enables jumbo frames. valid values:
true: means the instance enables jumbo frames. only models supporting jumbo frames can be set to true.
false: means the instance disables jumbo frames. only models supporting jumbo frames can be set to false.
instance specifications supporting jumbo frames: [instance specifications](https://www.tencentcloud.com/document/product/213/11518?lang=en&pg=).
+ EnableJumboFrame *bool `json:"EnableJumboFrame,omitnil,omitempty" name:"EnableJumboFrame"`
}
type RunInstancesRequest struct {
*tchttp.BaseRequest
- // Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
`POSTPAID_BY_HOUR`: Hourly-based pay-as-you-go
`CDHPAID`: Dedicated CVM (associated with a dedicated host. Resource usage of the dedicated host is free of charge.)
`SPOTPAID`: [Spot instance](https://intl.cloud.tencent.com/document/product/213/17817)
Default value: `POSTPAID_BY_HOUR`.
+ // Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
`PREPAID`: Monthly Subscription, used for at least one month
`POSTPAID_BY_HOUR`: Hourly-based pay-as-you-go
`CDHPAID`: [Dedicated CVM](https://www.tencentcloud.com/document/product/416/5068?lang=en&pg=) (associated with a dedicated host. Resource usage of the dedicated host is free of charge.)
`SPOTPAID`: [Spot instance](https://intl.cloud.tencent.com/document/product/213/17817)
Default value: `POSTPAID_BY_HOUR`.
InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`
// Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
@@ -7654,7 +8134,7 @@ type RunInstancesRequest struct {
Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"`
// The instance model.
- //
To view specific values for `POSTPAID_BY_HOUR` instances, you can call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). If this parameter is not specified, `S1.SMALL1` will be used by default.
For `CDHPAID` instances, the value of this parameter is in the format of `CDH_XCXG` based on the number of CPU cores and memory capacity. For example, if you want to create a CDH instance with a single-core CPU and 1 GB memory, specify this parameter as `CDH_1C1G`.
+ //
To view specific values for `POSTPAID_BY_HOUR` instances, you can call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1).
For `CDHPAID` instances, the value of this parameter is in the format of `CDH_XCXG` based on the number of CPU cores and memory capacity. For example, if you want to create a CDH instance with a single-core CPU and 1 GB memory, specify this parameter as `CDH_1C1G`.
InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`
// The [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images:
Public imagesCustom imagesShared images
To check the image ID:
For public images, custom images, and shared images, go to the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE). Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1), pass in `InstanceType` to retrieve the list of images supported by the current model, and then find the `ImageId` in the response.
@@ -7676,13 +8156,19 @@ type RunInstancesRequest struct {
// The number of instances to be purchased. Value range for pay-as-you-go instances: [1, 100]. Default value: `1`. The specified number of instances to be purchased cannot exceed the remaining quota allowed for the user. For more information on the quota, see [Quota for CVM Instances](https://intl.cloud.tencent.com/document/product/213/2664).
InstanceCount *int64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
- // Instance name.
If this parameter is not specified, "Unnamed" will be displayed by default.If you purchase multiple instances and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. For example, you specify a pattern string `server_{R:3}`. If you purchase only one instance, the instance will be named `server_3`; if you purchase two, they will be named `server_3` and `server_4`. You can specify multiple pattern strings in the format of `{R:x}`.If you purchase multiple instances without specifying a pattern string, the instance names will be suffixed with `1, 2...n`, where `n` represents the number of instances purchased. For example, if you purchase two instances with the name `server_`, the instance names will be `server_1` and `server_2`.This parameter can contain up to 60 characters (including pattern strings).
+ // Specifies the minimum number of instances to create. value range: positive integer not greater than InstanceCount.
+ // Specifies the minimum purchasable quantity, guarantees to create at least MinCount instances, and creates InstanceCount instances as much as possible.
+ // Insufficient inventory to meet the minimum purchasable quantity will trigger an error info indicating insufficient stock.
+ // Only applicable to accounts, regions, and billing modes (annual/monthly subscription, pay-as-you-go, spot instance, exclusive sales) with partial support.
+ MinCount *int64 `json:"MinCount,omitnil,omitempty" name:"MinCount"`
+
+ // Instance display name. if no instance display name is specified, it will display 'unnamed' by default. when purchasing multiple instances, if the pattern string `{R:x}` is specified, it means generating numbers `[x, x+n-1]`, where `n` represents the number of purchased instances. for example, `server_{R:3}`: when purchasing 1 instance, the instance display name is `server_3`; when purchasing 2 instances, the instance display names are `server_3` and `server_4` respectively. supports specifying multiple pattern strings `{R:x}`. when purchasing multiple instances without specifying a pattern string, suffixes `1, 2...n` will be added to the instance display name, where `n` represents the number of purchased instances. for example, `server_`: when purchasing 2 instances, the instance display names are `server_1` and `server_2` respectively. supports up to 128 characters (including pattern strings)..
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Instance login settings. You can use this parameter to set the login method, password and key of the instance, or keep the original login settings of the image. If it's not specified, the user needs to set the login password using the "Reset password" option in the CVM console or calling the API `ResetInstancesPassword` to complete the creation of the CVM instance(s).
LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"`
- // Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will be associated with default security groups.
+ // Security group to which an instance belongs. obtain this parameter by calling the `SecurityGroupId` field in the return value of [DescribeSecurityGroups](https://www.tencentcloud.com/document/product/215/15808?from_search=1). if not specified, bind the default security group under the designated project. if the default security group does not exist, automatically create it.
SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
// Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default. However, for custom images and images from the marketplace, Anti-DDoS and Cloud Monitor are not enabled by default. The original services in the image will be retained.
@@ -7709,6 +8195,10 @@ type RunInstancesRequest struct {
// User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB. For more information on how to get the value of this parameter, see the commands you need to execute on startup for [Windows](https://intl.cloud.tencent.com/document/product/213/17526) or [Linux](https://intl.cloud.tencent.com/document/product/213/17525).
UserData *string `json:"UserData,omitnil,omitempty" name:"UserData"`
+ // Custom metadata. specifies the support for creating custom metadata key-value pairs when creating a CVM.
+ // **Note: this field is in beta test.**.
+ Metadata *Metadata `json:"Metadata,omitnil,omitempty" name:"Metadata"`
+
// Whether the request is a dry run only.
// `true`: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available.
// If the dry run fails, the corresponding error code will be returned.
@@ -7736,6 +8226,9 @@ type RunInstancesRequest struct {
// Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:
true: Instance protection is enabled, and the instance is not allowed to be deleted through the API.
false: Instance protection is disabled, and the instance is allowed to be deleted through the API.
Default value: false.
DisableApiTermination *bool `json:"DisableApiTermination,omitnil,omitempty" name:"DisableApiTermination"`
+
+ // Whether the instance enables jumbo frames. valid values:
true: means the instance enables jumbo frames. only models supporting jumbo frames can be set to true.
false: means the instance disables jumbo frames. only models supporting jumbo frames can be set to false.
instance specifications supporting jumbo frames: [instance specifications](https://www.tencentcloud.com/document/product/213/11518?lang=en&pg=).
+ EnableJumboFrame *bool `json:"EnableJumboFrame,omitnil,omitempty" name:"EnableJumboFrame"`
}
func (r *RunInstancesRequest) ToJsonString() string {
@@ -7760,6 +8253,7 @@ func (r *RunInstancesRequest) FromJsonString(s string) error {
delete(f, "VirtualPrivateCloud")
delete(f, "InternetAccessible")
delete(f, "InstanceCount")
+ delete(f, "MinCount")
delete(f, "InstanceName")
delete(f, "LoginSettings")
delete(f, "SecurityGroupIds")
@@ -7771,6 +8265,7 @@ func (r *RunInstancesRequest) FromJsonString(s string) error {
delete(f, "TagSpecification")
delete(f, "InstanceMarketOptions")
delete(f, "UserData")
+ delete(f, "Metadata")
delete(f, "DryRun")
delete(f, "CpuTopology")
delete(f, "CamRoleName")
@@ -7779,6 +8274,7 @@ func (r *RunInstancesRequest) FromJsonString(s string) error {
delete(f, "DedicatedClusterId")
delete(f, "ChcIds")
delete(f, "DisableApiTermination")
+ delete(f, "EnableJumboFrame")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RunInstancesRequest has unknown keys!", "")
}
@@ -7909,6 +8405,8 @@ type StopInstancesRequestParams struct {
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
// (Disused. Please use `StopType` instead.) Whether to forcibly shut down an instance after a normal shutdown fails. Valid values:
`TRUE`: yes;
`FALSE`: no
Default value: `FALSE`.
+ //
+ // Deprecated: ForceStop is deprecated.
ForceStop *bool `json:"ForceStop,omitnil,omitempty" name:"ForceStop"`
// Instance shutdown mode. Valid values:
SOFT_FIRST: perform a soft shutdown first, and force shut down the instance if the soft shutdown fails
HARD: force shut down the instance directly
SOFT: soft shutdown only
Default value: SOFT.
@@ -8117,26 +8615,27 @@ func (r *SyncImagesResponse) FromJsonString(s string) error {
}
type SystemDisk struct {
- // Specifies the system disk type. for the restrictions on the system disk type, refer to [storage overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). value range:
.
- // LOCAL_BASIC: specifies a local hard disk..
- // LOCAL_SSD: specifies a local ssd..
- // CLOUD_BASIC: ordinary cloud disk..
- // CLOUD_SSD: ssd cloud disk.
- // CLOUD_PREMIUM: high-performance cloud block storage..
- // CLOUD_BSSD: universal type ssd cloud disk.
- // CLOUD_HSSD: enhanced ssd cloud disk.
- // CLOUD_TSSD: ultra-fast SSD cbs
+ // LOCAL_BASIC: Local SATA disk
+ // LOCAL_SSD: Local NVMe SSD
+ // CLOUD_BASIC: Cloud SATA disk
+ // CLOUD_SSD: Cloud SSD
+ // CLOUD_PREMIUM: Premium SSD
+ // CLOUD_BSSD: Balanced SSD
+ // CLOUD_HSSD: Enhanced SSD
+ // CLOUD_TSSD: Tremendous SSD
// Default value: Current disk types with inventory available.
DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"`
- // Specifies the system disk ID.
- // This parameter currently only serves as a response parameter for query apis such as `DescribeInstances`, and cannot be used as an input parameter for write apis such as `RunInstances`.
+ // System disk ID.
+ // Currently, this parameter is only used for response parameters in query apis such as [DescribeInstances](https://www.tencentcloud.com/document/api/213/33258) and is not applicable to request parameters in write apis such as [RunInstances](https://www.tencentcloud.com/document/api/213/33237).
DiskId *string `json:"DiskId,omitnil,omitempty" name:"DiskId"`
// System disk size; unit: GiB; default value: 50 GiB.
DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"`
- // Specifies the exclusive cluster ID it belongs to.
+ // Specifies the dedicated cluster ID belonging to.
+ // Note: This field may return null, indicating that no valid value is found.
CdcId *string `json:"CdcId,omitnil,omitempty" name:"CdcId"`
// Disk name, which specifies a length not exceeding 128 characters.
@@ -8152,7 +8651,7 @@ type Tag struct {
}
type TagSpecification struct {
- // Tag-Bound resource type. "instance" for cloud virtual machine, "host" for cdh, "image" for mirror, and "keypair" for key.
+ // Specifies the resource type for Tag binding. valid values: "instance" (cloud virtual machine), "host" (cdh), "image" (mirror), "keypair" (key), "ps" (placement group), "hpc" (hyper computing cluster).
ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"`
// Tag pair list
@@ -8172,6 +8671,12 @@ type TerminateInstancesRequestParams struct {
// One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+ // Release an Elastic IP. Under EIP 2.0, only the first EIP on the primary network interface can be released, and currently supported release types are limited to HighQualityEIP, AntiDDoSEIP, EIPv6, and HighQualityEIPv6.
+ // Default value: `false`.
+ //
+ // This feature is currently in gradually released phase. To access it, please contact us.
+ ReleaseAddress *bool `json:"ReleaseAddress,omitnil,omitempty" name:"ReleaseAddress"`
+
// Whether to release a monthly subscription data disk mounted on an instance. true: Release the data disk along with termination of the instance. false: Only terminate the instance.
// Default value: `false`.
ReleasePrepaidDataDisks *bool `json:"ReleasePrepaidDataDisks,omitnil,omitempty" name:"ReleasePrepaidDataDisks"`
@@ -8183,6 +8688,12 @@ type TerminateInstancesRequest struct {
// One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
+ // Release an Elastic IP. Under EIP 2.0, only the first EIP on the primary network interface can be released, and currently supported release types are limited to HighQualityEIP, AntiDDoSEIP, EIPv6, and HighQualityEIPv6.
+ // Default value: `false`.
+ //
+ // This feature is currently in gradually released phase. To access it, please contact us.
+ ReleaseAddress *bool `json:"ReleaseAddress,omitnil,omitempty" name:"ReleaseAddress"`
+
// Whether to release a monthly subscription data disk mounted on an instance. true: Release the data disk along with termination of the instance. false: Only terminate the instance.
// Default value: `false`.
ReleasePrepaidDataDisks *bool `json:"ReleasePrepaidDataDisks,omitnil,omitempty" name:"ReleasePrepaidDataDisks"`
@@ -8201,6 +8712,7 @@ func (r *TerminateInstancesRequest) FromJsonString(s string) error {
return err
}
delete(f, "InstanceIds")
+ delete(f, "ReleaseAddress")
delete(f, "ReleasePrepaidDataDisks")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "TerminateInstancesRequest has unknown keys!", "")
@@ -8231,10 +8743,10 @@ func (r *TerminateInstancesResponse) FromJsonString(s string) error {
}
type VirtualPrivateCloud struct {
- // VPC ID in the format of `vpc-xxx`. To obtain valid VPC IDs, you can log in to the [console](https://console.cloud.tencent.com/vpc/vpc?rid=1) or call the [DescribeVpcs](https://www.tencentcloud.com/document/product/215/15778) API and look for the `unVpcId` fields in the response. If you specify `DEFAULT` for both `VpcId` and `SubnetId` when creating an instance, the default VPC will be used.
+ // vpc ID, such as `vpc-xxx`. valid vpc ids can be queried by logging in to the console (https://console.cloud.tencent.com/vpc/vpc?rid=1) or by calling the API [DescribeVpcs](https://www.tencentcloud.com/document/product/215/15778?lang=en) and obtaining the `VpcId` field from the API response. if both VpcId and SubnetId are input as `DEFAULT` when creating an instance, the DEFAULT vpc network will be forcibly used.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
- // vpc subnet ID, in the form of `subnet-xxx`. valid vpc subnet ids can be queried by logging in to the console (https://console.cloud.tencent.com/vpc/subnet?rid=1); or they can be obtained from the `SubnetId` field in the API response by calling the DescribeSubnets API (https://intl.cloud.tencent.com/document/product/215/15784?from_cn_redirect=1). if SubnetId and VpcId are both input as `DEFAULT` when creating an instance, the DEFAULT vpc network will be forcibly used.
+ // vpc subnet ID, in the form of `subnet-xxx`. valid vpc subnet ids can be queried by logging in to the [console](https://console.tencentcloud.com/vpc/subnet); or they can be obtained from the `SubnetId` field in the API response by calling the [DescribeSubnets](https://www.tencentcloud.com/document/product/215/15784) API . if SubnetId and VpcId are both input as `DEFAULT` when creating an instance, the DEFAULT vpc network will be forcibly used.
SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// Whether it is used as a public gateway. A public gateway can only be used normally when an instance has a public IP address and is in a VPC. Valid values:true: It is used as a public gateway.false: It is not used as a public gateway.Default value: false.
@@ -8244,6 +8756,7 @@ type VirtualPrivateCloud struct {
PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
// Number of IPv6 addresses randomly generated for the ENI.
+ // If IPv6AddressType is specified under InternetAccessible, this parameter must not be set to 0.
Ipv6AddressCount *uint64 `json:"Ipv6AddressCount,omitnil,omitempty" name:"Ipv6AddressCount"`
}
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/client.go
index e3ceaa478b..566e99e913 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/client.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/client.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -108,6 +108,7 @@ func (c *Client) CreateStreamLiveChannelWithContext(ctx context.Context, request
if request == nil {
request = NewCreateStreamLiveChannelRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "CreateStreamLiveChannel")
if c.GetCredential() == nil {
return nil, errors.New("CreateStreamLiveChannel require credential")
@@ -171,6 +172,7 @@ func (c *Client) CreateStreamLiveInputWithContext(ctx context.Context, request *
if request == nil {
request = NewCreateStreamLiveInputRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "CreateStreamLiveInput")
if c.GetCredential() == nil {
return nil, errors.New("CreateStreamLiveInput require credential")
@@ -228,6 +230,7 @@ func (c *Client) CreateStreamLiveInputSecurityGroupWithContext(ctx context.Conte
if request == nil {
request = NewCreateStreamLiveInputSecurityGroupRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "CreateStreamLiveInputSecurityGroup")
if c.GetCredential() == nil {
return nil, errors.New("CreateStreamLiveInputSecurityGroup require credential")
@@ -281,6 +284,7 @@ func (c *Client) CreateStreamLivePlanWithContext(ctx context.Context, request *C
if request == nil {
request = NewCreateStreamLivePlanRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "CreateStreamLivePlan")
if c.GetCredential() == nil {
return nil, errors.New("CreateStreamLivePlan require credential")
@@ -340,6 +344,7 @@ func (c *Client) CreateStreamLiveWatermarkWithContext(ctx context.Context, reque
if request == nil {
request = NewCreateStreamLiveWatermarkRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "CreateStreamLiveWatermark")
if c.GetCredential() == nil {
return nil, errors.New("CreateStreamLiveWatermark require credential")
@@ -399,6 +404,7 @@ func (c *Client) DeleteStreamLiveChannelWithContext(ctx context.Context, request
if request == nil {
request = NewDeleteStreamLiveChannelRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DeleteStreamLiveChannel")
if c.GetCredential() == nil {
return nil, errors.New("DeleteStreamLiveChannel require credential")
@@ -456,6 +462,7 @@ func (c *Client) DeleteStreamLiveInputWithContext(ctx context.Context, request *
if request == nil {
request = NewDeleteStreamLiveInputRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DeleteStreamLiveInput")
if c.GetCredential() == nil {
return nil, errors.New("DeleteStreamLiveInput require credential")
@@ -513,6 +520,7 @@ func (c *Client) DeleteStreamLiveInputSecurityGroupWithContext(ctx context.Conte
if request == nil {
request = NewDeleteStreamLiveInputSecurityGroupRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DeleteStreamLiveInputSecurityGroup")
if c.GetCredential() == nil {
return nil, errors.New("DeleteStreamLiveInputSecurityGroup require credential")
@@ -566,6 +574,7 @@ func (c *Client) DeleteStreamLivePlanWithContext(ctx context.Context, request *D
if request == nil {
request = NewDeleteStreamLivePlanRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DeleteStreamLivePlan")
if c.GetCredential() == nil {
return nil, errors.New("DeleteStreamLivePlan require credential")
@@ -621,6 +630,7 @@ func (c *Client) DeleteStreamLiveWatermarkWithContext(ctx context.Context, reque
if request == nil {
request = NewDeleteStreamLiveWatermarkRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DeleteStreamLiveWatermark")
if c.GetCredential() == nil {
return nil, errors.New("DeleteStreamLiveWatermark require credential")
@@ -672,6 +682,7 @@ func (c *Client) DescribeStreamLiveChannelWithContext(ctx context.Context, reque
if request == nil {
request = NewDescribeStreamLiveChannelRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveChannel")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveChannel require credential")
@@ -723,6 +734,7 @@ func (c *Client) DescribeStreamLiveChannelAlertsWithContext(ctx context.Context,
if request == nil {
request = NewDescribeStreamLiveChannelAlertsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveChannelAlerts")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveChannelAlerts require credential")
@@ -778,6 +790,7 @@ func (c *Client) DescribeStreamLiveChannelInputStatisticsWithContext(ctx context
if request == nil {
request = NewDescribeStreamLiveChannelInputStatisticsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveChannelInputStatistics")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveChannelInputStatistics require credential")
@@ -833,6 +846,7 @@ func (c *Client) DescribeStreamLiveChannelLogsWithContext(ctx context.Context, r
if request == nil {
request = NewDescribeStreamLiveChannelLogsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveChannelLogs")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveChannelLogs require credential")
@@ -890,6 +904,7 @@ func (c *Client) DescribeStreamLiveChannelOutputStatisticsWithContext(ctx contex
if request == nil {
request = NewDescribeStreamLiveChannelOutputStatisticsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveChannelOutputStatistics")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveChannelOutputStatistics require credential")
@@ -939,6 +954,7 @@ func (c *Client) DescribeStreamLiveChannelsWithContext(ctx context.Context, requ
if request == nil {
request = NewDescribeStreamLiveChannelsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveChannels")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveChannels require credential")
@@ -994,6 +1010,7 @@ func (c *Client) DescribeStreamLiveInputWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeStreamLiveInputRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveInput")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveInput require credential")
@@ -1049,6 +1066,7 @@ func (c *Client) DescribeStreamLiveInputSecurityGroupWithContext(ctx context.Con
if request == nil {
request = NewDescribeStreamLiveInputSecurityGroupRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveInputSecurityGroup")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveInputSecurityGroup require credential")
@@ -1098,6 +1116,7 @@ func (c *Client) DescribeStreamLiveInputSecurityGroupsWithContext(ctx context.Co
if request == nil {
request = NewDescribeStreamLiveInputSecurityGroupsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveInputSecurityGroups")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveInputSecurityGroups require credential")
@@ -1147,6 +1166,7 @@ func (c *Client) DescribeStreamLiveInputsWithContext(ctx context.Context, reques
if request == nil {
request = NewDescribeStreamLiveInputsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveInputs")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveInputs require credential")
@@ -1198,6 +1218,7 @@ func (c *Client) DescribeStreamLivePlansWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeStreamLivePlansRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLivePlans")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLivePlans require credential")
@@ -1247,6 +1268,7 @@ func (c *Client) DescribeStreamLiveRegionsWithContext(ctx context.Context, reque
if request == nil {
request = NewDescribeStreamLiveRegionsRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveRegions")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveRegions require credential")
@@ -1306,6 +1328,7 @@ func (c *Client) DescribeStreamLiveTranscodeDetailWithContext(ctx context.Contex
if request == nil {
request = NewDescribeStreamLiveTranscodeDetailRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveTranscodeDetail")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveTranscodeDetail require credential")
@@ -1359,6 +1382,7 @@ func (c *Client) DescribeStreamLiveWatermarkWithContext(ctx context.Context, req
if request == nil {
request = NewDescribeStreamLiveWatermarkRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveWatermark")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveWatermark require credential")
@@ -1412,6 +1436,7 @@ func (c *Client) DescribeStreamLiveWatermarksWithContext(ctx context.Context, re
if request == nil {
request = NewDescribeStreamLiveWatermarksRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "DescribeStreamLiveWatermarks")
if c.GetCredential() == nil {
return nil, errors.New("DescribeStreamLiveWatermarks require credential")
@@ -1461,6 +1486,7 @@ func (c *Client) GetAbWatermarkPlayUrlWithContext(ctx context.Context, request *
if request == nil {
request = NewGetAbWatermarkPlayUrlRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "GetAbWatermarkPlayUrl")
if c.GetCredential() == nil {
return nil, errors.New("GetAbWatermarkPlayUrl require credential")
@@ -1532,6 +1558,7 @@ func (c *Client) ModifyStreamLiveChannelWithContext(ctx context.Context, request
if request == nil {
request = NewModifyStreamLiveChannelRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "ModifyStreamLiveChannel")
if c.GetCredential() == nil {
return nil, errors.New("ModifyStreamLiveChannel require credential")
@@ -1595,6 +1622,7 @@ func (c *Client) ModifyStreamLiveInputWithContext(ctx context.Context, request *
if request == nil {
request = NewModifyStreamLiveInputRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "ModifyStreamLiveInput")
if c.GetCredential() == nil {
return nil, errors.New("ModifyStreamLiveInput require credential")
@@ -1654,6 +1682,7 @@ func (c *Client) ModifyStreamLiveInputSecurityGroupWithContext(ctx context.Conte
if request == nil {
request = NewModifyStreamLiveInputSecurityGroupRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "ModifyStreamLiveInputSecurityGroup")
if c.GetCredential() == nil {
return nil, errors.New("ModifyStreamLiveInputSecurityGroup require credential")
@@ -1713,6 +1742,7 @@ func (c *Client) ModifyStreamLiveWatermarkWithContext(ctx context.Context, reque
if request == nil {
request = NewModifyStreamLiveWatermarkRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "ModifyStreamLiveWatermark")
if c.GetCredential() == nil {
return nil, errors.New("ModifyStreamLiveWatermark require credential")
@@ -1768,6 +1798,7 @@ func (c *Client) QueryInputStreamStateWithContext(ctx context.Context, request *
if request == nil {
request = NewQueryInputStreamStateRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "QueryInputStreamState")
if c.GetCredential() == nil {
return nil, errors.New("QueryInputStreamState require credential")
@@ -1825,6 +1856,7 @@ func (c *Client) StartStreamLiveChannelWithContext(ctx context.Context, request
if request == nil {
request = NewStartStreamLiveChannelRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "StartStreamLiveChannel")
if c.GetCredential() == nil {
return nil, errors.New("StartStreamLiveChannel require credential")
@@ -1882,6 +1914,7 @@ func (c *Client) StopStreamLiveChannelWithContext(ctx context.Context, request *
if request == nil {
request = NewStopStreamLiveChannelRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "mdl", APIVersion, "StopStreamLiveChannel")
if c.GetCredential() == nil {
return nil, errors.New("StopStreamLiveChannel require credential")
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/errors.go
index 90263a213c..a9159e58c8 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/errors.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/errors.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ const (
// The quantity exceeds the limit.
INVALIDPARAMETER_EXCEEDEDQUANTITYLIMIT = "InvalidParameter.ExceededQuantityLimit"
- //
+ // FrameCaptureTemplates parameter is invalid.
INVALIDPARAMETER_FRAMECAPTURETEMPLATES = "InvalidParameter.FrameCaptureTemplates"
// Invalid `Id`.
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/models.go
index 036724cc33..df92e94c1c 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/models.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326/models.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -134,6 +134,11 @@ type AVTemplate struct {
ColorSpaceSettings *ColorSpaceSetting `json:"ColorSpaceSettings,omitnil,omitempty" name:"ColorSpaceSettings"`
}
+type AbWatermarkSettingsReq struct {
+
+ Type *string `json:"Type,omitnil,omitempty" name:"Type"`
+}
+
type AdditionalRateSetting struct {
// The maximum bit rate in a VBR scenario must be a multiple of 1000 and between 50000 - 40000000.
VideoMaxBitrate *uint64 `json:"VideoMaxBitrate,omitnil,omitempty" name:"VideoMaxBitrate"`
@@ -251,7 +256,7 @@ type AudioTemplateInfo struct {
// Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000, 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 288000, 320000, 384000, 448000, 512000, 576000, 640000, 768000, 896000, 1024000
AudioBitrate *uint64 `json:"AudioBitrate,omitnil,omitempty" name:"AudioBitrate"`
- // Audio language code, whose length is always 3 characters.
+ // Audio language code, which length is between 2 and 20.
LanguageCode *string `json:"LanguageCode,omitnil,omitempty" name:"LanguageCode"`
// Audio transcoding special configuration information.
@@ -262,6 +267,9 @@ type AudioTemplateInfo struct {
// Audio encoding parameters.
AudioCodecDetails *AudioCodecDetail `json:"AudioCodecDetails,omitnil,omitempty" name:"AudioCodecDetails"`
+
+ // Audio language description, which maximum length is 100.
+ LanguageDescription *string `json:"LanguageDescription,omitnil,omitempty" name:"LanguageDescription"`
}
type AudioTrackInfo struct {
@@ -429,6 +437,9 @@ type CreateStreamLiveChannelRequestParams struct {
// Frame capture templates.
FrameCaptureTemplates []*FrameCaptureTemplate `json:"FrameCaptureTemplates,omitnil,omitempty" name:"FrameCaptureTemplates"`
+
+ // General settings.
+ GeneralSettings *GeneralSetting `json:"GeneralSettings,omitnil,omitempty" name:"GeneralSettings"`
}
type CreateStreamLiveChannelRequest struct {
@@ -475,6 +486,9 @@ type CreateStreamLiveChannelRequest struct {
// Frame capture templates.
FrameCaptureTemplates []*FrameCaptureTemplate `json:"FrameCaptureTemplates,omitnil,omitempty" name:"FrameCaptureTemplates"`
+
+ // General settings.
+ GeneralSettings *GeneralSetting `json:"GeneralSettings,omitnil,omitempty" name:"GeneralSettings"`
}
func (r *CreateStreamLiveChannelRequest) ToJsonString() string {
@@ -503,6 +517,7 @@ func (r *CreateStreamLiveChannelRequest) FromJsonString(s string) error {
delete(f, "InputAnalysisSettings")
delete(f, "Tags")
delete(f, "FrameCaptureTemplates")
+ delete(f, "GeneralSettings")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateStreamLiveChannelRequest has unknown keys!", "")
}
@@ -765,6 +780,9 @@ type CreateStreamLiveWatermarkRequestParams struct {
// Watermark text settings. This parameter is valid if `Type` is `TEXT`.
TextSettings *CreateTextSettings `json:"TextSettings,omitnil,omitempty" name:"TextSettings"`
+
+ // AB watermark configuration
+ AbWatermarkSettings *AbWatermarkSettingsReq `json:"AbWatermarkSettings,omitnil,omitempty" name:"AbWatermarkSettings"`
}
type CreateStreamLiveWatermarkRequest struct {
@@ -781,6 +799,9 @@ type CreateStreamLiveWatermarkRequest struct {
// Watermark text settings. This parameter is valid if `Type` is `TEXT`.
TextSettings *CreateTextSettings `json:"TextSettings,omitnil,omitempty" name:"TextSettings"`
+
+ // AB watermark configuration
+ AbWatermarkSettings *AbWatermarkSettingsReq `json:"AbWatermarkSettings,omitnil,omitempty" name:"AbWatermarkSettings"`
}
func (r *CreateStreamLiveWatermarkRequest) ToJsonString() string {
@@ -799,6 +820,7 @@ func (r *CreateStreamLiveWatermarkRequest) FromJsonString(s string) error {
delete(f, "Type")
delete(f, "ImageSettings")
delete(f, "TextSettings")
+ delete(f, "AbWatermarkSettings")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateStreamLiveWatermarkRequest has unknown keys!", "")
}
@@ -1206,7 +1228,7 @@ func (r *DescribeStreamLiveChannelAlertsRequest) FromJsonString(s string) error
// Predefined struct for user
type DescribeStreamLiveChannelAlertsResponseParams struct {
- // Alarm information of the channel’s two pipelines
+ // Alarm information of the channel's two pipelines
Infos *ChannelAlertInfos `json:"Infos,omitnil,omitempty" name:"Infos"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
@@ -2314,12 +2336,15 @@ type EventSettingsDestinationResp struct {
}
type EventSettingsReq struct {
- // Valid values: `INPUT_SWITCH`, `TIMED_RECORD`, SCTE35_TIME_SIGNAL, SCTE35_SPLICE_INSERT, SCTE35_RETURN_TO_NETWORK. If it is not specified, `INPUT_SWITCH` will be used.
+ // Valid values: `INPUT_SWITCH`, `TIMED_RECORD`, `SCTE35_TIME_SIGNAL`, `SCTE35_SPLICE_INSERT`, `SCTE35_RETURN_TO_NETWORK`,`TIMED_METADATA `,`STATIC_IMAGE_ACTIVATE `,`STATIC_IMAGE_DEACTIVATE `. If it is not specified, `INPUT_SWITCH` will be used.
EventType *string `json:"EventType,omitnil,omitempty" name:"EventType"`
// ID of the input to attach, which is required if `EventType` is `INPUT_SWITCH`
InputAttachment *string `json:"InputAttachment,omitnil,omitempty" name:"InputAttachment"`
+ // When the type is FIXED_PTS, it is mandatory and defaults to 0
+ PipelineId *int64 `json:"PipelineId,omitnil,omitempty" name:"PipelineId"`
+
// Name of the output group to attach. This parameter is required if `EventType` is `TIMED_RECORD`.
OutputGroupName *string `json:"OutputGroupName,omitnil,omitempty" name:"OutputGroupName"`
@@ -2340,15 +2365,27 @@ type EventSettingsReq struct {
// Meta information plan configuration.
TimedMetadataSetting *TimedMetadataInfo `json:"TimedMetadataSetting,omitnil,omitempty" name:"TimedMetadataSetting"`
+
+ // Static image activate setting.
+ StaticImageActivateSetting *StaticImageActivateSetting `json:"StaticImageActivateSetting,omitnil,omitempty" name:"StaticImageActivateSetting"`
+
+ // Static image deactivate setting.
+ StaticImageDeactivateSetting *StaticImageDeactivateSetting `json:"StaticImageDeactivateSetting,omitnil,omitempty" name:"StaticImageDeactivateSetting"`
+
+ // Dynamic graphic overlay activate configuration
+ MotionGraphicsActivateSetting *MotionGraphicsActivateSetting `json:"MotionGraphicsActivateSetting,omitnil,omitempty" name:"MotionGraphicsActivateSetting"`
}
type EventSettingsResp struct {
- // Valid values: INPUT_SWITCH, TIMED_RECORD, SCTE35_TIME_SIGNAL, SCTE35_SPLICE_INSERT, SCTE35_RETURN_TO_NETWORK.
+ // Valid values: `INPUT_SWITCH`, `TIMED_RECORD`, `SCTE35_TIME_SIGNAL`, `SCTE35_SPLICE_INSERT`, `SCTE35_RETURN_TO_NETWORK`, `STATIC_IMAGE_ACTIVATE`, `STATIC_IMAGE_DEACTIVATE`.
EventType *string `json:"EventType,omitnil,omitempty" name:"EventType"`
// ID of the input attached, which is not empty if `EventType` is `INPUT_SWITCH`
InputAttachment *string `json:"InputAttachment,omitnil,omitempty" name:"InputAttachment"`
+ // When the type is FIXED_PTS, it is mandatory and defaults to 0
+ PipelineId *int64 `json:"PipelineId,omitnil,omitempty" name:"PipelineId"`
+
// Name of the output group attached. This parameter is not empty if `EventType` is `TIMED_RECORD`.
OutputGroupName *string `json:"OutputGroupName,omitnil,omitempty" name:"OutputGroupName"`
@@ -2369,6 +2406,15 @@ type EventSettingsResp struct {
// Meta information plan configuration.
TimedMetadataSetting *TimedMetadataInfo `json:"TimedMetadataSetting,omitnil,omitempty" name:"TimedMetadataSetting"`
+
+ // Static image activate setting.
+ StaticImageActivateSetting *StaticImageActivateSetting `json:"StaticImageActivateSetting,omitnil,omitempty" name:"StaticImageActivateSetting"`
+
+ // Static image deactivate setting.
+ StaticImageDeactivateSetting *StaticImageDeactivateSetting `json:"StaticImageDeactivateSetting,omitnil,omitempty" name:"StaticImageDeactivateSetting"`
+
+ // Dynamic graphic overlay activate configuration.
+ MotionGraphicsActivateSetting *MotionGraphicsActivateSetting `json:"MotionGraphicsActivateSetting,omitnil,omitempty" name:"MotionGraphicsActivateSetting"`
}
type FailOverSettings struct {
@@ -2406,6 +2452,17 @@ type FrameCaptureTemplate struct {
Sharpness *uint64 `json:"Sharpness,omitnil,omitempty" name:"Sharpness"`
}
+type GeneralSetting struct {
+ // Static graphic overlay configuration.
+ StaticImageSettings *StaticImageSettings `json:"StaticImageSettings,omitnil,omitempty" name:"StaticImageSettings"`
+
+ // Dynamic graphic overlay configuration.
+ MotionGraphicsSettings *MotionGraphicsSetting `json:"MotionGraphicsSettings,omitnil,omitempty" name:"MotionGraphicsSettings"`
+
+ // Thumbnail Configuration.
+ ThumbnailSettings *ThumbnailSettings `json:"ThumbnailSettings,omitnil,omitempty" name:"ThumbnailSettings"`
+}
+
// Predefined struct for user
type GetAbWatermarkPlayUrlRequestParams struct {
// Client UUID, 32-bit unsigned integer, [0, 4294967295].
@@ -2747,6 +2804,9 @@ type ModifyStreamLiveChannelRequestParams struct {
// Frame capture templates.
FrameCaptureTemplates []*FrameCaptureTemplate `json:"FrameCaptureTemplates,omitnil,omitempty" name:"FrameCaptureTemplates"`
+
+ // General settings.
+ GeneralSettings *GeneralSetting `json:"GeneralSettings,omitnil,omitempty" name:"GeneralSettings"`
}
type ModifyStreamLiveChannelRequest struct {
@@ -2796,6 +2856,9 @@ type ModifyStreamLiveChannelRequest struct {
// Frame capture templates.
FrameCaptureTemplates []*FrameCaptureTemplate `json:"FrameCaptureTemplates,omitnil,omitempty" name:"FrameCaptureTemplates"`
+
+ // General settings.
+ GeneralSettings *GeneralSetting `json:"GeneralSettings,omitnil,omitempty" name:"GeneralSettings"`
}
func (r *ModifyStreamLiveChannelRequest) ToJsonString() string {
@@ -2825,6 +2888,7 @@ func (r *ModifyStreamLiveChannelRequest) FromJsonString(s string) error {
delete(f, "InputAnalysisSettings")
delete(f, "Tags")
delete(f, "FrameCaptureTemplates")
+ delete(f, "GeneralSettings")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyStreamLiveChannelRequest has unknown keys!", "")
}
@@ -3026,6 +3090,9 @@ type ModifyStreamLiveWatermarkRequestParams struct {
// Watermark text settings. This parameter is valid if `Type` is `TEXT`.
TextSettings *CreateTextSettings `json:"TextSettings,omitnil,omitempty" name:"TextSettings"`
+
+
+ AbWatermarkSettings *AbWatermarkSettingsReq `json:"AbWatermarkSettings,omitnil,omitempty" name:"AbWatermarkSettings"`
}
type ModifyStreamLiveWatermarkRequest struct {
@@ -3042,6 +3109,8 @@ type ModifyStreamLiveWatermarkRequest struct {
// Watermark text settings. This parameter is valid if `Type` is `TEXT`.
TextSettings *CreateTextSettings `json:"TextSettings,omitnil,omitempty" name:"TextSettings"`
+
+ AbWatermarkSettings *AbWatermarkSettingsReq `json:"AbWatermarkSettings,omitnil,omitempty" name:"AbWatermarkSettings"`
}
func (r *ModifyStreamLiveWatermarkRequest) ToJsonString() string {
@@ -3060,6 +3129,7 @@ func (r *ModifyStreamLiveWatermarkRequest) FromJsonString(s string) error {
delete(f, "Name")
delete(f, "ImageSettings")
delete(f, "TextSettings")
+ delete(f, "AbWatermarkSettings")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyStreamLiveWatermarkRequest has unknown keys!", "")
}
@@ -3088,6 +3158,19 @@ func (r *ModifyStreamLiveWatermarkResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type MotionGraphicsActivateSetting struct {
+ // Duration in ms, valid when MOTION_Graphics_ACTIVATE, required; An integer in the range of 0-86400000, where 0 represents the duration until the end of the live stream.
+ Duration *int64 `json:"Duration,omitnil,omitempty" name:"Duration"`
+
+ // The address of HTML5 needs to comply with the format specification of http/https.
+ Url *string `json:"Url,omitnil,omitempty" name:"Url"`
+}
+
+type MotionGraphicsSetting struct {
+ // Whether to enable dynamic graphic overlay, '0' not enabled, '1' enabled; Default 0.
+ MotionGraphicsOverlayEnabled *int64 `json:"MotionGraphicsOverlayEnabled,omitnil,omitempty" name:"MotionGraphicsOverlayEnabled"`
+}
+
type OutputInfo struct {
// Output name.
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
@@ -3436,6 +3519,51 @@ func (r *StartStreamLiveChannelResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
+type StaticImageActivateSetting struct {
+ // The address of the image to be inserted, starting with http or https and ending with .png .PNG .bmp .BMP .tga .TGA.
+ ImageUrl *string `json:"ImageUrl,omitnil,omitempty" name:"ImageUrl"`
+
+ // The layer of the superimposed image, 0-7; the default value is 0, and a higher layer means it is on the top.
+ Layer *int64 `json:"Layer,omitnil,omitempty" name:"Layer"`
+
+ // Opacity, range 0-100; the default value is 100, which means completely opaque.
+ Opacity *int64 `json:"Opacity,omitnil,omitempty" name:"Opacity"`
+
+ // The distance from the left edge in pixels; the default value is 0 and the maximum value is 4096.
+ ImageX *int64 `json:"ImageX,omitnil,omitempty" name:"ImageX"`
+
+ // The distance from the top edge in pixels; the default value is 0 and the maximum value is 2160.
+ ImageY *int64 `json:"ImageY,omitnil,omitempty" name:"ImageY"`
+
+ // The width of the image superimposed on the video frame, in pixels. The default value is empty (not set), which means using the original image size. The minimum value is 1 and the maximum value is 4096.
+ Width *int64 `json:"Width,omitnil,omitempty" name:"Width"`
+
+ // The height of the image superimposed on the video frame, in pixels. The default value is empty (not set), which means the original image size is used. The minimum value is 1 and the maximum value is 2160.
+ Height *int64 `json:"Height,omitnil,omitempty" name:"Height"`
+
+ // Overlay duration, in milliseconds, range 0-86400000; default value 0, 0 means continuous.
+ Duration *int64 `json:"Duration,omitnil,omitempty" name:"Duration"`
+
+ // Fade-in duration, in milliseconds, range 0-5000; default value 0, 0 means no fade-in effect.
+ FadeIn *int64 `json:"FadeIn,omitnil,omitempty" name:"FadeIn"`
+
+ // Fade-out duration, in milliseconds, range 0-5000; default value 0, 0 means no fade-out effect.
+ FadeOut *int64 `json:"FadeOut,omitnil,omitempty" name:"FadeOut"`
+}
+
+type StaticImageDeactivateSetting struct {
+ // The overlay level to be canceled, range 0-7, default value 0.
+ Layer *int64 `json:"Layer,omitnil,omitempty" name:"Layer"`
+
+ // Fade-out duration, in milliseconds, range 0-5000; default value 0, 0 means no fade-out effect.
+ FadeOut *int64 `json:"FadeOut,omitnil,omitempty" name:"FadeOut"`
+}
+
+type StaticImageSettings struct {
+ // Whether to enable global static image overlay, 0: Disable, 1: Enable; Default value: 0.
+ GlobalImageOverlayEnabled *int64 `json:"GlobalImageOverlayEnabled,omitnil,omitempty" name:"GlobalImageOverlayEnabled"`
+}
+
// Predefined struct for user
type StopStreamLiveChannelRequestParams struct {
// Channel ID
@@ -3554,7 +3682,7 @@ type StreamLiveChannelInfo struct {
// Note: this field may return `null`, indicating that no valid value was found.
AVTemplates []*AVTemplate `json:"AVTemplates,omitnil,omitempty" name:"AVTemplates"`
-
+ // Caption templates.
CaptionTemplates []*SubtitleConf `json:"CaptionTemplates,omitnil,omitempty" name:"CaptionTemplates"`
// Event settings
@@ -3579,6 +3707,9 @@ type StreamLiveChannelInfo struct {
// Frame capture templates.
FrameCaptureTemplates []*FrameCaptureTemplate `json:"FrameCaptureTemplates,omitnil,omitempty" name:"FrameCaptureTemplates"`
+
+ // General settings.
+ GeneralSettings *GeneralSetting `json:"GeneralSettings,omitnil,omitempty" name:"GeneralSettings"`
}
type StreamLiveOutputGroupsInfo struct {
@@ -3745,6 +3876,11 @@ type Tag struct {
Category *string `json:"Category,omitnil,omitempty" name:"Category"`
}
+type ThumbnailSettings struct {
+ // Generate thumbnail ,0: Disabled ,1: Enabled , Default: 0
+ ThumbnailEnabled *int64 `json:"ThumbnailEnabled,omitnil,omitempty" name:"ThumbnailEnabled"`
+}
+
type TimeShiftSettingsInfo struct {
// Whether to enable time shifting. Valid values: `OPEN`; `CLOSE`
// Note: This field may return `null`, indicating that no valid value was found.
@@ -3776,7 +3912,7 @@ type TimedRecordSettings struct {
}
type TimingSettingsReq struct {
- // Event trigger type. Valid values: `FIXED_TIME`, `IMMEDIATE`. This parameter is required if `EventType` is `INPUT_SWITCH`.
+ // Event trigger type. Valid values: `FIXED_TIME`, `IMMEDIATE`,`FIXED_PTS `. This parameter is required if `EventType` is `INPUT_SWITCH`.
StartType *string `json:"StartType,omitnil,omitempty" name:"StartType"`
// This parameter is required if `EventType` is `INPUT_SWITCH` and `StartType` is `FIXED_TIME`.
@@ -3790,6 +3926,9 @@ type TimingSettingsReq struct {
// This parameter is required if `EventType` is `TIMED_RECORD`.
// It specifies the recording end time in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the recording start time.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
+
+ // Effective only when StartType is FIXED_PTS, with a range of 1-8589934592
+ PTS *uint64 `json:"PTS,omitnil,omitempty" name:"PTS"`
}
type TimingSettingsResp struct {
@@ -3807,6 +3946,9 @@ type TimingSettingsResp struct {
// This parameter cannot be empty if `EventType` is `TIMED_RECORD`.
// It indicates the end time for recording in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the start time for recording.
EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
+
+ // Effective only when StartType is FIXED_PTS, with a range of 1-8589934592
+ PTS *uint64 `json:"PTS,omitnil,omitempty" name:"PTS"`
}
type VideoCodecDetail struct {
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/client.go
index 7e32dbaaaf..d56b60db52 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/client.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/client.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -120,6 +120,7 @@ func (c *Client) CreateEndPointWithContext(ctx context.Context, request *CreateE
if request == nil {
request = NewCreateEndPointRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "CreateEndPoint")
if c.GetCredential() == nil {
return nil, errors.New("CreateEndPoint require credential")
@@ -213,6 +214,7 @@ func (c *Client) CreateEndPointAndEndPointServiceWithContext(ctx context.Context
if request == nil {
request = NewCreateEndPointAndEndPointServiceRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "CreateEndPointAndEndPointService")
if c.GetCredential() == nil {
return nil, errors.New("CreateEndPointAndEndPointService require credential")
@@ -300,6 +302,7 @@ func (c *Client) CreateExtendEndpointWithContext(ctx context.Context, request *C
if request == nil {
request = NewCreateExtendEndpointRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "CreateExtendEndpoint")
if c.GetCredential() == nil {
return nil, errors.New("CreateExtendEndpoint require credential")
@@ -373,6 +376,7 @@ func (c *Client) CreateForwardRuleWithContext(ctx context.Context, request *Crea
if request == nil {
request = NewCreateForwardRuleRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "CreateForwardRule")
if c.GetCredential() == nil {
return nil, errors.New("CreateForwardRule require credential")
@@ -466,6 +470,7 @@ func (c *Client) CreatePrivateDNSAccountWithContext(ctx context.Context, request
if request == nil {
request = NewCreatePrivateDNSAccountRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "CreatePrivateDNSAccount")
if c.GetCredential() == nil {
return nil, errors.New("CreatePrivateDNSAccount require credential")
@@ -589,6 +594,7 @@ func (c *Client) CreatePrivateZoneWithContext(ctx context.Context, request *Crea
if request == nil {
request = NewCreatePrivateZoneRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "CreatePrivateZone")
if c.GetCredential() == nil {
return nil, errors.New("CreatePrivateZone require credential")
@@ -722,6 +728,7 @@ func (c *Client) CreatePrivateZoneRecordWithContext(ctx context.Context, request
if request == nil {
request = NewCreatePrivateZoneRecordRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "CreatePrivateZoneRecord")
if c.GetCredential() == nil {
return nil, errors.New("CreatePrivateZoneRecord require credential")
@@ -797,6 +804,7 @@ func (c *Client) DeleteEndPointWithContext(ctx context.Context, request *DeleteE
if request == nil {
request = NewDeleteEndPointRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DeleteEndPoint")
if c.GetCredential() == nil {
return nil, errors.New("DeleteEndPoint require credential")
@@ -876,6 +884,7 @@ func (c *Client) DeleteForwardRuleWithContext(ctx context.Context, request *Dele
if request == nil {
request = NewDeleteForwardRuleRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DeleteForwardRule")
if c.GetCredential() == nil {
return nil, errors.New("DeleteForwardRule require credential")
@@ -975,6 +984,7 @@ func (c *Client) DeletePrivateZoneRecordWithContext(ctx context.Context, request
if request == nil {
request = NewDeletePrivateZoneRecordRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DeletePrivateZoneRecord")
if c.GetCredential() == nil {
return nil, errors.New("DeletePrivateZoneRecord require credential")
@@ -1066,6 +1076,7 @@ func (c *Client) DescribeAccountVpcListWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeAccountVpcListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeAccountVpcList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeAccountVpcList require credential")
@@ -1149,6 +1160,7 @@ func (c *Client) DescribeAuditLogWithContext(ctx context.Context, request *Descr
if request == nil {
request = NewDescribeAuditLogRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeAuditLog")
if c.GetCredential() == nil {
return nil, errors.New("DescribeAuditLog require credential")
@@ -1238,6 +1250,7 @@ func (c *Client) DescribeDashboardWithContext(ctx context.Context, request *Desc
if request == nil {
request = NewDescribeDashboardRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeDashboard")
if c.GetCredential() == nil {
return nil, errors.New("DescribeDashboard require credential")
@@ -1323,6 +1336,7 @@ func (c *Client) DescribeEndPointListWithContext(ctx context.Context, request *D
if request == nil {
request = NewDescribeEndPointListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeEndPointList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeEndPointList require credential")
@@ -1386,6 +1400,7 @@ func (c *Client) DescribeEndPointRegionWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeEndPointRegionRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeEndPointRegion")
if c.GetCredential() == nil {
return nil, errors.New("DescribeEndPointRegion require credential")
@@ -1471,6 +1486,7 @@ func (c *Client) DescribeExtendEndpointListWithContext(ctx context.Context, requ
if request == nil {
request = NewDescribeExtendEndpointListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeExtendEndpointList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeExtendEndpointList require credential")
@@ -1536,6 +1552,7 @@ func (c *Client) DescribeForwardRuleWithContext(ctx context.Context, request *De
if request == nil {
request = NewDescribeForwardRuleRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeForwardRule")
if c.GetCredential() == nil {
return nil, errors.New("DescribeForwardRule require credential")
@@ -1605,6 +1622,7 @@ func (c *Client) DescribeForwardRuleListWithContext(ctx context.Context, request
if request == nil {
request = NewDescribeForwardRuleListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeForwardRuleList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeForwardRuleList require credential")
@@ -1692,6 +1710,7 @@ func (c *Client) DescribePrivateDNSAccountListWithContext(ctx context.Context, r
if request == nil {
request = NewDescribePrivateDNSAccountListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribePrivateDNSAccountList")
if c.GetCredential() == nil {
return nil, errors.New("DescribePrivateDNSAccountList require credential")
@@ -1779,6 +1798,7 @@ func (c *Client) DescribePrivateZoneListWithContext(ctx context.Context, request
if request == nil {
request = NewDescribePrivateZoneListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribePrivateZoneList")
if c.GetCredential() == nil {
return nil, errors.New("DescribePrivateZoneList require credential")
@@ -1850,6 +1870,7 @@ func (c *Client) DescribePrivateZoneRecordListWithContext(ctx context.Context, r
if request == nil {
request = NewDescribePrivateZoneRecordListRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribePrivateZoneRecordList")
if c.GetCredential() == nil {
return nil, errors.New("DescribePrivateZoneRecordList require credential")
@@ -1935,6 +1956,7 @@ func (c *Client) DescribePrivateZoneServiceWithContext(ctx context.Context, requ
if request == nil {
request = NewDescribePrivateZoneServiceRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribePrivateZoneService")
if c.GetCredential() == nil {
return nil, errors.New("DescribePrivateZoneService require credential")
@@ -1996,6 +2018,7 @@ func (c *Client) DescribeQuotaUsageWithContext(ctx context.Context, request *Des
if request == nil {
request = NewDescribeQuotaUsageRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeQuotaUsage")
if c.GetCredential() == nil {
return nil, errors.New("DescribeQuotaUsage require credential")
@@ -2069,6 +2092,7 @@ func (c *Client) DescribeRecordWithContext(ctx context.Context, request *Describ
if request == nil {
request = NewDescribeRecordRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeRecord")
if c.GetCredential() == nil {
return nil, errors.New("DescribeRecord require credential")
@@ -2122,6 +2146,7 @@ func (c *Client) DescribeRequestDataWithContext(ctx context.Context, request *De
if request == nil {
request = NewDescribeRequestDataRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "DescribeRequestData")
if c.GetCredential() == nil {
return nil, errors.New("DescribeRequestData require credential")
@@ -2203,6 +2228,7 @@ func (c *Client) ModifyForwardRuleWithContext(ctx context.Context, request *Modi
if request == nil {
request = NewModifyForwardRuleRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "ModifyForwardRule")
if c.GetCredential() == nil {
return nil, errors.New("ModifyForwardRule require credential")
@@ -2304,6 +2330,7 @@ func (c *Client) ModifyPrivateZoneWithContext(ctx context.Context, request *Modi
if request == nil {
request = NewModifyPrivateZoneRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "ModifyPrivateZone")
if c.GetCredential() == nil {
return nil, errors.New("ModifyPrivateZone require credential")
@@ -2443,6 +2470,7 @@ func (c *Client) ModifyPrivateZoneRecordWithContext(ctx context.Context, request
if request == nil {
request = NewModifyPrivateZoneRecordRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "ModifyPrivateZoneRecord")
if c.GetCredential() == nil {
return nil, errors.New("ModifyPrivateZoneRecord require credential")
@@ -2552,6 +2580,7 @@ func (c *Client) ModifyPrivateZoneVpcWithContext(ctx context.Context, request *M
if request == nil {
request = NewModifyPrivateZoneVpcRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "ModifyPrivateZoneVpc")
if c.GetCredential() == nil {
return nil, errors.New("ModifyPrivateZoneVpc require credential")
@@ -2619,6 +2648,7 @@ func (c *Client) ModifyRecordsStatusWithContext(ctx context.Context, request *Mo
if request == nil {
request = NewModifyRecordsStatusRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "ModifyRecordsStatus")
if c.GetCredential() == nil {
return nil, errors.New("ModifyRecordsStatus require credential")
@@ -2706,6 +2736,7 @@ func (c *Client) SubscribePrivateZoneServiceWithContext(ctx context.Context, req
if request == nil {
request = NewSubscribePrivateZoneServiceRequest()
}
+ c.InitBaseRequest(&request.BaseRequest, "privatedns", APIVersion, "SubscribePrivateZoneService")
if c.GetCredential() == nil {
return nil, errors.New("SubscribePrivateZoneService require credential")
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/errors.go
index 008e4a7ed5..e52d8b03f6 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/errors.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/errors.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@ const (
// The private domain is currently associated with a VPC. Please disassociate the VPC first before clearing its records.
FAILEDOPERATION_DELETELASTBINDVPCRECORDFAILED = "FailedOperation.DeleteLastBindVpcRecordFailed"
- //
+ // Record deletion failed.
FAILEDOPERATION_DELETERECORDFAILED = "FailedOperation.DeleteRecordFailed"
// Failed to delete the endpoint.
@@ -74,7 +74,7 @@ const (
// Failed to modify the private domain.
FAILEDOPERATION_MODIFYZONEFAILED = "FailedOperation.ModifyZoneFailed"
- //
+ // Record update failed.
FAILEDOPERATION_UPDATERECORDFAILED = "FailedOperation.UpdateRecordFailed"
// Internal error.
@@ -128,7 +128,7 @@ const (
// The MX value must be a multiple of 5 between 5 and 50.
INVALIDPARAMETER_INVALIDMX = "InvalidParameter.InvalidMX"
- //
+ // This record type does not support MX priority settings.
INVALIDPARAMETER_MXNOTSUPPORTED = "InvalidParameter.MXNotSupported"
// The number of round-robin DNS AAAA records exceeds 50.
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/models.go
index c0e6cc0e2b..a3e36bb1f5 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/models.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028/models.go
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
+// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go
index e83e910db6..e9f1be3a6e 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317/models.go
@@ -1213,7 +1213,7 @@ type CreateListenerRequestParams struct {
// 创建端口段监听器时必须传入此参数,用以标识结束端口。同时,入参Ports只允许传入一个成员,用以标识开始端口。【如果您需要体验端口段功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】。
EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
- // 解绑后端目标时,是否发RST给两端(客户端和服务器),此参数仅适用于TCP监听器。
+ // 重新调度功能,解绑后端服务开关,打开此开关,当解绑后端服务时触发重新调度。仅TCP/UDP监听器支持。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 证书信息,支持同时传入不同算法类型的多本服务端证书,参数限制如下:
@@ -1233,8 +1233,7 @@ type CreateListenerRequestParams struct {
// TCP_SSL和QUIC是否支持PP
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
- // 是否开启SNAT,True(开启)、False(关闭)。
- // 默认为关闭。
+ // 是否开启SNAT(源IP替换),True(开启)、False(关闭)。默认为关闭。注意:SnatEnable开启时会替换客户端源IP,此时`透传客户端源IP`选项关闭,反之亦然。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// 全端口段监听器的结束端口,端口范围:2 - 65535
@@ -1314,7 +1313,7 @@ type CreateListenerRequest struct {
// 创建端口段监听器时必须传入此参数,用以标识结束端口。同时,入参Ports只允许传入一个成员,用以标识开始端口。【如果您需要体验端口段功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】。
EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
- // 解绑后端目标时,是否发RST给两端(客户端和服务器),此参数仅适用于TCP监听器。
+ // 重新调度功能,解绑后端服务开关,打开此开关,当解绑后端服务时触发重新调度。仅TCP/UDP监听器支持。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 证书信息,支持同时传入不同算法类型的多本服务端证书,参数限制如下:
@@ -1334,8 +1333,7 @@ type CreateListenerRequest struct {
// TCP_SSL和QUIC是否支持PP
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
- // 是否开启SNAT,True(开启)、False(关闭)。
- // 默认为关闭。
+ // 是否开启SNAT(源IP替换),True(开启)、False(关闭)。默认为关闭。注意:SnatEnable开启时会替换客户端源IP,此时`透传客户端源IP`选项关闭,反之亦然。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// 全端口段监听器的结束端口,端口范围:2 - 65535
@@ -6129,7 +6127,7 @@ type Listener struct {
// 仅支持Nat64 CLB TCP监听器
Toa *bool `json:"Toa,omitnil,omitempty" name:"Toa"`
- // 解绑后端目标时,是否发RST给客户端,(此参数仅对于TCP监听器有意义)。
+ // 重新调度功能,解绑后端服务开关,打开此开关,当解绑后端服务时触发重新调度。仅TCP/UDP监听器支持。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 监听器的属性
@@ -7218,9 +7216,7 @@ type ModifyListenerRequestParams struct {
// 若后端服务对连接数上限有限制,则建议谨慎开启。此功能目前处于内测中,如需使用,请提交 [内测申请](https://cloud.tencent.com/apply/p/tsodp6qm21)。
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
- // 解绑后端目标时,是否发RST给客户端,此参数仅适用于TCP监听器。
- // True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
- // 不传则表示不修改。
+ // 重新调度功能,解绑后端服务开关,打开此开关,当解绑后端服务时触发重新调度。仅TCP/UDP监听器支持。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 会话保持类型。NORMAL表示默认会话保持类型。QUIC_CID表示根据Quic Connection ID做会话保持。QUIC_CID只支持UDP协议。
@@ -7245,8 +7241,7 @@ type ModifyListenerRequestParams struct {
// TCP_SSL和QUIC是否支持PP
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
- // 是否开启SNAT, True 表示开启 SNAT,False 表示不开启 SNAT。
- // 不传则表示不修改。
+ // 是否开启SNAT(源IP替换),True(开启)、False(关闭)。默认为关闭。注意:SnatEnable开启时会替换客户端源IP,此时`透传客户端源IP`选项关闭,反之亦然。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// 数据压缩模式
@@ -7305,9 +7300,7 @@ type ModifyListenerRequest struct {
// 若后端服务对连接数上限有限制,则建议谨慎开启。此功能目前处于内测中,如需使用,请提交 [内测申请](https://cloud.tencent.com/apply/p/tsodp6qm21)。
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
- // 解绑后端目标时,是否发RST给客户端,此参数仅适用于TCP监听器。
- // True表示发送 RST 给客户端,False表示不发送 RST 给客户端。
- // 不传则表示不修改。
+ // 重新调度功能,解绑后端服务开关,打开此开关,当解绑后端服务时触发重新调度。仅TCP/UDP监听器支持。
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// 会话保持类型。NORMAL表示默认会话保持类型。QUIC_CID表示根据Quic Connection ID做会话保持。QUIC_CID只支持UDP协议。
@@ -7332,8 +7325,7 @@ type ModifyListenerRequest struct {
// TCP_SSL和QUIC是否支持PP
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
- // 是否开启SNAT, True 表示开启 SNAT,False 表示不开启 SNAT。
- // 不传则表示不修改。
+ // 是否开启SNAT(源IP替换),True(开启)、False(关闭)。默认为关闭。注意:SnatEnable开启时会替换客户端源IP,此时`透传客户端源IP`选项关闭,反之亦然。
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// 数据压缩模式
diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
index ce0636d615..9d9d80aaa3 100644
--- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
+++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go
@@ -265,11 +265,15 @@ func CompleteCommonParams(request Request, region string, requestClient string)
params["Action"] = request.GetAction()
params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10)
params["Nonce"] = strconv.Itoa(rand.Int())
+<<<<<<< HEAD
<<<<<<< HEAD
params["RequestClient"] = "SDK_GO_1.3.4"
=======
params["RequestClient"] = "SDK_GO_1.1.55"
>>>>>>> 2e9465052 (add)
+=======
+ params["RequestClient"] = "SDK_GO_1.2.2"
+>>>>>>> 45ea86ea7 (add)
if requestClient != "" {
params["RequestClient"] += ": " + requestClient
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 7f4ea6ad1f..aa8b039cdd 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -1087,8 +1087,9 @@ github.com/t-yuki/gocover-cobertura
# github.com/tdakkota/asciicheck v0.2.0
## explicit; go 1.18
github.com/tdakkota/asciicheck
-# github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1214+incompatible
+# github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1315+incompatible
## explicit
+github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/clb/v20180317
github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common
github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/errors
github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http
@@ -1161,7 +1162,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ciam/v20220331
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka v1.0.1073
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka/v20190819
-# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.1.55
+# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.2.2
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033
@@ -1171,10 +1172,14 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016
<<<<<<< HEAD
+<<<<<<< HEAD
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4
=======
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55
>>>>>>> 2e9465052 (add)
+=======
+# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.2.2
+>>>>>>> 45ea86ea7 (add)
## explicit; go 1.11
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors
diff --git a/website/docs/r/clb_listener.html.markdown b/website/docs/r/clb_listener.html.markdown
index f5590f5294..1969d04912 100644
--- a/website/docs/r/clb_listener.html.markdown
+++ b/website/docs/r/clb_listener.html.markdown
@@ -229,6 +229,11 @@ The following arguments are supported:
* `keepalive_enable` - (Optional, Int) Whether to enable a persistent connection. This parameter is applicable only to HTTP and HTTPS listeners. Valid values: 0 (disable; default value) and 1 (enable).
* `multi_cert_info` - (Optional, List) Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. Certificate and MultiCertInfo cannot be specified at the same time.
* `port` - (Optional, Int, ForceNew) Port of the CLB listener.
+* `reschedule_expand_target` - (Optional, Bool) The rescheduling function, a switch for scaling backend services, triggers rescheduling when backend servers are added or removed. Only supported by TCP/UDP listeners.
+* `reschedule_interval` - (Optional, Int) Rescheduled trigger duration, ranging from 0 to 3600 seconds. Supported only by TCP/UDP listeners.
+* `reschedule_start_time` - (Optional, Int) Reschedule the trigger start time, with a value ranging from 0 to 3600 seconds. Only supported by TCP/UDP listeners.
+* `reschedule_target_zero_weight` - (Optional, Bool) The rescheduling function, with a weight of 0 as a switch, triggers rescheduling when the weight of the backend server is set to 0. Only supported by TCP/UDP listeners.
+* `reschedule_unhealthy` - (Optional, Bool) Rescheduling function, health check exception switch. Enabling this switch triggers rescheduling when a backend server fails a health check. Supported only by TCP/UDP listeners.
* `scheduler` - (Optional, String) Scheduling method of the CLB listener, and available values are 'WRR' and 'LEAST_CONN'. The default is 'WRR'. NOTES: The listener of `HTTP` and `HTTPS` protocol additionally supports the `IP Hash` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `tencentcloud_clb_listener_rule`.
* `session_expire_time` - (Optional, Int) Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `tencentcloud_clb_listener_rule`.
* `session_type` - (Optional, String) Session persistence type. Valid values: `NORMAL`: the default session persistence type; `QUIC_CID`: session persistence by QUIC connection ID. The `QUIC_CID` value can only be configured in UDP listeners. If this field is not specified, the default session persistence type will be used.
From ced72d65f161fb5f0f2115a08e8ec239a8cdef30 Mon Sep 17 00:00:00 2001
From: SevenEarth <391613297@qq.com>
Date: Wed, 3 Dec 2025 15:28:53 +0800
Subject: [PATCH 3/3] add
---
go.sum | 6 ------
1 file changed, 6 deletions(-)
diff --git a/go.sum b/go.sum
index 9bc8f570a8..86905806f8 100644
--- a/go.sum
+++ b/go.sum
@@ -941,20 +941,14 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.46/go.mod h
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.48/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.49/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.50/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
-<<<<<<< HEAD
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.52/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.3/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4 h1:k8QEWznn11evs+N5ZGQMCCPnzAHxnul2mRIZJB8Lwbo=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.4/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
-=======
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55 h1:8kT5ktFibG46S7WImjNkHx6N5b6vNFIVxPuj6rDMgb8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.55/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
-<<<<<<< HEAD
->>>>>>> 2e9465052 (add)
-=======
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.2.2 h1:IqDivO9t4+39+YWlFXhK7kJPm/FbLAD1FbhoaGbDSx8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.2.2/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
->>>>>>> 45ea86ea7 (add)
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993 h1:WlPgXldQCxt7qi5Xrc6j6zTrsXWzN5BcOGs7Irq7fwQ=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993/go.mod h1:Z9U8zNtyuyKhjS0698wqsrG/kLx1TQ5CEixXBwVe7xY=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU=