Documentation ¶
Index ¶
- Constants
- type AssociateTargetGroupsRequest
- type AssociateTargetGroupsResponse
- type AssociationItem
- type AutoRewriteRequest
- type AutoRewriteResponse
- type Backend
- type BasicTargetGroupInfo
- type BatchDeregisterTargetsRequest
- type BatchDeregisterTargetsResponse
- type BatchModifyTargetWeightRequest
- type BatchModifyTargetWeightResponse
- type BatchRegisterTargetsRequest
- type BatchRegisterTargetsResponse
- type BatchTarget
- type BindDetailItem
- type BlockedIP
- type CertIdRelatedWithLoadBalancers
- type CertificateInput
- type CertificateOutput
- type ClassicalHealth
- type ClassicalListener
- type ClassicalLoadBalancerInfo
- type ClassicalTarget
- type ClassicalTargetInfo
- type Client
- func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error)
- func (c *Client) AutoRewrite(request *AutoRewriteRequest) (response *AutoRewriteResponse, err error)
- func (c *Client) BatchDeregisterTargets(request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error)
- func (c *Client) BatchModifyTargetWeight(request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error)
- func (c *Client) BatchRegisterTargets(request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error)
- func (c *Client) CreateClsLogSet(request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error)
- func (c *Client) CreateListener(request *CreateListenerRequest) (response *CreateListenerResponse, err error)
- func (c *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error)
- func (c *Client) CreateLoadBalancerSnatIps(request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error)
- func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleResponse, err error)
- func (c *Client) CreateTargetGroup(request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error)
- func (c *Client) CreateTopic(request *CreateTopicRequest) (response *CreateTopicResponse, err error)
- func (c *Client) DeleteListener(request *DeleteListenerRequest) (response *DeleteListenerResponse, err error)
- func (c *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error)
- func (c *Client) DeleteLoadBalancerListeners(request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error)
- func (c *Client) DeleteLoadBalancerSnatIps(request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error)
- func (c *Client) DeleteRewrite(request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error)
- func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)
- func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)
- func (c *Client) DeregisterTargetGroupInstances(request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error)
- func (c *Client) DeregisterTargets(request *DeregisterTargetsRequest) (response *DeregisterTargetsResponse, err error)
- func (c *Client) DeregisterTargetsFromClassicalLB(request *DeregisterTargetsFromClassicalLBRequest) (response *DeregisterTargetsFromClassicalLBResponse, err error)
- func (c *Client) DescribeBlockIPList(request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error)
- func (c *Client) DescribeBlockIPTask(request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error)
- func (c *Client) DescribeClassicalLBByInstanceId(request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error)
- func (c *Client) DescribeClassicalLBHealthStatus(request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error)
- func (c *Client) DescribeClassicalLBListeners(request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error)
- func (c *Client) DescribeClassicalLBTargets(request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error)
- func (c *Client) DescribeClsLogSet(request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error)
- func (c *Client) DescribeCustomizedConfigAssociateList(request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error)
- func (c *Client) DescribeCustomizedConfigList(request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error)
- func (c *Client) DescribeLBListeners(request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error)
- func (c *Client) DescribeListeners(request *DescribeListenersRequest) (response *DescribeListenersResponse, err error)
- func (c *Client) DescribeLoadBalancerListByCertId(request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error)
- func (c *Client) DescribeLoadBalancerTraffic(request *DescribeLoadBalancerTrafficRequest) (response *DescribeLoadBalancerTrafficResponse, err error)
- func (c *Client) DescribeLoadBalancers(request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error)
- func (c *Client) DescribeLoadBalancersDetail(request *DescribeLoadBalancersDetailRequest) (response *DescribeLoadBalancersDetailResponse, err error)
- func (c *Client) DescribeQuota(request *DescribeQuotaRequest) (response *DescribeQuotaResponse, err error)
- func (c *Client) DescribeRewrite(request *DescribeRewriteRequest) (response *DescribeRewriteResponse, err error)
- func (c *Client) DescribeTargetGroupInstances(request *DescribeTargetGroupInstancesRequest) (response *DescribeTargetGroupInstancesResponse, err error)
- func (c *Client) DescribeTargetGroupList(request *DescribeTargetGroupListRequest) (response *DescribeTargetGroupListResponse, err error)
- func (c *Client) DescribeTargetGroups(request *DescribeTargetGroupsRequest) (response *DescribeTargetGroupsResponse, err error)
- func (c *Client) DescribeTargetHealth(request *DescribeTargetHealthRequest) (response *DescribeTargetHealthResponse, err error)
- func (c *Client) DescribeTargets(request *DescribeTargetsRequest) (response *DescribeTargetsResponse, err error)
- func (c *Client) DescribeTaskStatus(request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error)
- func (c *Client) DisassociateTargetGroups(request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error)
- func (c *Client) ManualRewrite(request *ManualRewriteRequest) (response *ManualRewriteResponse, err error)
- func (c *Client) ModifyBlockIPList(request *ModifyBlockIPListRequest) (response *ModifyBlockIPListResponse, err error)
- func (c *Client) ModifyDomain(request *ModifyDomainRequest) (response *ModifyDomainResponse, err error)
- func (c *Client) ModifyDomainAttributes(request *ModifyDomainAttributesRequest) (response *ModifyDomainAttributesResponse, err error)
- func (c *Client) ModifyListener(request *ModifyListenerRequest) (response *ModifyListenerResponse, err error)
- func (c *Client) ModifyLoadBalancerAttributes(request *ModifyLoadBalancerAttributesRequest) (response *ModifyLoadBalancerAttributesResponse, err error)
- func (c *Client) ModifyRule(request *ModifyRuleRequest) (response *ModifyRuleResponse, err error)
- func (c *Client) ModifyTargetGroupAttribute(request *ModifyTargetGroupAttributeRequest) (response *ModifyTargetGroupAttributeResponse, err error)
- func (c *Client) ModifyTargetGroupInstancesPort(request *ModifyTargetGroupInstancesPortRequest) (response *ModifyTargetGroupInstancesPortResponse, err error)
- func (c *Client) ModifyTargetGroupInstancesWeight(request *ModifyTargetGroupInstancesWeightRequest) (response *ModifyTargetGroupInstancesWeightResponse, err error)
- func (c *Client) ModifyTargetPort(request *ModifyTargetPortRequest) (response *ModifyTargetPortResponse, err error)
- func (c *Client) ModifyTargetWeight(request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error)
- func (c *Client) RegisterTargetGroupInstances(request *RegisterTargetGroupInstancesRequest) (response *RegisterTargetGroupInstancesResponse, err error)
- func (c *Client) RegisterTargets(request *RegisterTargetsRequest) (response *RegisterTargetsResponse, err error)
- func (c *Client) RegisterTargetsWithClassicalLB(request *RegisterTargetsWithClassicalLBRequest) (response *RegisterTargetsWithClassicalLBResponse, err error)
- func (c *Client) ReplaceCertForLoadBalancers(request *ReplaceCertForLoadBalancersRequest) (response *ReplaceCertForLoadBalancersResponse, err error)
- func (c *Client) SetLoadBalancerClsLog(request *SetLoadBalancerClsLogRequest) (response *SetLoadBalancerClsLogResponse, err error)
- func (c *Client) SetLoadBalancerSecurityGroups(request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error)
- func (c *Client) SetSecurityGroupForLoadbalancers(request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error)
- type ClusterItem
- type ConfigListItem
- type CreateClsLogSetRequest
- type CreateClsLogSetResponse
- type CreateListenerRequest
- type CreateListenerResponse
- type CreateLoadBalancerRequest
- type CreateLoadBalancerResponse
- type CreateLoadBalancerSnatIpsRequest
- type CreateLoadBalancerSnatIpsResponse
- type CreateRuleRequest
- type CreateRuleResponse
- type CreateTargetGroupRequest
- type CreateTargetGroupResponse
- type CreateTopicRequest
- type CreateTopicResponse
- type DeleteListenerRequest
- type DeleteListenerResponse
- type DeleteLoadBalancerListenersRequest
- type DeleteLoadBalancerListenersResponse
- type DeleteLoadBalancerRequest
- type DeleteLoadBalancerResponse
- type DeleteLoadBalancerSnatIpsRequest
- type DeleteLoadBalancerSnatIpsResponse
- type DeleteRewriteRequest
- type DeleteRewriteResponse
- type DeleteRuleRequest
- type DeleteRuleResponse
- type DeleteTargetGroupsRequest
- type DeleteTargetGroupsResponse
- type DeregisterTargetGroupInstancesRequest
- type DeregisterTargetGroupInstancesResponse
- type DeregisterTargetsFromClassicalLBRequest
- type DeregisterTargetsFromClassicalLBResponse
- type DeregisterTargetsRequest
- type DeregisterTargetsResponse
- type DescribeBlockIPListRequest
- type DescribeBlockIPListResponse
- type DescribeBlockIPTaskRequest
- type DescribeBlockIPTaskResponse
- type DescribeClassicalLBByInstanceIdRequest
- type DescribeClassicalLBByInstanceIdResponse
- type DescribeClassicalLBHealthStatusRequest
- type DescribeClassicalLBHealthStatusResponse
- type DescribeClassicalLBListenersRequest
- type DescribeClassicalLBListenersResponse
- type DescribeClassicalLBTargetsRequest
- type DescribeClassicalLBTargetsResponse
- type DescribeClsLogSetRequest
- type DescribeClsLogSetResponse
- type DescribeCustomizedConfigAssociateListRequest
- type DescribeCustomizedConfigAssociateListResponse
- type DescribeCustomizedConfigListRequest
- type DescribeCustomizedConfigListResponse
- type DescribeLBListenersRequest
- type DescribeLBListenersResponse
- type DescribeListenersRequest
- type DescribeListenersResponse
- type DescribeLoadBalancerListByCertIdRequest
- type DescribeLoadBalancerListByCertIdResponse
- type DescribeLoadBalancerTrafficRequest
- type DescribeLoadBalancerTrafficResponse
- type DescribeLoadBalancersDetailRequest
- type DescribeLoadBalancersDetailResponse
- type DescribeLoadBalancersRequest
- type DescribeLoadBalancersResponse
- type DescribeQuotaRequest
- type DescribeQuotaResponse
- type DescribeRewriteRequest
- type DescribeRewriteResponse
- type DescribeTargetGroupInstancesRequest
- type DescribeTargetGroupInstancesResponse
- type DescribeTargetGroupListRequest
- type DescribeTargetGroupListResponse
- type DescribeTargetGroupsRequest
- type DescribeTargetGroupsResponse
- type DescribeTargetHealthRequest
- type DescribeTargetHealthResponse
- type DescribeTargetsRequest
- type DescribeTargetsResponse
- type DescribeTaskStatusRequest
- type DescribeTaskStatusResponse
- type DisassociateTargetGroupsRequest
- type DisassociateTargetGroupsResponse
- type ExclusiveCluster
- type ExtraInfo
- type Filter
- type HealthCheck
- type InternetAccessible
- type LBChargePrepaid
- type LBItem
- type LbRsItem
- type LbRsTargets
- type Listener
- type ListenerBackend
- type ListenerHealth
- type ListenerItem
- type LoadBalancer
- type LoadBalancerDetail
- type LoadBalancerHealth
- type LoadBalancerTraffic
- type ManualRewriteRequest
- type ManualRewriteResponse
- type ModifyBlockIPListRequest
- type ModifyBlockIPListResponse
- type ModifyDomainAttributesRequest
- type ModifyDomainAttributesResponse
- type ModifyDomainRequest
- type ModifyDomainResponse
- type ModifyListenerRequest
- type ModifyListenerResponse
- type ModifyLoadBalancerAttributesRequest
- type ModifyLoadBalancerAttributesResponse
- type ModifyRuleRequest
- type ModifyRuleResponse
- type ModifyTargetGroupAttributeRequest
- type ModifyTargetGroupAttributeResponse
- type ModifyTargetGroupInstancesPortRequest
- type ModifyTargetGroupInstancesPortResponse
- type ModifyTargetGroupInstancesWeightRequest
- type ModifyTargetGroupInstancesWeightResponse
- type ModifyTargetPortRequest
- type ModifyTargetPortResponse
- type ModifyTargetWeightRequest
- type ModifyTargetWeightResponse
- type Quota
- type RegisterTargetGroupInstancesRequest
- type RegisterTargetGroupInstancesResponse
- type RegisterTargetsRequest
- type RegisterTargetsResponse
- type RegisterTargetsWithClassicalLBRequest
- type RegisterTargetsWithClassicalLBResponse
- type ReplaceCertForLoadBalancersRequest
- type ReplaceCertForLoadBalancersResponse
- type RewriteLocationMap
- type RewriteTarget
- type RsWeightRule
- type RuleHealth
- type RuleInput
- type RuleOutput
- type RuleTargets
- type RulesItems
- type SetLoadBalancerClsLogRequest
- type SetLoadBalancerClsLogResponse
- type SetLoadBalancerSecurityGroupsRequest
- type SetLoadBalancerSecurityGroupsResponse
- type SetSecurityGroupForLoadbalancersRequest
- type SetSecurityGroupForLoadbalancersResponse
- type SnatIp
- type TagInfo
- type Target
- type TargetGroupAssociation
- type TargetGroupBackend
- type TargetGroupInfo
- type TargetGroupInstance
- type TargetHealth
- type TargetRegionInfo
- type ZoneInfo
Constants ¶
const ( // CAM signature/authentication error AUTHFAILURE = "AuthFailure" // Operation failed. FAILEDOPERATION = "FailedOperation" // Exceptional CLB instance status FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus" // Internal error. INTERNALERROR = "InternalError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // Wrong parameter format. INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" // 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" // Insufficient resources. RESOURCEINSUFFICIENT = "ResourceInsufficient" // Resources do not exist. RESOURCENOTFOUND = "ResourceNotFound" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" )
const APIVersion = "2018-03-17"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateTargetGroupsRequest ¶
type AssociateTargetGroupsRequest struct { *tchttp.BaseRequest // Association array Associations []*TargetGroupAssociation `json:"Associations,omitempty" name:"Associations"` }
func NewAssociateTargetGroupsRequest ¶
func NewAssociateTargetGroupsRequest() (request *AssociateTargetGroupsRequest)
func (*AssociateTargetGroupsRequest) FromJsonString ¶
func (r *AssociateTargetGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateTargetGroupsRequest) ToJsonString ¶
func (r *AssociateTargetGroupsRequest) ToJsonString() string
type AssociateTargetGroupsResponse ¶
type AssociateTargetGroupsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAssociateTargetGroupsResponse ¶
func NewAssociateTargetGroupsResponse() (response *AssociateTargetGroupsResponse)
func (*AssociateTargetGroupsResponse) FromJsonString ¶
func (r *AssociateTargetGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AssociateTargetGroupsResponse) ToJsonString ¶
func (r *AssociateTargetGroupsResponse) ToJsonString() string
type AssociationItem ¶
type AssociationItem struct { // ID of associated CLB instance LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // ID of associated listener ListenerId *string `json:"ListenerId,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,omitempty" name:"LocationId"` // Protocol type of associated listener, such as HTTP or TCP Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Port of associated listener Port *uint64 `json:"Port,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,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,omitempty" name:"Url"` // CLB instance name LoadBalancerName *string `json:"LoadBalancerName,omitempty" name:"LoadBalancerName"` // Listener name ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` }
type AutoRewriteRequest ¶
type AutoRewriteRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // `HTTPS:443` listener ID ListenerId *string `json:"ListenerId,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,omitempty" name:"Domains"` // Redirection status code. Valid values: 301, 302, and 307. RewriteCodes []*int64 `json:"RewriteCodes,omitempty" name:"RewriteCodes"` // Whether the matched URL is carried in redirection. TakeUrls []*bool `json:"TakeUrls,omitempty" name:"TakeUrls"` }
func NewAutoRewriteRequest ¶
func NewAutoRewriteRequest() (request *AutoRewriteRequest)
func (*AutoRewriteRequest) FromJsonString ¶
func (r *AutoRewriteRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AutoRewriteRequest) ToJsonString ¶
func (r *AutoRewriteRequest) ToJsonString() string
type AutoRewriteResponse ¶
type AutoRewriteResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAutoRewriteResponse ¶
func NewAutoRewriteResponse() (response *AutoRewriteResponse)
func (*AutoRewriteResponse) FromJsonString ¶
func (r *AutoRewriteResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AutoRewriteResponse) ToJsonString ¶
func (r *AutoRewriteResponse) ToJsonString() string
type Backend ¶
type Backend struct { // Real server type. Valid values: CVM, ENI. Type *string `json:"Type,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,omitempty" name:"InstanceId"` // Listening port of a real server Port *int64 `json:"Port,omitempty" name:"Port"` // Forwarding weight of a real server. Value range: [0, 100]. Default value: 10. Weight *int64 `json:"Weight,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,omitempty" name:"PublicIpAddresses"` // Private IP of a real server // Note: This field may return null, indicating that no valid values can be obtained. PrivateIpAddresses []*string `json:"PrivateIpAddresses,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,omitempty" name:"InstanceName"` // Bound time of a real server // Note: This field may return null, indicating that no valid values can be obtained. RegisteredTime *string `json:"RegisteredTime,omitempty" name:"RegisteredTime"` // Unique ENI ID // Note: This field may return null, indicating that no valid values can be obtained. EniId *string `json:"EniId,omitempty" name:"EniId"` }
type BasicTargetGroupInfo ¶
type BatchDeregisterTargetsRequest ¶
type BatchDeregisterTargetsRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Unbinding targets Targets []*BatchTarget `json:"Targets,omitempty" name:"Targets"` }
func NewBatchDeregisterTargetsRequest ¶
func NewBatchDeregisterTargetsRequest() (request *BatchDeregisterTargetsRequest)
func (*BatchDeregisterTargetsRequest) FromJsonString ¶
func (r *BatchDeregisterTargetsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BatchDeregisterTargetsRequest) ToJsonString ¶
func (r *BatchDeregisterTargetsRequest) ToJsonString() string
type BatchDeregisterTargetsResponse ¶
type BatchDeregisterTargetsResponse struct { *tchttp.BaseResponse Response *struct { // IDs of the listeners failed to unbind FailListenerIdSet []*string `json:"FailListenerIdSet,omitempty" name:"FailListenerIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewBatchDeregisterTargetsResponse ¶
func NewBatchDeregisterTargetsResponse() (response *BatchDeregisterTargetsResponse)
func (*BatchDeregisterTargetsResponse) FromJsonString ¶
func (r *BatchDeregisterTargetsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BatchDeregisterTargetsResponse) ToJsonString ¶
func (r *BatchDeregisterTargetsResponse) ToJsonString() string
type BatchModifyTargetWeightRequest ¶
type BatchModifyTargetWeightRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // List of weights to be modified in batches ModifyList []*RsWeightRule `json:"ModifyList,omitempty" name:"ModifyList"` }
func NewBatchModifyTargetWeightRequest ¶
func NewBatchModifyTargetWeightRequest() (request *BatchModifyTargetWeightRequest)
func (*BatchModifyTargetWeightRequest) FromJsonString ¶
func (r *BatchModifyTargetWeightRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BatchModifyTargetWeightRequest) ToJsonString ¶
func (r *BatchModifyTargetWeightRequest) ToJsonString() string
type BatchModifyTargetWeightResponse ¶
type BatchModifyTargetWeightResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewBatchModifyTargetWeightResponse ¶
func NewBatchModifyTargetWeightResponse() (response *BatchModifyTargetWeightResponse)
func (*BatchModifyTargetWeightResponse) FromJsonString ¶
func (r *BatchModifyTargetWeightResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BatchModifyTargetWeightResponse) ToJsonString ¶
func (r *BatchModifyTargetWeightResponse) ToJsonString() string
type BatchRegisterTargetsRequest ¶
type BatchRegisterTargetsRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Binding target Targets []*BatchTarget `json:"Targets,omitempty" name:"Targets"` }
func NewBatchRegisterTargetsRequest ¶
func NewBatchRegisterTargetsRequest() (request *BatchRegisterTargetsRequest)
func (*BatchRegisterTargetsRequest) FromJsonString ¶
func (r *BatchRegisterTargetsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BatchRegisterTargetsRequest) ToJsonString ¶
func (r *BatchRegisterTargetsRequest) ToJsonString() string
type BatchRegisterTargetsResponse ¶
type BatchRegisterTargetsResponse struct { *tchttp.BaseResponse Response *struct { // IDs of the listeners failed to bind. If this is blank, all listeners are bound successfully. // Note: This field may return null, indicating that no valid values can be obtained. FailListenerIdSet []*string `json:"FailListenerIdSet,omitempty" name:"FailListenerIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewBatchRegisterTargetsResponse ¶
func NewBatchRegisterTargetsResponse() (response *BatchRegisterTargetsResponse)
func (*BatchRegisterTargetsResponse) FromJsonString ¶
func (r *BatchRegisterTargetsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BatchRegisterTargetsResponse) ToJsonString ¶
func (r *BatchRegisterTargetsResponse) ToJsonString() string
type BatchTarget ¶
type BatchTarget struct { // Listener ID. ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // The port to Bind Port *int64 `json:"Port,omitempty" name:"Port"` // CVM instance ID. The primary IP of the primary ENI will be bound. InstanceId *string `json:"InstanceId,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,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,omitempty" name:"Weight"` // Layer-7 rule ID. LocationId *string `json:"LocationId,omitempty" name:"LocationId"` }
type BindDetailItem ¶
type BindDetailItem struct { // Specifies the ID of CLB to be bound LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Specifies the ID of listener to be bound // Note: this field may return `null`, indicating that no valid values can be obtained. ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Specifies the domain name to be bound // Note: this field may return `null`, indicating that no valid values can be obtained. Domain *string `json:"Domain,omitempty" name:"Domain"` // Sets the bound rule. // Note: this field may return `null`, indicating that no valid values can be obtained. LocationId *string `json:"LocationId,omitempty" name:"LocationId"` // Listener name. // Note: this field may return `null`, indicating that no valid values can be obtained. ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` // Listener protocol. // Note: this field may return `null`, indicating that no valid values can be obtained. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Listener port. // Note: this field may return `null`, indicating that no valid values can be obtained. Vport *int64 `json:"Vport,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,omitempty" name:"Url"` // Configuration ID. // Note: this field may return `null`, indicating that no valid values can be obtained. UconfigId *string `json:"UconfigId,omitempty" name:"UconfigId"` }
type CertIdRelatedWithLoadBalancers ¶
type CertIdRelatedWithLoadBalancers struct { // Certificate ID CertId *string `json:"CertId,omitempty" name:"CertId"` // List of CLB instances associated with certificate // Note: this field may return null, indicating that no valid values can be obtained. LoadBalancers []*LoadBalancer `json:"LoadBalancers,omitempty" name:"LoadBalancers"` }
type CertificateInput ¶
type CertificateInput struct { // Authentication type. Value range: UNIDIRECTIONAL (unidirectional authentication), MUTUAL (mutual authentication) SSLMode *string `json:"SSLMode,omitempty" name:"SSLMode"` // ID of a server certificate. If you leave this parameter empty, you must upload the certificate, including CertContent, CertKey, and CertName. CertId *string `json:"CertId,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,omitempty" name:"CertCaId"` // Name of the uploaded server certificate. If there is no CertId, this parameter is required. CertName *string `json:"CertName,omitempty" name:"CertName"` // Key of the uploaded server certificate. If there is no CertId, this parameter is required. CertKey *string `json:"CertKey,omitempty" name:"CertKey"` // Content of the uploaded server certificate. If there is no CertId, this parameter is required. CertContent *string `json:"CertContent,omitempty" name:"CertContent"` // Name of the uploaded client CA certificate. When SSLMode = mutual, if there is no CertCaId, this parameter is required. CertCaName *string `json:"CertCaName,omitempty" name:"CertCaName"` // Content of the uploaded client certificate. When SSLMode = mutual, if there is no CertCaId, this parameter is required. CertCaContent *string `json:"CertCaContent,omitempty" name:"CertCaContent"` }
type CertificateOutput ¶
type CertificateOutput struct { // Authentication type. Value range: UNIDIRECTIONAL (unidirectional authentication), MUTUAL (mutual authentication) SSLMode *string `json:"SSLMode,omitempty" name:"SSLMode"` // Server certificate ID. CertId *string `json:"CertId,omitempty" name:"CertId"` // Client certificate ID. // Note: This field may return null, indicating that no valid values can be obtained. CertCaId *string `json:"CertCaId,omitempty" name:"CertCaId"` }
type ClassicalHealth ¶
type ClassicalHealth struct { // Private IP of a real server IP *string `json:"IP,omitempty" name:"IP"` // Real server port Port *int64 `json:"Port,omitempty" name:"Port"` // CLB listener port ListenerPort *int64 `json:"ListenerPort,omitempty" name:"ListenerPort"` // Forwarding protocol Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Health check result. Value range: 1 (healthy), 0 (unhealthy) HealthStatus *int64 `json:"HealthStatus,omitempty" name:"HealthStatus"` }
type ClassicalListener ¶
type ClassicalListener struct { // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // CLB listener port ListenerPort *int64 `json:"ListenerPort,omitempty" name:"ListenerPort"` // Backend forwarding port of a listener InstancePort *int64 `json:"InstancePort,omitempty" name:"InstancePort"` // Listener name ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` // Listener protocol type Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Session persistence time SessionExpire *int64 `json:"SessionExpire,omitempty" name:"SessionExpire"` // Whether health check is enabled. 1: enabled; 0: disabled. HealthSwitch *int64 `json:"HealthSwitch,omitempty" name:"HealthSwitch"` // Response timeout period TimeOut *int64 `json:"TimeOut,omitempty" name:"TimeOut"` // Check interval IntervalTime *int64 `json:"IntervalTime,omitempty" name:"IntervalTime"` // Health threshold HealthNum *int64 `json:"HealthNum,omitempty" name:"HealthNum"` // Unhealthy threshold UnhealthNum *int64 `json:"UnhealthNum,omitempty" name:"UnhealthNum"` // A request balancing method for HTTP and HTTPS listeners of a public network classic CLB. wrr means weighted round robin, while ip_hash means consistent hashing based on source IPs of access requests. HttpHash *string `json:"HttpHash,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,omitempty" name:"HttpCode"` // Health check path for HTTP and HTTPS listeners of a public network classic CLB HttpCheckPath *string `json:"HttpCheckPath,omitempty" name:"HttpCheckPath"` // Authentication method for an HTTPS listener of a public network classic CLB SSLMode *string `json:"SSLMode,omitempty" name:"SSLMode"` // Server certificate ID for an HTTPS listener of a public network classic CLB CertId *string `json:"CertId,omitempty" name:"CertId"` // Client certificate ID for an HTTPS listener of a public network classic CLB CertCaId *string `json:"CertCaId,omitempty" name:"CertCaId"` // Listener status. Value range: 0 (creating), 1 (running) Status *int64 `json:"Status,omitempty" name:"Status"` }
type ClassicalLoadBalancerInfo ¶
type ClassicalLoadBalancerInfo struct { // Real server ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // List of CLB instance IDs // Note: This field may return null, indicating that no valid values can be obtained. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` }
type ClassicalTarget ¶
type ClassicalTarget struct { // Real server type. Value range: CVM, ENI (coming soon) Type *string `json:"Type,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,omitempty" name:"InstanceId"` // Forwarding weight of a real server. Value range: [0, 100]. Default value: 10. Weight *int64 `json:"Weight,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,omitempty" name:"PublicIpAddresses"` // Private IP of a real server // Note: This field may return null, indicating that no valid values can be obtained. PrivateIpAddresses []*string `json:"PrivateIpAddresses,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,omitempty" name:"InstanceName"` // Real server 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 // Note: This field may return null, indicating that no valid values can be obtained. RunFlag *int64 `json:"RunFlag,omitempty" name:"RunFlag"` }
type ClassicalTargetInfo ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AssociateTargetGroups ¶
func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error)
AssociateTargetGroups This API is used to bind target groups to CLB listeners (layer-4 protocol) or forwarding rules (layer-7 protocol).
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" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) AutoRewrite ¶
func (c *Client) AutoRewrite(request *AutoRewriteRequest) (response *AutoRewriteResponse, err error)
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 (*Client) BatchDeregisterTargets ¶
func (c *Client) BatchDeregisterTargets(request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error)
BatchDeregisterTargets This API is used to unbind layer-4 and layer-7 real servers in batches. Up to 500 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 (*Client) BatchModifyTargetWeight ¶
func (c *Client) BatchModifyTargetWeight(request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error)
BatchModifyTargetWeight This API is used to modify forwarding weights of real servers bound to CLB listeners in batches. Up to 500 servers can be unbound in a batch. As this API is async, you should check whether the task is successful by passing the RequestId returned to the API call `DescribeTaskStatus`.<br/> This API is supported by CLB layer-4 and layer-7 listeners, but not Classis CLB counterparts.
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 (*Client) BatchRegisterTargets ¶
func (c *Client) BatchRegisterTargets(request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error)
BatchRegisterTargets This API is used to bind CVM instances or ENIs in batches. Up to 500 servers can be bound in a batch. It supports cross-region binding, and layer-4 and layer-7 (TCP/UDP/HTTP/HTTPS) protocols.
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 = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateClsLogSet ¶
func (c *Client) CreateClsLogSet(request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error)
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 (*Client) CreateListener ¶
func (c *Client) CreateListener(request *CreateListenerRequest) (response *CreateListenerResponse, err error)
CreateListener This API is used to create a listener for a CLB instance.
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_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateLoadBalancer ¶
func (c *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error)
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_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateLoadBalancerSnatIps ¶
func (c *Client) CreateLoadBalancerSnatIps(request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error)
CreateLoadBalancerSnatIps This API is used to add an SNAT IP for an SnatPro CLB instance. If SnatPro is not enabled for CLB, it will be automatically enabled after the SNAT IP is added.
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" LIMITEXCEEDED = "LimitExceeded"
func (*Client) CreateRule ¶
func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleResponse, err error)
CreateRule This API (CreateRule) is used to create a forwarding rule under an existing layer-7 CLB listener, where real servers must be bound to the rule instead of the 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" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateTargetGroup ¶
func (c *Client) CreateTargetGroup(request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error)
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" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateTopic ¶
func (c *Client) CreateTopic(request *CreateTopicRequest) (response *CreateTopicResponse, err error)
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 (*Client) DeleteListener ¶
func (c *Client) DeleteListener(request *DeleteListenerRequest) (response *DeleteListenerResponse, err error)
DeleteListener This API is used to delete a listener from a CLB instance (layer-4 or layer-7).
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_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteLoadBalancer ¶
func (c *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error)
DeleteLoadBalancer This API (DeleteLoadBalancer) is used to delete one or more specified CLB instances.
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" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteLoadBalancerListeners ¶
func (c *Client) DeleteLoadBalancerListeners(request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error)
DeleteLoadBalancerListeners This API is used to delete multiple listeners of a CLB instance.
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_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteLoadBalancerSnatIps ¶
func (c *Client) DeleteLoadBalancerSnatIps(request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error)
DeleteLoadBalancerSnatIps This API is used to delete the SNAT IP for an SnatPro CLB instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded"
func (*Client) DeleteRewrite ¶
func (c *Client) DeleteRewrite(request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error)
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 (*Client) DeleteRule ¶
func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)
DeleteRule This API (DeleteRule) is used to delete a forwarding rule under a layer-7 CLB instance 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" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteTargetGroups ¶
func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)
DeleteTargetGroups This API is used to delete a target group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeregisterTargetGroupInstances ¶
func (c *Client) DeregisterTargetGroupInstances(request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error)
DeregisterTargetGroupInstances This API is used to unbind a server from a target group.
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" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeregisterTargets ¶
func (c *Client) DeregisterTargets(request *DeregisterTargetsRequest) (response *DeregisterTargetsResponse, err error)
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 (*Client) DeregisterTargetsFromClassicalLB ¶
func (c *Client) DeregisterTargetsFromClassicalLB(request *DeregisterTargetsFromClassicalLBRequest) (response *DeregisterTargetsFromClassicalLBResponse, err error)
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 (*Client) DescribeBlockIPList ¶
func (c *Client) DescribeBlockIPList(request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error)
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 (*Client) DescribeBlockIPTask ¶
func (c *Client) DescribeBlockIPTask(request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error)
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:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeClassicalLBByInstanceId ¶
func (c *Client) DescribeClassicalLBByInstanceId(request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error)
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 (*Client) DescribeClassicalLBHealthStatus ¶
func (c *Client) DescribeClassicalLBHealthStatus(request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error)
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 (*Client) DescribeClassicalLBListeners ¶
func (c *Client) DescribeClassicalLBListeners(request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error)
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"
func (*Client) DescribeClassicalLBTargets ¶
func (c *Client) DescribeClassicalLBTargets(request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error)
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 (*Client) DescribeClsLogSet ¶
func (c *Client) DescribeClsLogSet(request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error)
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 (*Client) DescribeCustomizedConfigAssociateList ¶
func (c *Client) DescribeCustomizedConfigAssociateList(request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error)
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 (*Client) DescribeCustomizedConfigList ¶
func (c *Client) DescribeCustomizedConfigList(request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error)
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_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeLBListeners ¶
func (c *Client) DescribeLBListeners(request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error)
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" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeListeners ¶
func (c *Client) DescribeListeners(request *DescribeListenersRequest) (response *DescribeListenersResponse, err error)
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" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeLoadBalancerListByCertId ¶
func (c *Client) DescribeLoadBalancerListByCertId(request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error)
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 (*Client) DescribeLoadBalancerTraffic ¶
func (c *Client) DescribeLoadBalancerTraffic(request *DescribeLoadBalancerTrafficRequest) (response *DescribeLoadBalancerTrafficResponse, err error)
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 (*Client) DescribeLoadBalancers ¶
func (c *Client) DescribeLoadBalancers(request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error)
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" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeLoadBalancersDetail ¶
func (c *Client) DescribeLoadBalancersDetail(request *DescribeLoadBalancersDetailRequest) (response *DescribeLoadBalancersDetailResponse, err error)
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 (*Client) DescribeQuota ¶
func (c *Client) DescribeQuota(request *DescribeQuotaRequest) (response *DescribeQuotaResponse, err error)
DescribeQuota This API is used to query various quotas in the current region.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeRewrite ¶
func (c *Client) DescribeRewrite(request *DescribeRewriteRequest) (response *DescribeRewriteResponse, err error)
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 (*Client) DescribeTargetGroupInstances ¶
func (c *Client) DescribeTargetGroupInstances(request *DescribeTargetGroupInstancesRequest) (response *DescribeTargetGroupInstancesResponse, err error)
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 (*Client) DescribeTargetGroupList ¶
func (c *Client) DescribeTargetGroupList(request *DescribeTargetGroupListRequest) (response *DescribeTargetGroupListResponse, err error)
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 (*Client) DescribeTargetGroups ¶
func (c *Client) DescribeTargetGroups(request *DescribeTargetGroupsRequest) (response *DescribeTargetGroupsResponse, err error)
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 (*Client) DescribeTargetHealth ¶
func (c *Client) DescribeTargetHealth(request *DescribeTargetHealthRequest) (response *DescribeTargetHealthResponse, err error)
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"
func (*Client) DescribeTargets ¶
func (c *Client) DescribeTargets(request *DescribeTargetsRequest) (response *DescribeTargetsResponse, err error)
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"
func (*Client) DescribeTaskStatus ¶
func (c *Client) DescribeTaskStatus(request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error)
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"
func (*Client) DisassociateTargetGroups ¶
func (c *Client) DisassociateTargetGroups(request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error)
DisassociateTargetGroups This API is used to unbind target groups from a rule.
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" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ManualRewrite ¶
func (c *Client) ManualRewrite(request *ManualRewriteRequest) (response *ManualRewriteResponse, err error)
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 (*Client) ModifyBlockIPList ¶
func (c *Client) ModifyBlockIPList(request *ModifyBlockIPListRequest) (response *ModifyBlockIPListResponse, err error)
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 (*Client) ModifyDomain ¶
func (c *Client) ModifyDomain(request *ModifyDomainRequest) (response *ModifyDomainResponse, err error)
ModifyDomain This API (ModifyDomain) is used to modify a domain name under a layer-7 CLB 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" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyDomainAttributes ¶
func (c *Client) ModifyDomainAttributes(request *ModifyDomainAttributesRequest) (response *ModifyDomainAttributesResponse, err error)
ModifyDomainAttributes This API is used to modify the domain name-level attributes of a layer-7 listener's forwarding rule, such as modifying the domain name, changing the DefaultServer, enabling/disabling HTTP/2, and modifying certificates.
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_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyListener ¶
func (c *Client) ModifyListener(request *ModifyListenerRequest) (response *ModifyListenerResponse, err error)
ModifyListener This API (ModifyListener) is used to modify the attributes of a CLB listener, such as listener name, health check parameter, certificate information, and forwarding policy.
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_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyLoadBalancerAttributes ¶
func (c *Client) ModifyLoadBalancerAttributes(request *ModifyLoadBalancerAttributesRequest) (response *ModifyLoadBalancerAttributesResponse, err error)
ModifyLoadBalancerAttributes This API is used to modify the attributes of a CLB instance such as name and cross-region attributes.
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_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyRule ¶
func (c *Client) ModifyRule(request *ModifyRuleRequest) (response *ModifyRuleResponse, err error)
ModifyRule This API (ModifyRule) is used to modify the attributes of a forwarding rule under a layer-7 CLB listener, such as forwarding path, health check attribute, and forwarding policy.
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_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetGroupAttribute ¶
func (c *Client) ModifyTargetGroupAttribute(request *ModifyTargetGroupAttributeRequest) (response *ModifyTargetGroupAttributeResponse, err error)
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 (*Client) ModifyTargetGroupInstancesPort ¶
func (c *Client) ModifyTargetGroupInstancesPort(request *ModifyTargetGroupInstancesPortRequest) (response *ModifyTargetGroupInstancesPortResponse, err error)
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" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetGroupInstancesWeight ¶
func (c *Client) ModifyTargetGroupInstancesWeight(request *ModifyTargetGroupInstancesWeightRequest) (response *ModifyTargetGroupInstancesWeightResponse, err error)
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" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetPort ¶
func (c *Client) ModifyTargetPort(request *ModifyTargetPortRequest) (response *ModifyTargetPortResponse, err error)
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" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetWeight ¶
func (c *Client) ModifyTargetWeight(request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error)
ModifyTargetWeight This API (ModifyTargetWeight) is used to modify the forwarding weight of a real server bound to a CLB instance.
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" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) RegisterTargetGroupInstances ¶
func (c *Client) RegisterTargetGroupInstances(request *RegisterTargetGroupInstancesRequest) (response *RegisterTargetGroupInstancesResponse, err error)
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" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) RegisterTargets ¶
func (c *Client) RegisterTargets(request *RegisterTargetsRequest) (response *RegisterTargetsResponse, err error)
RegisterTargets This API (RegisterTargets) is used to bind one or more real servers to a CLB listener or layer-7 forwarding rule. Before using this API, you need to create relevant layer-4 listeners or layer-7 forwarding rules. For the former (TCP/UDP), only the listener ID needs to be specified, while for the latter (HTTP/HTTPS), 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" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) RegisterTargetsWithClassicalLB ¶
func (c *Client) RegisterTargetsWithClassicalLB(request *RegisterTargetsWithClassicalLBRequest) (response *RegisterTargetsWithClassicalLBResponse, err error)
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 (*Client) ReplaceCertForLoadBalancers ¶
func (c *Client) ReplaceCertForLoadBalancers(request *ReplaceCertForLoadBalancersRequest) (response *ReplaceCertForLoadBalancersResponse, err error)
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 (*Client) SetLoadBalancerClsLog ¶
func (c *Client) SetLoadBalancerClsLog(request *SetLoadBalancerClsLogRequest) (response *SetLoadBalancerClsLogResponse, err error)
SetLoadBalancerClsLog This API is used to add, delete, and update the CLS topic of a CLB instance.
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" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetLoadBalancerSecurityGroups ¶
func (c *Client) SetLoadBalancerSecurityGroups(request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error)
SetLoadBalancerSecurityGroups This API (SetLoadBalancerSecurityGroups) is used to bind/unbind security groups for a public network CLB instance. You can use the DescribeLoadBalancers API to query the security groups bound to a CLB instance. This API uses `set` semantics.
During a binding operation, the input parameters need to be all security groups to be bound to the CLB instance (including those already bound ones and new ones).
During an unbinding operation, the input parameters need to be all the security groups still bound to the CLB instance after the unbinding operation. To unbind all security groups, you can leave this parameter empty or pass in an empty array. Note: Private network CLB do not support binding security groups.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetSecurityGroupForLoadbalancers ¶
func (c *Client) SetSecurityGroupForLoadbalancers(request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error)
SetSecurityGroupForLoadbalancers This API is used to bind or unbind a security group for multiple public network CLB instances. Note: Private network CLB do not support binding security groups.
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"
type ClusterItem ¶
type ClusterItem struct { // Unique cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster name // Note: this field may return null, indicating that no valid values can be obtained. ClusterName *string `json:"ClusterName,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,omitempty" name:"Zone"` }
type ConfigListItem ¶
type ConfigListItem struct { // Configuration ID. UconfigId *string `json:"UconfigId,omitempty" name:"UconfigId"` // Configuration type. ConfigType *string `json:"ConfigType,omitempty" name:"ConfigType"` // Configuration name. // Note: this field may return `null`, indicating that no valid values can be obtained. ConfigName *string `json:"ConfigName,omitempty" name:"ConfigName"` // Configuration content. ConfigContent *string `json:"ConfigContent,omitempty" name:"ConfigContent"` // Creates configuration time. CreateTimestamp *string `json:"CreateTimestamp,omitempty" name:"CreateTimestamp"` // Modifies configuration time. UpdateTimestamp *string `json:"UpdateTimestamp,omitempty" name:"UpdateTimestamp"` }
type CreateClsLogSetRequest ¶
type CreateClsLogSetRequest struct { *tchttp.BaseRequest // Logset retention period in days; max value: 90 Period *uint64 `json:"Period,omitempty" name:"Period"` // Logset name, which must be unique among all CLS logsets; default value: clb_logset LogsetName *string `json:"LogsetName,omitempty" name:"LogsetName"` // Logset type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs). LogsetType *string `json:"LogsetType,omitempty" name:"LogsetType"` }
func NewCreateClsLogSetRequest ¶
func NewCreateClsLogSetRequest() (request *CreateClsLogSetRequest)
func (*CreateClsLogSetRequest) FromJsonString ¶
func (r *CreateClsLogSetRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClsLogSetRequest) ToJsonString ¶
func (r *CreateClsLogSetRequest) ToJsonString() string
type CreateClsLogSetResponse ¶
type CreateClsLogSetResponse struct { *tchttp.BaseResponse Response *struct { // Logset ID. LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClsLogSetResponse ¶
func NewCreateClsLogSetResponse() (response *CreateClsLogSetResponse)
func (*CreateClsLogSetResponse) FromJsonString ¶
func (r *CreateClsLogSetResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClsLogSetResponse) ToJsonString ¶
func (r *CreateClsLogSetResponse) ToJsonString() string
type CreateListenerRequest ¶
type CreateListenerRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Specifies for which ports to create listeners. Each port corresponds to a new listener. Ports []*int64 `json:"Ports,omitempty" name:"Ports"` // Listener protocol: TCP, UDP, HTTP, HTTPS, or TCP_SSL (which is currently in beta test. If you want to use it, please submit a ticket for application). Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // List of names of the listeners to be created. The array of names and array of ports are in one-to-one correspondence. If you do not want to name them now, you do not need to provide this parameter. ListenerNames []*string `json:"ListenerNames,omitempty" name:"ListenerNames"` // Health check parameter, which is applicable only to TCP, UDP, and TCP_SSL listeners. HealthCheck *HealthCheck `json:"HealthCheck,omitempty" name:"HealthCheck"` // Certificate information. This parameter is applicable only to TCP_SSL listeners and HTTPS listeners with the SNI feature not enabled. Certificate *CertificateInput `json:"Certificate,omitempty" name:"Certificate"` // 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,omitempty" name:"SessionExpireTime"` // Forwarding method of a listener. Value range: WRR, LEAST_CONN. // They represent weighted round robin and least connections, respectively. Default value: WRR. This parameter is applicable only to TCP/UDP/TCP_SSL listeners. Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // Whether to enable the SNI feature. This parameter is applicable only to HTTPS listeners SniSwitch *int64 `json:"SniSwitch,omitempty" name:"SniSwitch"` // Target real server type. `NODE`: binding a general node; `TARGETGROUP`: binding a target group. TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // 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. SessionType *string `json:"SessionType,omitempty" name:"SessionType"` // 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). KeepaliveEnable *int64 `json:"KeepaliveEnable,omitempty" name:"KeepaliveEnable"` // This parameter is used to specify the end port and is required when creating a port range listener. Only one member can be passed in when inputting the `Ports` parameter, which is used to specify the start port. If you want to try the port range feature, please [submit a ticket](https://console.cloud.tencent.com/workorder/category). EndPort *uint64 `json:"EndPort,omitempty" name:"EndPort"` // Whether to send the TCP RST packet to the client when unbinding a real server. This parameter is applicable to TCP listeners only. DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitempty" name:"DeregisterTargetRst"` }
func NewCreateListenerRequest ¶
func NewCreateListenerRequest() (request *CreateListenerRequest)
func (*CreateListenerRequest) FromJsonString ¶
func (r *CreateListenerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateListenerRequest) ToJsonString ¶
func (r *CreateListenerRequest) ToJsonString() string
type CreateListenerResponse ¶
type CreateListenerResponse struct { *tchttp.BaseResponse Response *struct { // Array of unique IDs of the created listeners ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateListenerResponse ¶
func NewCreateListenerResponse() (response *CreateListenerResponse)
func (*CreateListenerResponse) FromJsonString ¶
func (r *CreateListenerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateListenerResponse) ToJsonString ¶
func (r *CreateListenerResponse) ToJsonString() string
type CreateLoadBalancerRequest ¶
type CreateLoadBalancerRequest struct { *tchttp.BaseRequest // CLB instance network type: // OPEN: public network; INTERNAL: private network. LoadBalancerType *string `json:"LoadBalancerType,omitempty" name:"LoadBalancerType"` // CLB instance type. Valid value: 1 (generic CLB instance). Forward *int64 `json:"Forward,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,omitempty" name:"LoadBalancerName"` // Network ID of the target CLB real server, such as `vpc-12345678`, which can be obtained through the [DescribeVpcEx](https://intl.cloud.tencent.com/document/product/215/1372?from_cn_redirect=1) API. If this parameter is not specified, it will default to `DefaultVPC`. This parameter is required for creating a CLB instance. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // A subnet ID must be specified when you purchase a private network CLB instance in a VPC, and the VIP of this instance will be generated in this subnet. This parameter is required for creating a CLB instance. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Project ID of the CLB instance, which can be obtained through the [DescribeProject](https://intl.cloud.tencent.com/document/product/378/4400?from_cn_redirect=1) API. If this parameter is not specified, it will default to the default project. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // IP version. Valid values: `IPV4` (default), `IPV6` (IPV6 NAT64 version) or `IPv6FullChain` (IPv6 version). This parameter is only for public network CLB instances. AddressIPVersion *string `json:"AddressIPVersion,omitempty" name:"AddressIPVersion"` // Number of CLBs to be created. Default value: 1. Number *uint64 `json:"Number,omitempty" name:"Number"` // 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 carries traffic, while a secondary AZ does not carry traffic by default and will be used only if the primary AZ becomes unavailable. The platform will automatically select the optimal secondary AZ. The list of primary AZs in a specific region can be queried through the DescribeMasterZones API. MasterZoneId *string `json:"MasterZoneId,omitempty" name:"MasterZoneId"` // Specifies an AZ ID for creating a CLB instance, such as `ap-guangzhou-1`, which is applicable only to public network CLB instances. ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"` // CLB network billing mode. This parameter is applicable only to public network CLB instances. InternetAccessible *InternetAccessible `json:"InternetAccessible,omitempty" name:"InternetAccessible"` // This parameter is applicable only to public network CLB instances. Valid values: CMCC (China Mobile), CTCC (China Telecom), CUCC (China Unicom). If this parameter is not specified, BGP will be used by default. ISPs supported in a region can be queried with the `DescribeSingleIsp` API. If an ISP is specified, only bill-by-bandwidth-package (BANDWIDTH_PACKAGE) can be used as the network billing mode. VipIsp *string `json:"VipIsp,omitempty" name:"VipIsp"` // Tags a CLB instance when purchasing it. Tags []*TagInfo `json:"Tags,omitempty" name:"Tags"` // Specifies a VIP for the CLB instance. // <ul><li>`VpcId` is optional for creating shared clusters of public network CLB instances. For IPv6 CLB instance type, `SubnetId` is required; for IPv4 and IPv6 NAT64 types, it can be left empty.</li> // <li>`VpcId` is optional for creating shared clusters of public network CLB instances. For IPv6 CLB instance type, `SubnetId` is required; for IPv4 and IPv6 NAT64 types, it can be left empty. // </li></ul> Vip *string `json:"Vip,omitempty" name:"Vip"` // Bandwidth package ID. If this parameter is specified, the network billing mode (`InternetAccessible.InternetChargeType`) will only support bill-by-bandwidth package (`BANDWIDTH_PACKAGE`). BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` // Exclusive cluster information. This parameter is required for creating exclusive clusters of CLB instances. ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitempty" name:"ExclusiveCluster"` // Creates an LCU-supported CLB instance // <ul><li>To create an LCU-supported CLB, this field is required and the value is `SLA`. LCU-supports CLBs adopt the pay-as-you-go model and their performance is guaranteed.</li> // <li>It’s not required for a shared CLB instance.</li></ul> SlaType *string `json:"SlaType,omitempty" name:"SlaType"` // 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,omitempty" name:"ClientToken"` // Whether Binding IPs of other VPCs feature switch SnatPro *bool `json:"SnatPro,omitempty" name:"SnatPro"` // Creates `SnatIp` when the binding IPs of other VPCs feature is enabled SnatIps []*SnatIp `json:"SnatIps,omitempty" name:"SnatIps"` // Tag for the STGW exclusive cluster. ClusterTag *string `json:"ClusterTag,omitempty" name:"ClusterTag"` // Sets the secondary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`, which is applicable only to public network CLB instances. // Note: A secondary AZ will load traffic if the primary AZ has failures. The API `DescribeMasterZones` is used to query the primary and secondary AZ list of a region. SlaveZoneId *string `json:"SlaveZoneId,omitempty" name:"SlaveZoneId"` // Unique ID of an EIP, which can only be used when binding the EIP of a private network CLB instance. E.g., `eip-11112222`. EipAddressId *string `json:"EipAddressId,omitempty" name:"EipAddressId"` // Whether to allow CLB traffic to the target group. `true`: allows CLB traffic to the target group and verifies security groups only on CLB; `false`: denies CLB traffic to the target group and verifies security groups on both CLB and backend instances. LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitempty" name:"LoadBalancerPassToTarget"` }
func NewCreateLoadBalancerRequest ¶
func NewCreateLoadBalancerRequest() (request *CreateLoadBalancerRequest)
func (*CreateLoadBalancerRequest) FromJsonString ¶
func (r *CreateLoadBalancerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLoadBalancerRequest) ToJsonString ¶
func (r *CreateLoadBalancerRequest) ToJsonString() string
type CreateLoadBalancerResponse ¶
type CreateLoadBalancerResponse struct { *tchttp.BaseResponse Response *struct { // Array of unique CLB instance IDs. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateLoadBalancerResponse ¶
func NewCreateLoadBalancerResponse() (response *CreateLoadBalancerResponse)
func (*CreateLoadBalancerResponse) FromJsonString ¶
func (r *CreateLoadBalancerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLoadBalancerResponse) ToJsonString ¶
func (r *CreateLoadBalancerResponse) ToJsonString() string
type CreateLoadBalancerSnatIpsRequest ¶
type CreateLoadBalancerSnatIpsRequest struct { *tchttp.BaseRequest // Unique ID of a CLB instance, e.g., lb-12345678. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Information of the SNAT IP to be added. You can apply for a specified IP or apply for an automatically assigned IP by specifying a subnet. SnatIps []*SnatIp `json:"SnatIps,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. Number *uint64 `json:"Number,omitempty" name:"Number"` }
func NewCreateLoadBalancerSnatIpsRequest ¶
func NewCreateLoadBalancerSnatIpsRequest() (request *CreateLoadBalancerSnatIpsRequest)
func (*CreateLoadBalancerSnatIpsRequest) FromJsonString ¶
func (r *CreateLoadBalancerSnatIpsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLoadBalancerSnatIpsRequest) ToJsonString ¶
func (r *CreateLoadBalancerSnatIpsRequest) ToJsonString() string
type CreateLoadBalancerSnatIpsResponse ¶
type CreateLoadBalancerSnatIpsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateLoadBalancerSnatIpsResponse ¶
func NewCreateLoadBalancerSnatIpsResponse() (response *CreateLoadBalancerSnatIpsResponse)
func (*CreateLoadBalancerSnatIpsResponse) FromJsonString ¶
func (r *CreateLoadBalancerSnatIpsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateLoadBalancerSnatIpsResponse) ToJsonString ¶
func (r *CreateLoadBalancerSnatIpsResponse) ToJsonString() string
type CreateRuleRequest ¶
type CreateRuleRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Information of the new forwarding rule Rules []*RuleInput `json:"Rules,omitempty" name:"Rules"` }
func NewCreateRuleRequest ¶
func NewCreateRuleRequest() (request *CreateRuleRequest)
func (*CreateRuleRequest) FromJsonString ¶
func (r *CreateRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateRuleRequest) ToJsonString ¶
func (r *CreateRuleRequest) ToJsonString() string
type CreateRuleResponse ¶
type CreateRuleResponse struct { *tchttp.BaseResponse Response *struct { // Array of unique IDs of created forwarding rules LocationIds []*string `json:"LocationIds,omitempty" name:"LocationIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateRuleResponse ¶
func NewCreateRuleResponse() (response *CreateRuleResponse)
func (*CreateRuleResponse) FromJsonString ¶
func (r *CreateRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateRuleResponse) ToJsonString ¶
func (r *CreateRuleResponse) ToJsonString() string
type CreateTargetGroupRequest ¶
type CreateTargetGroupRequest struct { *tchttp.BaseRequest // Target group name (up to 50 characters) TargetGroupName *string `json:"TargetGroupName,omitempty" name:"TargetGroupName"` // `vpcid` attribute of a target group. If this parameter is left empty, the default VPC will be used. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Default port of a target group, which can be used for subsequently added servers. Port *uint64 `json:"Port,omitempty" name:"Port"` // Real server bound to a target group TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitempty" name:"TargetGroupInstances"` }
func NewCreateTargetGroupRequest ¶
func NewCreateTargetGroupRequest() (request *CreateTargetGroupRequest)
func (*CreateTargetGroupRequest) FromJsonString ¶
func (r *CreateTargetGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTargetGroupRequest) ToJsonString ¶
func (r *CreateTargetGroupRequest) ToJsonString() string
type CreateTargetGroupResponse ¶
type CreateTargetGroupResponse struct { *tchttp.BaseResponse Response *struct { // ID generated after target group creation TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTargetGroupResponse ¶
func NewCreateTargetGroupResponse() (response *CreateTargetGroupResponse)
func (*CreateTargetGroupResponse) FromJsonString ¶
func (r *CreateTargetGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTargetGroupResponse) ToJsonString ¶
func (r *CreateTargetGroupResponse) ToJsonString() string
type CreateTopicRequest ¶
type CreateTopicRequest struct { *tchttp.BaseRequest // Log topic name TopicName *string `json:"TopicName,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,omitempty" name:"PartitionCount"` // Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs). TopicType *string `json:"TopicType,omitempty" name:"TopicType"` }
func NewCreateTopicRequest ¶
func NewCreateTopicRequest() (request *CreateTopicRequest)
func (*CreateTopicRequest) FromJsonString ¶
func (r *CreateTopicRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTopicRequest) ToJsonString ¶
func (r *CreateTopicRequest) ToJsonString() string
type CreateTopicResponse ¶
type CreateTopicResponse struct { *tchttp.BaseResponse Response *struct { // Log topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTopicResponse ¶
func NewCreateTopicResponse() (response *CreateTopicResponse)
func (*CreateTopicResponse) FromJsonString ¶
func (r *CreateTopicResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTopicResponse) ToJsonString ¶
func (r *CreateTopicResponse) ToJsonString() string
type DeleteListenerRequest ¶
type DeleteListenerRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // ID of the listener to be deleted ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` }
func NewDeleteListenerRequest ¶
func NewDeleteListenerRequest() (request *DeleteListenerRequest)
func (*DeleteListenerRequest) FromJsonString ¶
func (r *DeleteListenerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteListenerRequest) ToJsonString ¶
func (r *DeleteListenerRequest) ToJsonString() string
type DeleteListenerResponse ¶
type DeleteListenerResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteListenerResponse ¶
func NewDeleteListenerResponse() (response *DeleteListenerResponse)
func (*DeleteListenerResponse) FromJsonString ¶
func (r *DeleteListenerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteListenerResponse) ToJsonString ¶
func (r *DeleteListenerResponse) ToJsonString() string
type DeleteLoadBalancerListenersRequest ¶
type DeleteLoadBalancerListenersRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Array of listener IDs to delete (20 IDs at most). If this parameter is left empty, all listeners of the CLB instance will be deleted. ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` }
func NewDeleteLoadBalancerListenersRequest ¶
func NewDeleteLoadBalancerListenersRequest() (request *DeleteLoadBalancerListenersRequest)
func (*DeleteLoadBalancerListenersRequest) FromJsonString ¶
func (r *DeleteLoadBalancerListenersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLoadBalancerListenersRequest) ToJsonString ¶
func (r *DeleteLoadBalancerListenersRequest) ToJsonString() string
type DeleteLoadBalancerListenersResponse ¶
type DeleteLoadBalancerListenersResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteLoadBalancerListenersResponse ¶
func NewDeleteLoadBalancerListenersResponse() (response *DeleteLoadBalancerListenersResponse)
func (*DeleteLoadBalancerListenersResponse) FromJsonString ¶
func (r *DeleteLoadBalancerListenersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLoadBalancerListenersResponse) ToJsonString ¶
func (r *DeleteLoadBalancerListenersResponse) ToJsonString() string
type DeleteLoadBalancerRequest ¶
type DeleteLoadBalancerRequest struct { *tchttp.BaseRequest // Array of IDs of the CLB instances to be deleted. Array length limit: 20. LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` }
func NewDeleteLoadBalancerRequest ¶
func NewDeleteLoadBalancerRequest() (request *DeleteLoadBalancerRequest)
func (*DeleteLoadBalancerRequest) FromJsonString ¶
func (r *DeleteLoadBalancerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLoadBalancerRequest) ToJsonString ¶
func (r *DeleteLoadBalancerRequest) ToJsonString() string
type DeleteLoadBalancerResponse ¶
type DeleteLoadBalancerResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteLoadBalancerResponse ¶
func NewDeleteLoadBalancerResponse() (response *DeleteLoadBalancerResponse)
func (*DeleteLoadBalancerResponse) FromJsonString ¶
func (r *DeleteLoadBalancerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLoadBalancerResponse) ToJsonString ¶
func (r *DeleteLoadBalancerResponse) ToJsonString() string
type DeleteLoadBalancerSnatIpsRequest ¶
type DeleteLoadBalancerSnatIpsRequest struct { *tchttp.BaseRequest // Unique ID of a CLB instance, e.g., lb-12345678. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Array of the SNAT IP addresses to be deleted Ips []*string `json:"Ips,omitempty" name:"Ips"` }
func NewDeleteLoadBalancerSnatIpsRequest ¶
func NewDeleteLoadBalancerSnatIpsRequest() (request *DeleteLoadBalancerSnatIpsRequest)
func (*DeleteLoadBalancerSnatIpsRequest) FromJsonString ¶
func (r *DeleteLoadBalancerSnatIpsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLoadBalancerSnatIpsRequest) ToJsonString ¶
func (r *DeleteLoadBalancerSnatIpsRequest) ToJsonString() string
type DeleteLoadBalancerSnatIpsResponse ¶
type DeleteLoadBalancerSnatIpsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteLoadBalancerSnatIpsResponse ¶
func NewDeleteLoadBalancerSnatIpsResponse() (response *DeleteLoadBalancerSnatIpsResponse)
func (*DeleteLoadBalancerSnatIpsResponse) FromJsonString ¶
func (r *DeleteLoadBalancerSnatIpsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLoadBalancerSnatIpsResponse) ToJsonString ¶
func (r *DeleteLoadBalancerSnatIpsResponse) ToJsonString() string
type DeleteRewriteRequest ¶
type DeleteRewriteRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Source listener ID SourceListenerId *string `json:"SourceListenerId,omitempty" name:"SourceListenerId"` // Target listener ID TargetListenerId *string `json:"TargetListenerId,omitempty" name:"TargetListenerId"` // Redirection relationship between forwarding rules RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitempty" name:"RewriteInfos"` }
func NewDeleteRewriteRequest ¶
func NewDeleteRewriteRequest() (request *DeleteRewriteRequest)
func (*DeleteRewriteRequest) FromJsonString ¶
func (r *DeleteRewriteRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRewriteRequest) ToJsonString ¶
func (r *DeleteRewriteRequest) ToJsonString() string
type DeleteRewriteResponse ¶
type DeleteRewriteResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteRewriteResponse ¶
func NewDeleteRewriteResponse() (response *DeleteRewriteResponse)
func (*DeleteRewriteResponse) FromJsonString ¶
func (r *DeleteRewriteResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRewriteResponse) ToJsonString ¶
func (r *DeleteRewriteResponse) ToJsonString() string
type DeleteRuleRequest ¶
type DeleteRuleRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Array of IDs of the forwarding rules to be deleted LocationIds []*string `json:"LocationIds,omitempty" name:"LocationIds"` // Domain name of the forwarding rule to be deleted. This parameter does not take effect if LocationIds is specified. Domain *string `json:"Domain,omitempty" name:"Domain"` // Forwarding path of the forwarding rule to be deleted. This parameter does not take effect if LocationIds is specified. Url *string `json:"Url,omitempty" name:"Url"` // A listener must be configured with a default domain name. If you need to delete the default domain name, you can specify another one as the new default domain name. NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitempty" name:"NewDefaultServerDomain"` }
func NewDeleteRuleRequest ¶
func NewDeleteRuleRequest() (request *DeleteRuleRequest)
func (*DeleteRuleRequest) FromJsonString ¶
func (r *DeleteRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRuleRequest) ToJsonString ¶
func (r *DeleteRuleRequest) ToJsonString() string
type DeleteRuleResponse ¶
type DeleteRuleResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteRuleResponse ¶
func NewDeleteRuleResponse() (response *DeleteRuleResponse)
func (*DeleteRuleResponse) FromJsonString ¶
func (r *DeleteRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteRuleResponse) ToJsonString ¶
func (r *DeleteRuleResponse) ToJsonString() string
type DeleteTargetGroupsRequest ¶
type DeleteTargetGroupsRequest struct { *tchttp.BaseRequest // Target group ID array TargetGroupIds []*string `json:"TargetGroupIds,omitempty" name:"TargetGroupIds"` }
func NewDeleteTargetGroupsRequest ¶
func NewDeleteTargetGroupsRequest() (request *DeleteTargetGroupsRequest)
func (*DeleteTargetGroupsRequest) FromJsonString ¶
func (r *DeleteTargetGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTargetGroupsRequest) ToJsonString ¶
func (r *DeleteTargetGroupsRequest) ToJsonString() string
type DeleteTargetGroupsResponse ¶
type DeleteTargetGroupsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteTargetGroupsResponse ¶
func NewDeleteTargetGroupsResponse() (response *DeleteTargetGroupsResponse)
func (*DeleteTargetGroupsResponse) FromJsonString ¶
func (r *DeleteTargetGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTargetGroupsResponse) ToJsonString ¶
func (r *DeleteTargetGroupsResponse) ToJsonString() string
type DeregisterTargetGroupInstancesRequest ¶
type DeregisterTargetGroupInstancesRequest struct { *tchttp.BaseRequest // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // Information of server to be unbound TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitempty" name:"TargetGroupInstances"` }
func NewDeregisterTargetGroupInstancesRequest ¶
func NewDeregisterTargetGroupInstancesRequest() (request *DeregisterTargetGroupInstancesRequest)
func (*DeregisterTargetGroupInstancesRequest) FromJsonString ¶
func (r *DeregisterTargetGroupInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeregisterTargetGroupInstancesRequest) ToJsonString ¶
func (r *DeregisterTargetGroupInstancesRequest) ToJsonString() string
type DeregisterTargetGroupInstancesResponse ¶
type DeregisterTargetGroupInstancesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeregisterTargetGroupInstancesResponse ¶
func NewDeregisterTargetGroupInstancesResponse() (response *DeregisterTargetGroupInstancesResponse)
func (*DeregisterTargetGroupInstancesResponse) FromJsonString ¶
func (r *DeregisterTargetGroupInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeregisterTargetGroupInstancesResponse) ToJsonString ¶
func (r *DeregisterTargetGroupInstancesResponse) ToJsonString() string
type DeregisterTargetsFromClassicalLBRequest ¶
type DeregisterTargetsFromClassicalLBRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // List of real server IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDeregisterTargetsFromClassicalLBRequest ¶
func NewDeregisterTargetsFromClassicalLBRequest() (request *DeregisterTargetsFromClassicalLBRequest)
func (*DeregisterTargetsFromClassicalLBRequest) FromJsonString ¶
func (r *DeregisterTargetsFromClassicalLBRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeregisterTargetsFromClassicalLBRequest) ToJsonString ¶
func (r *DeregisterTargetsFromClassicalLBRequest) ToJsonString() string
type DeregisterTargetsFromClassicalLBResponse ¶
type DeregisterTargetsFromClassicalLBResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeregisterTargetsFromClassicalLBResponse ¶
func NewDeregisterTargetsFromClassicalLBResponse() (response *DeregisterTargetsFromClassicalLBResponse)
func (*DeregisterTargetsFromClassicalLBResponse) FromJsonString ¶
func (r *DeregisterTargetsFromClassicalLBResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeregisterTargetsFromClassicalLBResponse) ToJsonString ¶
func (r *DeregisterTargetsFromClassicalLBResponse) ToJsonString() string
type DeregisterTargetsRequest ¶
type DeregisterTargetsRequest struct { *tchttp.BaseRequest // CLB instance ID in the format of "lb-12345678" LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Listener ID in the format of "lbl-12345678" ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // List of real servers to be unbound. Array length limit: 20. Targets []*Target `json:"Targets,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,omitempty" name:"LocationId"` // Target rule domain name. This parameter does not take effect if LocationId is specified. Domain *string `json:"Domain,omitempty" name:"Domain"` // Target rule URL. This parameter does not take effect if LocationId is specified. Url *string `json:"Url,omitempty" name:"Url"` }
func NewDeregisterTargetsRequest ¶
func NewDeregisterTargetsRequest() (request *DeregisterTargetsRequest)
func (*DeregisterTargetsRequest) FromJsonString ¶
func (r *DeregisterTargetsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeregisterTargetsRequest) ToJsonString ¶
func (r *DeregisterTargetsRequest) ToJsonString() string
type DeregisterTargetsResponse ¶
type DeregisterTargetsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeregisterTargetsResponse ¶
func NewDeregisterTargetsResponse() (response *DeregisterTargetsResponse)
func (*DeregisterTargetsResponse) FromJsonString ¶
func (r *DeregisterTargetsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeregisterTargetsResponse) ToJsonString ¶
func (r *DeregisterTargetsResponse) ToJsonString() string
type DescribeBlockIPListRequest ¶
type DescribeBlockIPListRequest struct { *tchttp.BaseRequest // CLB instance ID. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Data offset. Default value: 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Maximum number of IPs to be returned. Default value: 100,000. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeBlockIPListRequest ¶
func NewDescribeBlockIPListRequest() (request *DescribeBlockIPListRequest)
func (*DescribeBlockIPListRequest) FromJsonString ¶
func (r *DescribeBlockIPListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlockIPListRequest) ToJsonString ¶
func (r *DescribeBlockIPListRequest) ToJsonString() string
type DescribeBlockIPListResponse ¶
type DescribeBlockIPListResponse struct { *tchttp.BaseResponse Response *struct { // Number of returned IPs BlockedIPCount *uint64 `json:"BlockedIPCount,omitempty" name:"BlockedIPCount"` // Field for getting real client IP ClientIPField *string `json:"ClientIPField,omitempty" name:"ClientIPField"` // List of IPs added to blocklist 12360 BlockedIPList []*BlockedIP `json:"BlockedIPList,omitempty" name:"BlockedIPList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBlockIPListResponse ¶
func NewDescribeBlockIPListResponse() (response *DescribeBlockIPListResponse)
func (*DescribeBlockIPListResponse) FromJsonString ¶
func (r *DescribeBlockIPListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlockIPListResponse) ToJsonString ¶
func (r *DescribeBlockIPListResponse) ToJsonString() string
type DescribeBlockIPTaskRequest ¶
type DescribeBlockIPTaskRequest struct { *tchttp.BaseRequest // Async task ID returned by the `ModifyBlockIPList` API TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewDescribeBlockIPTaskRequest ¶
func NewDescribeBlockIPTaskRequest() (request *DescribeBlockIPTaskRequest)
func (*DescribeBlockIPTaskRequest) FromJsonString ¶
func (r *DescribeBlockIPTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlockIPTaskRequest) ToJsonString ¶
func (r *DescribeBlockIPTaskRequest) ToJsonString() string
type DescribeBlockIPTaskResponse ¶
type DescribeBlockIPTaskResponse struct { *tchttp.BaseResponse Response *struct { // 1: running; 2: failed; 6: succeeded Status *int64 `json:"Status,omitempty" name:"Status"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBlockIPTaskResponse ¶
func NewDescribeBlockIPTaskResponse() (response *DescribeBlockIPTaskResponse)
func (*DescribeBlockIPTaskResponse) FromJsonString ¶
func (r *DescribeBlockIPTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBlockIPTaskResponse) ToJsonString ¶
func (r *DescribeBlockIPTaskResponse) ToJsonString() string
type DescribeClassicalLBByInstanceIdRequest ¶
type DescribeClassicalLBByInstanceIdRequest struct { *tchttp.BaseRequest // List of real server IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDescribeClassicalLBByInstanceIdRequest ¶
func NewDescribeClassicalLBByInstanceIdRequest() (request *DescribeClassicalLBByInstanceIdRequest)
func (*DescribeClassicalLBByInstanceIdRequest) FromJsonString ¶
func (r *DescribeClassicalLBByInstanceIdRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBByInstanceIdRequest) ToJsonString ¶
func (r *DescribeClassicalLBByInstanceIdRequest) ToJsonString() string
type DescribeClassicalLBByInstanceIdResponse ¶
type DescribeClassicalLBByInstanceIdResponse struct { *tchttp.BaseResponse Response *struct { // CLB information list LoadBalancerInfoList []*ClassicalLoadBalancerInfo `json:"LoadBalancerInfoList,omitempty" name:"LoadBalancerInfoList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClassicalLBByInstanceIdResponse ¶
func NewDescribeClassicalLBByInstanceIdResponse() (response *DescribeClassicalLBByInstanceIdResponse)
func (*DescribeClassicalLBByInstanceIdResponse) FromJsonString ¶
func (r *DescribeClassicalLBByInstanceIdResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBByInstanceIdResponse) ToJsonString ¶
func (r *DescribeClassicalLBByInstanceIdResponse) ToJsonString() string
type DescribeClassicalLBHealthStatusRequest ¶
type DescribeClassicalLBHealthStatusRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` }
func NewDescribeClassicalLBHealthStatusRequest ¶
func NewDescribeClassicalLBHealthStatusRequest() (request *DescribeClassicalLBHealthStatusRequest)
func (*DescribeClassicalLBHealthStatusRequest) FromJsonString ¶
func (r *DescribeClassicalLBHealthStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBHealthStatusRequest) ToJsonString ¶
func (r *DescribeClassicalLBHealthStatusRequest) ToJsonString() string
type DescribeClassicalLBHealthStatusResponse ¶
type DescribeClassicalLBHealthStatusResponse struct { *tchttp.BaseResponse Response *struct { // List of real server health statuses // Note: This field may return `null`, indicating that no valid values can be obtained. HealthList []*ClassicalHealth `json:"HealthList,omitempty" name:"HealthList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClassicalLBHealthStatusResponse ¶
func NewDescribeClassicalLBHealthStatusResponse() (response *DescribeClassicalLBHealthStatusResponse)
func (*DescribeClassicalLBHealthStatusResponse) FromJsonString ¶
func (r *DescribeClassicalLBHealthStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBHealthStatusResponse) ToJsonString ¶
func (r *DescribeClassicalLBHealthStatusResponse) ToJsonString() string
type DescribeClassicalLBListenersRequest ¶
type DescribeClassicalLBListenersRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // List of CLB listener IDs ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` // CLB listening protocol. Valid values: TCP, UDP, HTTP, and HTTPS. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // CLB listening port. Value range: 1 - 65535. ListenerPort *int64 `json:"ListenerPort,omitempty" name:"ListenerPort"` // Listener status. Valid values: 0 (creating) and 1 (running). Status *int64 `json:"Status,omitempty" name:"Status"` }
func NewDescribeClassicalLBListenersRequest ¶
func NewDescribeClassicalLBListenersRequest() (request *DescribeClassicalLBListenersRequest)
func (*DescribeClassicalLBListenersRequest) FromJsonString ¶
func (r *DescribeClassicalLBListenersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBListenersRequest) ToJsonString ¶
func (r *DescribeClassicalLBListenersRequest) ToJsonString() string
type DescribeClassicalLBListenersResponse ¶
type DescribeClassicalLBListenersResponse struct { *tchttp.BaseResponse Response *struct { // Listener list // Note: This field may return `null`, indicating that no valid values can be obtained. Listeners []*ClassicalListener `json:"Listeners,omitempty" name:"Listeners"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClassicalLBListenersResponse ¶
func NewDescribeClassicalLBListenersResponse() (response *DescribeClassicalLBListenersResponse)
func (*DescribeClassicalLBListenersResponse) FromJsonString ¶
func (r *DescribeClassicalLBListenersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBListenersResponse) ToJsonString ¶
func (r *DescribeClassicalLBListenersResponse) ToJsonString() string
type DescribeClassicalLBTargetsRequest ¶
type DescribeClassicalLBTargetsRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` }
func NewDescribeClassicalLBTargetsRequest ¶
func NewDescribeClassicalLBTargetsRequest() (request *DescribeClassicalLBTargetsRequest)
func (*DescribeClassicalLBTargetsRequest) FromJsonString ¶
func (r *DescribeClassicalLBTargetsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBTargetsRequest) ToJsonString ¶
func (r *DescribeClassicalLBTargetsRequest) ToJsonString() string
type DescribeClassicalLBTargetsResponse ¶
type DescribeClassicalLBTargetsResponse struct { *tchttp.BaseResponse Response *struct { // Real server list // Note: This field may return `null`, indicating that no valid values can be obtained. Targets []*ClassicalTarget `json:"Targets,omitempty" name:"Targets"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClassicalLBTargetsResponse ¶
func NewDescribeClassicalLBTargetsResponse() (response *DescribeClassicalLBTargetsResponse)
func (*DescribeClassicalLBTargetsResponse) FromJsonString ¶
func (r *DescribeClassicalLBTargetsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClassicalLBTargetsResponse) ToJsonString ¶
func (r *DescribeClassicalLBTargetsResponse) ToJsonString() string
type DescribeClsLogSetRequest ¶
type DescribeClsLogSetRequest struct {
*tchttp.BaseRequest
}
func NewDescribeClsLogSetRequest ¶
func NewDescribeClsLogSetRequest() (request *DescribeClsLogSetRequest)
func (*DescribeClsLogSetRequest) FromJsonString ¶
func (r *DescribeClsLogSetRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClsLogSetRequest) ToJsonString ¶
func (r *DescribeClsLogSetRequest) ToJsonString() string
type DescribeClsLogSetResponse ¶
type DescribeClsLogSetResponse struct { *tchttp.BaseResponse Response *struct { // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Health check logset ID HealthLogsetId *string `json:"HealthLogsetId,omitempty" name:"HealthLogsetId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClsLogSetResponse ¶
func NewDescribeClsLogSetResponse() (response *DescribeClsLogSetResponse)
func (*DescribeClsLogSetResponse) FromJsonString ¶
func (r *DescribeClsLogSetResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClsLogSetResponse) ToJsonString ¶
func (r *DescribeClsLogSetResponse) ToJsonString() string
type DescribeCustomizedConfigAssociateListRequest ¶
type DescribeCustomizedConfigAssociateListRequest struct { *tchttp.BaseRequest // Configuration ID. UconfigId *string `json:"UconfigId,omitempty" name:"UconfigId"` // Start position of the binding list. Default: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of binding lists to pull. Default: 20. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Searches for the domain name. Domain *string `json:"Domain,omitempty" name:"Domain"` }
func NewDescribeCustomizedConfigAssociateListRequest ¶
func NewDescribeCustomizedConfigAssociateListRequest() (request *DescribeCustomizedConfigAssociateListRequest)
func (*DescribeCustomizedConfigAssociateListRequest) FromJsonString ¶
func (r *DescribeCustomizedConfigAssociateListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomizedConfigAssociateListRequest) ToJsonString ¶
func (r *DescribeCustomizedConfigAssociateListRequest) ToJsonString() string
type DescribeCustomizedConfigAssociateListResponse ¶
type DescribeCustomizedConfigAssociateListResponse struct { *tchttp.BaseResponse Response *struct { // List of bound resources BindList []*BindDetailItem `json:"BindList,omitempty" name:"BindList"` // Total number of bound resources TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeCustomizedConfigAssociateListResponse ¶
func NewDescribeCustomizedConfigAssociateListResponse() (response *DescribeCustomizedConfigAssociateListResponse)
func (*DescribeCustomizedConfigAssociateListResponse) FromJsonString ¶
func (r *DescribeCustomizedConfigAssociateListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomizedConfigAssociateListResponse) ToJsonString ¶
func (r *DescribeCustomizedConfigAssociateListResponse) ToJsonString() string
type DescribeCustomizedConfigListRequest ¶
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,omitempty" name:"ConfigType"` // Pagination offset. Default: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of results per page. Default: 20. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Specifies the name of configs to query. Fuzzy match is supported. ConfigName *string `json:"ConfigName,omitempty" name:"ConfigName"` // Configuration ID. UconfigIds []*string `json:"UconfigIds,omitempty" name:"UconfigIds"` // The filters are: // <li> loadbalancer-id - String - Required: no - (filter) CLB instance ID, such as "lb-12345678". </li> // <li> vip - String - Required: no - (filter) CLB instance VIP, such as "1.1.1.1" and "2204::22:3". </li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeCustomizedConfigListRequest ¶
func NewDescribeCustomizedConfigListRequest() (request *DescribeCustomizedConfigListRequest)
func (*DescribeCustomizedConfigListRequest) FromJsonString ¶
func (r *DescribeCustomizedConfigListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomizedConfigListRequest) ToJsonString ¶
func (r *DescribeCustomizedConfigListRequest) ToJsonString() string
type DescribeCustomizedConfigListResponse ¶
type DescribeCustomizedConfigListResponse struct { *tchttp.BaseResponse Response *struct { // Configuration list. ConfigList []*ConfigListItem `json:"ConfigList,omitempty" name:"ConfigList"` // Number of configurations. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeCustomizedConfigListResponse ¶
func NewDescribeCustomizedConfigListResponse() (response *DescribeCustomizedConfigListResponse)
func (*DescribeCustomizedConfigListResponse) FromJsonString ¶
func (r *DescribeCustomizedConfigListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCustomizedConfigListResponse) ToJsonString ¶
func (r *DescribeCustomizedConfigListResponse) ToJsonString() string
type DescribeLBListenersRequest ¶
type DescribeLBListenersRequest struct { *tchttp.BaseRequest // List of private network IPs to be queried. Backends []*LbRsItem `json:"Backends,omitempty" name:"Backends"` }
func NewDescribeLBListenersRequest ¶
func NewDescribeLBListenersRequest() (request *DescribeLBListenersRequest)
func (*DescribeLBListenersRequest) FromJsonString ¶
func (r *DescribeLBListenersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLBListenersRequest) ToJsonString ¶
func (r *DescribeLBListenersRequest) ToJsonString() string
type DescribeLBListenersResponse ¶
type DescribeLBListenersResponse struct { *tchttp.BaseResponse Response *struct { // Listener rule associated with the real server. LoadBalancers []*LBItem `json:"LoadBalancers,omitempty" name:"LoadBalancers"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeLBListenersResponse ¶
func NewDescribeLBListenersResponse() (response *DescribeLBListenersResponse)
func (*DescribeLBListenersResponse) FromJsonString ¶
func (r *DescribeLBListenersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLBListenersResponse) ToJsonString ¶
func (r *DescribeLBListenersResponse) ToJsonString() string
type DescribeListenersRequest ¶
type DescribeListenersRequest struct { *tchttp.BaseRequest // CLB instance ID. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Array of CLB listener IDs to query (100 IDs at most). ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` // Type of the listener protocols to be queried. Valid values: TCP, UDP, HTTP, HTTPS, and TCP_SSL. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Port of the listeners to be queried Port *int64 `json:"Port,omitempty" name:"Port"` }
func NewDescribeListenersRequest ¶
func NewDescribeListenersRequest() (request *DescribeListenersRequest)
func (*DescribeListenersRequest) FromJsonString ¶
func (r *DescribeListenersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeListenersRequest) ToJsonString ¶
func (r *DescribeListenersRequest) ToJsonString() string
type DescribeListenersResponse ¶
type DescribeListenersResponse struct { *tchttp.BaseResponse Response *struct { // Listener list Listeners []*Listener `json:"Listeners,omitempty" name:"Listeners"` // Total number of listeners (with filters of port, protocol, and listener ID applied). // Note: This field may return `null`, indicating that no valid values can be obtained. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeListenersResponse ¶
func NewDescribeListenersResponse() (response *DescribeListenersResponse)
func (*DescribeListenersResponse) FromJsonString ¶
func (r *DescribeListenersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeListenersResponse) ToJsonString ¶
func (r *DescribeListenersResponse) ToJsonString() string
type DescribeLoadBalancerListByCertIdRequest ¶
type DescribeLoadBalancerListByCertIdRequest struct { *tchttp.BaseRequest // Server or client certificate ID CertIds []*string `json:"CertIds,omitempty" name:"CertIds"` }
func NewDescribeLoadBalancerListByCertIdRequest ¶
func NewDescribeLoadBalancerListByCertIdRequest() (request *DescribeLoadBalancerListByCertIdRequest)
func (*DescribeLoadBalancerListByCertIdRequest) FromJsonString ¶
func (r *DescribeLoadBalancerListByCertIdRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancerListByCertIdRequest) ToJsonString ¶
func (r *DescribeLoadBalancerListByCertIdRequest) ToJsonString() string
type DescribeLoadBalancerListByCertIdResponse ¶
type DescribeLoadBalancerListByCertIdResponse struct { *tchttp.BaseResponse Response *struct { // Certificate ID and list of CLB instances associated with it CertSet []*CertIdRelatedWithLoadBalancers `json:"CertSet,omitempty" name:"CertSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeLoadBalancerListByCertIdResponse ¶
func NewDescribeLoadBalancerListByCertIdResponse() (response *DescribeLoadBalancerListByCertIdResponse)
func (*DescribeLoadBalancerListByCertIdResponse) FromJsonString ¶
func (r *DescribeLoadBalancerListByCertIdResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancerListByCertIdResponse) ToJsonString ¶
func (r *DescribeLoadBalancerListByCertIdResponse) ToJsonString() string
type DescribeLoadBalancerTrafficRequest ¶
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,omitempty" name:"LoadBalancerRegion"` }
func NewDescribeLoadBalancerTrafficRequest ¶
func NewDescribeLoadBalancerTrafficRequest() (request *DescribeLoadBalancerTrafficRequest)
func (*DescribeLoadBalancerTrafficRequest) FromJsonString ¶
func (r *DescribeLoadBalancerTrafficRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancerTrafficRequest) ToJsonString ¶
func (r *DescribeLoadBalancerTrafficRequest) ToJsonString() string
type DescribeLoadBalancerTrafficResponse ¶
type DescribeLoadBalancerTrafficResponse struct { *tchttp.BaseResponse Response *struct { // Information of CLB instances sorted by outbound bandwidth from highest to lowest // Note: This field may return `null`, indicating that no valid values can be obtained. LoadBalancerTraffic []*LoadBalancerTraffic `json:"LoadBalancerTraffic,omitempty" name:"LoadBalancerTraffic"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeLoadBalancerTrafficResponse ¶
func NewDescribeLoadBalancerTrafficResponse() (response *DescribeLoadBalancerTrafficResponse)
func (*DescribeLoadBalancerTrafficResponse) FromJsonString ¶
func (r *DescribeLoadBalancerTrafficResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancerTrafficResponse) ToJsonString ¶
func (r *DescribeLoadBalancerTrafficResponse) ToJsonString() string
type DescribeLoadBalancersDetailRequest ¶
type DescribeLoadBalancersDetailRequest struct { *tchttp.BaseRequest // Number of CLB instance lists returned. Default value: 20; maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Starting offset of the CLB instance list returned. Default value: 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // List of fields to be returned. The `LoadBalancerId` and `LoadBalancerName` are returned by default. Fields []*string `json:"Fields,omitempty" name:"Fields"` // Target type. Valid values: NODE and GROUP. If the list of fields contains `TargetId`, `TargetAddress`, `TargetPort`, `TargetWeight` and other fields, `Target` of the target group or non-target group must be exported. TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // Filter condition of querying lists describing CLB instance details: // <li> loadbalancer-id - String - Required: no - (Filter condition) CLB instance ID, such as "lb-12345678". </li> // <li> project-id - String - Required: no - (Filter condition) Project ID, such as "0" and "123".</li> // <li> network - String - Required: no - (Filter condition) Network type of the CLB instance, such as "Public" and "Private".</li> // <li> vip - String - Required: no - (Filter condition) CLB instance VIP, such as "1.1.1.1" and "2204::22:3". </li> // <li> target-ip - String - Required: no - (Filter condition) Private IP of the target real servers, such as"1.1.1.1" and "2203::214:4".</li> // <li> vpcid - String - Required: no - (Filter condition) Identifier of the VPC instance to which the CLB instance belongs, such as "vpc-12345678".</li> // <li> zone - String - Required: no - (Filter condition) Availability zone where the CLB instance resides, such as "ap-guangzhou-1".</li> // <li> tag-key - String - Required: no - (Filter condition) Tag key of the CLB instance, such as "name".</li> // <li> tag:* - String - Required: no - (Filter condition) CLB instance tag, followed by tag key after the colon ':'. For example, use {"Name": "tag:name","Values": ["zhangsan", "lisi"]} to filter the tag key “name” with the tag value “zhangsan” and “lisi”.</li> // <li> fuzzy-search - String - Required: no - (Filter condition) Fuzzy search for CLB instance VIP and CLB instance name, such as "1.1".</li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeLoadBalancersDetailRequest ¶
func NewDescribeLoadBalancersDetailRequest() (request *DescribeLoadBalancersDetailRequest)
func (*DescribeLoadBalancersDetailRequest) FromJsonString ¶
func (r *DescribeLoadBalancersDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancersDetailRequest) ToJsonString ¶
func (r *DescribeLoadBalancersDetailRequest) ToJsonString() string
type DescribeLoadBalancersDetailResponse ¶
type DescribeLoadBalancersDetailResponse struct { *tchttp.BaseResponse Response *struct { // Total number of lists describing CLB instance details. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of CLB instance details. // Note: this field may return null, indicating that no valid values can be obtained. LoadBalancerDetailSet []*LoadBalancerDetail `json:"LoadBalancerDetailSet,omitempty" name:"LoadBalancerDetailSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeLoadBalancersDetailResponse ¶
func NewDescribeLoadBalancersDetailResponse() (response *DescribeLoadBalancersDetailResponse)
func (*DescribeLoadBalancersDetailResponse) FromJsonString ¶
func (r *DescribeLoadBalancersDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancersDetailResponse) ToJsonString ¶
func (r *DescribeLoadBalancersDetailResponse) ToJsonString() string
type DescribeLoadBalancersRequest ¶
type DescribeLoadBalancersRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // CLB instance network type: // OPEN: public network; INTERNAL: private network. LoadBalancerType *string `json:"LoadBalancerType,omitempty" name:"LoadBalancerType"` // CLB instance type. 1: generic CLB instance; 0: classic CLB instance Forward *int64 `json:"Forward,omitempty" name:"Forward"` // CLB instance name. LoadBalancerName *string `json:"LoadBalancerName,omitempty" name:"LoadBalancerName"` // Domain name assigned to a CLB instance by Tencent Cloud. This parameter is meaningful only for the public network classic CLB. Domain *string `json:"Domain,omitempty" name:"Domain"` // VIP address of a CLB instance (there can be multiple addresses) LoadBalancerVips []*string `json:"LoadBalancerVips,omitempty" name:"LoadBalancerVips"` // Public IP of the real server bound to a CLB. BackendPublicIps []*string `json:"BackendPublicIps,omitempty" name:"BackendPublicIps"` // Private IP of the real server bound to a CLB. BackendPrivateIps []*string `json:"BackendPrivateIps,omitempty" name:"BackendPrivateIps"` // Data offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned CLB instances. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Sort by parameter. Value range: LoadBalancerName, CreateTime, Domain, LoadBalancerType. OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // 1: reverse; 0: sequential. Default value: reverse by creation time | OrderType *int64 `json:"OrderType,omitempty" name:"OrderType"` // Search field which fuzzy matches name, domain name, or VIP. SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` // ID of the project to which a CLB instance belongs, which can be obtained through the DescribeProject API. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Whether a CLB instance is bound to a real server. 0: no; 1: yes; -1: query all. WithRs *int64 `json:"WithRs,omitempty" name:"WithRs"` // VPC where a CLB instance resides, such as vpc-bhqkbhdx. // Basic network does not support queries by VpcId. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Security group ID, e.g., `sg-m1cc****`. SecurityGroup *string `json:"SecurityGroup,omitempty" name:"SecurityGroup"` // Primary AZ ID, e.g., `100001` (Guangzhou Zone 1). MasterZone *string `json:"MasterZone,omitempty" name:"MasterZone"` // Each request can have up to 10 `Filters` and 100 `Filter.Values`. Detailed filter conditions: // <li> internet-charge-type - Type: String - Required: No - Filter by CLB network billing mode, including `TRAFFIC_POSTPAID_BY_HOUR`</li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeLoadBalancersRequest ¶
func NewDescribeLoadBalancersRequest() (request *DescribeLoadBalancersRequest)
func (*DescribeLoadBalancersRequest) FromJsonString ¶
func (r *DescribeLoadBalancersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancersRequest) ToJsonString ¶
func (r *DescribeLoadBalancersRequest) ToJsonString() string
type DescribeLoadBalancersResponse ¶
type DescribeLoadBalancersResponse struct { *tchttp.BaseResponse Response *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,omitempty" name:"TotalCount"` // Array of returned CLB instances. LoadBalancerSet []*LoadBalancer `json:"LoadBalancerSet,omitempty" name:"LoadBalancerSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeLoadBalancersResponse ¶
func NewDescribeLoadBalancersResponse() (response *DescribeLoadBalancersResponse)
func (*DescribeLoadBalancersResponse) FromJsonString ¶
func (r *DescribeLoadBalancersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeLoadBalancersResponse) ToJsonString ¶
func (r *DescribeLoadBalancersResponse) ToJsonString() string
type DescribeQuotaRequest ¶
type DescribeQuotaRequest struct {
*tchttp.BaseRequest
}
func NewDescribeQuotaRequest ¶
func NewDescribeQuotaRequest() (request *DescribeQuotaRequest)
func (*DescribeQuotaRequest) FromJsonString ¶
func (r *DescribeQuotaRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeQuotaRequest) ToJsonString ¶
func (r *DescribeQuotaRequest) ToJsonString() string
type DescribeQuotaResponse ¶
type DescribeQuotaResponse struct { *tchttp.BaseResponse Response *struct { // Quota list QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeQuotaResponse ¶
func NewDescribeQuotaResponse() (response *DescribeQuotaResponse)
func (*DescribeQuotaResponse) FromJsonString ¶
func (r *DescribeQuotaResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeQuotaResponse) ToJsonString ¶
func (r *DescribeQuotaResponse) ToJsonString() string
type DescribeRewriteRequest ¶
type DescribeRewriteRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Array of CLB listener IDs SourceListenerIds []*string `json:"SourceListenerIds,omitempty" name:"SourceListenerIds"` // Array of CLB forwarding rule IDs SourceLocationIds []*string `json:"SourceLocationIds,omitempty" name:"SourceLocationIds"` }
func NewDescribeRewriteRequest ¶
func NewDescribeRewriteRequest() (request *DescribeRewriteRequest)
func (*DescribeRewriteRequest) FromJsonString ¶
func (r *DescribeRewriteRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRewriteRequest) ToJsonString ¶
func (r *DescribeRewriteRequest) ToJsonString() string
type DescribeRewriteResponse ¶
type DescribeRewriteResponse struct { *tchttp.BaseResponse Response *struct { // Array of redirection forwarding rules. If there are no redirection rules, an empty array will be returned. RewriteSet []*RuleOutput `json:"RewriteSet,omitempty" name:"RewriteSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRewriteResponse ¶
func NewDescribeRewriteResponse() (response *DescribeRewriteResponse)
func (*DescribeRewriteResponse) FromJsonString ¶
func (r *DescribeRewriteResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRewriteResponse) ToJsonString ¶
func (r *DescribeRewriteResponse) ToJsonString() string
type DescribeTargetGroupInstancesRequest ¶
type DescribeTargetGroupInstancesRequest struct { *tchttp.BaseRequest // Filter. Currently, only filtering by `TargetGroupId`, `BindIP`, or `InstanceId` is supported. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of displayed results. Default value: 20 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Display offset. Default value: 0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeTargetGroupInstancesRequest ¶
func NewDescribeTargetGroupInstancesRequest() (request *DescribeTargetGroupInstancesRequest)
func (*DescribeTargetGroupInstancesRequest) FromJsonString ¶
func (r *DescribeTargetGroupInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetGroupInstancesRequest) ToJsonString ¶
func (r *DescribeTargetGroupInstancesRequest) ToJsonString() string
type DescribeTargetGroupInstancesResponse ¶
type DescribeTargetGroupInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Number of results in current query TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Information of the bound server TargetGroupInstanceSet []*TargetGroupBackend `json:"TargetGroupInstanceSet,omitempty" name:"TargetGroupInstanceSet"` // Actual statistics, which are not affected by `Limit`, `Offset`, and `CAM`. RealCount *uint64 `json:"RealCount,omitempty" name:"RealCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTargetGroupInstancesResponse ¶
func NewDescribeTargetGroupInstancesResponse() (response *DescribeTargetGroupInstancesResponse)
func (*DescribeTargetGroupInstancesResponse) FromJsonString ¶
func (r *DescribeTargetGroupInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetGroupInstancesResponse) ToJsonString ¶
func (r *DescribeTargetGroupInstancesResponse) ToJsonString() string
type DescribeTargetGroupListRequest ¶
type DescribeTargetGroupListRequest struct { *tchttp.BaseRequest // Target group ID array TargetGroupIds []*string `json:"TargetGroupIds,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,omitempty" name:"Filters"` // Starting display offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Limit of the number of displayed results. Default value: 20. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeTargetGroupListRequest ¶
func NewDescribeTargetGroupListRequest() (request *DescribeTargetGroupListRequest)
func (*DescribeTargetGroupListRequest) FromJsonString ¶
func (r *DescribeTargetGroupListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetGroupListRequest) ToJsonString ¶
func (r *DescribeTargetGroupListRequest) ToJsonString() string
type DescribeTargetGroupListResponse ¶
type DescribeTargetGroupListResponse struct { *tchttp.BaseResponse Response *struct { // Number of displayed results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Information set of displayed target groups TargetGroupSet []*TargetGroupInfo `json:"TargetGroupSet,omitempty" name:"TargetGroupSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTargetGroupListResponse ¶
func NewDescribeTargetGroupListResponse() (response *DescribeTargetGroupListResponse)
func (*DescribeTargetGroupListResponse) FromJsonString ¶
func (r *DescribeTargetGroupListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetGroupListResponse) ToJsonString ¶
func (r *DescribeTargetGroupListResponse) ToJsonString() string
type DescribeTargetGroupsRequest ¶
type DescribeTargetGroupsRequest struct { *tchttp.BaseRequest // Target group ID, which is exclusive of `Filters`. TargetGroupIds []*string `json:"TargetGroupIds,omitempty" name:"TargetGroupIds"` // Limit of the number of displayed results. Default value: 20. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Starting display offset Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Filter array, which is exclusive of `TargetGroupIds`. Valid values: `TargetGroupVpcId` and `TargetGroupName`. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeTargetGroupsRequest ¶
func NewDescribeTargetGroupsRequest() (request *DescribeTargetGroupsRequest)
func (*DescribeTargetGroupsRequest) FromJsonString ¶
func (r *DescribeTargetGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetGroupsRequest) ToJsonString ¶
func (r *DescribeTargetGroupsRequest) ToJsonString() string
type DescribeTargetGroupsResponse ¶
type DescribeTargetGroupsResponse struct { *tchttp.BaseResponse Response *struct { // Number of displayed results TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Information set of displayed target groups TargetGroupSet []*TargetGroupInfo `json:"TargetGroupSet,omitempty" name:"TargetGroupSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTargetGroupsResponse ¶
func NewDescribeTargetGroupsResponse() (response *DescribeTargetGroupsResponse)
func (*DescribeTargetGroupsResponse) FromJsonString ¶
func (r *DescribeTargetGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetGroupsResponse) ToJsonString ¶
func (r *DescribeTargetGroupsResponse) ToJsonString() string
type DescribeTargetHealthRequest ¶
type DescribeTargetHealthRequest struct { *tchttp.BaseRequest // List of IDs of CLB instances to be queried LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` }
func NewDescribeTargetHealthRequest ¶
func NewDescribeTargetHealthRequest() (request *DescribeTargetHealthRequest)
func (*DescribeTargetHealthRequest) FromJsonString ¶
func (r *DescribeTargetHealthRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetHealthRequest) ToJsonString ¶
func (r *DescribeTargetHealthRequest) ToJsonString() string
type DescribeTargetHealthResponse ¶
type DescribeTargetHealthResponse struct { *tchttp.BaseResponse Response *struct { // CLB instance list // Note: This field may return `null`, indicating that no valid values can be obtained. LoadBalancers []*LoadBalancerHealth `json:"LoadBalancers,omitempty" name:"LoadBalancers"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTargetHealthResponse ¶
func NewDescribeTargetHealthResponse() (response *DescribeTargetHealthResponse)
func (*DescribeTargetHealthResponse) FromJsonString ¶
func (r *DescribeTargetHealthResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetHealthResponse) ToJsonString ¶
func (r *DescribeTargetHealthResponse) ToJsonString() string
type DescribeTargetsRequest ¶
type DescribeTargetsRequest struct { *tchttp.BaseRequest // CLB instance ID. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // List of listener IDs (20 IDs at most). ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` // Listener protocol type Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Listener port Port *int64 `json:"Port,omitempty" name:"Port"` }
func NewDescribeTargetsRequest ¶
func NewDescribeTargetsRequest() (request *DescribeTargetsRequest)
func (*DescribeTargetsRequest) FromJsonString ¶
func (r *DescribeTargetsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetsRequest) ToJsonString ¶
func (r *DescribeTargetsRequest) ToJsonString() string
type DescribeTargetsResponse ¶
type DescribeTargetsResponse struct { *tchttp.BaseResponse Response *struct { // Information of real servers bound to the listener // Note: This field may return `null`, indicating that no valid values can be obtained. Listeners []*ListenerBackend `json:"Listeners,omitempty" name:"Listeners"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTargetsResponse ¶
func NewDescribeTargetsResponse() (response *DescribeTargetsResponse)
func (*DescribeTargetsResponse) FromJsonString ¶
func (r *DescribeTargetsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTargetsResponse) ToJsonString ¶
func (r *DescribeTargetsResponse) ToJsonString() string
type DescribeTaskStatusRequest ¶
type DescribeTaskStatusRequest struct { *tchttp.BaseRequest // Request ID, i.e., the RequestId parameter returned by the API. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewDescribeTaskStatusRequest ¶
func NewDescribeTaskStatusRequest() (request *DescribeTaskStatusRequest)
func (*DescribeTaskStatusRequest) FromJsonString ¶
func (r *DescribeTaskStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskStatusRequest) ToJsonString ¶
func (r *DescribeTaskStatusRequest) ToJsonString() string
type DescribeTaskStatusResponse ¶
type DescribeTaskStatusResponse struct { *tchttp.BaseResponse Response *struct { // Current status of a task. Value range: 0 (succeeded), 1 (failed), 2 (in progress). Status *int64 `json:"Status,omitempty" name:"Status"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTaskStatusResponse ¶
func NewDescribeTaskStatusResponse() (response *DescribeTaskStatusResponse)
func (*DescribeTaskStatusResponse) FromJsonString ¶
func (r *DescribeTaskStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskStatusResponse) ToJsonString ¶
func (r *DescribeTaskStatusResponse) ToJsonString() string
type DisassociateTargetGroupsRequest ¶
type DisassociateTargetGroupsRequest struct { *tchttp.BaseRequest // Array of rules to be unbound Associations []*TargetGroupAssociation `json:"Associations,omitempty" name:"Associations"` }
func NewDisassociateTargetGroupsRequest ¶
func NewDisassociateTargetGroupsRequest() (request *DisassociateTargetGroupsRequest)
func (*DisassociateTargetGroupsRequest) FromJsonString ¶
func (r *DisassociateTargetGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateTargetGroupsRequest) ToJsonString ¶
func (r *DisassociateTargetGroupsRequest) ToJsonString() string
type DisassociateTargetGroupsResponse ¶
type DisassociateTargetGroupsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDisassociateTargetGroupsResponse ¶
func NewDisassociateTargetGroupsResponse() (response *DisassociateTargetGroupsResponse)
func (*DisassociateTargetGroupsResponse) FromJsonString ¶
func (r *DisassociateTargetGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisassociateTargetGroupsResponse) ToJsonString ¶
func (r *DisassociateTargetGroupsResponse) ToJsonString() string
type ExclusiveCluster ¶
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,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,omitempty" name:"L7Clusters"` // vpcgw cluster // Note: this field may return null, indicating that no valid values can be obtained. ClassicalCluster *ClusterItem `json:"ClassicalCluster,omitempty" name:"ClassicalCluster"` }
type ExtraInfo ¶
type ExtraInfo struct { // Whether to enable VIP direct connection // Note: This field may return null, indicating that no valid values can be obtained. ZhiTong *bool `json:"ZhiTong,omitempty" name:"ZhiTong"` // TgwGroup name // Note: This field may return null, indicating that no valid values can be obtained. TgwGroupName *string `json:"TgwGroupName,omitempty" name:"TgwGroupName"` }
type HealthCheck ¶
type HealthCheck struct { // Whether to enable health check. 1: enable; 0: disable. HealthSwitch *int64 `json:"HealthSwitch,omitempty" name:"HealthSwitch"` // Health check response timeout period in seconds (applicable only to layer-4 listeners). Value range: 2-60. Default value: 2. This parameter should be less than the check interval. // Note: This field may return null, indicating that no valid values can be obtained. TimeOut *int64 `json:"TimeOut,omitempty" name:"TimeOut"` // Health check interval in seconds. Value range: 5-300. Default value: 5. // Note: This field may return null, indicating that no valid values can be obtained. IntervalTime *int64 `json:"IntervalTime,omitempty" name:"IntervalTime"` // Health threshold. Default value: 3, indicating that if a forward is found healthy three consecutive times, it is considered to be normal. Value range: 2-10 // Note: This field may return null, indicating that no valid values can be obtained. HealthNum *int64 `json:"HealthNum,omitempty" name:"HealthNum"` // Unhealthy threshold. Default value: 3, indicating that if a forward is found unhealthy three consecutive times, it is considered to be exceptional. Value range: 2-10 // Note: This field may return null, indicating that no valid values can be obtained. UnHealthNum *int64 `json:"UnHealthNum,omitempty" name:"UnHealthNum"` // Health check status code (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners). Value range: 1-31. Default value: 31. // 1 means that the return value of 1xx after detection means healthy, 2 for returning 2xx for healthy, 4 for returning 3xx for healthy, 8 for returning 4xx for healthy, and 16 for returning 5xx for healthy. If you want multiple return codes to represent healthy, sum up the corresponding values. Note: The HTTP health check mode of TCP listeners only supports specifying one kind of health check status code. // Note: This field may return null, indicating that no valid values can be obtained. HttpCode *int64 `json:"HttpCode,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,omitempty" name:"HttpCheckPath"` // Health check domain name (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. HttpCheckDomain *string `json:"HttpCheckDomain,omitempty" name:"HttpCheckDomain"` // Health check method (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners). Value range: HEAD, GET. Default value: HEAD. // Note: This field may return null, indicating that no valid values can be obtained. HttpCheckMethod *string `json:"HttpCheckMethod,omitempty" name:"HttpCheckMethod"` // Health check port (a custom check parameter), which is the port of the real server by default. Unless you want to specify a port, it is recommended to leave it empty. (Applicable only to TCP/UDP listeners.) // Note: This field may return null, indicating that no valid values can be obtained. CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` // Health check protocol (a custom check parameter), which is required if the value of CheckType is CUSTOM. This parameter represents the input format of the health check. Value range: HEX, 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,omitempty" name:"ContextType"` // Health check protocol (a custom check parameter), which is required if the value of CheckType 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,omitempty" name:"SendContext"` // Health check protocol (a custom check parameter), which is required if the value of CheckType 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,omitempty" name:"RecvContext"` // Health check protocol (a custom check parameter). Value range: TCP, HTTP, CUSTOM (applicable only to TCP/UDP listeners, where UDP listeners only support CUSTOM. If custom health check is used, this parameter is required). // Note: This field may return null, indicating that no valid values can be obtained. CheckType *string `json:"CheckType,omitempty" name:"CheckType"` // Health check protocol (a custom check parameter), which is required if the value of CheckType is HTTP. This parameter represents the HTTP version of the real server. Value range: HTTP/1.0, HTTP/1.1. (Applicable only to TCP listeners.) // Note: This field may return null, indicating that no valid values can be obtained. HttpVersion *string `json:"HttpVersion,omitempty" name:"HttpVersion"` // Specifies the source IP for health check. `0`: use the CLB VIP as the source IP; `1`: IP range starting with 100.64 serving as the source IP. Default: `0`. // Note: this field may return `null`, indicating that no valid values can be obtained. SourceIpType *int64 `json:"SourceIpType,omitempty" name:"SourceIpType"` }
type InternetAccessible ¶
type InternetAccessible struct { // TRAFFIC_POSTPAID_BY_HOUR: hourly pay-as-you-go by traffic; BANDWIDTH_POSTPAID_BY_HOUR: hourly pay-as-you-go by bandwidth; // BANDWIDTH_PACKAGE: billed by bandwidth package (currently, this method is supported only if the ISP is specified) InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` // Maximum outbound bandwidth in Mbps, which applies only to public network CLB. Value range: 0-65,535. Default value: 10. InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` // Bandwidth package type, such as SINGLEISP // Note: This field may return null, indicating that no valid values can be obtained. BandwidthpkgSubType *string `json:"BandwidthpkgSubType,omitempty" name:"BandwidthpkgSubType"` }
type LBChargePrepaid ¶
type LBChargePrepaid struct { // Renewal type. AUTO_RENEW: automatic renewal; MANUAL_RENEW: manual renewal // Note: This field may return null, indicating that no valid values can be obtained. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` // Cycle, indicating the number of months (reserved field) // Note: This field may return null, indicating that no valid values can be obtained. Period *int64 `json:"Period,omitempty" name:"Period"` }
type LBItem ¶
type LBItem struct { // String ID of the CLB instance. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // VIP of the CLB instance. Vip *string `json:"Vip,omitempty" name:"Vip"` // Listener rule. Listeners []*ListenerItem `json:"Listeners,omitempty" name:"Listeners"` // Region of the CLB instance Region *string `json:"Region,omitempty" name:"Region"` }
type LbRsTargets ¶
type LbRsTargets struct { // Private network IP type, which can be `cvm` or `eni`. Type *string `json:"Type,omitempty" name:"Type"` // Private network IP of the real server. PrivateIp *string `json:"PrivateIp,omitempty" name:"PrivateIp"` // Port bound to the real server. Port *int64 `json:"Port,omitempty" name:"Port"` // VPC ID of the real server. // Note: this field may return `null`, indicating that no valid values can be obtained. VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` // Weight of the real server. // Note: this field may return `null`, indicating that no valid values can be obtained. Weight *int64 `json:"Weight,omitempty" name:"Weight"` }
type Listener ¶
type Listener struct { // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Listener protocol Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Listener port Port *int64 `json:"Port,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,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,omitempty" name:"HealthCheck"` // Request scheduling method // Note: This field may return null, indicating that no valid values can be obtained. Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // Session persistence time // Note: This field may return null, indicating that no valid values can be obtained. SessionExpireTime *int64 `json:"SessionExpireTime,omitempty" name:"SessionExpireTime"` // Whether to enable the SNI feature (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,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,omitempty" name:"Rules"` // Listener name // Note: This field may return null, indicating that no valid values can be obtained. ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` // Listener creation time // Note: This field may return null, indicating that no valid values can be obtained. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // End port of a port range // Note: This field may return null, indicating that no valid values can be obtained. EndPort *int64 `json:"EndPort,omitempty" name:"EndPort"` // Real server type // Note: This field may return null, indicating that no valid values can be obtained. TargetType *string `json:"TargetType,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,omitempty" name:"TargetGroup"` // Session persistence type. Valid values: Normal: the default session persistence type; QUIC_CID: session persistence by QUIC connection ID. // Note: this field may return null, indicating that no valid values can be obtained. SessionType *string `json:"SessionType,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,omitempty" name:"KeepaliveEnable"` // Only the NAT64 CLB TCP listeners are supported. // Note: this field may return `null`, indicating that no valid values can be obtained. Toa *bool `json:"Toa,omitempty" name:"Toa"` // Whether to send the TCP RST packet to the client when unbinding a real server. This parameter is applicable to TCP listeners only. // Note: this field may return `null`, indicating that no valid values can be obtained. DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitempty" name:"DeregisterTargetRst"` }
type ListenerBackend ¶
type ListenerBackend struct { // Listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Listener protocol Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Listener port Port *int64 `json:"Port,omitempty" name:"Port"` // Information of rules under a listener (applicable only to HTTP/HTTPS listeners) // Note: This field may return null, indicating that no valid values can be obtained. Rules []*RuleTargets `json:"Rules,omitempty" name:"Rules"` // List of real servers bound to a listener (applicable only to TCP/UDP/TCP_SSL listeners) // Note: This field may return null, indicating that no valid values can be obtained. Targets []*Backend `json:"Targets,omitempty" name:"Targets"` // Ending port in port range if port range is supported; 0 if port range is not supported // Note: this field may return null, indicating that no valid values can be obtained. EndPort *int64 `json:"EndPort,omitempty" name:"EndPort"` }
type ListenerHealth ¶
type ListenerHealth struct { // Listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Listener name // Note: This field may return null, indicating that no valid values can be obtained. ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` // Listener protocol Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Listener port Port *int64 `json:"Port,omitempty" name:"Port"` // List of forwarding rules of the listener // Note: This field may return null, indicating that no valid values can be obtained. Rules []*RuleHealth `json:"Rules,omitempty" name:"Rules"` }
type ListenerItem ¶
type ListenerItem struct { // Listener ID. ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Listener protocol. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Listener port. Port *int64 `json:"Port,omitempty" name:"Port"` // Bound rule. // Note: this field may return `null`, indicating that no valid values can be obtained. Rules []*RulesItems `json:"Rules,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,omitempty" name:"Targets"` // End port of the listener. // Note: this field may return `null`, indicating that no valid values can be obtained. EndPort *int64 `json:"EndPort,omitempty" name:"EndPort"` }
type LoadBalancer ¶
type LoadBalancer struct { // CLB instance ID. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB instance name. LoadBalancerName *string `json:"LoadBalancerName,omitempty" name:"LoadBalancerName"` // CLB instance network type: // OPEN: public network; INTERNAL: private network. LoadBalancerType *string `json:"LoadBalancerType,omitempty" name:"LoadBalancerType"` // CLB type identifier. Value range: 1 (CLB); 0 (classic CLB). Forward *uint64 `json:"Forward,omitempty" name:"Forward"` // CLB instance domain name. This field is provided only to public network classic CLB instance. // Note: This field may return null, indicating that no valid values can be obtained. Domain *string `json:"Domain,omitempty" name:"Domain"` // List of VIPs of a CLB instance. // Note: This field may return null, indicating that no valid values can be obtained. LoadBalancerVips []*string `json:"LoadBalancerVips,omitempty" name:"LoadBalancerVips"` // 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,omitempty" name:"Status"` // CLB instance creation time. // Note: This field may return null, indicating that no valid values can be obtained. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Last status change time of a CLB instance. // Note: This field may return null, indicating that no valid values can be obtained. StatusTime *string `json:"StatusTime,omitempty" name:"StatusTime"` // ID of the project to which a CLB instance belongs. 0: default project. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // VPC ID // Note: This field may return null, indicating that no valid values can be obtained. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Protective CLB identifier. Value range: 1 (protective), 0 (non-protective). // Note: This field may return null, indicating that no valid values can be obtained. OpenBgp *uint64 `json:"OpenBgp,omitempty" name:"OpenBgp"` // SNAT is enabled for all private network classic CLB created before December 2016. // Note: This field may return null, indicating that no valid values can be obtained. Snat *bool `json:"Snat,omitempty" name:"Snat"` // 0: not isolated; 1: isolated. // Note: This field may return null, indicating that no valid values can be obtained. Isolation *uint64 `json:"Isolation,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. Log *string `json:"Log,omitempty" name:"Log"` // Subnet where a CLB instance resides (meaningful only for private network VPC CLB) // Note: This field may return null, indicating that no valid values can be obtained. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // CLB instance tag information // Note: This field may return null, indicating that no valid values can be obtained. Tags []*TagInfo `json:"Tags,omitempty" name:"Tags"` // Security group of a CLB instance // Note: This field may return null, indicating that no valid values can be obtained. SecureGroups []*string `json:"SecureGroups,omitempty" name:"SecureGroups"` // Basic information of a backend server bound to a CLB instance // Note: This field may return null, indicating that no valid values can be obtained. TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitempty" name:"TargetRegionInfo"` // Anycast CLB publishing region. For non-anycast CLB, this field returns an empty string. // Note: This field may return null, indicating that no valid values can be obtained. AnycastZone *string `json:"AnycastZone,omitempty" name:"AnycastZone"` // IP version. Valid values: ipv4, ipv6 // Note: this field may return null, indicating that no valid values can be obtained. AddressIPVersion *string `json:"AddressIPVersion,omitempty" name:"AddressIPVersion"` // VPC ID in a numeric form // Note: This field may return null, indicating that no valid values can be obtained. NumericalVpcId *uint64 `json:"NumericalVpcId,omitempty" name:"NumericalVpcId"` // ISP to which a CLB IP address belongs // Note: This field may return null, indicating that no valid values can be obtained. VipIsp *string `json:"VipIsp,omitempty" name:"VipIsp"` // Primary AZ // Note: This field may return null, indicating that no valid values can be obtained. MasterZone *ZoneInfo `json:"MasterZone,omitempty" name:"MasterZone"` // Secondary AZ // Note: This field may return null, indicating that no valid values can be obtained. BackupZoneSet []*ZoneInfo `json:"BackupZoneSet,omitempty" name:"BackupZoneSet"` // CLB instance isolation time // Note: This field may return null, indicating that no valid values can be obtained. IsolatedTime *string `json:"IsolatedTime,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,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,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,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,omitempty" name:"PrepaidAttributes"` // Logset ID of CLB Log Service (CLS) // Note: This field may return null, indicating that no valid values can be obtained. LogSetId *string `json:"LogSetId,omitempty" name:"LogSetId"` // Log topic ID of CLB Log Service (CLS) // Note: This field may return null, indicating that no valid values can be obtained. LogTopicId *string `json:"LogTopicId,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,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,omitempty" name:"ExtraInfo"` // Whether an Anti-DDoS Pro instance can be bound // Note: This field may return null, indicating that no valid values can be obtained. IsDDos *bool `json:"IsDDos,omitempty" name:"IsDDos"` // Custom configuration ID at the CLB instance level // Note: This field may return null, indicating that no valid values can be obtained. ConfigId *string `json:"ConfigId,omitempty" name:"ConfigId"` // Whether a real server opens the traffic from a CLB instance to the internet // Note: this field may return null, indicating that no valid values can be obtained. LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitempty" name:"LoadBalancerPassToTarget"` // Private network dedicated cluster // Note: this field may return null, indicating that no valid values can be obtained. ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitempty" name:"ExclusiveCluster"` // This field is meaningful only when the IP address version is `ipv6`. Valid values: IPv6Nat64, IPv6FullChain // Note: this field may return null, indicating that no valid values can be obtained. IPv6Mode *string `json:"IPv6Mode,omitempty" name:"IPv6Mode"` // Whether to enable SnatPro. // Note: this field may return null, indicating that no valid values can be obtained. SnatPro *bool `json:"SnatPro,omitempty" name:"SnatPro"` // `SnatIp` list after SnatPro load balancing is enabled. // Note: this field may return null, indicating that no valid values can be obtained. SnatIps []*SnatIp `json:"SnatIps,omitempty" name:"SnatIps"` // Performance guarantee specification // Note: this field may return null, indicating that no valid values can be obtained. SlaType *string `json:"SlaType,omitempty" name:"SlaType"` // Whether VIP is blocked // Note: this field may return null, indicating that no valid values can be obtained. IsBlock *bool `json:"IsBlock,omitempty" name:"IsBlock"` // Time blocked or unblocked // Note: this field may return null, indicating that no valid values can be obtained. IsBlockTime *string `json:"IsBlockTime,omitempty" name:"IsBlockTime"` // Whether the IP type is the local BGP LocalBgp *bool `json:"LocalBgp,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,omitempty" name:"ClusterTag"` // If the layer-7 listener of an IPv6FullChain CLB instance is enabled, the CLB instance can be bound with an IPv4 and an IPv6 CVM instance simultaneously. // Note: this field may return null, indicating that no valid values can be obtained. MixIpTarget *bool `json:"MixIpTarget,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,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,omitempty" name:"NfvInfo"` // Health check logset ID of CLB CLS // Note: this field may return `null`, indicating that no valid values can be obtained. HealthLogSetId *string `json:"HealthLogSetId,omitempty" name:"HealthLogSetId"` // Health check log topic ID of CLB CLS // Note: this field may return `null`, indicating that no valid values can be obtained. HealthLogTopicId *string `json:"HealthLogTopicId,omitempty" name:"HealthLogTopicId"` }
type LoadBalancerDetail ¶
type LoadBalancerDetail struct { // CLB instance ID. LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB instance name. LoadBalancerName *string `json:"LoadBalancerName,omitempty" name:"LoadBalancerName"` // CLB instance network type: // Public: public network; Private: private network. // Note: this field may return null, indicating that no valid values can be obtained. LoadBalancerType *string `json:"LoadBalancerType,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,omitempty" name:"Status"` // CLB instance VIP. // Note: this field may return null, indicating that no valid values can be obtained. Address *string `json:"Address,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,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,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,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,omitempty" name:"Zone"` // ISP to which the CLB IP address belongs. // Note: this field may return null, indicating that no valid values can be obtained. AddressIsp *string `json:"AddressIsp,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,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,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,omitempty" name:"CreateTime"` // CLB instance billing mode. // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *string `json:"ChargeType,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,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,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,omitempty" name:"ExtraInfo"` // Custom configuration ID at the CLB instance level. // Note: this field may return null, indicating that no valid values can be obtained. ConfigId *string `json:"ConfigId,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,omitempty" name:"Tags"` // CLB listener ID. // Note: this field may return null, indicating that no valid values can be obtained. ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Listener protocol. // Note: this field may return null, indicating that no valid values can be obtained. Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Listener port. // Note: this field may return null, indicating that no valid values can be obtained. Port *uint64 `json:"Port,omitempty" name:"Port"` // Forwarding rule ID. // Note: this field may return null, indicating that no valid values can be obtained. LocationId *string `json:"LocationId,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,omitempty" name:"Domain"` // Forwarding rule path. // Note: this field may return null, indicating that no valid values can be obtained. Url *string `json:"Url,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,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,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,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,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,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,omitempty" name:"SecurityGroup"` // Whether the CLB instance is billed by IP. // Note: this field may return `null`, indicating that no valid values can be obtained. LoadBalancerPassToTarget *uint64 `json:"LoadBalancerPassToTarget,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,omitempty" name:"TargetHealth"` }
type LoadBalancerHealth ¶
type LoadBalancerHealth struct { // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB instance name // Note: This field may return null, indicating that no valid values can be obtained. LoadBalancerName *string `json:"LoadBalancerName,omitempty" name:"LoadBalancerName"` // List of listeners // Note: This field may return null, indicating that no valid values can be obtained. Listeners []*ListenerHealth `json:"Listeners,omitempty" name:"Listeners"` }
type LoadBalancerTraffic ¶
type LoadBalancerTraffic struct { // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB instance name LoadBalancerName *string `json:"LoadBalancerName,omitempty" name:"LoadBalancerName"` // CLB instance region Region *string `json:"Region,omitempty" name:"Region"` // CLB instance VIP Vip *string `json:"Vip,omitempty" name:"Vip"` // Maximum outbound bandwidth in Mbps OutBandwidth *float64 `json:"OutBandwidth,omitempty" name:"OutBandwidth"` }
type ManualRewriteRequest ¶
type ManualRewriteRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Source listener ID SourceListenerId *string `json:"SourceListenerId,omitempty" name:"SourceListenerId"` // Target listener ID TargetListenerId *string `json:"TargetListenerId,omitempty" name:"TargetListenerId"` // Redirection relationship between forwarding rules RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitempty" name:"RewriteInfos"` }
func NewManualRewriteRequest ¶
func NewManualRewriteRequest() (request *ManualRewriteRequest)
func (*ManualRewriteRequest) FromJsonString ¶
func (r *ManualRewriteRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManualRewriteRequest) ToJsonString ¶
func (r *ManualRewriteRequest) ToJsonString() string
type ManualRewriteResponse ¶
type ManualRewriteResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewManualRewriteResponse ¶
func NewManualRewriteResponse() (response *ManualRewriteResponse)
func (*ManualRewriteResponse) FromJsonString ¶
func (r *ManualRewriteResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManualRewriteResponse) ToJsonString ¶
func (r *ManualRewriteResponse) ToJsonString() string
type ModifyBlockIPListRequest ¶
type ModifyBlockIPListRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` // Operation type. Valid values: // <li> add_customized_field (sets header initially to enable the blocklist feature)</li> // <li> set_customized_field (modifies header)</li> // <li> del_customized_field (deletes header)</li> // <li> add_blocked (adds IPs to blocklist)</li> // <li> del_blocked (deletes IPs from blocklist)</li> // <li> flush_blocked (clears blocklist)</li> Type *string `json:"Type,omitempty" name:"Type"` // Header field that stores real client IPs ClientIPField *string `json:"ClientIPField,omitempty" name:"ClientIPField"` // List of blocked IPs. The array can contain up to 200,000 entries in one operation. BlockIPList []*string `json:"BlockIPList,omitempty" name:"BlockIPList"` // Expiration time in seconds. Default value: 3600 ExpireTime *uint64 `json:"ExpireTime,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,omitempty" name:"AddStrategy"` }
func NewModifyBlockIPListRequest ¶
func NewModifyBlockIPListRequest() (request *ModifyBlockIPListRequest)
func (*ModifyBlockIPListRequest) FromJsonString ¶
func (r *ModifyBlockIPListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBlockIPListRequest) ToJsonString ¶
func (r *ModifyBlockIPListRequest) ToJsonString() string
type ModifyBlockIPListResponse ¶
type ModifyBlockIPListResponse struct { *tchttp.BaseResponse Response *struct { // Async task ID JodId *string `json:"JodId,omitempty" name:"JodId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyBlockIPListResponse ¶
func NewModifyBlockIPListResponse() (response *ModifyBlockIPListResponse)
func (*ModifyBlockIPListResponse) FromJsonString ¶
func (r *ModifyBlockIPListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyBlockIPListResponse) ToJsonString ¶
func (r *ModifyBlockIPListResponse) ToJsonString() string
type ModifyDomainAttributesRequest ¶
type ModifyDomainAttributesRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Domain name, which must be under a created forwarding rule. Domain *string `json:"Domain,omitempty" name:"Domain"` // New domain name NewDomain *string `json:"NewDomain,omitempty" name:"NewDomain"` // Domain name certificate information. Note: This is only applicable to SNI-enabled listeners. Certificate *CertificateInput `json:"Certificate,omitempty" name:"Certificate"` // Whether to enable HTTP/2. Note: HTTP/2 can be enabled only for HTTPS domain names. Http2 *bool `json:"Http2,omitempty" name:"Http2"` // 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,omitempty" name:"DefaultServer"` // A listener must be configured with a default domain name. If you need to disable the default domain name, you must specify another one as the new default domain name. NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitempty" name:"NewDefaultServerDomain"` }
func NewModifyDomainAttributesRequest ¶
func NewModifyDomainAttributesRequest() (request *ModifyDomainAttributesRequest)
func (*ModifyDomainAttributesRequest) FromJsonString ¶
func (r *ModifyDomainAttributesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainAttributesRequest) ToJsonString ¶
func (r *ModifyDomainAttributesRequest) ToJsonString() string
type ModifyDomainAttributesResponse ¶
type ModifyDomainAttributesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDomainAttributesResponse ¶
func NewModifyDomainAttributesResponse() (response *ModifyDomainAttributesResponse)
func (*ModifyDomainAttributesResponse) FromJsonString ¶
func (r *ModifyDomainAttributesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainAttributesResponse) ToJsonString ¶
func (r *ModifyDomainAttributesResponse) ToJsonString() string
type ModifyDomainRequest ¶
type ModifyDomainRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Legacy domain name under a listener. Domain *string `json:"Domain,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,omitempty" name:"NewDomain"` }
func NewModifyDomainRequest ¶
func NewModifyDomainRequest() (request *ModifyDomainRequest)
func (*ModifyDomainRequest) FromJsonString ¶
func (r *ModifyDomainRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainRequest) ToJsonString ¶
func (r *ModifyDomainRequest) ToJsonString() string
type ModifyDomainResponse ¶
type ModifyDomainResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDomainResponse ¶
func NewModifyDomainResponse() (response *ModifyDomainResponse)
func (*ModifyDomainResponse) FromJsonString ¶
func (r *ModifyDomainResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDomainResponse) ToJsonString ¶
func (r *ModifyDomainResponse) ToJsonString() string
type ModifyListenerRequest ¶
type ModifyListenerRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // New listener name ListenerName *string `json:"ListenerName,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,omitempty" name:"SessionExpireTime"` // Health check parameter, which is applicable only to TCP, UDP, and TCP_SSL listeners. HealthCheck *HealthCheck `json:"HealthCheck,omitempty" name:"HealthCheck"` // Certificate information. This parameter is applicable only to HTTPS and TCP_SSL listeners. Certificate *CertificateInput `json:"Certificate,omitempty" name:"Certificate"` // Forwarding method of a listener. Value range: WRR, LEAST_CONN. // They represent weighted round robin and least connections, respectively. Default value: WRR. Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // Whether to enable the SNI feature. This parameter is applicable only to HTTPS listeners. Note: The SNI feature can be enabled but cannot be disabled once enabled. SniSwitch *int64 `json:"SniSwitch,omitempty" name:"SniSwitch"` // Whether to enable a persistent connection. This parameter is applicable only to HTTP and HTTPS listeners. KeepaliveEnable *int64 `json:"KeepaliveEnable,omitempty" name:"KeepaliveEnable"` // Whether to send the TCP RST packet to the client when unbinding a real server. This parameter is applicable to TCP listeners only. DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitempty" name:"DeregisterTargetRst"` // Session persistence type. `NORMAL`: default session persistence type (L4/L7 session persistence); `QUIC_CID`: session persistence by QUIC connection ID. The `QUIC_CID` value can only be configured in UDP listeners. SessionType *string `json:"SessionType,omitempty" name:"SessionType"` }
func NewModifyListenerRequest ¶
func NewModifyListenerRequest() (request *ModifyListenerRequest)
func (*ModifyListenerRequest) FromJsonString ¶
func (r *ModifyListenerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyListenerRequest) ToJsonString ¶
func (r *ModifyListenerRequest) ToJsonString() string
type ModifyListenerResponse ¶
type ModifyListenerResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyListenerResponse ¶
func NewModifyListenerResponse() (response *ModifyListenerResponse)
func (*ModifyListenerResponse) FromJsonString ¶
func (r *ModifyListenerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyListenerResponse) ToJsonString ¶
func (r *ModifyListenerResponse) ToJsonString() string
type ModifyLoadBalancerAttributesRequest ¶
type ModifyLoadBalancerAttributesRequest struct { *tchttp.BaseRequest // Unique CLB ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB instance name LoadBalancerName *string `json:"LoadBalancerName,omitempty" name:"LoadBalancerName"` // Region information of the real server bound to a CLB. TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitempty" name:"TargetRegionInfo"` // Network billing parameter InternetChargeInfo *InternetAccessible `json:"InternetChargeInfo,omitempty" name:"InternetChargeInfo"` // Whether the target opens traffic from CLB to the internet. If yes (true), only security groups on CLB will be verified; if no (false), security groups on both CLB and backend instance need to be verified. LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitempty" name:"LoadBalancerPassToTarget"` // Whether to enable SnatPro SnatPro *bool `json:"SnatPro,omitempty" name:"SnatPro"` // Specifies whether to enable deletion protection. DeleteProtect *bool `json:"DeleteProtect,omitempty" name:"DeleteProtect"` }
func NewModifyLoadBalancerAttributesRequest ¶
func NewModifyLoadBalancerAttributesRequest() (request *ModifyLoadBalancerAttributesRequest)
func (*ModifyLoadBalancerAttributesRequest) FromJsonString ¶
func (r *ModifyLoadBalancerAttributesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLoadBalancerAttributesRequest) ToJsonString ¶
func (r *ModifyLoadBalancerAttributesRequest) ToJsonString() string
type ModifyLoadBalancerAttributesResponse ¶
type ModifyLoadBalancerAttributesResponse struct { *tchttp.BaseResponse Response *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,omitempty" name:"DealName"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyLoadBalancerAttributesResponse ¶
func NewModifyLoadBalancerAttributesResponse() (response *ModifyLoadBalancerAttributesResponse)
func (*ModifyLoadBalancerAttributesResponse) FromJsonString ¶
func (r *ModifyLoadBalancerAttributesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyLoadBalancerAttributesResponse) ToJsonString ¶
func (r *ModifyLoadBalancerAttributesResponse) ToJsonString() string
type ModifyRuleRequest ¶
type ModifyRuleRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // ID of the forwarding rule to be modified. LocationId *string `json:"LocationId,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,omitempty" name:"Url"` // Health check information HealthCheck *HealthCheck `json:"HealthCheck,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,omitempty" name:"Scheduler"` // Session persistence time SessionExpireTime *int64 `json:"SessionExpireTime,omitempty" name:"SessionExpireTime"` // Forwarding protocol between CLB instance and real server. Default value: HTTP. Valid values: HTTP, HTTPS, and TRPC. ForwardType *string `json:"ForwardType,omitempty" name:"ForwardType"` // TRPC callee server route, which is required when `ForwardType` is "TRPC". TrpcCallee *string `json:"TrpcCallee,omitempty" name:"TrpcCallee"` // TRPC calling service API, which is required when `ForwardType` is "TRPC". TrpcFunc *string `json:"TrpcFunc,omitempty" name:"TrpcFunc"` }
func NewModifyRuleRequest ¶
func NewModifyRuleRequest() (request *ModifyRuleRequest)
func (*ModifyRuleRequest) FromJsonString ¶
func (r *ModifyRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyRuleRequest) ToJsonString ¶
func (r *ModifyRuleRequest) ToJsonString() string
type ModifyRuleResponse ¶
type ModifyRuleResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyRuleResponse ¶
func NewModifyRuleResponse() (response *ModifyRuleResponse)
func (*ModifyRuleResponse) FromJsonString ¶
func (r *ModifyRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyRuleResponse) ToJsonString ¶
func (r *ModifyRuleResponse) ToJsonString() string
type ModifyTargetGroupAttributeRequest ¶
type ModifyTargetGroupAttributeRequest struct { *tchttp.BaseRequest // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // New name of target group TargetGroupName *string `json:"TargetGroupName,omitempty" name:"TargetGroupName"` // New default port of target group Port *uint64 `json:"Port,omitempty" name:"Port"` }
func NewModifyTargetGroupAttributeRequest ¶
func NewModifyTargetGroupAttributeRequest() (request *ModifyTargetGroupAttributeRequest)
func (*ModifyTargetGroupAttributeRequest) FromJsonString ¶
func (r *ModifyTargetGroupAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetGroupAttributeRequest) ToJsonString ¶
func (r *ModifyTargetGroupAttributeRequest) ToJsonString() string
type ModifyTargetGroupAttributeResponse ¶
type ModifyTargetGroupAttributeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyTargetGroupAttributeResponse ¶
func NewModifyTargetGroupAttributeResponse() (response *ModifyTargetGroupAttributeResponse)
func (*ModifyTargetGroupAttributeResponse) FromJsonString ¶
func (r *ModifyTargetGroupAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetGroupAttributeResponse) ToJsonString ¶
func (r *ModifyTargetGroupAttributeResponse) ToJsonString() string
type ModifyTargetGroupInstancesPortRequest ¶
type ModifyTargetGroupInstancesPortRequest struct { *tchttp.BaseRequest // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // Array of servers for which to modify ports TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitempty" name:"TargetGroupInstances"` }
func NewModifyTargetGroupInstancesPortRequest ¶
func NewModifyTargetGroupInstancesPortRequest() (request *ModifyTargetGroupInstancesPortRequest)
func (*ModifyTargetGroupInstancesPortRequest) FromJsonString ¶
func (r *ModifyTargetGroupInstancesPortRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetGroupInstancesPortRequest) ToJsonString ¶
func (r *ModifyTargetGroupInstancesPortRequest) ToJsonString() string
type ModifyTargetGroupInstancesPortResponse ¶
type ModifyTargetGroupInstancesPortResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyTargetGroupInstancesPortResponse ¶
func NewModifyTargetGroupInstancesPortResponse() (response *ModifyTargetGroupInstancesPortResponse)
func (*ModifyTargetGroupInstancesPortResponse) FromJsonString ¶
func (r *ModifyTargetGroupInstancesPortResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetGroupInstancesPortResponse) ToJsonString ¶
func (r *ModifyTargetGroupInstancesPortResponse) ToJsonString() string
type ModifyTargetGroupInstancesWeightRequest ¶
type ModifyTargetGroupInstancesWeightRequest struct { *tchttp.BaseRequest // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // Array of servers for which to modify weights TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitempty" name:"TargetGroupInstances"` }
func NewModifyTargetGroupInstancesWeightRequest ¶
func NewModifyTargetGroupInstancesWeightRequest() (request *ModifyTargetGroupInstancesWeightRequest)
func (*ModifyTargetGroupInstancesWeightRequest) FromJsonString ¶
func (r *ModifyTargetGroupInstancesWeightRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetGroupInstancesWeightRequest) ToJsonString ¶
func (r *ModifyTargetGroupInstancesWeightRequest) ToJsonString() string
type ModifyTargetGroupInstancesWeightResponse ¶
type ModifyTargetGroupInstancesWeightResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyTargetGroupInstancesWeightResponse ¶
func NewModifyTargetGroupInstancesWeightResponse() (response *ModifyTargetGroupInstancesWeightResponse)
func (*ModifyTargetGroupInstancesWeightResponse) FromJsonString ¶
func (r *ModifyTargetGroupInstancesWeightResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetGroupInstancesWeightResponse) ToJsonString ¶
func (r *ModifyTargetGroupInstancesWeightResponse) ToJsonString() string
type ModifyTargetPortRequest ¶
type ModifyTargetPortRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // List of real servers for which to modify the ports Targets []*Target `json:"Targets,omitempty" name:"Targets"` // New port of the real server bound to a listener or forwarding rule NewPort *int64 `json:"NewPort,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,omitempty" name:"LocationId"` // Target rule domain name. This parameter does not take effect if LocationId is specified. Domain *string `json:"Domain,omitempty" name:"Domain"` // Target rule URL. This parameter does not take effect if LocationId is specified. Url *string `json:"Url,omitempty" name:"Url"` }
func NewModifyTargetPortRequest ¶
func NewModifyTargetPortRequest() (request *ModifyTargetPortRequest)
func (*ModifyTargetPortRequest) FromJsonString ¶
func (r *ModifyTargetPortRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetPortRequest) ToJsonString ¶
func (r *ModifyTargetPortRequest) ToJsonString() string
type ModifyTargetPortResponse ¶
type ModifyTargetPortResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyTargetPortResponse ¶
func NewModifyTargetPortResponse() (response *ModifyTargetPortResponse)
func (*ModifyTargetPortResponse) FromJsonString ¶
func (r *ModifyTargetPortResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetPortResponse) ToJsonString ¶
func (r *ModifyTargetPortResponse) ToJsonString() string
type ModifyTargetWeightRequest ¶
type ModifyTargetWeightRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // 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,omitempty" name:"LocationId"` // Target rule domain name. This parameter does not take effect if LocationId is specified. Domain *string `json:"Domain,omitempty" name:"Domain"` // Target rule URL. This parameter does not take effect if LocationId is specified. Url *string `json:"Url,omitempty" name:"Url"` // List of real servers for which to modify the weights Targets []*Target `json:"Targets,omitempty" name:"Targets"` // 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,omitempty" name:"Weight"` }
func NewModifyTargetWeightRequest ¶
func NewModifyTargetWeightRequest() (request *ModifyTargetWeightRequest)
func (*ModifyTargetWeightRequest) FromJsonString ¶
func (r *ModifyTargetWeightRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetWeightRequest) ToJsonString ¶
func (r *ModifyTargetWeightRequest) ToJsonString() string
type ModifyTargetWeightResponse ¶
type ModifyTargetWeightResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyTargetWeightResponse ¶
func NewModifyTargetWeightResponse() (response *ModifyTargetWeightResponse)
func (*ModifyTargetWeightResponse) FromJsonString ¶
func (r *ModifyTargetWeightResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyTargetWeightResponse) ToJsonString ¶
func (r *ModifyTargetWeightResponse) ToJsonString() string
type Quota ¶
type Quota struct { // Quota name. Valid values: // <li> TOTAL_OPEN_CLB_QUOTA: quota of public network CLB instances in the current region</li> // <li> TOTAL_INTERNAL_CLB_QUOTA: quota of private network CLB instances in the current region</li> // <li> TOTAL_LISTENER_QUOTA: quota of listeners under one CLB instance</li> // <li> TOTAL_LISTENER_RULE_QUOTA: quota of forwarding rules under one listener</li> // <li> TOTAL_TARGET_BIND_QUOTA: quota of CVM instances can be bound under one forwarding rule</li> QuotaId *string `json:"QuotaId,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,omitempty" name:"QuotaCurrent"` // Quota limit. QuotaLimit *int64 `json:"QuotaLimit,omitempty" name:"QuotaLimit"` }
type RegisterTargetGroupInstancesRequest ¶
type RegisterTargetGroupInstancesRequest struct { *tchttp.BaseRequest // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // Server instance array TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitempty" name:"TargetGroupInstances"` }
func NewRegisterTargetGroupInstancesRequest ¶
func NewRegisterTargetGroupInstancesRequest() (request *RegisterTargetGroupInstancesRequest)
func (*RegisterTargetGroupInstancesRequest) FromJsonString ¶
func (r *RegisterTargetGroupInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterTargetGroupInstancesRequest) ToJsonString ¶
func (r *RegisterTargetGroupInstancesRequest) ToJsonString() string
type RegisterTargetGroupInstancesResponse ¶
type RegisterTargetGroupInstancesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRegisterTargetGroupInstancesResponse ¶
func NewRegisterTargetGroupInstancesResponse() (response *RegisterTargetGroupInstancesResponse)
func (*RegisterTargetGroupInstancesResponse) FromJsonString ¶
func (r *RegisterTargetGroupInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterTargetGroupInstancesResponse) ToJsonString ¶
func (r *RegisterTargetGroupInstancesResponse) ToJsonString() string
type RegisterTargetsRequest ¶
type RegisterTargetsRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLB listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // List of real servers to be bound. Array length limit: 20. Targets []*Target `json:"Targets,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,omitempty" name:"LocationId"` // Target forwarding rule domain name. This parameter does not take effect if LocationId is specified. Domain *string `json:"Domain,omitempty" name:"Domain"` // Target forwarding rule URL. This parameter does not take effect if LocationId is specified. Url *string `json:"Url,omitempty" name:"Url"` }
func NewRegisterTargetsRequest ¶
func NewRegisterTargetsRequest() (request *RegisterTargetsRequest)
func (*RegisterTargetsRequest) FromJsonString ¶
func (r *RegisterTargetsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterTargetsRequest) ToJsonString ¶
func (r *RegisterTargetsRequest) ToJsonString() string
type RegisterTargetsResponse ¶
type RegisterTargetsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRegisterTargetsResponse ¶
func NewRegisterTargetsResponse() (response *RegisterTargetsResponse)
func (*RegisterTargetsResponse) FromJsonString ¶
func (r *RegisterTargetsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterTargetsResponse) ToJsonString ¶
func (r *RegisterTargetsResponse) ToJsonString() string
type RegisterTargetsWithClassicalLBRequest ¶
type RegisterTargetsWithClassicalLBRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Real server information Targets []*ClassicalTargetInfo `json:"Targets,omitempty" name:"Targets"` }
func NewRegisterTargetsWithClassicalLBRequest ¶
func NewRegisterTargetsWithClassicalLBRequest() (request *RegisterTargetsWithClassicalLBRequest)
func (*RegisterTargetsWithClassicalLBRequest) FromJsonString ¶
func (r *RegisterTargetsWithClassicalLBRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterTargetsWithClassicalLBRequest) ToJsonString ¶
func (r *RegisterTargetsWithClassicalLBRequest) ToJsonString() string
type RegisterTargetsWithClassicalLBResponse ¶
type RegisterTargetsWithClassicalLBResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRegisterTargetsWithClassicalLBResponse ¶
func NewRegisterTargetsWithClassicalLBResponse() (response *RegisterTargetsWithClassicalLBResponse)
func (*RegisterTargetsWithClassicalLBResponse) FromJsonString ¶
func (r *RegisterTargetsWithClassicalLBResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RegisterTargetsWithClassicalLBResponse) ToJsonString ¶
func (r *RegisterTargetsWithClassicalLBResponse) ToJsonString() string
type ReplaceCertForLoadBalancersRequest ¶
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,omitempty" name:"OldCertificateId"` // Information such as the content of the new certificate Certificate *CertificateInput `json:"Certificate,omitempty" name:"Certificate"` }
func NewReplaceCertForLoadBalancersRequest ¶
func NewReplaceCertForLoadBalancersRequest() (request *ReplaceCertForLoadBalancersRequest)
func (*ReplaceCertForLoadBalancersRequest) FromJsonString ¶
func (r *ReplaceCertForLoadBalancersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReplaceCertForLoadBalancersRequest) ToJsonString ¶
func (r *ReplaceCertForLoadBalancersRequest) ToJsonString() string
type ReplaceCertForLoadBalancersResponse ¶
type ReplaceCertForLoadBalancersResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewReplaceCertForLoadBalancersResponse ¶
func NewReplaceCertForLoadBalancersResponse() (response *ReplaceCertForLoadBalancersResponse)
func (*ReplaceCertForLoadBalancersResponse) FromJsonString ¶
func (r *ReplaceCertForLoadBalancersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReplaceCertForLoadBalancersResponse) ToJsonString ¶
func (r *ReplaceCertForLoadBalancersResponse) ToJsonString() string
type RewriteLocationMap ¶
type RewriteLocationMap struct { // Source forwarding rule ID SourceLocationId *string `json:"SourceLocationId,omitempty" name:"SourceLocationId"` // Forwarding rule ID of a redirect target TargetLocationId *string `json:"TargetLocationId,omitempty" name:"TargetLocationId"` // Redirection status code. Valid values: 301, 302, and 307. RewriteCode *int64 `json:"RewriteCode,omitempty" name:"RewriteCode"` // Whether the matched URL is carried in redirection. It is required when configuring `RewriteCode`. TakeUrl *bool `json:"TakeUrl,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,omitempty" name:"SourceDomain"` }
type RewriteTarget ¶
type RewriteTarget struct { // Listener ID of a redirect target // Note: This field may return null, indicating that there is no redirection. // Note: This field may return null, indicating that no valid values can be obtained. TargetListenerId *string `json:"TargetListenerId,omitempty" name:"TargetListenerId"` // Forwarding rule ID of a redirect target // Note: This field may return null, indicating that there is no redirection. // Note: This field may return null, indicating that no valid values can be obtained. TargetLocationId *string `json:"TargetLocationId,omitempty" name:"TargetLocationId"` // Redirection status code // Note: this field may return `null`, indicating that no valid values can be obtained. RewriteCode *int64 `json:"RewriteCode,omitempty" name:"RewriteCode"` // Whether the matched URL is carried in redirection. // Note: this field may return `null`, indicating that no valid values can be obtained. TakeUrl *bool `json:"TakeUrl,omitempty" name:"TakeUrl"` // Redirection type. Manual: manual redirection; Auto: automatic redirection. // Note: this field may return `null`, indicating that no valid values can be obtained. RewriteType *string `json:"RewriteType,omitempty" name:"RewriteType"` }
type RsWeightRule ¶
type RsWeightRule struct { // CLB listener ID. ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // List of real servers whose weights to modify. Targets []*Target `json:"Targets,omitempty" name:"Targets"` // Forwarding rule ID, which is required only for layer-7 rules. LocationId *string `json:"LocationId,omitempty" name:"LocationId"` // Target rule domain name. This parameter does not take effect if LocationId is specified Domain *string `json:"Domain,omitempty" name:"Domain"` // Target rule URL. This parameter does not take effect if LocationId is specified Url *string `json:"Url,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,omitempty" name:"Weight"` }
type RuleHealth ¶
type RuleHealth struct { // Forwarding rule ID LocationId *string `json:"LocationId,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,omitempty" name:"Domain"` // Forwarding rule Url // Note: This field may return null, indicating that no valid values can be obtained. Url *string `json:"Url,omitempty" name:"Url"` // Health status of the real server bound to this rule // Note: this field may return `null`, indicating that no valid values can be obtained. Targets []*TargetHealth `json:"Targets,omitempty" name:"Targets"` }
type RuleInput ¶
type RuleInput struct { // Domain name of the forwarding rule. Length: 1-80. Domain *string `json:"Domain,omitempty" name:"Domain"` // Forwarding rule path. Length: 1-200. Url *string `json:"Url,omitempty" name:"Url"` // Session persistence time in seconds. Value range: 30-3,600. Setting it to 0 indicates that session persistence is disabled. SessionExpireTime *int64 `json:"SessionExpireTime,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,omitempty" name:"HealthCheck"` // Certificate information Certificate *CertificateInput `json:"Certificate,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,omitempty" name:"Scheduler"` // Forwarding protocol between the CLB instance and real server. Currently, HTTP/HTTPS/TRPC are supported. ForwardType *string `json:"ForwardType,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,omitempty" name:"DefaultServer"` // Whether to enable HTTP/2. Note: HTTP/2 can be enabled only for HTTPS domain names. Http2 *bool `json:"Http2,omitempty" name:"Http2"` // Target real server type. NODE: binding a general node; TARGETGROUP: binding a target group. TargetType *string `json:"TargetType,omitempty" name:"TargetType"` // TRPC callee server route, which is required when `ForwardType` is `TRPC`. TrpcCallee *string `json:"TrpcCallee,omitempty" name:"TrpcCallee"` // TRPC calling service API, which is required when `ForwardType` is `TRPC`. TrpcFunc *string `json:"TrpcFunc,omitempty" name:"TrpcFunc"` // Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names Quic *bool `json:"Quic,omitempty" name:"Quic"` }
type RuleOutput ¶
type RuleOutput struct { // Forwarding rule ID LocationId *string `json:"LocationId,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,omitempty" name:"Domain"` // Forwarding rule path. // Note: This field may return null, indicating that no valid values can be obtained. Url *string `json:"Url,omitempty" name:"Url"` // Session persistence time SessionExpireTime *int64 `json:"SessionExpireTime,omitempty" name:"SessionExpireTime"` // Health check information // Note: This field may return null, indicating that no valid values can be obtained. HealthCheck *HealthCheck `json:"HealthCheck,omitempty" name:"HealthCheck"` // Certificate information // Note: This field may return null, indicating that no valid values can be obtained. Certificate *CertificateOutput `json:"Certificate,omitempty" name:"Certificate"` // Request forwarding method of the rule Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // ID of the listener to which the forwarding rule belongs ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Redirect target information of a forwarding rule // Note: This field may return null, indicating that no valid values can be obtained. RewriteTarget *RewriteTarget `json:"RewriteTarget,omitempty" name:"RewriteTarget"` // Whether to enable gzip HttpGzip *bool `json:"HttpGzip,omitempty" name:"HttpGzip"` // Whether the forwarding rule is automatically created BeAutoCreated *bool `json:"BeAutoCreated,omitempty" name:"BeAutoCreated"` // Whether to use as the default domain name DefaultServer *bool `json:"DefaultServer,omitempty" name:"DefaultServer"` // Whether to enable Http2 Http2 *bool `json:"Http2,omitempty" name:"Http2"` // Forwarding protocol between CLB and real server ForwardType *string `json:"ForwardType,omitempty" name:"ForwardType"` // Forwarding rule creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Real server type TargetType *string `json:"TargetType,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,omitempty" name:"TargetGroup"` // WAF instance ID // Note: This field may return null, indicating that no valid values can be obtained. WafDomainId *string `json:"WafDomainId,omitempty" name:"WafDomainId"` // TRPC callee server route, which is valid when `ForwardType` is `TRPC`. // Note: this field may return null, indicating that no valid values can be obtained. TrpcCallee *string `json:"TrpcCallee,omitempty" name:"TrpcCallee"` // TRPC calling service API, which is valid when `ForwardType` is `TRPC`. // Note: this field may return null, indicating that no valid values can be obtained. TrpcFunc *string `json:"TrpcFunc,omitempty" name:"TrpcFunc"` // QUIC status // Note: this field may return null, indicating that no valid values can be obtained. QuicStatus *string `json:"QuicStatus,omitempty" name:"QuicStatus"` }
type RuleTargets ¶
type RuleTargets struct { // Forwarding rule ID LocationId *string `json:"LocationId,omitempty" name:"LocationId"` // Domain name of the forwarding rule Domain *string `json:"Domain,omitempty" name:"Domain"` // Forwarding rule path. Url *string `json:"Url,omitempty" name:"Url"` // Real server information // Note: This field may return null, indicating that no valid values can be obtained. Targets []*Backend `json:"Targets,omitempty" name:"Targets"` }
type RulesItems ¶
type RulesItems struct { // Rule ID. LocationId *string `json:"LocationId,omitempty" name:"LocationId"` // Domain name. Domain *string `json:"Domain,omitempty" name:"Domain"` // Uri Url *string `json:"Url,omitempty" name:"Url"` // Object bound to the real server. Targets []*LbRsTargets `json:"Targets,omitempty" name:"Targets"` }
type SetLoadBalancerClsLogRequest ¶
type SetLoadBalancerClsLogRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // CLS logset ID LogSetId *string `json:"LogSetId,omitempty" name:"LogSetId"` // CLS log topic ID LogTopicId *string `json:"LogTopicId,omitempty" name:"LogTopicId"` // Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs). LogType *string `json:"LogType,omitempty" name:"LogType"` }
func NewSetLoadBalancerClsLogRequest ¶
func NewSetLoadBalancerClsLogRequest() (request *SetLoadBalancerClsLogRequest)
func (*SetLoadBalancerClsLogRequest) FromJsonString ¶
func (r *SetLoadBalancerClsLogRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetLoadBalancerClsLogRequest) ToJsonString ¶
func (r *SetLoadBalancerClsLogRequest) ToJsonString() string
type SetLoadBalancerClsLogResponse ¶
type SetLoadBalancerClsLogResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetLoadBalancerClsLogResponse ¶
func NewSetLoadBalancerClsLogResponse() (response *SetLoadBalancerClsLogResponse)
func (*SetLoadBalancerClsLogResponse) FromJsonString ¶
func (r *SetLoadBalancerClsLogResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetLoadBalancerClsLogResponse) ToJsonString ¶
func (r *SetLoadBalancerClsLogResponse) ToJsonString() string
type SetLoadBalancerSecurityGroupsRequest ¶
type SetLoadBalancerSecurityGroupsRequest struct { *tchttp.BaseRequest // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Array of security group IDs. One CLB instance can be bound to up to 50 security groups. If you want to unbind all security groups, you do not need to pass in this parameter, or you can pass in an empty array. SecurityGroups []*string `json:"SecurityGroups,omitempty" name:"SecurityGroups"` }
func NewSetLoadBalancerSecurityGroupsRequest ¶
func NewSetLoadBalancerSecurityGroupsRequest() (request *SetLoadBalancerSecurityGroupsRequest)
func (*SetLoadBalancerSecurityGroupsRequest) FromJsonString ¶
func (r *SetLoadBalancerSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetLoadBalancerSecurityGroupsRequest) ToJsonString ¶
func (r *SetLoadBalancerSecurityGroupsRequest) ToJsonString() string
type SetLoadBalancerSecurityGroupsResponse ¶
type SetLoadBalancerSecurityGroupsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetLoadBalancerSecurityGroupsResponse ¶
func NewSetLoadBalancerSecurityGroupsResponse() (response *SetLoadBalancerSecurityGroupsResponse)
func (*SetLoadBalancerSecurityGroupsResponse) FromJsonString ¶
func (r *SetLoadBalancerSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetLoadBalancerSecurityGroupsResponse) ToJsonString ¶
func (r *SetLoadBalancerSecurityGroupsResponse) ToJsonString() string
type SetSecurityGroupForLoadbalancersRequest ¶
type SetSecurityGroupForLoadbalancersRequest struct { *tchttp.BaseRequest // Security group ID, such as sg-12345678 SecurityGroup *string `json:"SecurityGroup,omitempty" name:"SecurityGroup"` // ADD: bind a security group; // DEL: unbind a security group OperationType *string `json:"OperationType,omitempty" name:"OperationType"` // Array of CLB instance IDs LoadBalancerIds []*string `json:"LoadBalancerIds,omitempty" name:"LoadBalancerIds"` }
func NewSetSecurityGroupForLoadbalancersRequest ¶
func NewSetSecurityGroupForLoadbalancersRequest() (request *SetSecurityGroupForLoadbalancersRequest)
func (*SetSecurityGroupForLoadbalancersRequest) FromJsonString ¶
func (r *SetSecurityGroupForLoadbalancersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetSecurityGroupForLoadbalancersRequest) ToJsonString ¶
func (r *SetSecurityGroupForLoadbalancersRequest) ToJsonString() string
type SetSecurityGroupForLoadbalancersResponse ¶
type SetSecurityGroupForLoadbalancersResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetSecurityGroupForLoadbalancersResponse ¶
func NewSetSecurityGroupForLoadbalancersResponse() (response *SetSecurityGroupForLoadbalancersResponse)
func (*SetSecurityGroupForLoadbalancersResponse) FromJsonString ¶
func (r *SetSecurityGroupForLoadbalancersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetSecurityGroupForLoadbalancersResponse) ToJsonString ¶
func (r *SetSecurityGroupForLoadbalancersResponse) ToJsonString() string
type Target ¶
type Target struct { // Listening port of a real server // Note: this parameter is required when binding a CVM or ENI. // Note: this field may return `null`, indicating that no valid values can be obtained. Port *int64 `json:"Port,omitempty" name:"Port"` // Real server type. Value range: CVM (Cloud Virtual Machine), ENI (Elastic Network Interface). This parameter does not take effect currently as an input parameter. // Note: This field may return null, indicating that no valid values can be obtained. Type *string `json:"Type,omitempty" name:"Type"` // Unique ID of a CVM instance, which is required when binding a CVM instance. It can be obtained from the `InstanceId` field in the response of the `DescribeInstances` API. It indicates binding the primary IP of the primary ENI. // Note: either `InstanceId` or `EniIp` must be passed in. // Note: this field may return `null`, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,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,omitempty" name:"Weight"` // It is required when binding an IP. ENI IPs and other private IPs are supported. 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. It is required when binding a dual-stack IPv6 CVM instance. // Note: this field may return `null`, indicating that no valid values can be obtained. EniIp *string `json:"EniIp,omitempty" name:"EniIp"` }
type TargetGroupAssociation ¶
type TargetGroupAssociation struct { // CLB instance ID LoadBalancerId *string `json:"LoadBalancerId,omitempty" name:"LoadBalancerId"` // Listener ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // Forwarding rule ID LocationId *string `json:"LocationId,omitempty" name:"LocationId"` }
type TargetGroupBackend ¶
type TargetGroupBackend struct { // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // Real server type. Valid values: CVM, ENI (coming soon) Type *string `json:"Type,omitempty" name:"Type"` // Unique real server ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Listening port of real server Port *uint64 `json:"Port,omitempty" name:"Port"` // Forwarding weight of real server. Value range: [0, 100]. Default value: 10. Weight *uint64 `json:"Weight,omitempty" name:"Weight"` // Public IP of real server // Note: this field may return null, indicating that no valid values can be obtained. PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses"` // Private IP of real server // Note: this field may return null, indicating that no valid values can be obtained. PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` // Real server instance name // Note: this field may return null, indicating that no valid values can be obtained. InstanceName *string `json:"InstanceName,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,omitempty" name:"RegisteredTime"` // Unique ENI ID // Note: this field may return null, indicating that no valid values can be obtained. EniId *string `json:"EniId,omitempty" name:"EniId"` // AZ ID of the real server // Note: This field may return `null`, indicating that no valid values can be obtained. ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` }
type TargetGroupInfo ¶
type TargetGroupInfo struct { // Target group ID TargetGroupId *string `json:"TargetGroupId,omitempty" name:"TargetGroupId"` // `vpcid` of target group VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Target group name TargetGroupName *string `json:"TargetGroupName,omitempty" name:"TargetGroupName"` // Default port of target group // Note: this field may return null, indicating that no valid values can be obtained. Port *uint64 `json:"Port,omitempty" name:"Port"` // Target group creation time CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Target group modification time UpdatedTime *string `json:"UpdatedTime,omitempty" name:"UpdatedTime"` // Array of associated rules // Note: this field may return null, indicating that no valid values can be obtained. AssociatedRule []*AssociationItem `json:"AssociatedRule,omitempty" name:"AssociatedRule"` }
type TargetGroupInstance ¶
type TargetGroupInstance struct { // Private IP of target group instance BindIP *string `json:"BindIP,omitempty" name:"BindIP"` // Port of target group instance Port *uint64 `json:"Port,omitempty" name:"Port"` // Weight of target group instance Weight *uint64 `json:"Weight,omitempty" name:"Weight"` // New port of target group instance NewPort *uint64 `json:"NewPort,omitempty" name:"NewPort"` }
type TargetHealth ¶
type TargetHealth struct { // Private IP of the target IP *string `json:"IP,omitempty" name:"IP"` // Port bound to the target Port *int64 `json:"Port,omitempty" name:"Port"` // Current health status. true: healthy; false: unhealthy. HealthStatus *bool `json:"HealthStatus,omitempty" name:"HealthStatus"` // Instance ID of the target, such as ins-12345678 TargetId *string `json:"TargetId,omitempty" name:"TargetId"` // Detailed information of the current health status. Alive: healthy; Dead: exceptional; Unknown: check not started/checking/unknown status. HealthStatusDetial *string `json:"HealthStatusDetial,omitempty" name:"HealthStatusDetial"` }
type TargetRegionInfo ¶
type ZoneInfo ¶
type ZoneInfo struct { // Unique AZ ID in a numeric form, such as 100001 // Note: This field may return null, indicating that no valid values can be obtained. ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Unique AZ ID in a string form, such as ap-guangzhou-1 // Note: This field may return null, indicating that no valid values can be obtained. Zone *string `json:"Zone,omitempty" name:"Zone"` // AZ name, such as Guangzhou Zone 1 // Note: This field may return null, indicating that no valid values can be obtained. ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"` // AZ region, e.g., ap-guangzhou. // Note: This field may return `null`, indicating that no valid values can be obtained. ZoneRegion *string `json:"ZoneRegion,omitempty" name:"ZoneRegion"` // Whether the AZ is the `LocalZone`, e.g., false. // Note: This field may return `null`, indicating that no valid values can be obtained. LocalZone *bool `json:"LocalZone,omitempty" name:"LocalZone"` }