Documentation
¶
Index ¶
- Constants
- type AddCustomizedConfigRequest
- type AddCustomizedConfigRequestParams
- type AddCustomizedConfigResponse
- type AddCustomizedConfigResponseParams
- type AssociateCustomizedConfigRequest
- type AssociateCustomizedConfigRequestParams
- type AssociateCustomizedConfigResponse
- type AssociateCustomizedConfigResponseParams
- type AssociateTargetGroupsRequest
- type AssociateTargetGroupsRequestParams
- type AssociateTargetGroupsResponse
- type AssociateTargetGroupsResponseParams
- type AssociationItem
- type AutoRewriteRequest
- type AutoRewriteRequestParams
- type AutoRewriteResponse
- type AutoRewriteResponseParams
- type Backend
- type BasicTargetGroupInfo
- type BatchDeregisterTargetsRequest
- type BatchDeregisterTargetsRequestParams
- type BatchDeregisterTargetsResponse
- type BatchDeregisterTargetsResponseParams
- type BatchModifyTargetTagRequest
- type BatchModifyTargetTagRequestParams
- type BatchModifyTargetTagResponse
- type BatchModifyTargetTagResponseParams
- type BatchModifyTargetWeightRequest
- type BatchModifyTargetWeightRequestParams
- type BatchModifyTargetWeightResponse
- type BatchModifyTargetWeightResponseParams
- type BatchRegisterTargetsRequest
- type BatchRegisterTargetsRequestParams
- type BatchRegisterTargetsResponse
- type BatchRegisterTargetsResponseParams
- type BatchTarget
- type BindDetailItem
- type BindItem
- type BlockedIP
- type CertIdRelatedWithLoadBalancers
- type CertInfo
- type CertificateInput
- type CertificateOutput
- type ClassicalHealth
- type ClassicalListener
- type ClassicalLoadBalancerInfo
- type ClassicalTarget
- type ClassicalTargetInfo
- type Client
- func (c *Client) AddCustomizedConfig(request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error)
- func (c *Client) AddCustomizedConfigWithContext(ctx context.Context, request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error)
- func (c *Client) AssociateCustomizedConfig(request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error)
- func (c *Client) AssociateCustomizedConfigWithContext(ctx context.Context, request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error)
- func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error)
- func (c *Client) AssociateTargetGroupsWithContext(ctx context.Context, request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error)
- func (c *Client) AutoRewrite(request *AutoRewriteRequest) (response *AutoRewriteResponse, err error)
- func (c *Client) AutoRewriteWithContext(ctx context.Context, request *AutoRewriteRequest) (response *AutoRewriteResponse, err error)
- func (c *Client) BatchDeregisterTargets(request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error)
- func (c *Client) BatchDeregisterTargetsWithContext(ctx context.Context, request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error)
- func (c *Client) BatchModifyTargetTag(request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error)
- func (c *Client) BatchModifyTargetTagWithContext(ctx context.Context, request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error)
- func (c *Client) BatchModifyTargetWeight(request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error)
- func (c *Client) BatchModifyTargetWeightWithContext(ctx context.Context, request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error)
- func (c *Client) BatchRegisterTargets(request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error)
- func (c *Client) BatchRegisterTargetsWithContext(ctx context.Context, request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error)
- func (c *Client) CloneLoadBalancer(request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error)
- func (c *Client) CloneLoadBalancerWithContext(ctx context.Context, request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error)
- func (c *Client) CreateClsLogSet(request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error)
- func (c *Client) CreateClsLogSetWithContext(ctx context.Context, request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error)
- func (c *Client) CreateListener(request *CreateListenerRequest) (response *CreateListenerResponse, err error)
- func (c *Client) CreateListenerWithContext(ctx context.Context, 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) CreateLoadBalancerSnatIpsWithContext(ctx context.Context, request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error)
- func (c *Client) CreateLoadBalancerWithContext(ctx context.Context, request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error)
- func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleResponse, err error)
- func (c *Client) CreateRuleWithContext(ctx context.Context, request *CreateRuleRequest) (response *CreateRuleResponse, err error)
- func (c *Client) CreateTargetGroup(request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error)
- func (c *Client) CreateTargetGroupWithContext(ctx context.Context, request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error)
- func (c *Client) CreateTopic(request *CreateTopicRequest) (response *CreateTopicResponse, err error)
- func (c *Client) CreateTopicWithContext(ctx context.Context, request *CreateTopicRequest) (response *CreateTopicResponse, err error)
- func (c *Client) DeleteCustomizedConfig(request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error)
- func (c *Client) DeleteCustomizedConfigWithContext(ctx context.Context, request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error)
- func (c *Client) DeleteListener(request *DeleteListenerRequest) (response *DeleteListenerResponse, err error)
- func (c *Client) DeleteListenerWithContext(ctx context.Context, 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) DeleteLoadBalancerListenersWithContext(ctx context.Context, request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error)
- func (c *Client) DeleteLoadBalancerSnatIps(request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error)
- func (c *Client) DeleteLoadBalancerSnatIpsWithContext(ctx context.Context, request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error)
- func (c *Client) DeleteLoadBalancerWithContext(ctx context.Context, request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error)
- func (c *Client) DeleteRewrite(request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error)
- func (c *Client) DeleteRewriteWithContext(ctx context.Context, request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error)
- func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)
- func (c *Client) DeleteRuleWithContext(ctx context.Context, request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)
- func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)
- func (c *Client) DeleteTargetGroupsWithContext(ctx context.Context, request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)
- func (c *Client) DeregisterFunctionTargets(request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error)
- func (c *Client) DeregisterFunctionTargetsWithContext(ctx context.Context, request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error)
- func (c *Client) DeregisterTargetGroupInstances(request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error)
- func (c *Client) DeregisterTargetGroupInstancesWithContext(ctx context.Context, 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) DeregisterTargetsFromClassicalLBWithContext(ctx context.Context, request *DeregisterTargetsFromClassicalLBRequest) (response *DeregisterTargetsFromClassicalLBResponse, err error)
- func (c *Client) DeregisterTargetsWithContext(ctx context.Context, request *DeregisterTargetsRequest) (response *DeregisterTargetsResponse, err error)
- func (c *Client) DescribeBlockIPList(request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error)
- func (c *Client) DescribeBlockIPListWithContext(ctx context.Context, request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error)
- func (c *Client) DescribeBlockIPTask(request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error)
- func (c *Client) DescribeBlockIPTaskWithContext(ctx context.Context, request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error)
- func (c *Client) DescribeClassicalLBByInstanceId(request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error)
- func (c *Client) DescribeClassicalLBByInstanceIdWithContext(ctx context.Context, request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error)
- func (c *Client) DescribeClassicalLBHealthStatus(request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error)
- func (c *Client) DescribeClassicalLBHealthStatusWithContext(ctx context.Context, request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error)
- func (c *Client) DescribeClassicalLBListeners(request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error)
- func (c *Client) DescribeClassicalLBListenersWithContext(ctx context.Context, request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error)
- func (c *Client) DescribeClassicalLBTargets(request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error)
- func (c *Client) DescribeClassicalLBTargetsWithContext(ctx context.Context, request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error)
- func (c *Client) DescribeClsLogSet(request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error)
- func (c *Client) DescribeClsLogSetWithContext(ctx context.Context, request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error)
- func (c *Client) DescribeCrossTargets(request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error)
- func (c *Client) DescribeCrossTargetsWithContext(ctx context.Context, request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error)
- func (c *Client) DescribeCustomizedConfigAssociateList(request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error)
- func (c *Client) DescribeCustomizedConfigAssociateListWithContext(ctx context.Context, request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error)
- func (c *Client) DescribeCustomizedConfigList(request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error)
- func (c *Client) DescribeCustomizedConfigListWithContext(ctx context.Context, request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error)
- func (c *Client) DescribeIdleLoadBalancers(request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error)
- func (c *Client) DescribeIdleLoadBalancersWithContext(ctx context.Context, request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error)
- func (c *Client) DescribeLBListeners(request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error)
- func (c *Client) DescribeLBListenersWithContext(ctx context.Context, request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error)
- func (c *Client) DescribeLBOperateProtect(request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error)
- func (c *Client) DescribeLBOperateProtectWithContext(ctx context.Context, request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error)
- func (c *Client) DescribeListeners(request *DescribeListenersRequest) (response *DescribeListenersResponse, err error)
- func (c *Client) DescribeListenersWithContext(ctx context.Context, request *DescribeListenersRequest) (response *DescribeListenersResponse, err error)
- func (c *Client) DescribeLoadBalancerListByCertId(request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error)
- func (c *Client) DescribeLoadBalancerListByCertIdWithContext(ctx context.Context, request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error)
- func (c *Client) DescribeLoadBalancerOverview(request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error)
- func (c *Client) DescribeLoadBalancerOverviewWithContext(ctx context.Context, request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error)
- func (c *Client) DescribeLoadBalancerTraffic(request *DescribeLoadBalancerTrafficRequest) (response *DescribeLoadBalancerTrafficResponse, err error)
- func (c *Client) DescribeLoadBalancerTrafficWithContext(ctx context.Context, 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) DescribeLoadBalancersDetailWithContext(ctx context.Context, request *DescribeLoadBalancersDetailRequest) (response *DescribeLoadBalancersDetailResponse, err error)
- func (c *Client) DescribeLoadBalancersWithContext(ctx context.Context, request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error)
- func (c *Client) DescribeQuota(request *DescribeQuotaRequest) (response *DescribeQuotaResponse, err error)
- func (c *Client) DescribeQuotaWithContext(ctx context.Context, request *DescribeQuotaRequest) (response *DescribeQuotaResponse, err error)
- func (c *Client) DescribeResources(request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error)
- func (c *Client) DescribeResourcesWithContext(ctx context.Context, request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error)
- func (c *Client) DescribeRewrite(request *DescribeRewriteRequest) (response *DescribeRewriteResponse, err error)
- func (c *Client) DescribeRewriteWithContext(ctx context.Context, request *DescribeRewriteRequest) (response *DescribeRewriteResponse, err error)
- func (c *Client) DescribeTargetGroupInstances(request *DescribeTargetGroupInstancesRequest) (response *DescribeTargetGroupInstancesResponse, err error)
- func (c *Client) DescribeTargetGroupInstancesWithContext(ctx context.Context, request *DescribeTargetGroupInstancesRequest) (response *DescribeTargetGroupInstancesResponse, err error)
- func (c *Client) DescribeTargetGroupList(request *DescribeTargetGroupListRequest) (response *DescribeTargetGroupListResponse, err error)
- func (c *Client) DescribeTargetGroupListWithContext(ctx context.Context, request *DescribeTargetGroupListRequest) (response *DescribeTargetGroupListResponse, err error)
- func (c *Client) DescribeTargetGroups(request *DescribeTargetGroupsRequest) (response *DescribeTargetGroupsResponse, err error)
- func (c *Client) DescribeTargetGroupsWithContext(ctx context.Context, request *DescribeTargetGroupsRequest) (response *DescribeTargetGroupsResponse, err error)
- func (c *Client) DescribeTargetHealth(request *DescribeTargetHealthRequest) (response *DescribeTargetHealthResponse, err error)
- func (c *Client) DescribeTargetHealthWithContext(ctx context.Context, request *DescribeTargetHealthRequest) (response *DescribeTargetHealthResponse, err error)
- func (c *Client) DescribeTargets(request *DescribeTargetsRequest) (response *DescribeTargetsResponse, err error)
- func (c *Client) DescribeTargetsWithContext(ctx context.Context, request *DescribeTargetsRequest) (response *DescribeTargetsResponse, err error)
- func (c *Client) DescribeTaskStatus(request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error)
- func (c *Client) DescribeTaskStatusWithContext(ctx context.Context, request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error)
- func (c *Client) DisassociateCustomizedConfig(request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error)
- func (c *Client) DisassociateCustomizedConfigWithContext(ctx context.Context, request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error)
- func (c *Client) DisassociateTargetGroups(request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error)
- func (c *Client) DisassociateTargetGroupsWithContext(ctx context.Context, request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error)
- func (c *Client) InquiryPriceCreateLoadBalancer(request *InquiryPriceCreateLoadBalancerRequest) (response *InquiryPriceCreateLoadBalancerResponse, err error)
- func (c *Client) InquiryPriceCreateLoadBalancerWithContext(ctx context.Context, request *InquiryPriceCreateLoadBalancerRequest) (response *InquiryPriceCreateLoadBalancerResponse, err error)
- func (c *Client) InquiryPriceModifyLoadBalancer(request *InquiryPriceModifyLoadBalancerRequest) (response *InquiryPriceModifyLoadBalancerResponse, err error)
- func (c *Client) InquiryPriceModifyLoadBalancerWithContext(ctx context.Context, request *InquiryPriceModifyLoadBalancerRequest) (response *InquiryPriceModifyLoadBalancerResponse, err error)
- func (c *Client) InquiryPriceRefundLoadBalancer(request *InquiryPriceRefundLoadBalancerRequest) (response *InquiryPriceRefundLoadBalancerResponse, err error)
- func (c *Client) InquiryPriceRefundLoadBalancerWithContext(ctx context.Context, request *InquiryPriceRefundLoadBalancerRequest) (response *InquiryPriceRefundLoadBalancerResponse, err error)
- func (c *Client) InquiryPriceRenewLoadBalancer(request *InquiryPriceRenewLoadBalancerRequest) (response *InquiryPriceRenewLoadBalancerResponse, err error)
- func (c *Client) InquiryPriceRenewLoadBalancerWithContext(ctx context.Context, request *InquiryPriceRenewLoadBalancerRequest) (response *InquiryPriceRenewLoadBalancerResponse, err error)
- func (c *Client) ManualRewrite(request *ManualRewriteRequest) (response *ManualRewriteResponse, err error)
- func (c *Client) ManualRewriteWithContext(ctx context.Context, request *ManualRewriteRequest) (response *ManualRewriteResponse, err error)
- func (c *Client) MigrateClassicalLoadBalancers(request *MigrateClassicalLoadBalancersRequest) (response *MigrateClassicalLoadBalancersResponse, err error)
- func (c *Client) MigrateClassicalLoadBalancersWithContext(ctx context.Context, request *MigrateClassicalLoadBalancersRequest) (response *MigrateClassicalLoadBalancersResponse, err error)
- func (c *Client) ModifyBlockIPList(request *ModifyBlockIPListRequest) (response *ModifyBlockIPListResponse, err error)
- func (c *Client) ModifyBlockIPListWithContext(ctx context.Context, request *ModifyBlockIPListRequest) (response *ModifyBlockIPListResponse, err error)
- func (c *Client) ModifyCustomizedConfig(request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, err error)
- func (c *Client) ModifyCustomizedConfigWithContext(ctx context.Context, request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, 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) ModifyDomainAttributesWithContext(ctx context.Context, request *ModifyDomainAttributesRequest) (response *ModifyDomainAttributesResponse, err error)
- func (c *Client) ModifyDomainWithContext(ctx context.Context, request *ModifyDomainRequest) (response *ModifyDomainResponse, err error)
- func (c *Client) ModifyFunctionTargets(request *ModifyFunctionTargetsRequest) (response *ModifyFunctionTargetsResponse, err error)
- func (c *Client) ModifyFunctionTargetsWithContext(ctx context.Context, request *ModifyFunctionTargetsRequest) (response *ModifyFunctionTargetsResponse, err error)
- func (c *Client) ModifyListener(request *ModifyListenerRequest) (response *ModifyListenerResponse, err error)
- func (c *Client) ModifyListenerWithContext(ctx context.Context, request *ModifyListenerRequest) (response *ModifyListenerResponse, err error)
- func (c *Client) ModifyLoadBalancerAttributes(request *ModifyLoadBalancerAttributesRequest) (response *ModifyLoadBalancerAttributesResponse, err error)
- func (c *Client) ModifyLoadBalancerAttributesWithContext(ctx context.Context, request *ModifyLoadBalancerAttributesRequest) (response *ModifyLoadBalancerAttributesResponse, err error)
- func (c *Client) ModifyLoadBalancerSla(request *ModifyLoadBalancerSlaRequest) (response *ModifyLoadBalancerSlaResponse, err error)
- func (c *Client) ModifyLoadBalancerSlaWithContext(ctx context.Context, request *ModifyLoadBalancerSlaRequest) (response *ModifyLoadBalancerSlaResponse, err error)
- func (c *Client) ModifyLoadBalancersProject(request *ModifyLoadBalancersProjectRequest) (response *ModifyLoadBalancersProjectResponse, err error)
- func (c *Client) ModifyLoadBalancersProjectWithContext(ctx context.Context, request *ModifyLoadBalancersProjectRequest) (response *ModifyLoadBalancersProjectResponse, err error)
- func (c *Client) ModifyRule(request *ModifyRuleRequest) (response *ModifyRuleResponse, err error)
- func (c *Client) ModifyRuleWithContext(ctx context.Context, request *ModifyRuleRequest) (response *ModifyRuleResponse, err error)
- func (c *Client) ModifyTargetGroupAttribute(request *ModifyTargetGroupAttributeRequest) (response *ModifyTargetGroupAttributeResponse, err error)
- func (c *Client) ModifyTargetGroupAttributeWithContext(ctx context.Context, request *ModifyTargetGroupAttributeRequest) (response *ModifyTargetGroupAttributeResponse, err error)
- func (c *Client) ModifyTargetGroupInstancesPort(request *ModifyTargetGroupInstancesPortRequest) (response *ModifyTargetGroupInstancesPortResponse, err error)
- func (c *Client) ModifyTargetGroupInstancesPortWithContext(ctx context.Context, request *ModifyTargetGroupInstancesPortRequest) (response *ModifyTargetGroupInstancesPortResponse, err error)
- func (c *Client) ModifyTargetGroupInstancesWeight(request *ModifyTargetGroupInstancesWeightRequest) (response *ModifyTargetGroupInstancesWeightResponse, err error)
- func (c *Client) ModifyTargetGroupInstancesWeightWithContext(ctx context.Context, request *ModifyTargetGroupInstancesWeightRequest) (response *ModifyTargetGroupInstancesWeightResponse, err error)
- func (c *Client) ModifyTargetPort(request *ModifyTargetPortRequest) (response *ModifyTargetPortResponse, err error)
- func (c *Client) ModifyTargetPortWithContext(ctx context.Context, request *ModifyTargetPortRequest) (response *ModifyTargetPortResponse, err error)
- func (c *Client) ModifyTargetWeight(request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error)
- func (c *Client) ModifyTargetWeightWithContext(ctx context.Context, request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error)
- func (c *Client) RegisterFunctionTargets(request *RegisterFunctionTargetsRequest) (response *RegisterFunctionTargetsResponse, err error)
- func (c *Client) RegisterFunctionTargetsWithContext(ctx context.Context, request *RegisterFunctionTargetsRequest) (response *RegisterFunctionTargetsResponse, err error)
- func (c *Client) RegisterTargetGroupInstances(request *RegisterTargetGroupInstancesRequest) (response *RegisterTargetGroupInstancesResponse, err error)
- func (c *Client) RegisterTargetGroupInstancesWithContext(ctx context.Context, 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) RegisterTargetsWithClassicalLBWithContext(ctx context.Context, request *RegisterTargetsWithClassicalLBRequest) (response *RegisterTargetsWithClassicalLBResponse, err error)
- func (c *Client) RegisterTargetsWithContext(ctx context.Context, request *RegisterTargetsRequest) (response *RegisterTargetsResponse, err error)
- func (c *Client) ReplaceCertForLoadBalancers(request *ReplaceCertForLoadBalancersRequest) (response *ReplaceCertForLoadBalancersResponse, err error)
- func (c *Client) ReplaceCertForLoadBalancersWithContext(ctx context.Context, request *ReplaceCertForLoadBalancersRequest) (response *ReplaceCertForLoadBalancersResponse, err error)
- func (c *Client) SetCustomizedConfigForLoadBalancer(request *SetCustomizedConfigForLoadBalancerRequest) (response *SetCustomizedConfigForLoadBalancerResponse, err error)
- func (c *Client) SetCustomizedConfigForLoadBalancerWithContext(ctx context.Context, request *SetCustomizedConfigForLoadBalancerRequest) (response *SetCustomizedConfigForLoadBalancerResponse, err error)
- func (c *Client) SetLoadBalancerClsLog(request *SetLoadBalancerClsLogRequest) (response *SetLoadBalancerClsLogResponse, err error)
- func (c *Client) SetLoadBalancerClsLogWithContext(ctx context.Context, request *SetLoadBalancerClsLogRequest) (response *SetLoadBalancerClsLogResponse, err error)
- func (c *Client) SetLoadBalancerSecurityGroups(request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error)
- func (c *Client) SetLoadBalancerSecurityGroupsWithContext(ctx context.Context, request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error)
- func (c *Client) SetLoadBalancerStartStatus(request *SetLoadBalancerStartStatusRequest) (response *SetLoadBalancerStartStatusResponse, err error)
- func (c *Client) SetLoadBalancerStartStatusWithContext(ctx context.Context, request *SetLoadBalancerStartStatusRequest) (response *SetLoadBalancerStartStatusResponse, err error)
- func (c *Client) SetSecurityGroupForLoadbalancers(request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error)
- func (c *Client) SetSecurityGroupForLoadbalancersWithContext(ctx context.Context, request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error)
- type CloneLoadBalancerRequest
- type CloneLoadBalancerRequestParams
- type CloneLoadBalancerResponse
- type CloneLoadBalancerResponseParams
- type ClusterItem
- type ConfigListItem
- type CreateClsLogSetRequest
- type CreateClsLogSetRequestParams
- type CreateClsLogSetResponse
- type CreateClsLogSetResponseParams
- type CreateListenerRequest
- type CreateListenerRequestParams
- type CreateListenerResponse
- type CreateListenerResponseParams
- type CreateLoadBalancerRequest
- type CreateLoadBalancerRequestParams
- type CreateLoadBalancerResponse
- type CreateLoadBalancerResponseParams
- type CreateLoadBalancerSnatIpsRequest
- type CreateLoadBalancerSnatIpsRequestParams
- type CreateLoadBalancerSnatIpsResponse
- type CreateLoadBalancerSnatIpsResponseParams
- type CreateRuleRequest
- type CreateRuleRequestParams
- type CreateRuleResponse
- type CreateRuleResponseParams
- type CreateTargetGroupRequest
- type CreateTargetGroupRequestParams
- type CreateTargetGroupResponse
- type CreateTargetGroupResponseParams
- type CreateTopicRequest
- type CreateTopicRequestParams
- type CreateTopicResponse
- type CreateTopicResponseParams
- type CrossTargets
- type DeleteCustomizedConfigRequest
- type DeleteCustomizedConfigRequestParams
- type DeleteCustomizedConfigResponse
- type DeleteCustomizedConfigResponseParams
- type DeleteListenerRequest
- type DeleteListenerRequestParams
- type DeleteListenerResponse
- type DeleteListenerResponseParams
- type DeleteLoadBalancerListenersRequest
- type DeleteLoadBalancerListenersRequestParams
- type DeleteLoadBalancerListenersResponse
- type DeleteLoadBalancerListenersResponseParams
- type DeleteLoadBalancerRequest
- type DeleteLoadBalancerRequestParams
- type DeleteLoadBalancerResponse
- type DeleteLoadBalancerResponseParams
- type DeleteLoadBalancerSnatIpsRequest
- type DeleteLoadBalancerSnatIpsRequestParams
- type DeleteLoadBalancerSnatIpsResponse
- type DeleteLoadBalancerSnatIpsResponseParams
- type DeleteRewriteRequest
- type DeleteRewriteRequestParams
- type DeleteRewriteResponse
- type DeleteRewriteResponseParams
- type DeleteRuleRequest
- type DeleteRuleRequestParams
- type DeleteRuleResponse
- type DeleteRuleResponseParams
- type DeleteTargetGroupsRequest
- type DeleteTargetGroupsRequestParams
- type DeleteTargetGroupsResponse
- type DeleteTargetGroupsResponseParams
- type DeregisterFunctionTargetsRequest
- type DeregisterFunctionTargetsRequestParams
- type DeregisterFunctionTargetsResponse
- type DeregisterFunctionTargetsResponseParams
- type DeregisterTargetGroupInstancesRequest
- type DeregisterTargetGroupInstancesRequestParams
- type DeregisterTargetGroupInstancesResponse
- type DeregisterTargetGroupInstancesResponseParams
- type DeregisterTargetsFromClassicalLBRequest
- type DeregisterTargetsFromClassicalLBRequestParams
- type DeregisterTargetsFromClassicalLBResponse
- type DeregisterTargetsFromClassicalLBResponseParams
- type DeregisterTargetsRequest
- type DeregisterTargetsRequestParams
- type DeregisterTargetsResponse
- type DeregisterTargetsResponseParams
- type DescribeBlockIPListRequest
- type DescribeBlockIPListRequestParams
- type DescribeBlockIPListResponse
- type DescribeBlockIPListResponseParams
- type DescribeBlockIPTaskRequest
- type DescribeBlockIPTaskRequestParams
- type DescribeBlockIPTaskResponse
- type DescribeBlockIPTaskResponseParams
- type DescribeClassicalLBByInstanceIdRequest
- type DescribeClassicalLBByInstanceIdRequestParams
- type DescribeClassicalLBByInstanceIdResponse
- type DescribeClassicalLBByInstanceIdResponseParams
- type DescribeClassicalLBHealthStatusRequest
- type DescribeClassicalLBHealthStatusRequestParams
- type DescribeClassicalLBHealthStatusResponse
- type DescribeClassicalLBHealthStatusResponseParams
- type DescribeClassicalLBListenersRequest
- type DescribeClassicalLBListenersRequestParams
- type DescribeClassicalLBListenersResponse
- type DescribeClassicalLBListenersResponseParams
- type DescribeClassicalLBTargetsRequest
- type DescribeClassicalLBTargetsRequestParams
- type DescribeClassicalLBTargetsResponse
- type DescribeClassicalLBTargetsResponseParams
- type DescribeClsLogSetRequest
- type DescribeClsLogSetRequestParams
- type DescribeClsLogSetResponse
- type DescribeClsLogSetResponseParams
- type DescribeCrossTargetsRequest
- type DescribeCrossTargetsRequestParams
- type DescribeCrossTargetsResponse
- type DescribeCrossTargetsResponseParams
- type DescribeCustomizedConfigAssociateListRequest
- type DescribeCustomizedConfigAssociateListRequestParams
- type DescribeCustomizedConfigAssociateListResponse
- type DescribeCustomizedConfigAssociateListResponseParams
- type DescribeCustomizedConfigListRequest
- type DescribeCustomizedConfigListRequestParams
- type DescribeCustomizedConfigListResponse
- type DescribeCustomizedConfigListResponseParams
- type DescribeIdleLoadBalancersRequest
- type DescribeIdleLoadBalancersRequestParams
- type DescribeIdleLoadBalancersResponse
- type DescribeIdleLoadBalancersResponseParams
- type DescribeLBListenersRequest
- type DescribeLBListenersRequestParams
- type DescribeLBListenersResponse
- type DescribeLBListenersResponseParams
- type DescribeLBOperateProtectRequest
- type DescribeLBOperateProtectRequestParams
- type DescribeLBOperateProtectResponse
- type DescribeLBOperateProtectResponseParams
- type DescribeListenersRequest
- type DescribeListenersRequestParams
- type DescribeListenersResponse
- type DescribeListenersResponseParams
- type DescribeLoadBalancerListByCertIdRequest
- type DescribeLoadBalancerListByCertIdRequestParams
- type DescribeLoadBalancerListByCertIdResponse
- type DescribeLoadBalancerListByCertIdResponseParams
- type DescribeLoadBalancerOverviewRequest
- type DescribeLoadBalancerOverviewRequestParams
- type DescribeLoadBalancerOverviewResponse
- type DescribeLoadBalancerOverviewResponseParams
- type DescribeLoadBalancerTrafficRequest
- type DescribeLoadBalancerTrafficRequestParams
- type DescribeLoadBalancerTrafficResponse
- type DescribeLoadBalancerTrafficResponseParams
- type DescribeLoadBalancersDetailRequest
- type DescribeLoadBalancersDetailRequestParams
- type DescribeLoadBalancersDetailResponse
- type DescribeLoadBalancersDetailResponseParams
- type DescribeLoadBalancersRequest
- type DescribeLoadBalancersRequestParams
- type DescribeLoadBalancersResponse
- type DescribeLoadBalancersResponseParams
- type DescribeQuotaRequest
- type DescribeQuotaRequestParams
- type DescribeQuotaResponse
- type DescribeQuotaResponseParams
- type DescribeResourcesRequest
- type DescribeResourcesRequestParams
- type DescribeResourcesResponse
- type DescribeResourcesResponseParams
- type DescribeRewriteRequest
- type DescribeRewriteRequestParams
- type DescribeRewriteResponse
- type DescribeRewriteResponseParams
- type DescribeTargetGroupInstancesRequest
- type DescribeTargetGroupInstancesRequestParams
- type DescribeTargetGroupInstancesResponse
- type DescribeTargetGroupInstancesResponseParams
- type DescribeTargetGroupListRequest
- type DescribeTargetGroupListRequestParams
- type DescribeTargetGroupListResponse
- type DescribeTargetGroupListResponseParams
- type DescribeTargetGroupsRequest
- type DescribeTargetGroupsRequestParams
- type DescribeTargetGroupsResponse
- type DescribeTargetGroupsResponseParams
- type DescribeTargetHealthRequest
- type DescribeTargetHealthRequestParams
- type DescribeTargetHealthResponse
- type DescribeTargetHealthResponseParams
- type DescribeTargetsRequest
- type DescribeTargetsRequestParams
- type DescribeTargetsResponse
- type DescribeTargetsResponseParams
- type DescribeTaskStatusRequest
- type DescribeTaskStatusRequestParams
- type DescribeTaskStatusResponse
- type DescribeTaskStatusResponseParams
- type DisassociateCustomizedConfigRequest
- type DisassociateCustomizedConfigRequestParams
- type DisassociateCustomizedConfigResponse
- type DisassociateCustomizedConfigResponseParams
- type DisassociateTargetGroupsRequest
- type DisassociateTargetGroupsRequestParams
- type DisassociateTargetGroupsResponse
- type DisassociateTargetGroupsResponseParams
- type ExclusiveCluster
- type ExtraInfo
- type Filter
- type FunctionInfo
- type FunctionTarget
- type HealthCheck
- type IdleLoadBalancer
- type InquiryPriceCreateLoadBalancerRequest
- type InquiryPriceCreateLoadBalancerRequestParams
- type InquiryPriceCreateLoadBalancerResponse
- type InquiryPriceCreateLoadBalancerResponseParams
- type InquiryPriceModifyLoadBalancerRequest
- type InquiryPriceModifyLoadBalancerRequestParams
- type InquiryPriceModifyLoadBalancerResponse
- type InquiryPriceModifyLoadBalancerResponseParams
- type InquiryPriceRefundLoadBalancerRequest
- type InquiryPriceRefundLoadBalancerRequestParams
- type InquiryPriceRefundLoadBalancerResponse
- type InquiryPriceRefundLoadBalancerResponseParams
- type InquiryPriceRenewLoadBalancerRequest
- type InquiryPriceRenewLoadBalancerRequestParams
- type InquiryPriceRenewLoadBalancerResponse
- type InquiryPriceRenewLoadBalancerResponseParams
- type InternetAccessible
- type ItemPrice
- type LBChargePrepaid
- type LBItem
- type LBOperateProtectInfo
- type LbRsItem
- type LbRsTargets
- type Listener
- type ListenerBackend
- type ListenerHealth
- type ListenerItem
- type LoadBalancer
- type LoadBalancerDetail
- type LoadBalancerHealth
- type LoadBalancerTraffic
- type ManualRewriteRequest
- type ManualRewriteRequestParams
- type ManualRewriteResponse
- type ManualRewriteResponseParams
- type MigrateClassicalLoadBalancersRequest
- type MigrateClassicalLoadBalancersRequestParams
- type MigrateClassicalLoadBalancersResponse
- type MigrateClassicalLoadBalancersResponseParams
- type ModifyBlockIPListRequest
- type ModifyBlockIPListRequestParams
- type ModifyBlockIPListResponse
- type ModifyBlockIPListResponseParams
- type ModifyCustomizedConfigRequest
- type ModifyCustomizedConfigRequestParams
- type ModifyCustomizedConfigResponse
- type ModifyCustomizedConfigResponseParams
- type ModifyDomainAttributesRequest
- type ModifyDomainAttributesRequestParams
- type ModifyDomainAttributesResponse
- type ModifyDomainAttributesResponseParams
- type ModifyDomainRequest
- type ModifyDomainRequestParams
- type ModifyDomainResponse
- type ModifyDomainResponseParams
- type ModifyFunctionTargetsRequest
- type ModifyFunctionTargetsRequestParams
- type ModifyFunctionTargetsResponse
- type ModifyFunctionTargetsResponseParams
- type ModifyListenerRequest
- type ModifyListenerRequestParams
- type ModifyListenerResponse
- type ModifyListenerResponseParams
- type ModifyLoadBalancerAttributesRequest
- type ModifyLoadBalancerAttributesRequestParams
- type ModifyLoadBalancerAttributesResponse
- type ModifyLoadBalancerAttributesResponseParams
- type ModifyLoadBalancerSlaRequest
- type ModifyLoadBalancerSlaRequestParams
- type ModifyLoadBalancerSlaResponse
- type ModifyLoadBalancerSlaResponseParams
- type ModifyLoadBalancersProjectRequest
- type ModifyLoadBalancersProjectRequestParams
- type ModifyLoadBalancersProjectResponse
- type ModifyLoadBalancersProjectResponseParams
- type ModifyRuleRequest
- type ModifyRuleRequestParams
- type ModifyRuleResponse
- type ModifyRuleResponseParams
- type ModifyTargetGroupAttributeRequest
- type ModifyTargetGroupAttributeRequestParams
- type ModifyTargetGroupAttributeResponse
- type ModifyTargetGroupAttributeResponseParams
- type ModifyTargetGroupInstancesPortRequest
- type ModifyTargetGroupInstancesPortRequestParams
- type ModifyTargetGroupInstancesPortResponse
- type ModifyTargetGroupInstancesPortResponseParams
- type ModifyTargetGroupInstancesWeightRequest
- type ModifyTargetGroupInstancesWeightRequestParams
- type ModifyTargetGroupInstancesWeightResponse
- type ModifyTargetGroupInstancesWeightResponseParams
- type ModifyTargetPortRequest
- type ModifyTargetPortRequestParams
- type ModifyTargetPortResponse
- type ModifyTargetPortResponseParams
- type ModifyTargetWeightRequest
- type ModifyTargetWeightRequestParams
- type ModifyTargetWeightResponse
- type ModifyTargetWeightResponseParams
- type MultiCertInfo
- type OAuth
- type Price
- type Quota
- type RegisterFunctionTargetsRequest
- type RegisterFunctionTargetsRequestParams
- type RegisterFunctionTargetsResponse
- type RegisterFunctionTargetsResponseParams
- type RegisterTargetGroupInstancesRequest
- type RegisterTargetGroupInstancesRequestParams
- type RegisterTargetGroupInstancesResponse
- type RegisterTargetGroupInstancesResponseParams
- type RegisterTargetsRequest
- type RegisterTargetsRequestParams
- type RegisterTargetsResponse
- type RegisterTargetsResponseParams
- type RegisterTargetsWithClassicalLBRequest
- type RegisterTargetsWithClassicalLBRequestParams
- type RegisterTargetsWithClassicalLBResponse
- type RegisterTargetsWithClassicalLBResponseParams
- type ReplaceCertForLoadBalancersRequest
- type ReplaceCertForLoadBalancersRequestParams
- type ReplaceCertForLoadBalancersResponse
- type ReplaceCertForLoadBalancersResponseParams
- type Resource
- type ResourceAvailability
- type RewriteLocationMap
- type RewriteTarget
- type RsTagRule
- type RsWeightRule
- type RuleHealth
- type RuleInput
- type RuleOutput
- type RuleTargets
- type RulesItems
- type SetCustomizedConfigForLoadBalancerRequest
- type SetCustomizedConfigForLoadBalancerRequestParams
- type SetCustomizedConfigForLoadBalancerResponse
- type SetCustomizedConfigForLoadBalancerResponseParams
- type SetLoadBalancerClsLogRequest
- type SetLoadBalancerClsLogRequestParams
- type SetLoadBalancerClsLogResponse
- type SetLoadBalancerClsLogResponseParams
- type SetLoadBalancerSecurityGroupsRequest
- type SetLoadBalancerSecurityGroupsRequestParams
- type SetLoadBalancerSecurityGroupsResponse
- type SetLoadBalancerSecurityGroupsResponseParams
- type SetLoadBalancerStartStatusRequest
- type SetLoadBalancerStartStatusRequestParams
- type SetLoadBalancerStartStatusResponse
- type SetLoadBalancerStartStatusResponseParams
- type SetSecurityGroupForLoadbalancersRequest
- type SetSecurityGroupForLoadbalancersRequestParams
- type SetSecurityGroupForLoadbalancersResponse
- type SetSecurityGroupForLoadbalancersResponseParams
- type SlaUpdateParam
- type SnatIp
- type SpecAvailability
- type TagInfo
- type Target
- type TargetGroupAssociation
- type TargetGroupBackend
- type TargetGroupHealthCheck
- type TargetGroupInfo
- type TargetGroupInstance
- type TargetHealth
- type TargetRegionInfo
- type TypeInfo
- type ZoneInfo
- type ZoneResource
Constants ¶
const ( // CAM signature/authentication error AUTHFAILURE = "AuthFailure" // Token error. AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure" // DryRun operation, which means the DryRun parameter is passed in yet the request will still be successful. DRYRUNOPERATION = "DryRunOperation" // Operation failed. FAILEDOPERATION = "FailedOperation" // Instance deletion is determined to be a high-risk operation through frequency verification. Please check the business or try again later. FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk" // Exceptional CLB instance status FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus" // Instances without listeners cannot be stopped. FAILEDOPERATION_NOLISTENERINLB = "FailedOperation.NoListenerInLB" // The specified resource is being cloned. please try again later. FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning" // The specified resource is currently being operated. Please try again later. FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" // Instance deletion is determined to be a high-risk operation through rule quantity verification. To forcibly delete the instance, set the forced verification parameter ForceDelete to true. FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk" // Instance deletion is determined to be a high-risk operation through traffic verification. To forcibly delete the instance, set the forced verification parameter ForceDelete to true. FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk" // Internal error. INTERNALERROR = "InternalError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // To ensure no resource leakage and maintain the ID idempotence of created resources, ClientToken is used to create resources. If the order process has ended and shipment failed, or the order process has not been updated for a long time, a message will indicate that the current ClientToken has timed out. INVALIDPARAMETER_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded" // Wrong parameter format. INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" // Failed to query the parameter INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" // Wrong CLB instance ID. INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" // Wrong listener ID. INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" // Unable to find eligible forwarding rules. INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" // Listener port checks failed due to port conflicts or other reasons. INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" // Listener protocol checks failed because the protocol used is incompatible with the corresponding operation. INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" // Invalid region. INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" // The forwarding rule has already been bound to a redirection relationship. INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist" // Some redirection rules do not exist. INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound" // Incorrect parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // Duplicate parameter value. INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // Incorrect `Filter` parameter. INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" // Wrong parameter length. INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" // Wrong parameter value range. INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // Quota exceeded. LIMITEXCEEDED = "LimitExceeded" // Missing parameter. MISSINGPARAMETER = "MissingParameter" // Operation denied. OPERATIONDENIED = "OperationDenied" // The number of requests exceeds the frequency limit. REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // The resource is occupied. RESOURCEINUSE = "ResourceInUse" // Insufficient resources. RESOURCEINSUFFICIENT = "ResourceInsufficient" // Resources do not exist. RESOURCENOTFOUND = "ResourceNotFound" // The resources have been sold out. RESOURCESSOLDOUT = "ResourcesSoldOut" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" )
const APIVersion = "2018-03-17"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCustomizedConfigRequest ¶
type AddCustomizedConfigRequest struct {
*tchttp.BaseRequest
// Configuration name
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// Configuration type. valid values: ["CLB", "SERVER", "LOCATION"], respectively indicating CLB configuration, SERVER configuration, and LOCATION configuration.
ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
// Specifies the configuration content.
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
// Tag.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
}
func NewAddCustomizedConfigRequest ¶
func NewAddCustomizedConfigRequest() (request *AddCustomizedConfigRequest)
func (*AddCustomizedConfigRequest) FromJsonString ¶
func (r *AddCustomizedConfigRequest) 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 (*AddCustomizedConfigRequest) ToJsonString ¶
func (r *AddCustomizedConfigRequest) ToJsonString() string
type AddCustomizedConfigRequestParams ¶
type AddCustomizedConfigRequestParams struct {
// Configuration name
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// Configuration type. valid values: ["CLB", "SERVER", "LOCATION"], respectively indicating CLB configuration, SERVER configuration, and LOCATION configuration.
ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
// Specifies the configuration content.
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
// Tag.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
}
Predefined struct for user
type AddCustomizedConfigResponse ¶
type AddCustomizedConfigResponse struct {
*tchttp.BaseResponse
Response *AddCustomizedConfigResponseParams `json:"Response"`
}
func NewAddCustomizedConfigResponse ¶
func NewAddCustomizedConfigResponse() (response *AddCustomizedConfigResponse)
func (*AddCustomizedConfigResponse) FromJsonString ¶
func (r *AddCustomizedConfigResponse) 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 (*AddCustomizedConfigResponse) ToJsonString ¶
func (r *AddCustomizedConfigResponse) ToJsonString() string
type AddCustomizedConfigResponseParams ¶
type AddCustomizedConfigResponseParams struct {
// Configuration ID.
ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type AssociateCustomizedConfigRequest ¶
type AssociateCustomizedConfigRequest struct {
*tchttp.BaseRequest
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Associated server or location
BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
}
func NewAssociateCustomizedConfigRequest ¶
func NewAssociateCustomizedConfigRequest() (request *AssociateCustomizedConfigRequest)
func (*AssociateCustomizedConfigRequest) FromJsonString ¶
func (r *AssociateCustomizedConfigRequest) 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 (*AssociateCustomizedConfigRequest) ToJsonString ¶
func (r *AssociateCustomizedConfigRequest) ToJsonString() string
type AssociateCustomizedConfigRequestParams ¶
type AssociateCustomizedConfigRequestParams struct {
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Associated server or location
BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
}
Predefined struct for user
type AssociateCustomizedConfigResponse ¶
type AssociateCustomizedConfigResponse struct {
*tchttp.BaseResponse
Response *AssociateCustomizedConfigResponseParams `json:"Response"`
}
func NewAssociateCustomizedConfigResponse ¶
func NewAssociateCustomizedConfigResponse() (response *AssociateCustomizedConfigResponse)
func (*AssociateCustomizedConfigResponse) FromJsonString ¶
func (r *AssociateCustomizedConfigResponse) 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 (*AssociateCustomizedConfigResponse) ToJsonString ¶
func (r *AssociateCustomizedConfigResponse) ToJsonString() string
type AssociateCustomizedConfigResponseParams ¶
type AssociateCustomizedConfigResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type AssociateTargetGroupsRequest ¶
type AssociateTargetGroupsRequest struct {
*tchttp.BaseRequest
// Specifies the binding relationship array. the target group type should be the same.
// Specifies the maximum number of requests supported in a single request is 20.
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
func 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 AssociateTargetGroupsRequestParams ¶
type AssociateTargetGroupsRequestParams struct {
// Specifies the binding relationship array. the target group type should be the same.
// Specifies the maximum number of requests supported in a single request is 20.
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
Predefined struct for user
type AssociateTargetGroupsResponse ¶
type AssociateTargetGroupsResponse struct {
*tchttp.BaseResponse
Response *AssociateTargetGroupsResponseParams `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 AssociateTargetGroupsResponseParams ¶
type AssociateTargetGroupsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type AssociationItem ¶
type AssociationItem struct {
// ID of associated CLB instance
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of associated listener
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// ID of associated forwarding rule
// Note: this field may return null, indicating that no valid values can be obtained.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Protocol type of associated listener, such as HTTP or TCP
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Port of associated listener
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Domain name of associated forwarding rule
// Note: this field may return null, indicating that no valid values can be obtained.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// URL of associated forwarding rule
// Note: this field may return null, indicating that no valid values can be obtained.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// CLB instance name
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Listener name
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// Weight associated with the target group. this parameter takes effect only for the new version v2 target group.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Advanced routing rule ID.
RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}
type AutoRewriteRequest ¶
type AutoRewriteRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// `HTTPS:443` listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// The domain name to be redirected under the listener `HTTPS:443`. If it is left empty, all domain names under the listener `HTTPS:443` will be configured with redirects.
Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
// Redirection status code. Valid values: 301, 302, and 307.
RewriteCodes []*int64 `json:"RewriteCodes,omitnil,omitempty" name:"RewriteCodes"`
// Whether the matched URL is carried in redirection.
TakeUrls []*bool `json:"TakeUrls,omitnil,omitempty" name:"TakeUrls"`
}
func 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 AutoRewriteRequestParams ¶
type AutoRewriteRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// `HTTPS:443` listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// The domain name to be redirected under the listener `HTTPS:443`. If it is left empty, all domain names under the listener `HTTPS:443` will be configured with redirects.
Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
// Redirection status code. Valid values: 301, 302, and 307.
RewriteCodes []*int64 `json:"RewriteCodes,omitnil,omitempty" name:"RewriteCodes"`
// Whether the matched URL is carried in redirection.
TakeUrls []*bool `json:"TakeUrls,omitnil,omitempty" name:"TakeUrls"`
}
Predefined struct for user
type AutoRewriteResponse ¶
type AutoRewriteResponse struct {
*tchttp.BaseResponse
Response *AutoRewriteResponseParams `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 AutoRewriteResponseParams ¶
type AutoRewriteResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type Backend ¶
type Backend struct {
// Specifies the backend service type. valid values: CVM, ENI, CCN, EVM, GLOBALROUTE, NAT, SRV.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Unique ID of a real server, which can be obtained from the unInstanceId field in the return of the DescribeInstances API
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Specifies the listening port of the backend service. if it is a full listening target group bound to a port range listener, this port returns 0, indicating an invalid port. the port of the bound backend service follows the listener port.
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Forwarding weight of a real server. Value range: [0, 100]. Default value: 10.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Public IP of a real server
// Note: This field may return null, indicating that no valid values can be obtained.
PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
// Private network IP of the real server
PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
// Real server instance names
// Note: This field may return null, indicating that no valid values can be obtained.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Real server binding time
RegisteredTime *string `json:"RegisteredTime,omitnil,omitempty" name:"RegisteredTime"`
// Unique ENI ID
// Note: This field may return null, indicating that no valid values can be obtained.
EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
// Tag.
Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
}
type BasicTargetGroupInfo ¶
type BasicTargetGroupInfo struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Target group name
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
// Specifies the weight of the target group.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type BatchDeregisterTargetsRequest ¶
type BatchDeregisterTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Unbinding targets
Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
}
func 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 BatchDeregisterTargetsRequestParams ¶
type BatchDeregisterTargetsRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Unbinding targets
Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
}
Predefined struct for user
type BatchDeregisterTargetsResponse ¶
type BatchDeregisterTargetsResponse struct {
*tchttp.BaseResponse
Response *BatchDeregisterTargetsResponseParams `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 BatchDeregisterTargetsResponseParams ¶
type BatchDeregisterTargetsResponseParams struct {
// IDs of the listeners failed to unbind
FailListenerIdSet []*string `json:"FailListenerIdSet,omitnil,omitempty" name:"FailListenerIdSet"`
// Failed to unbind error reason information.
Message *string `json:"Message,omitnil,omitempty" name:"Message"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type BatchModifyTargetTagRequest ¶
type BatchModifyTargetTagRequest struct {
*tchttp.BaseRequest
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of tags to be modified in batches.
ModifyList []*RsTagRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
}
func NewBatchModifyTargetTagRequest ¶
func NewBatchModifyTargetTagRequest() (request *BatchModifyTargetTagRequest)
func (*BatchModifyTargetTagRequest) FromJsonString ¶
func (r *BatchModifyTargetTagRequest) 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 (*BatchModifyTargetTagRequest) ToJsonString ¶
func (r *BatchModifyTargetTagRequest) ToJsonString() string
type BatchModifyTargetTagRequestParams ¶
type BatchModifyTargetTagRequestParams struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of tags to be modified in batches.
ModifyList []*RsTagRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
}
Predefined struct for user
type BatchModifyTargetTagResponse ¶
type BatchModifyTargetTagResponse struct {
*tchttp.BaseResponse
Response *BatchModifyTargetTagResponseParams `json:"Response"`
}
func NewBatchModifyTargetTagResponse ¶
func NewBatchModifyTargetTagResponse() (response *BatchModifyTargetTagResponse)
func (*BatchModifyTargetTagResponse) FromJsonString ¶
func (r *BatchModifyTargetTagResponse) 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 (*BatchModifyTargetTagResponse) ToJsonString ¶
func (r *BatchModifyTargetTagResponse) ToJsonString() string
type BatchModifyTargetTagResponseParams ¶
type BatchModifyTargetTagResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type BatchModifyTargetWeightRequest ¶
type BatchModifyTargetWeightRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of weights to be modified in batches
ModifyList []*RsWeightRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
}
func 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 BatchModifyTargetWeightRequestParams ¶
type BatchModifyTargetWeightRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of weights to be modified in batches
ModifyList []*RsWeightRule `json:"ModifyList,omitnil,omitempty" name:"ModifyList"`
}
Predefined struct for user
type BatchModifyTargetWeightResponse ¶
type BatchModifyTargetWeightResponse struct {
*tchttp.BaseResponse
Response *BatchModifyTargetWeightResponseParams `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 BatchModifyTargetWeightResponseParams ¶
type BatchModifyTargetWeightResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type BatchRegisterTargetsRequest ¶
type BatchRegisterTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Binding target
Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
}
func 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 BatchRegisterTargetsRequestParams ¶
type BatchRegisterTargetsRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Binding target
Targets []*BatchTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
}
Predefined struct for user
type BatchRegisterTargetsResponse ¶
type BatchRegisterTargetsResponse struct {
*tchttp.BaseResponse
Response *BatchRegisterTargetsResponseParams `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 BatchRegisterTargetsResponseParams ¶
type BatchRegisterTargetsResponseParams struct {
// ID of the listener failed to bind. Empty indicates all listeners are bound successfully.
FailListenerIdSet []*string `json:"FailListenerIdSet,omitnil,omitempty" name:"FailListenerIdSet"`
// Information of the binding failure cause.
Message *string `json:"Message,omitnil,omitempty" name:"Message"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type BatchTarget ¶
type BatchTarget struct {
// Listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// The port to Bind
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// CVM instance ID. The primary IP of the primary ENI will be bound.
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// It is required for binding an IP. It supports an ENI IP or any other private IP. To bind an ENI IP, the ENI should be bound to a CVM instance before being bound to a CLB instance.
// Note: either `InstanceId` or `EniIp` must be passed in, which is required for binding a dual-stack IPv6 CVM instance.
EniIp *string `json:"EniIp,omitnil,omitempty" name:"EniIp"`
// Weight of the CVM instance. Value range: [0, 100]. If it is not specified for binding the instance, 10 will be used by default.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Layer-7 rule ID. This parameter is required for Layer-7 CLB.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Tag.
Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
}
type BindDetailItem ¶
type BindDetailItem struct {
// Specifies the ID of CLB to be bound
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the listener bound to the configuration
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Domain name bound to the configuration
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule bound to the configuration
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Listener name
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// Listener protocol
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port
Vport *int64 `json:"Vport,omitnil,omitempty" name:"Vport"`
// URL of the location.
// Note: this field may return `null`, indicating that no valid values can be obtained.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
}
type BindItem ¶
type BindItem struct {
// ID of the CLB instance bound to the configuration
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the listener bound to the configuration
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Domain name bound to the configuration
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Rule bound to the configuration
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
}
type CertIdRelatedWithLoadBalancers ¶
type CertIdRelatedWithLoadBalancers struct {
// Certificate ID
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// List of CLB instances associated with the certificate
LoadBalancers []*LoadBalancer `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
}
type CertInfo ¶
type CertInfo struct {
// ID of the certificate. If it's not specified, `CertContent` and `CertKey` are required. For a server certificate, you also need to specify `CertName`.
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// Name of the uploaded certificate. It's required if `CertId` is not specified.
CertName *string `json:"CertName,omitnil,omitempty" name:"CertName"`
// Public key of the uploaded certificate. This is required if `CertId` is not specified.
CertContent *string `json:"CertContent,omitnil,omitempty" name:"CertContent"`
// Private key of the uploaded server certificate. This is required if `CertId` is not specified.
CertKey *string `json:"CertKey,omitnil,omitempty" name:"CertKey"`
}
type CertificateInput ¶
type CertificateInput struct {
// Authentication type. UNIDIRECTIONAL: one-way authentication; MUTUAL: mutual authentication.
// Default value: UNIDIRECTIONAL.
SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
// Whether to enable client authentication for mutual authentication. ON: enable it; OPTIONAL: client certificate not required. Default value: ON.
SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
// Server certificate ID. If this parameter is not specified, you need to upload a certificate and specify CertContent (server certificate content), CertKey (server certificate key), and CertName (server certificate name).
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// ID of a client certificate. When the listener adopts mutual authentication (i.e., SSLMode = mutual), if you leave this parameter empty, you must upload the client certificate, including CertCaContent and CertCaName.
CertCaId *string `json:"CertCaId,omitnil,omitempty" name:"CertCaId"`
// Name of the uploaded server certificate. If there is no CertId, this parameter is required.
CertName *string `json:"CertName,omitnil,omitempty" name:"CertName"`
// Key of the uploaded server certificate. If there is no CertId, this parameter is required.
CertKey *string `json:"CertKey,omitnil,omitempty" name:"CertKey"`
// Content of the uploaded server certificate. If there is no CertId, this parameter is required.
CertContent *string `json:"CertContent,omitnil,omitempty" name:"CertContent"`
// Upload client CA certificate name. if SSLMode=MUTUAL and there is no CertCaId, this parameter is required.
CertCaName *string `json:"CertCaName,omitnil,omitempty" name:"CertCaName"`
// Upload client certificate content. if SSLMode is MUTUAL and there is no CertCaId, this parameter is required.
CertCaContent *string `json:"CertCaContent,omitnil,omitempty" name:"CertCaContent"`
}
type CertificateOutput ¶
type CertificateOutput struct {
// Authentication type. Value range: UNIDIRECTIONAL (unidirectional authentication), MUTUAL (mutual authentication)
SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
// Specifies whether client certificate verification is enabled. this parameter is valid only when mutual authentication is enabled.
SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
// Server certificate ID.
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// Client certificate ID.
CertCaId *string `json:"CertCaId,omitnil,omitempty" name:"CertCaId"`
// Specifies the server certificate ID for multi-server certificate scenario expansion.
ExtCertIds []*string `json:"ExtCertIds,omitnil,omitempty" name:"ExtCertIds"`
}
type ClassicalHealth ¶
type ClassicalHealth struct {
// Private IP of a real server
IP *string `json:"IP,omitnil,omitempty" name:"IP"`
// Real server port
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// CLB listener port
ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
// Forwarding protocol
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Health check result. Value range: 1 (healthy), 0 (unhealthy)
HealthStatus *int64 `json:"HealthStatus,omitnil,omitempty" name:"HealthStatus"`
}
type ClassicalListener ¶
type ClassicalListener struct {
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// CLB listener port
ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
// Backend forwarding port of a listener
InstancePort *int64 `json:"InstancePort,omitnil,omitempty" name:"InstancePort"`
// Listener name
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// Listener protocol type
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Session persistence time
SessionExpire *int64 `json:"SessionExpire,omitnil,omitempty" name:"SessionExpire"`
// Whether health check is enabled. 1: enabled; 0: disabled.
HealthSwitch *int64 `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
// Response timeout period
TimeOut *int64 `json:"TimeOut,omitnil,omitempty" name:"TimeOut"`
// Check interval
IntervalTime *int64 `json:"IntervalTime,omitnil,omitempty" name:"IntervalTime"`
// Health threshold
HealthNum *int64 `json:"HealthNum,omitnil,omitempty" name:"HealthNum"`
// Unhealthy threshold
UnhealthNum *int64 `json:"UnhealthNum,omitnil,omitempty" name:"UnhealthNum"`
// Request balancing method for listeners of the classic public network CLB. An empty string or wrr indicates weighted round robin. ip_hash indicates consistent hashing based on the accessed source IP address. least_conn indicates least connections.
HttpHash *string `json:"HttpHash,omitnil,omitempty" name:"HttpHash"`
// Health check return code for HTTP and HTTPS listeners of a public network classic CLB. For more information, see the explanation of the field in the listener creating API.
HttpCode *int64 `json:"HttpCode,omitnil,omitempty" name:"HttpCode"`
// Health check path for HTTP and HTTPS listeners of a public network classic CLB
HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
// Authentication method for an HTTPS listener of a public network classic CLB
SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
// Server certificate ID for an HTTPS listener of a public network classic CLB
CertId *string `json:"CertId,omitnil,omitempty" name:"CertId"`
// Client certificate ID for an HTTPS listener of a public network classic CLB
CertCaId *string `json:"CertCaId,omitnil,omitempty" name:"CertCaId"`
// Listener status. Value range: 0 (creating), 1 (running)
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}
type ClassicalTarget ¶
type ClassicalTarget struct {
// Real server type. Value range: CVM, ENI (coming soon)
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Unique ID of a real server, which can be obtained from the unInstanceId field in the return of the DescribeInstances API
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Forwarding weight of a real server. Value range: [0, 100]. Default value: 10.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Public network IP of the real server
PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
// Private network IP of the real server
PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
// Instance name of the real server
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Backend service status.
// 1: failed; 2: running; 3: creating; 4: shut down; 5: returned; 6: returning; 7: restarting; 8: starting; 9: shutting down; 10: resetting password; 11: formatting; 12: making image; 13: setting bandwidth; 14: reinstalling system; 19: upgrading; 21: hot migrating.
RunFlag *int64 `json:"RunFlag,omitnil,omitempty" name:"RunFlag"`
}
type ClassicalTargetInfo ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddCustomizedConfig ¶
func (c *Client) AddCustomizedConfig(request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error)
AddCustomizedConfig This API is used to add new personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) AddCustomizedConfigWithContext ¶
func (c *Client) AddCustomizedConfigWithContext(ctx context.Context, request *AddCustomizedConfigRequest) (response *AddCustomizedConfigResponse, err error)
AddCustomizedConfig This API is used to add new personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) AssociateCustomizedConfig ¶
func (c *Client) AssociateCustomizedConfig(request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error)
AssociateCustomizedConfig This API is used to associate configurations with a server or location based on the configuration type. It is preparing for decommissioning, please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) AssociateCustomizedConfigWithContext ¶
func (c *Client) AssociateCustomizedConfigWithContext(ctx context.Context, request *AssociateCustomizedConfigRequest) (response *AssociateCustomizedConfigResponse, err error)
AssociateCustomizedConfig This API is used to associate configurations with a server or location based on the configuration type. It is preparing for decommissioning, please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) AssociateTargetGroups ¶
func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error)
AssociateTargetGroups This API is used to bind target groups to Cloud Load Balancer listeners (Layer-4 protocol) or forwarding rules (L7 protocol).
This API is asynchronous. After it returns a successful result, you need to call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as input parameter to check whether this task is successful.
This API is used to describe restrictions.
-Binding a legacy version target group to a Layer-4 listener requires the listener to have backend target groups enabled.
-Layer-7 bind target group. LocationId is a required item in the data structure TargetGroupAssociation.
-The VPC of the Cloud Load Balancer must match the VPC of the target group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) AssociateTargetGroupsWithContext ¶
func (c *Client) AssociateTargetGroupsWithContext(ctx context.Context, request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error)
AssociateTargetGroups This API is used to bind target groups to Cloud Load Balancer listeners (Layer-4 protocol) or forwarding rules (L7 protocol).
This API is asynchronous. After it returns a successful result, you need to call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as input parameter to check whether this task is successful.
This API is used to describe restrictions.
-Binding a legacy version target group to a Layer-4 listener requires the listener to have backend target groups enabled.
-Layer-7 bind target group. LocationId is a required item in the data structure TargetGroupAssociation.
-The VPC of the Cloud Load Balancer must match the VPC of the target group.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) AutoRewriteWithContext ¶
func (c *Client) AutoRewriteWithContext(ctx context.Context, 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 batch unbind real servers of the layer-4 and layer-7 VPC-based CLBs. Up to 500 real servers can be unbound in a batch.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) BatchDeregisterTargetsWithContext ¶
func (c *Client) BatchDeregisterTargetsWithContext(ctx context.Context, request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error)
BatchDeregisterTargets This API is used to batch unbind real servers of the layer-4 and layer-7 VPC-based CLBs. Up to 500 real servers can be unbound in a batch.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) BatchModifyTargetTag ¶
func (c *Client) BatchModifyTargetTag(request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error)
BatchModifyTargetTag This API is used to modify the tags of real servers bound to CLB listeners in batches. The maximum number of resources that can be modified in a batch is 500. This is a synchronous API. <br/> It is supported for Layer-4 and Layer-7 listeners of CLB instances, but not for classic CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) BatchModifyTargetTagWithContext ¶
func (c *Client) BatchModifyTargetTagWithContext(ctx context.Context, request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error)
BatchModifyTargetTag This API is used to modify the tags of real servers bound to CLB listeners in batches. The maximum number of resources that can be modified in a batch is 500. This is a synchronous API. <br/> It is supported for Layer-4 and Layer-7 listeners of CLB instances, but not for classic CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) BatchModifyTargetWeight ¶
func (c *Client) BatchModifyTargetWeight(request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error)
BatchModifyTargetWeight The BatchModifyTargetWeight API is used to batch modify the forwarding weight of backend machines bound to a CLB listener. The maximum resource quantity for batch modification is 500. This is an asynchronous API. After it returns a successful result, you need to call the DescribeTaskStatus API with the returned RequestID as input parameter to check whether this task is successful. This API supports both layer-4 and layer-7 CLB listeners but is unsupported for classic CLB.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) BatchModifyTargetWeightWithContext ¶
func (c *Client) BatchModifyTargetWeightWithContext(ctx context.Context, request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error)
BatchModifyTargetWeight The BatchModifyTargetWeight API is used to batch modify the forwarding weight of backend machines bound to a CLB listener. The maximum resource quantity for batch modification is 500. This is an asynchronous API. After it returns a successful result, you need to call the DescribeTaskStatus API with the returned RequestID as input parameter to check whether this task is successful. This API supports both layer-4 and layer-7 CLB listeners but is unsupported for classic CLB.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) BatchRegisterTargets ¶
func (c *Client) BatchRegisterTargets(request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error)
BatchRegisterTargets This API is used to batch bind CVM instances or ENIs. Up to 500 servers can be bound in a batch. It supports cross-region binding, layer-4 and layer-7 (TCP/UDP/HTTP/HTTPS) protocols, and VPC-based CLBs only.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) BatchRegisterTargetsWithContext ¶
func (c *Client) BatchRegisterTargetsWithContext(ctx context.Context, request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error)
BatchRegisterTargets This API is used to batch bind CVM instances or ENIs. Up to 500 servers can be bound in a batch. It supports cross-region binding, layer-4 and layer-7 (TCP/UDP/HTTP/HTTPS) protocols, and VPC-based CLBs only.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CloneLoadBalancer ¶
func (c *Client) CloneLoadBalancer(request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error)
CloneLoadBalancer This API is used to clone a load balancing instance with identical rules and binding relationships based on the designated Cloud Load Balancer. The cloning process is an asynchronous operation. The cloned data is based on the status when calling CloneLoadBalancer. If the source CLB changes after calling CloneLoadBalancer, the change rules will not be cloned.
Note: The instance creation status can be queried based on the returned requestId by accessing the DescribeTaskStatus API (https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1).
This API is used to describe restriction descriptions.
This API is used to set instance attribute restrictions.
-The cloning feature supports both pay-as-you-go and monthly subscription instances. For cloned monthly subscription instances, the new instance's network billing mode switches to billing by hourly bandwidth, with its bandwidth and specifications remaining consistent with the settings of the original instance.
-CLB instances not associated with billable items cannot be cloned (historic free activity creation).
-Classic CLB instances and Anti-DDoS CLBs cannot be cloned.
-Cloning of classic network-based instances is not supported.
-Anycast instances cannot be cloned.
-IPv6 NAT64 edition instances cannot be cloned.
-Blocked or frozen instances cannot be cloned.
-Before performing the cloning operation, make sure that all certificates used on the instance have not expired, otherwise cloning will fail.
This API is used to set quota dimension restrictions.
-Cloning is not supported when the number of instance listeners exceeds 50.
-Cloning is not supported when the public network bandwidth cap of a shared instance exceeds 2G.
This API is used to call APIs.
This API is used to specify the BGP bandwidth package ID.
This API is used to perform exclusive cluster cloning with corresponding parameters, otherwise shared instance creation will be used.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCESSOLDOUT = "ResourcesSoldOut"
func (*Client) CloneLoadBalancerWithContext ¶
func (c *Client) CloneLoadBalancerWithContext(ctx context.Context, request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error)
CloneLoadBalancer This API is used to clone a load balancing instance with identical rules and binding relationships based on the designated Cloud Load Balancer. The cloning process is an asynchronous operation. The cloned data is based on the status when calling CloneLoadBalancer. If the source CLB changes after calling CloneLoadBalancer, the change rules will not be cloned.
Note: The instance creation status can be queried based on the returned requestId by accessing the DescribeTaskStatus API (https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1).
This API is used to describe restriction descriptions.
This API is used to set instance attribute restrictions.
-The cloning feature supports both pay-as-you-go and monthly subscription instances. For cloned monthly subscription instances, the new instance's network billing mode switches to billing by hourly bandwidth, with its bandwidth and specifications remaining consistent with the settings of the original instance.
-CLB instances not associated with billable items cannot be cloned (historic free activity creation).
-Classic CLB instances and Anti-DDoS CLBs cannot be cloned.
-Cloning of classic network-based instances is not supported.
-Anycast instances cannot be cloned.
-IPv6 NAT64 edition instances cannot be cloned.
-Blocked or frozen instances cannot be cloned.
-Before performing the cloning operation, make sure that all certificates used on the instance have not expired, otherwise cloning will fail.
This API is used to set quota dimension restrictions.
-Cloning is not supported when the number of instance listeners exceeds 50.
-Cloning is not supported when the public network bandwidth cap of a shared instance exceeds 2G.
This API is used to call APIs.
This API is used to specify the BGP bandwidth package ID.
This API is used to perform exclusive cluster cloning with corresponding parameters, otherwise shared instance creation will be used.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCESSOLDOUT = "ResourcesSoldOut"
func (*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) CreateClsLogSetWithContext ¶
func (c *Client) CreateClsLogSetWithContext(ctx context.Context, 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 asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateListenerWithContext ¶
func (c *Client) CreateListenerWithContext(ctx context.Context, request *CreateListenerRequest) (response *CreateListenerResponse, err error)
CreateListener This API is used to create a listener for a CLB instance.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateLoadBalancerSnatIps ¶
func (c *Client) CreateLoadBalancerSnatIps(request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error)
CreateLoadBalancerSnatIps This API is used to add SnatIp for SnatPro Cloud Load Balancer. If SnatPro is not enabled, it will be auto on after adding SnatIp.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded"
func (*Client) CreateLoadBalancerSnatIpsWithContext ¶
func (c *Client) CreateLoadBalancerSnatIpsWithContext(ctx context.Context, request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error)
CreateLoadBalancerSnatIps This API is used to add SnatIp for SnatPro Cloud Load Balancer. If SnatPro is not enabled, it will be auto on after adding SnatIp.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded"
func (*Client) CreateLoadBalancerWithContext ¶
func (c *Client) CreateLoadBalancerWithContext(ctx context.Context, 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_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateRule ¶
func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleResponse, err error)
CreateRule This API is used to create forwarding rules under an existing layer-7 CLB listener. In layer-7 CLB listeners, backend services must be bound to rules instead of the listener.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateRuleWithContext ¶
func (c *Client) CreateRuleWithContext(ctx context.Context, request *CreateRuleRequest) (response *CreateRuleResponse, err error)
CreateRule This API is used to create forwarding rules under an existing layer-7 CLB listener. In layer-7 CLB listeners, backend services must be bound to rules instead of the listener.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) CreateTargetGroupWithContext ¶
func (c *Client) CreateTargetGroupWithContext(ctx context.Context, 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" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" 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) CreateTopicWithContext ¶
func (c *Client) CreateTopicWithContext(ctx context.Context, 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) DeleteCustomizedConfig ¶
func (c *Client) DeleteCustomizedConfig(request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error)
DeleteCustomizedConfig This API is used to delete personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteCustomizedConfigWithContext ¶
func (c *Client) DeleteCustomizedConfigWithContext(ctx context.Context, request *DeleteCustomizedConfigRequest) (response *DeleteCustomizedConfigResponse, err error)
DeleteCustomizedConfig This API is used to delete personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteListener ¶
func (c *Client) DeleteListener(request *DeleteListenerRequest) (response *DeleteListenerResponse, err error)
DeleteListener This API is used to delete listeners (layer-4 and layer-7) under a Cloud Load Balancer instance.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteListenerWithContext ¶
func (c *Client) DeleteListenerWithContext(ctx context.Context, request *DeleteListenerRequest) (response *DeleteListenerResponse, err error)
DeleteListener This API is used to delete listeners (layer-4 and layer-7) under a Cloud Load Balancer instance.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteLoadBalancer ¶
func (c *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error)
DeleteLoadBalancer This API is used to delete one or more specified CLB instances. After successful deletion, the listeners and forwarding rules under the CLB instance will be deleted together, and the backend service will be unbound.
This API is asynchronous. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk" FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk" FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteLoadBalancerListeners ¶
func (c *Client) DeleteLoadBalancerListeners(request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error)
DeleteLoadBalancerListeners This API is used to delete multiple listeners of Cloud Load Balancer.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteLoadBalancerListenersWithContext ¶
func (c *Client) DeleteLoadBalancerListenersWithContext(ctx context.Context, request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error)
DeleteLoadBalancerListeners This API is used to delete multiple listeners of Cloud Load Balancer.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteLoadBalancerSnatIps ¶
func (c *Client) DeleteLoadBalancerSnatIps(request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error)
DeleteLoadBalancerSnatIps This API is used to delete the SnatIp of the SnatPro load balancing.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded"
func (*Client) DeleteLoadBalancerSnatIpsWithContext ¶
func (c *Client) DeleteLoadBalancerSnatIpsWithContext(ctx context.Context, request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error)
DeleteLoadBalancerSnatIps This API is used to delete the SnatIp of the SnatPro load balancing.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded"
func (*Client) DeleteLoadBalancerWithContext ¶
func (c *Client) DeleteLoadBalancerWithContext(ctx context.Context, request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error)
DeleteLoadBalancer This API is used to delete one or more specified CLB instances. After successful deletion, the listeners and forwarding rules under the CLB instance will be deleted together, and the backend service will be unbound.
This API is asynchronous. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_FREQUENCYCHECKRISK = "FailedOperation.FrequencyCheckRisk" FAILEDOPERATION_TARGETNUMCHECKRISK = "FailedOperation.TargetNumCheckRisk" FAILEDOPERATION_TRAFFICCHECKRISK = "FailedOperation.TrafficCheckRisk" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) DeleteRewriteWithContext ¶
func (c *Client) DeleteRewriteWithContext(ctx context.Context, 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 is used to delete forwarding rules under a layer-7 listener of a load balancing instance.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteRuleWithContext ¶
func (c *Client) DeleteRuleWithContext(ctx context.Context, request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)
DeleteRule This API is used to delete forwarding rules under a layer-7 listener of a load balancing instance.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteTargetGroups ¶
func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)
DeleteTargetGroups This API is used to delete target groups in batches, with a maximum of 20 target groups at a time.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteTargetGroupsWithContext ¶
func (c *Client) DeleteTargetGroupsWithContext(ctx context.Context, request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)
DeleteTargetGroups This API is used to delete target groups in batches, with a maximum of 20 target groups at a time.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeregisterFunctionTargets ¶
func (c *Client) DeregisterFunctionTargets(request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error)
DeregisterFunctionTargets This API is used to unbind a cloud function from the forwarding rule of a Cloud Load Balancer. For a layer-7 (HTTP/HTTPS) listener, the forwarding rule must be specified by LocationId or Domain+Url.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
This API is used to describe restrictions.
-SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
-Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
-Classic CLB does not support binding SCF.
-Basic Network Type does not support binding SCF.
-CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
-Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
-Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
-CLB binding SCF only supports binding cloud functions of the "Event function" type.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeregisterFunctionTargetsWithContext ¶
func (c *Client) DeregisterFunctionTargetsWithContext(ctx context.Context, request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error)
DeregisterFunctionTargets This API is used to unbind a cloud function from the forwarding rule of a Cloud Load Balancer. For a layer-7 (HTTP/HTTPS) listener, the forwarding rule must be specified by LocationId or Domain+Url.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
This API is used to describe restrictions.
-SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
-Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
-Classic CLB does not support binding SCF.
-Basic Network Type does not support binding SCF.
-CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
-Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
-Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
-CLB binding SCF only supports binding cloud functions of the "Event function" type.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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 API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeregisterTargetGroupInstancesWithContext ¶
func (c *Client) DeregisterTargetGroupInstancesWithContext(ctx context.Context, request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error)
DeregisterTargetGroupInstances This API is used to unbind a server from a target group.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) DeregisterTargetsFromClassicalLBWithContext ¶
func (c *Client) DeregisterTargetsFromClassicalLBWithContext(ctx context.Context, 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) DeregisterTargetsWithContext ¶
func (c *Client) DeregisterTargetsWithContext(ctx context.Context, 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) 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) DescribeBlockIPListWithContext ¶
func (c *Client) DescribeBlockIPListWithContext(ctx context.Context, 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:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBlockIPTaskWithContext ¶
func (c *Client) DescribeBlockIPTaskWithContext(ctx context.Context, 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:
FAILEDOPERATION = "FailedOperation" 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) DescribeClassicalLBByInstanceIdWithContext ¶
func (c *Client) DescribeClassicalLBByInstanceIdWithContext(ctx context.Context, 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) DescribeClassicalLBHealthStatusWithContext ¶
func (c *Client) DescribeClassicalLBHealthStatusWithContext(ctx context.Context, 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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeClassicalLBListenersWithContext ¶
func (c *Client) DescribeClassicalLBListenersWithContext(ctx context.Context, 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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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) DescribeClassicalLBTargetsWithContext ¶
func (c *Client) DescribeClassicalLBTargetsWithContext(ctx context.Context, 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) DescribeClsLogSetWithContext ¶
func (c *Client) DescribeClsLogSetWithContext(ctx context.Context, 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) DescribeCrossTargets ¶
func (c *Client) DescribeCrossTargets(request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error)
DescribeCrossTargets Queries information of CVMs and ENIs that use cross-region binding 2.0
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeCrossTargetsWithContext ¶
func (c *Client) DescribeCrossTargetsWithContext(ctx context.Context, request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error)
DescribeCrossTargets Queries information of CVMs and ENIs that use cross-region binding 2.0
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) DescribeCustomizedConfigAssociateListWithContext ¶
func (c *Client) DescribeCustomizedConfigAssociateListWithContext(ctx context.Context, 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_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeCustomizedConfigListWithContext ¶
func (c *Client) DescribeCustomizedConfigListWithContext(ctx context.Context, 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_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeIdleLoadBalancers ¶
func (c *Client) DescribeIdleLoadBalancers(request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error)
DescribeIdleLoadBalancers Idle CLB instances are pay-as-you-go load balancers that, within seven days after the creation, do not have rules configured or the configured rules are not associated with any servers.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (*Client) DescribeIdleLoadBalancersWithContext ¶
func (c *Client) DescribeIdleLoadBalancersWithContext(ctx context.Context, request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error)
DescribeIdleLoadBalancers Idle CLB instances are pay-as-you-go load balancers that, within seven days after the creation, do not have rules configured or the configured rules are not associated with any servers.
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (*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" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeLBListenersWithContext ¶
func (c *Client) DescribeLBListenersWithContext(ctx context.Context, 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" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeLBOperateProtect ¶
func (c *Client) DescribeLBOperateProtect(request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error)
DescribeLBOperateProtect This API is used to query the operation protection info of Cloud Load Balancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" OPERATIONDENIED = "OperationDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeLBOperateProtectWithContext ¶
func (c *Client) DescribeLBOperateProtectWithContext(ctx context.Context, request *DescribeLBOperateProtectRequest) (response *DescribeLBOperateProtectResponse, err error)
DescribeLBOperateProtect This API is used to query the operation protection info of Cloud Load Balancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" OPERATIONDENIED = "OperationDenied" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DescribeListenersWithContext ¶
func (c *Client) DescribeListenersWithContext(ctx context.Context, 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" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" 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) DescribeLoadBalancerListByCertIdWithContext ¶
func (c *Client) DescribeLoadBalancerListByCertIdWithContext(ctx context.Context, 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) DescribeLoadBalancerOverview ¶
func (c *Client) DescribeLoadBalancerOverview(request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error)
DescribeLoadBalancerOverview Queries the total number of CLB instances and the number of CLB instances in different status (running, isolated and about to expire).
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
func (*Client) DescribeLoadBalancerOverviewWithContext ¶
func (c *Client) DescribeLoadBalancerOverviewWithContext(ctx context.Context, request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error)
DescribeLoadBalancerOverview Queries the total number of CLB instances and the number of CLB instances in different status (running, isolated and about to expire).
error code that may be returned:
AUTHFAILURE = "AuthFailure" DRYRUNOPERATION = "DryRunOperation" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
func (*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) DescribeLoadBalancerTrafficWithContext ¶
func (c *Client) DescribeLoadBalancerTrafficWithContext(ctx context.Context, 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" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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) DescribeLoadBalancersDetailWithContext ¶
func (c *Client) DescribeLoadBalancersDetailWithContext(ctx context.Context, 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) DescribeLoadBalancersWithContext ¶
func (c *Client) DescribeLoadBalancersWithContext(ctx context.Context, 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" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeQuotaWithContext ¶
func (c *Client) DescribeQuotaWithContext(ctx context.Context, 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" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeResources ¶
func (c *Client) DescribeResources(request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error)
DescribeResources This API is used to query the list of AZs and resources supported for the user in the current region.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (*Client) DescribeResourcesWithContext ¶
func (c *Client) DescribeResourcesWithContext(ctx context.Context, request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error)
DescribeResources This API is used to query the list of AZs and resources supported for the user in the current region.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (*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) DescribeRewriteWithContext ¶
func (c *Client) DescribeRewriteWithContext(ctx context.Context, 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) DescribeTargetGroupInstancesWithContext ¶
func (c *Client) DescribeTargetGroupInstancesWithContext(ctx context.Context, 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) DescribeTargetGroupListWithContext ¶
func (c *Client) DescribeTargetGroupListWithContext(ctx context.Context, 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) DescribeTargetGroupsWithContext ¶
func (c *Client) DescribeTargetGroupsWithContext(ctx context.Context, 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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeTargetHealthWithContext ¶
func (c *Client) DescribeTargetHealthWithContext(ctx context.Context, 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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeTargetsWithContext ¶
func (c *Client) DescribeTargetsWithContext(ctx context.Context, 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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
func (*Client) DescribeTaskStatusWithContext ¶
func (c *Client) DescribeTaskStatusWithContext(ctx context.Context, 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" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
func (*Client) DisassociateCustomizedConfig ¶
func (c *Client) DisassociateCustomizedConfig(request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error)
DisassociateCustomizedConfig This API is used to disassociate personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DisassociateCustomizedConfigWithContext ¶
func (c *Client) DisassociateCustomizedConfigWithContext(ctx context.Context, request *DisassociateCustomizedConfigRequest) (response *DisassociateCustomizedConfigResponse, err error)
DisassociateCustomizedConfig This API is used to disassociate personalized configurations and prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DisassociateTargetGroups ¶
func (c *Client) DisassociateTargetGroups(request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error)
DisassociateTargetGroups This API is used to disassociate a target group from a rule.
This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
When unbinding a Layer 7 forwarding rule, LocationId is a required item.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DisassociateTargetGroupsWithContext ¶
func (c *Client) DisassociateTargetGroupsWithContext(ctx context.Context, request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error)
DisassociateTargetGroups This API is used to disassociate a target group from a rule.
This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
When unbinding a Layer 7 forwarding rule, LocationId is a required item.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) InquiryPriceCreateLoadBalancer ¶
func (c *Client) InquiryPriceCreateLoadBalancer(request *InquiryPriceCreateLoadBalancerRequest) (response *InquiryPriceCreateLoadBalancerResponse, err error)
InquiryPriceCreateLoadBalancer This API is used to query the price of creating a CLB instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) InquiryPriceCreateLoadBalancerWithContext ¶
func (c *Client) InquiryPriceCreateLoadBalancerWithContext(ctx context.Context, request *InquiryPriceCreateLoadBalancerRequest) (response *InquiryPriceCreateLoadBalancerResponse, err error)
InquiryPriceCreateLoadBalancer This API is used to query the price of creating a CLB instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) InquiryPriceModifyLoadBalancer ¶
func (c *Client) InquiryPriceModifyLoadBalancer(request *InquiryPriceModifyLoadBalancerRequest) (response *InquiryPriceModifyLoadBalancerResponse, err error)
InquiryPriceModifyLoadBalancer This API is used to query the price of adjusting the specification of a CLB instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) InquiryPriceModifyLoadBalancerWithContext ¶
func (c *Client) InquiryPriceModifyLoadBalancerWithContext(ctx context.Context, request *InquiryPriceModifyLoadBalancerRequest) (response *InquiryPriceModifyLoadBalancerResponse, err error)
InquiryPriceModifyLoadBalancer This API is used to query the price of adjusting the specification of a CLB instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) InquiryPriceRefundLoadBalancer ¶
func (c *Client) InquiryPriceRefundLoadBalancer(request *InquiryPriceRefundLoadBalancerRequest) (response *InquiryPriceRefundLoadBalancerResponse, err error)
InquiryPriceRefundLoadBalancer This API is used to query the refund price of Cloud Load Balancer and only supports prepaid load balancing instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCEINSUFFICIENT = "ResourceInsufficient"
func (*Client) InquiryPriceRefundLoadBalancerWithContext ¶
func (c *Client) InquiryPriceRefundLoadBalancerWithContext(ctx context.Context, request *InquiryPriceRefundLoadBalancerRequest) (response *InquiryPriceRefundLoadBalancerResponse, err error)
InquiryPriceRefundLoadBalancer This API is used to query the refund price of Cloud Load Balancer and only supports prepaid load balancing instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCEINSUFFICIENT = "ResourceInsufficient"
func (*Client) InquiryPriceRenewLoadBalancer ¶
func (c *Client) InquiryPriceRenewLoadBalancer(request *InquiryPriceRenewLoadBalancerRequest) (response *InquiryPriceRenewLoadBalancerResponse, err error)
InquiryPriceRenewLoadBalancer This API is used to query the price of renewing a CLB instance. It's only available to prepaid CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) InquiryPriceRenewLoadBalancerWithContext ¶
func (c *Client) InquiryPriceRenewLoadBalancerWithContext(ctx context.Context, request *InquiryPriceRenewLoadBalancerRequest) (response *InquiryPriceRenewLoadBalancerResponse, err error)
InquiryPriceRenewLoadBalancer This API is used to query the price of renewing a CLB instance. It's only available to prepaid CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) ManualRewriteWithContext ¶
func (c *Client) ManualRewriteWithContext(ctx context.Context, 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) MigrateClassicalLoadBalancers ¶
func (c *Client) MigrateClassicalLoadBalancers(request *MigrateClassicalLoadBalancersRequest) (response *MigrateClassicalLoadBalancersResponse, err error)
MigrateClassicalLoadBalancers This API is used to upgrade classic CLB instances to application CLB instances.
This is an async API. After it is returned successfully, you can check the action result by calling `DescribeLoadBalancers`.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) MigrateClassicalLoadBalancersWithContext ¶
func (c *Client) MigrateClassicalLoadBalancersWithContext(ctx context.Context, request *MigrateClassicalLoadBalancersRequest) (response *MigrateClassicalLoadBalancersResponse, err error)
MigrateClassicalLoadBalancers This API is used to upgrade classic CLB instances to application CLB instances.
This is an async API. After it is returned successfully, you can check the action result by calling `DescribeLoadBalancers`.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) ModifyBlockIPListWithContext ¶
func (c *Client) ModifyBlockIPListWithContext(ctx context.Context, 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) ModifyCustomizedConfig ¶
func (c *Client) ModifyCustomizedConfig(request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, err error)
ModifyCustomizedConfig This API is used to modify personalized configuration. If the configuration is already bound to clb, server or location, update simultaneously. Prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyCustomizedConfigWithContext ¶
func (c *Client) ModifyCustomizedConfigWithContext(ctx context.Context, request *ModifyCustomizedConfigRequest) (response *ModifyCustomizedConfigResponse, err error)
ModifyCustomizedConfig This API is used to modify personalized configuration. If the configuration is already bound to clb, server or location, update simultaneously. Prepare for decommissioning. Please use SetCustomizedConfigForLoadBalancer.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyDomain ¶
func (c *Client) ModifyDomain(request *ModifyDomainRequest) (response *ModifyDomainResponse, err error)
ModifyDomain This API is used to modify the domain name under a layer-7 (HTTP/HTTPS) listener of Cloud Load Balancer.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyDomainAttributes ¶
func (c *Client) ModifyDomainAttributes(request *ModifyDomainAttributesRequest) (response *ModifyDomainAttributesResponse, err error)
ModifyDomainAttributes This API is used to modify domain-level attributes of Cloud Load Balancer layer-7 listener forwarding rules, such as modifying domain name, changing DefaultServer, enabling/disabling Http/2, and modifying certificates.
This is an async API. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyDomainAttributesWithContext ¶
func (c *Client) ModifyDomainAttributesWithContext(ctx context.Context, request *ModifyDomainAttributesRequest) (response *ModifyDomainAttributesResponse, err error)
ModifyDomainAttributes This API is used to modify domain-level attributes of Cloud Load Balancer layer-7 listener forwarding rules, such as modifying domain name, changing DefaultServer, enabling/disabling Http/2, and modifying certificates.
This is an async API. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyDomainWithContext ¶
func (c *Client) ModifyDomainWithContext(ctx context.Context, request *ModifyDomainRequest) (response *ModifyDomainResponse, err error)
ModifyDomain This API is used to modify the domain name under a layer-7 (HTTP/HTTPS) listener of Cloud Load Balancer.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyFunctionTargets ¶
func (c *Client) ModifyFunctionTargets(request *ModifyFunctionTargetsRequest) (response *ModifyFunctionTargetsResponse, err error)
ModifyFunctionTargets This API is used to modify the SCF bound to a Cloud Load Balancer forwarding rule.
This API is used to describe restrictions.
-Only supports binding SCF of the "Event function" type.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyFunctionTargetsWithContext ¶
func (c *Client) ModifyFunctionTargetsWithContext(ctx context.Context, request *ModifyFunctionTargetsRequest) (response *ModifyFunctionTargetsResponse, err error)
ModifyFunctionTargets This API is used to modify the SCF bound to a Cloud Load Balancer forwarding rule.
This API is used to describe restrictions.
-Only supports binding SCF of the "Event function" type.
error code that may be returned:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyListener ¶
func (c *Client) ModifyListener(request *ModifyListenerRequest) (response *ModifyListenerResponse, err error)
ModifyListener This API is used to modify the attributes of a CLB instance listener, including the listener name, health check parameters, certificate information, and forwarding policy. This API does not support classic CLB instances.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyListenerWithContext ¶
func (c *Client) ModifyListenerWithContext(ctx context.Context, request *ModifyListenerRequest) (response *ModifyListenerResponse, err error)
ModifyListener This API is used to modify the attributes of a CLB instance listener, including the listener name, health check parameters, certificate information, and forwarding policy. This API does not support classic CLB instances.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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.
Non-bandwidth-upshift users must add their CLB instance to a bandwidth package to configure cross-domain attributes. To modify the network billing mode, go to the console.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyLoadBalancerAttributesWithContext ¶
func (c *Client) ModifyLoadBalancerAttributesWithContext(ctx context.Context, 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.
Non-bandwidth-upshift users must add their CLB instance to a bandwidth package to configure cross-domain attributes. To modify the network billing mode, go to the console.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyLoadBalancerSla ¶
func (c *Client) ModifyLoadBalancerSla(request *ModifyLoadBalancerSlaRequest) (response *ModifyLoadBalancerSlaResponse, err error)
ModifyLoadBalancerSla This API is used to adjust the performance capacity specification of usage-based billing mode instances, for example upgrading from shared type to performance capacity type or modifying the specification of LCU-supported instances.
This API is used to set use limits.
-This API only supports adjustments for pay-as-you-go CLB instances. For CLB instance upgrades with annual/monthly subscription, make adjustments through the console.
-After upgrading from a shared instance to a performance and capacity instance, reverting to a shared instance is not supported.
-A classic CLB instance does not support upgrading to a performance and capacity instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyLoadBalancerSlaWithContext ¶
func (c *Client) ModifyLoadBalancerSlaWithContext(ctx context.Context, request *ModifyLoadBalancerSlaRequest) (response *ModifyLoadBalancerSlaResponse, err error)
ModifyLoadBalancerSla This API is used to adjust the performance capacity specification of usage-based billing mode instances, for example upgrading from shared type to performance capacity type or modifying the specification of LCU-supported instances.
This API is used to set use limits.
-This API only supports adjustments for pay-as-you-go CLB instances. For CLB instance upgrades with annual/monthly subscription, make adjustments through the console.
-After upgrading from a shared instance to a performance and capacity instance, reverting to a shared instance is not supported.
-A classic CLB instance does not support upgrading to a performance and capacity instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyLoadBalancersProject ¶
func (c *Client) ModifyLoadBalancersProject(request *ModifyLoadBalancersProjectRequest) (response *ModifyLoadBalancersProjectResponse, err error)
ModifyLoadBalancersProject This API is used to modify the projects of CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyLoadBalancersProjectWithContext ¶
func (c *Client) ModifyLoadBalancersProjectWithContext(ctx context.Context, request *ModifyLoadBalancersProjectRequest) (response *ModifyLoadBalancersProjectResponse, err error)
ModifyLoadBalancersProject This API is used to modify the projects of CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyRule ¶
func (c *Client) ModifyRule(request *ModifyRuleRequest) (response *ModifyRuleResponse, err error)
ModifyRule This API is used to modify the properties of forwarding rules under a layer-7 (HTTP/HTTPS) listener in Cloud Load Balancer, including forwarding path, health check attributes and forwarding policy.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyRuleWithContext ¶
func (c *Client) ModifyRuleWithContext(ctx context.Context, request *ModifyRuleRequest) (response *ModifyRuleResponse, err error)
ModifyRule This API is used to modify the properties of forwarding rules under a layer-7 (HTTP/HTTPS) listener in Cloud Load Balancer, including forwarding path, health check attributes and forwarding policy.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) ModifyTargetGroupAttributeWithContext ¶
func (c *Client) ModifyTargetGroupAttributeWithContext(ctx context.Context, 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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetGroupInstancesPortWithContext ¶
func (c *Client) ModifyTargetGroupInstancesPortWithContext(ctx context.Context, 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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" 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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetGroupInstancesWeightWithContext ¶
func (c *Client) ModifyTargetGroupInstancesWeightWithContext(ctx context.Context, 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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" 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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetPortWithContext ¶
func (c *Client) ModifyTargetPortWithContext(ctx context.Context, 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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetWeight ¶
func (c *Client) ModifyTargetWeight(request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error)
ModifyTargetWeight This API is used to modify the forwarding weight of backend service bound to Cloud Load Balancer.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) ModifyTargetWeightWithContext ¶
func (c *Client) ModifyTargetWeightWithContext(ctx context.Context, request *ModifyTargetWeightRequest) (response *ModifyTargetWeightResponse, err error)
ModifyTargetWeight This API is used to modify the forwarding weight of backend service bound to Cloud Load Balancer.
This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) RegisterFunctionTargets ¶
func (c *Client) RegisterFunctionTargets(request *RegisterFunctionTargetsRequest) (response *RegisterFunctionTargetsResponse, err error)
RegisterFunctionTargets This API is used to bind a cloud function to the forwarding rule of a Cloud Load Balancer. Before that, you need to create a related HTTP or HTTPS listener and forwarding rule.
This API is used to perform asynchronous operations. After returning a successful result, call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
This API is used to describe restrictions.
-SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
-Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
-Classic CLB does not support binding SCF.
-Basic Network Type does not support binding SCF.
-CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
-Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
-Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
- CLB binding SCF only supports binding SCF of the "Event function" type.
-A forwarding rule supports binding only one SCF.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) RegisterFunctionTargetsWithContext ¶
func (c *Client) RegisterFunctionTargetsWithContext(ctx context.Context, request *RegisterFunctionTargetsRequest) (response *RegisterFunctionTargetsResponse, err error)
RegisterFunctionTargets This API is used to bind a cloud function to the forwarding rule of a Cloud Load Balancer. Before that, you need to create a related HTTP or HTTPS listener and forwarding rule.
This API is used to perform asynchronous operations. After returning a successful result, call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
This API is used to describe restrictions.
-SCF binding is supported only in Guangzhou, Shenzhen Finance, Shanghai, Shanghai Finance, Beijing, Chengdu, Hong Kong (China), Singapore, Tokyo, and Silicon Valley.
-Only the standard account type supports binding SCF. The classic account type is unsupported. We recommend upgrading to the standard account type. For more information, see [account type upgrade instructions](https://www.tencentcloud.comom/document/product/1199/49090?from_cn_redirect=1).
-Classic CLB does not support binding SCF.
-Basic Network Type does not support binding SCF.
-CLB supports binding ALL SCFs in the same region by default, supports cross-VPC binding, but cross-region selection is not supported.
-Currently, only IPv4 and IPv6 NAT64 versions of Cloud Load Balancer support binding SCF. IPv6 version is not currently supported.
-Only layer-7 (HTTP, HTTPS) listeners support binding SCF. Layer-4 (TCP, UDP, TCP SSL) listeners and layer-7 QUIC listeners are unsupported.
- CLB binding SCF only supports binding SCF of the "Event function" type.
-A forwarding rule supports binding only one SCF.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound" INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) RegisterTargetGroupInstancesWithContext ¶
func (c *Client) RegisterTargetGroupInstancesWithContext(ctx context.Context, 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" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" 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 is used to bind one or more backend services to a Cloud Load Balancer listener or layer-7 forwarding rule. Before that, you need to create a related CLB layer-4 listener or layer-7 forwarding rule. For Layer-4 listeners (TCP/UDP), only specify the listener ID. For layer-7 (HTTP/HTTPS) listeners, forwarding rules must be specified through LocationId or Domain+Url.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) RegisterTargetsWithClassicalLBWithContext ¶
func (c *Client) RegisterTargetsWithClassicalLBWithContext(ctx context.Context, 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) RegisterTargetsWithContext ¶
func (c *Client) RegisterTargetsWithContext(ctx context.Context, request *RegisterTargetsRequest) (response *RegisterTargetsResponse, err error)
RegisterTargets This API is used to bind one or more backend services to a Cloud Load Balancer listener or layer-7 forwarding rule. Before that, you need to create a related CLB layer-4 listener or layer-7 forwarding rule. For Layer-4 listeners (TCP/UDP), only specify the listener ID. For layer-7 (HTTP/HTTPS) listeners, forwarding rules must be specified through LocationId or Domain+Url.
This API is used to perform asynchronous operations. After it returns a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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) ReplaceCertForLoadBalancersWithContext ¶
func (c *Client) ReplaceCertForLoadBalancersWithContext(ctx context.Context, 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) SetCustomizedConfigForLoadBalancer ¶
func (c *Client) SetCustomizedConfigForLoadBalancer(request *SetCustomizedConfigForLoadBalancerRequest) (response *SetCustomizedConfigForLoadBalancerResponse, err error)
SetCustomizedConfigForLoadBalancer This API is used to create or manage a user-defined CLB configuration template.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetCustomizedConfigForLoadBalancerWithContext ¶
func (c *Client) SetCustomizedConfigForLoadBalancerWithContext(ctx context.Context, request *SetCustomizedConfigForLoadBalancerRequest) (response *SetCustomizedConfigForLoadBalancerResponse, err error)
SetCustomizedConfigForLoadBalancer This API is used to create or manage a user-defined CLB configuration template.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINCLONING = "FailedOperation.ResourceInCloning" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*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:
AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetLoadBalancerClsLogWithContext ¶
func (c *Client) SetLoadBalancerClsLogWithContext(ctx context.Context, 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:
AUTHFAILURE_TOKENFAILURE = "AuthFailure.TokenFailure" FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetLoadBalancerSecurityGroups ¶
func (c *Client) SetLoadBalancerSecurityGroups(request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error)
SetLoadBalancerSecurityGroups This API is used to bind or unbind security groups for a public network load balancing instance. To query currently bound security groups of a load balancing instance, use the DescribeLoadBalancers API (https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1). This API follows set semantics.
This API is used to pass in all security groups that should be bound to the Cloud Load Balancer instance during the binding operation (bound + new binding).
For unbinding operations, the input parameters should specify all security groups bound to a CLB instance after unbinding. If you want to unbind all security groups, you can omit this parameter or input an empty array. Note: After a private network CLB is bound to an EIP, the security groups on the CLB do not take effect for the traffic from the EIP, but take effect for the traffic from the private network CLB.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetLoadBalancerSecurityGroupsWithContext ¶
func (c *Client) SetLoadBalancerSecurityGroupsWithContext(ctx context.Context, request *SetLoadBalancerSecurityGroupsRequest) (response *SetLoadBalancerSecurityGroupsResponse, err error)
SetLoadBalancerSecurityGroups This API is used to bind or unbind security groups for a public network load balancing instance. To query currently bound security groups of a load balancing instance, use the DescribeLoadBalancers API (https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1). This API follows set semantics.
This API is used to pass in all security groups that should be bound to the Cloud Load Balancer instance during the binding operation (bound + new binding).
For unbinding operations, the input parameters should specify all security groups bound to a CLB instance after unbinding. If you want to unbind all security groups, you can omit this parameter or input an empty array. Note: After a private network CLB is bound to an EIP, the security groups on the CLB do not take effect for the traffic from the EIP, but take effect for the traffic from the private network CLB.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" LIMITEXCEEDED = "LimitExceeded" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetLoadBalancerStartStatus ¶
func (c *Client) SetLoadBalancerStartStatus(request *SetLoadBalancerStartStatusRequest) (response *SetLoadBalancerStartStatusResponse, err error)
SetLoadBalancerStartStatus This API is used to start or stop a load balancing instance or listener.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
This feature is currently in beta test. To use it, submit a [ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1) for application.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_NOLISTENERINLB = "FailedOperation.NoListenerInLB" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetLoadBalancerStartStatusWithContext ¶
func (c *Client) SetLoadBalancerStartStatusWithContext(ctx context.Context, request *SetLoadBalancerStartStatusRequest) (response *SetLoadBalancerStartStatusResponse, err error)
SetLoadBalancerStartStatus This API is used to start or stop a load balancing instance or listener.
This API is used to perform asynchronous operations. After returning a successful result, call the [DescribeTaskStatus](https://www.tencentcloud.comom/document/product/214/30683?from_cn_redirect=1) API with the returned RequestID as an input parameter to check whether this task is successful.
This feature is currently in beta test. To use it, submit a [ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1) for application.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_NOLISTENERINLB = "FailedOperation.NoListenerInLB" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetSecurityGroupForLoadbalancers ¶
func (c *Client) SetSecurityGroupForLoadbalancers(request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error)
SetSecurityGroupForLoadbalancers This API is used to bind or unbind a security group to or from multiple public network CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) SetSecurityGroupForLoadbalancersWithContext ¶
func (c *Client) SetSecurityGroupForLoadbalancersWithContext(ctx context.Context, request *SetSecurityGroupForLoadbalancersRequest) (response *SetSecurityGroupForLoadbalancersResponse, err error)
SetSecurityGroupForLoadbalancers This API is used to bind or unbind a security group to or from multiple public network CLB instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError" INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
type CloneLoadBalancerRequest ¶
type CloneLoadBalancerRequest struct {
*tchttp.BaseRequest
// Specifies the clb ID. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the name of the cloned load balancing instance. rule: 1-60 english letters, chinese characters, digits, connecting lines "-", or underscores "_".
// Note: if the name is identical to that of an existing load balancing instance in the system, the system will automatically generate a name for the created cloud load balancer instance.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not passed in, the default project will be used.
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// Sets the primary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`, which is applicable only to public network CLB.
// Note: A primary AZ loads traffic, while a secondary AZ does not load traffic by default and will be used only if the primary AZ becomes unavailable. The platform will automatically select the optimal secondary AZ. You can use the `DescribeResource` API to query the primary AZ list of a region.
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
// Specifies the secondary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`. It is applicable only to public network CLB.
// Note: A secondary AZ will load traffic if the primary AZ is faulty. You can use the `DescribeMasterZones` API to query the primary and secondary AZ list of a region.
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
// Applicable only to public network clb. AZ ID, both availability zone ID and name are supported. specify availability zone to create a load balancing instance, for example: 100001 or ap-guangzhou-1. if not passed, queries CVM instances in all azs. if needed, call the API for the query DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to specify availability zone.
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// CLB network billing mode, applicable only to public network CLB instances.
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
// Specifies the Vip to apply for cloud load balancer.
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// Proceed to purchase cloud load balancer and Tag it at the same time.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// Exclusive cluster information.
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
// BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies this parameter indicates the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE).
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// Specifies whether the cross-regional or cross-Vpc IP binding feature is supported.
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// Enables cross-regional or cross-Vpc IP binding and creates a SnatIp.
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// Public network exclusive cluster ID or CDCId. can be obtained through the [DescribeExclusiveClusters](https://www.tencentcloud.comom/document/product/214/49278?from_cn_redirect=1) api.
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// Performance capacity specification. <li>clb.c2.medium (standard type)</li> <li>clb.c3.small (advanced type 1)</li> <li>clb.c3.medium (advanced type 2)</li> <li>clb.c4.small (high-strength type 1)</li> <li>clb.c4.medium (high-strength type 2)</li> <li>clb.c4.large (high-strength type 3)</li> <li>clb.c4.xlarge (high-strength type 4)</li>.
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// Specifies the Tag of the Stgw exclusive cluster.
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
// Applicable only to private network clb. when connected to nearby, select availability zone for deployment. you can call DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to query the availability zone list.
Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
// The unique ID of EIP, such as EIP-qhx8udkc, applicable only to private network clb binding EIP, can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1).
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
}
func NewCloneLoadBalancerRequest ¶
func NewCloneLoadBalancerRequest() (request *CloneLoadBalancerRequest)
func (*CloneLoadBalancerRequest) FromJsonString ¶
func (r *CloneLoadBalancerRequest) 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 (*CloneLoadBalancerRequest) ToJsonString ¶
func (r *CloneLoadBalancerRequest) ToJsonString() string
type CloneLoadBalancerRequestParams ¶
type CloneLoadBalancerRequestParams struct {
// Specifies the clb ID. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the name of the cloned load balancing instance. rule: 1-60 english letters, chinese characters, digits, connecting lines "-", or underscores "_".
// Note: if the name is identical to that of an existing load balancing instance in the system, the system will automatically generate a name for the created cloud load balancer instance.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not passed in, the default project will be used.
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// Sets the primary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`, which is applicable only to public network CLB.
// Note: A primary AZ loads traffic, while a secondary AZ does not load traffic by default and will be used only if the primary AZ becomes unavailable. The platform will automatically select the optimal secondary AZ. You can use the `DescribeResource` API to query the primary AZ list of a region.
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
// Specifies the secondary AZ ID for cross-AZ disaster recovery, such as `100001` or `ap-guangzhou-1`. It is applicable only to public network CLB.
// Note: A secondary AZ will load traffic if the primary AZ is faulty. You can use the `DescribeMasterZones` API to query the primary and secondary AZ list of a region.
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
// Applicable only to public network clb. AZ ID, both availability zone ID and name are supported. specify availability zone to create a load balancing instance, for example: 100001 or ap-guangzhou-1. if not passed, queries CVM instances in all azs. if needed, call the API for the query DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to specify availability zone.
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// CLB network billing mode, applicable only to public network CLB instances.
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
// Specifies the Vip to apply for cloud load balancer.
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// Proceed to purchase cloud load balancer and Tag it at the same time.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// Exclusive cluster information.
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
// BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies this parameter indicates the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE).
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// Specifies whether the cross-regional or cross-Vpc IP binding feature is supported.
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// Enables cross-regional or cross-Vpc IP binding and creates a SnatIp.
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// Public network exclusive cluster ID or CDCId. can be obtained through the [DescribeExclusiveClusters](https://www.tencentcloud.comom/document/product/214/49278?from_cn_redirect=1) api.
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// Performance capacity specification. <li>clb.c2.medium (standard type)</li> <li>clb.c3.small (advanced type 1)</li> <li>clb.c3.medium (advanced type 2)</li> <li>clb.c4.small (high-strength type 1)</li> <li>clb.c4.medium (high-strength type 2)</li> <li>clb.c4.large (high-strength type 3)</li> <li>clb.c4.xlarge (high-strength type 4)</li>.
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// Specifies the Tag of the Stgw exclusive cluster.
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
// Applicable only to private network clb. when connected to nearby, select availability zone for deployment. you can call DescribeZones (https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1) to query the availability zone list.
Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
// The unique ID of EIP, such as EIP-qhx8udkc, applicable only to private network clb binding EIP, can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1).
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
}
Predefined struct for user
type CloneLoadBalancerResponse ¶
type CloneLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *CloneLoadBalancerResponseParams `json:"Response"`
}
func NewCloneLoadBalancerResponse ¶
func NewCloneLoadBalancerResponse() (response *CloneLoadBalancerResponse)
func (*CloneLoadBalancerResponse) FromJsonString ¶
func (r *CloneLoadBalancerResponse) 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 (*CloneLoadBalancerResponse) ToJsonString ¶
func (r *CloneLoadBalancerResponse) ToJsonString() string
type CloneLoadBalancerResponseParams ¶
type CloneLoadBalancerResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ClusterItem ¶
type ClusterItem struct {
// Unique cluster ID
ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
// Cluster name.
ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
// Cluster AZ, such as ap-guangzhou-1
// Note: this field may return null, indicating that no valid values can be obtained.
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
}
type ConfigListItem ¶
type ConfigListItem struct {
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Configuration type. available values: CLB (instance dimension configuration), SERVER (service dimension configuration), LOCATION (rule dimension configuration).
ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
// Configuration name
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// Configuration content.
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
// Specifies the configured creation time.
// Format: YYYY-MM-DD HH:MM:ss.
CreateTimestamp *string `json:"CreateTimestamp,omitnil,omitempty" name:"CreateTimestamp"`
// Specifies the modification time of the configuration.
// Format: YYYY-MM-DD HH:MM:ss.
UpdateTimestamp *string `json:"UpdateTimestamp,omitnil,omitempty" name:"UpdateTimestamp"`
}
type CreateClsLogSetRequest ¶
type CreateClsLogSetRequest struct {
*tchttp.BaseRequest
// Logset name, which must be unique among all CLS logsets; default value: clb_logset
LogsetName *string `json:"LogsetName,omitnil,omitempty" name:"LogsetName"`
// Logset retention period (in days)
Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
// Logset type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
LogsetType *string `json:"LogsetType,omitnil,omitempty" name:"LogsetType"`
}
func 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 CreateClsLogSetRequestParams ¶
type CreateClsLogSetRequestParams struct {
// Logset name, which must be unique among all CLS logsets; default value: clb_logset
LogsetName *string `json:"LogsetName,omitnil,omitempty" name:"LogsetName"`
// Logset retention period (in days)
//
// Deprecated: Period is deprecated.
Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
// Logset type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
LogsetType *string `json:"LogsetType,omitnil,omitempty" name:"LogsetType"`
}
Predefined struct for user
type CreateClsLogSetResponse ¶
type CreateClsLogSetResponse struct {
*tchttp.BaseResponse
Response *CreateClsLogSetResponseParams `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 CreateClsLogSetResponseParams ¶
type CreateClsLogSetResponseParams struct {
// Logset ID.
LogsetId *string `json:"LogsetId,omitnil,omitempty" name:"LogsetId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateListenerRequest ¶
type CreateListenerRequest struct {
*tchttp.BaseRequest
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Ports for creating listeners. Each port corresponds to a listener.
// Port range: 1–65535.
Ports []*int64 `json:"Ports,omitnil,omitempty" name:"Ports"`
// Listener protocol. Valid values: TCP, UDP, HTTP, HTTPS, TCP_SSL, and QUIC.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// List of names of listeners to be created. The names correspond to ports one by one. This parameter can be left blank if you do not want to name the listeners immediately.
ListenerNames []*string `json:"ListenerNames,omitnil,omitempty" name:"ListenerNames"`
// Health check parameter. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Certificate-related information. The parameter limitations are as follows:
// <li>This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.</li>
// <li>Either this parameter or the MultiCertInfo parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.</li>
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Session persistence duration, in seconds. Value range: 30–3600. Default value: 0, indicating that session persistence is not enabled by default. This parameter applies only to TCP and UDP listeners.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Listener forwarding mode. valid values: WRR (weighted round-robin), LEAST_CONN (LEAST connections).
// Default value: WRR. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. 0: disable; 1: enable.
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// Real server type. NODE: ordinary node; TARGETGROUP: real server group. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Session persistence type. If this parameter is not specified or the value is set to NORMAL, the default session persistence type is used. QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules. (If the value is set to QUIC_CID, the Protocol value should be UDP, the Scheduler value should be WRR, and only IPv4 addresses are supported.)
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// Whether to enable the persistent connection feature. This parameter applies only to HTTP and HTTPS listeners. 0: disable; 1: enable. This feature is disabled by default.
// Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// End port. This parameter is required for creating a listener with a port range. In this case, the input parameter Ports allows only one value to indicate the start port. To experience the port range feature, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
// Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// Certificate information. You can import multiple server certificates with different algorithms at the same time. The parameter limitations are as follows:
// <li>This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.</li>
// <li>Either this parameter or the Certificate parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.</li>
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// Maximum number of connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of connections is not limited. This parameter is not supported for classic network-based instances.
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// Maximum number of new connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of new connections is not limited. This parameter is not supported for classic network-based instances.
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
// Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding the permissible range, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
// Specifies whether PP is supported for TCP_SSL and QUIC.
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
// Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// End port of a listener with a port range. Range of the port: 2–65535.
FullEndPorts []*int64 `json:"FullEndPorts,omitnil,omitempty" name:"FullEndPorts"`
// Enable private network http listener h2c switch. valid values: True (enable), False (disable).
// Disabled by default.
H2cSwitch *bool `json:"H2cSwitch,omitnil,omitempty" name:"H2cSwitch"`
// Whether to disable SSL for TCP_SSL listeners. dual-stack binding is still supported after SSL is disabled. valid values: True (disable), False (enable).
// Disabled by default.
SslCloseSwitch *bool `json:"SslCloseSwitch,omitnil,omitempty" name:"SslCloseSwitch"`
// Data compression mode. Valid values: transparent (passthrough mode) and compatibility (compatibility mode).
DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
// Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
// Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
// Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
// Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
// Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
func 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 CreateListenerRequestParams ¶
type CreateListenerRequestParams struct {
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Ports for creating listeners. Each port corresponds to a listener.
// Port range: 1–65535.
Ports []*int64 `json:"Ports,omitnil,omitempty" name:"Ports"`
// Listener protocol. Valid values: TCP, UDP, HTTP, HTTPS, TCP_SSL, and QUIC.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// List of names of listeners to be created. The names correspond to ports one by one. This parameter can be left blank if you do not want to name the listeners immediately.
ListenerNames []*string `json:"ListenerNames,omitnil,omitempty" name:"ListenerNames"`
// Health check parameter. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Certificate-related information. The parameter limitations are as follows:
// <li>This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.</li>
// <li>Either this parameter or the MultiCertInfo parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.</li>
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Session persistence duration, in seconds. Value range: 30–3600. Default value: 0, indicating that session persistence is not enabled by default. This parameter applies only to TCP and UDP listeners.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Listener forwarding mode. valid values: WRR (weighted round-robin), LEAST_CONN (LEAST connections).
// Default value: WRR. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. 0: disable; 1: enable.
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// Real server type. NODE: ordinary node; TARGETGROUP: real server group. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Session persistence type. If this parameter is not specified or the value is set to NORMAL, the default session persistence type is used. QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules. (If the value is set to QUIC_CID, the Protocol value should be UDP, the Scheduler value should be WRR, and only IPv4 addresses are supported.)
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// Whether to enable the persistent connection feature. This parameter applies only to HTTP and HTTPS listeners. 0: disable; 1: enable. This feature is disabled by default.
// Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// End port. This parameter is required for creating a listener with a port range. In this case, the input parameter Ports allows only one value to indicate the start port. To experience the port range feature, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
EndPort *uint64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
// Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// Certificate information. You can import multiple server certificates with different algorithms at the same time. The parameter limitations are as follows:
// <li>This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.</li>
// <li>Either this parameter or the Certificate parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.</li>
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// Maximum number of connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of connections is not limited. This parameter is not supported for classic network-based instances.
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// Maximum number of new connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of new connections is not limited. This parameter is not supported for classic network-based instances.
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
// Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding the permissible range, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
// Specifies whether PP is supported for TCP_SSL and QUIC.
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
// Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// End port of a listener with a port range. Range of the port: 2–65535.
FullEndPorts []*int64 `json:"FullEndPorts,omitnil,omitempty" name:"FullEndPorts"`
// Enable private network http listener h2c switch. valid values: True (enable), False (disable).
// Disabled by default.
H2cSwitch *bool `json:"H2cSwitch,omitnil,omitempty" name:"H2cSwitch"`
// Whether to disable SSL for TCP_SSL listeners. dual-stack binding is still supported after SSL is disabled. valid values: True (disable), False (enable).
// Disabled by default.
SslCloseSwitch *bool `json:"SslCloseSwitch,omitnil,omitempty" name:"SslCloseSwitch"`
// Data compression mode. Valid values: transparent (passthrough mode) and compatibility (compatibility mode).
DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
// Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
// Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
// Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
// Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
// Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
Predefined struct for user
type CreateListenerResponse ¶
type CreateListenerResponse struct {
*tchttp.BaseResponse
Response *CreateListenerResponseParams `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 CreateListenerResponseParams ¶
type CreateListenerResponseParams struct {
// Array of the unique IDs of created listeners.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateLoadBalancerRequest ¶
type CreateLoadBalancerRequest struct {
*tchttp.BaseRequest
// CLB instance network type:
// OPEN: public network; INTERNAL: private network.
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// CLB instance type. Valid value: 1 (generic CLB instance).
Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// CLB instance name, which takes effect only when only one instance is to be created in the request. It can consist 1 to 60 letters, digits, hyphens (-), or underscores (_).
// Note: if the name of the new CLB instance already exists, a default name will be generated automatically.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Network ID of the target device on the CLB backend, such as `vpc-12345678`, which can be obtained through the `DescribeVpcEx` API. If this parameter is not entered, `DefaultVPC` is used by default. This parameter is required when creating a private network instance.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// A subnet ID should be specified when you purchase a private network CLB instance under a VPC. The VIP of the private network CLB instance is in this subnet. This parameter is required when you create a private network CLB instance but not supported when you create a public network IPv4 CLB instance.
SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not entered, the default project will be used.
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// It's only applicable to public network CLB instances. IP version. Values: `IPV4`, `IPV6` and `IPv6FullChain` (case-insensitive). Default: `IPV4`. Note: `IPV6` indicates IPv6 NAT64, while `IPv6FullChain` indicates IPv6.
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
// Specifies the count of cloud load balancers to create, with a default value of 1. the count must not exceed the maximum value allowed for the account, with a default creation maximum value of 20.
Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
// Applicable only to public network IPv4 cloud load balancer instances. specifies the primary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
// Note: the primary AZ loads traffic. the secondary AZ does not load traffic by default and is used only if the primary AZ becomes unavailable.
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
// Applicable only to public network IPv4 clb instances. specifies the AZ ID or availability zone name for creating a clb instance. for example, 100001 or ap-guangzhou-1.
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// Network billing mode by the maximum outbound bandwidth. It applies only to private network LCU-supported instances and all public network instances. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// ISP of VIP. Values: `CMCC` (China Mobile), `CUCC` (China Unicom) and `CTCC` (China Telecom). You need to activate static single-line IPs. This feature is in beta and is only available in Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu and Chongqing regions. To try it out, please contact your sales rep. If it's specified, the network billing mode must be `BANDWIDTH_PACKAGE`. If it's not specified, BGP is used by default. To query ISPs supported in a region, please use [DescribeResources](https://intl.cloud.tencent.com/document/api/214/70213?from_cn_redirect=1).
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
// Tags the CLB instance when purchasing it. Up to 20 tag key value pairs are supported.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// Specifies the VIP for the application of a CLB instance. This parameter is optional. If you do not specify this parameter, the system automatically assigns a value for the parameter. IPv4 and IPv6 CLB instances support this parameter, but IPv6 NAT64 CLB instances do not.
// Note: If the specified VIP is occupied or is not within the IP range of the specified VPC subnet, you cannot use the VIP to create a CLB instance in a private network or an IPv6 BGP CLB instance in a public network.
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies the BANDWIDTH PACKAGE ID. when this parameter is specified, the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE). the attributes of the BANDWIDTH PACKAGE determine the settlement method. for IPv6 clb instances purchased by non-promoted users, if the operator type is not BGP, the BANDWIDTH PACKAGE ID cannot be specified.
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// Information about the dedicated CLB instance. You must specify this parameter when you create a dedicated CLB instance in a private network.
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
// Specification of the LCU-supported instance.<ul><li>If you need to create an LCU-supported instance, this parameter is required. Valid values:<ul><li> clb.c2.medium: Standard </li><li> clb.c3.small: Advanced 1 </li><li> clb.c3.medium: Advanced 2 </li><li> clb.c4.small: Super Large 1 </li><li> clb.c4.medium: Super Large 2 </li><li> clb.c4.large: Super Large 3 </li><li> clb.c4.xlarge: Super Large 4 </li></ul></li><li>If you need to create a shared instance, this parameter is not required.</li></ul> For specification details, see [Instance Specifications Comparison](https://intl.cloud.tencent.com/document/product/214/84689?from_cn_redirect=1).
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// Cluster ID. This cluster identifier is used for configuring a public cloud exclusive cluster or a cloud dedicated cluster. To apply for a public cloud exclusive cluster, [submit a ticket](https://console.cloud.tencent.com/workorder/category). For cloud dedicated clusters, see the descriptions in [Cloud Dedicated Cluster](https://intl.cloud.tencent.com/document/product/1346?from_cn_redirect=1).
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
// Whether Binding IPs of other VPCs feature switch
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// Creates `SnatIp` when the binding IPs of other VPCs feature is enabled
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// Tag for the STGW exclusive cluster.
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
// Applicable only to public network IPv4 clb instances. specifies the secondary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
// Note: The secondary AZ sustains traffic when the primary AZ encounters faults. You can call the [DescribeResources](https://www.tencentcloud.comom/document/api/214/70213?from_cn_redirect=1) API to query the list of primary/secondary AZs in a region. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
// The unique ID of EIP, which can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1). format: EIP-qhx8udkc. applicable only to private network clb binding EIP.
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
// Specifies whether to allow CLB traffic to the Target. enable (true): verify security groups on CLB. disable (false): verify security groups on both CLB and backend instances. IPv6 CLB security group default permit, this parameter is not required.
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// Upgrades to domain name-based CLB
DynamicVip *bool `json:"DynamicVip,omitnil,omitempty" name:"DynamicVip"`
// Network egress point
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
// Prepayment-related attributes of a CLB instance. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
LBChargePrepaid *LBChargePrepaid `json:"LBChargePrepaid,omitnil,omitempty" name:"LBChargePrepaid"`
// Billing type of a CLB instance. Valid values: POSTPAID_BY_HOUR and PREPAID. Default value: POSTPAID_BY_HOUR. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
// Topic ID of logs of traffic access over layer-7 protocols.
AccessLogTopicId *string `json:"AccessLogTopicId,omitnil,omitempty" name:"AccessLogTopicId"`
// Whether layer-7 advanced routing is enabled.
AdvancedRoute *bool `json:"AdvancedRoute,omitnil,omitempty" name:"AdvancedRoute"`
}
func 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 CreateLoadBalancerRequestParams ¶
type CreateLoadBalancerRequestParams struct {
// CLB instance network type:
// OPEN: public network; INTERNAL: private network.
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// CLB instance type. Valid value: 1 (generic CLB instance).
Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// CLB instance name, which takes effect only when only one instance is to be created in the request. It can consist 1 to 60 letters, digits, hyphens (-), or underscores (_).
// Note: if the name of the new CLB instance already exists, a default name will be generated automatically.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Network ID of the target device on the CLB backend, such as `vpc-12345678`, which can be obtained through the `DescribeVpcEx` API. If this parameter is not entered, `DefaultVPC` is used by default. This parameter is required when creating a private network instance.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// A subnet ID should be specified when you purchase a private network CLB instance under a VPC. The VIP of the private network CLB instance is in this subnet. This parameter is required when you create a private network CLB instance but not supported when you create a public network IPv4 CLB instance.
SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// ID of the project to which a CLB instance belongs, which can be obtained through the `DescribeProject` API. If this parameter is not entered, the default project will be used.
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// It's only applicable to public network CLB instances. IP version. Values: `IPV4`, `IPV6` and `IPv6FullChain` (case-insensitive). Default: `IPV4`. Note: `IPV6` indicates IPv6 NAT64, while `IPv6FullChain` indicates IPv6.
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
// Specifies the count of cloud load balancers to create, with a default value of 1. the count must not exceed the maximum value allowed for the account, with a default creation maximum value of 20.
Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
// Applicable only to public network IPv4 cloud load balancer instances. specifies the primary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
// Note: the primary AZ loads traffic. the secondary AZ does not load traffic by default and is used only if the primary AZ becomes unavailable.
MasterZoneId *string `json:"MasterZoneId,omitnil,omitempty" name:"MasterZoneId"`
// Applicable only to public network IPv4 clb instances. specifies the AZ ID or availability zone name for creating a clb instance. for example, 100001 or ap-guangzhou-1.
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// Network billing mode by the maximum outbound bandwidth. It applies only to private network LCU-supported instances and all public network instances. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// ISP of VIP. Values: `CMCC` (China Mobile), `CUCC` (China Unicom) and `CTCC` (China Telecom). You need to activate static single-line IPs. This feature is in beta and is only available in Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu and Chongqing regions. To try it out, please contact your sales rep. If it's specified, the network billing mode must be `BANDWIDTH_PACKAGE`. If it's not specified, BGP is used by default. To query ISPs supported in a region, please use [DescribeResources](https://intl.cloud.tencent.com/document/api/214/70213?from_cn_redirect=1).
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
// Tags the CLB instance when purchasing it. Up to 20 tag key value pairs are supported.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// Specifies the VIP for the application of a CLB instance. This parameter is optional. If you do not specify this parameter, the system automatically assigns a value for the parameter. IPv4 and IPv6 CLB instances support this parameter, but IPv6 NAT64 CLB instances do not.
// Note: If the specified VIP is occupied or is not within the IP range of the specified VPC subnet, you cannot use the VIP to create a CLB instance in a private network or an IPv6 BGP CLB instance in a public network.
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// BANDWIDTH PACKAGE ID, which can be obtained through the [DescribeBandwidthPackages](https://www.tencentcloud.comom/document/api/215/19209?from_cn_redirect=1) api. specifies the BANDWIDTH PACKAGE ID. when this parameter is specified, the network billing mode (InternetAccessible.InternetChargeType) supports only billing by BANDWIDTH PACKAGE (BANDWIDTH_PACKAGE). the attributes of the BANDWIDTH PACKAGE determine the settlement method. for IPv6 clb instances purchased by non-promoted users, if the operator type is not BGP, the BANDWIDTH PACKAGE ID cannot be specified.
BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
// Information about the dedicated CLB instance. You must specify this parameter when you create a dedicated CLB instance in a private network.
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
// Specification of the LCU-supported instance.<ul><li>If you need to create an LCU-supported instance, this parameter is required. Valid values:<ul><li> clb.c2.medium: Standard </li><li> clb.c3.small: Advanced 1 </li><li> clb.c3.medium: Advanced 2 </li><li> clb.c4.small: Super Large 1 </li><li> clb.c4.medium: Super Large 2 </li><li> clb.c4.large: Super Large 3 </li><li> clb.c4.xlarge: Super Large 4 </li></ul></li><li>If you need to create a shared instance, this parameter is not required.</li></ul> For specification details, see [Instance Specifications Comparison](https://intl.cloud.tencent.com/document/product/214/84689?from_cn_redirect=1).
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// Cluster ID. This cluster identifier is used for configuring a public cloud exclusive cluster or a cloud dedicated cluster. To apply for a public cloud exclusive cluster, [submit a ticket](https://console.cloud.tencent.com/workorder/category). For cloud dedicated clusters, see the descriptions in [Cloud Dedicated Cluster](https://intl.cloud.tencent.com/document/product/1346?from_cn_redirect=1).
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.
ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"`
// Whether Binding IPs of other VPCs feature switch
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// Creates `SnatIp` when the binding IPs of other VPCs feature is enabled
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// Tag for the STGW exclusive cluster.
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
// Applicable only to public network IPv4 clb instances. specifies the secondary AZ ID for cross-az disaster recovery. both AZ ID and name are supported, such as 100001 or ap-guangzhou-1.
// Note: The secondary AZ sustains traffic when the primary AZ encounters faults. You can call the [DescribeResources](https://www.tencentcloud.comom/document/api/214/70213?from_cn_redirect=1) API to query the list of primary/secondary AZs in a region. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
SlaveZoneId *string `json:"SlaveZoneId,omitnil,omitempty" name:"SlaveZoneId"`
// The unique ID of EIP, which can be queried through the DescribeAddresses API (https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1). format: EIP-qhx8udkc. applicable only to private network clb binding EIP.
EipAddressId *string `json:"EipAddressId,omitnil,omitempty" name:"EipAddressId"`
// Specifies whether to allow CLB traffic to the Target. enable (true): verify security groups on CLB. disable (false): verify security groups on both CLB and backend instances. IPv6 CLB security group default permit, this parameter is not required.
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// Upgrades to domain name-based CLB
DynamicVip *bool `json:"DynamicVip,omitnil,omitempty" name:"DynamicVip"`
// Network egress point
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
// Prepayment-related attributes of a CLB instance. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
LBChargePrepaid *LBChargePrepaid `json:"LBChargePrepaid,omitnil,omitempty" name:"LBChargePrepaid"`
// Billing type of a CLB instance. Valid values: POSTPAID_BY_HOUR and PREPAID. Default value: POSTPAID_BY_HOUR. The feature of purchasing monthly subscription instances via an API is under grayscale release. If you want to experience this feature, [submit a ticket](https://console.cloud.tencent.com/workorder/category).
LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
// Topic ID of logs of traffic access over layer-7 protocols.
AccessLogTopicId *string `json:"AccessLogTopicId,omitnil,omitempty" name:"AccessLogTopicId"`
// Whether layer-7 advanced routing is enabled.
AdvancedRoute *bool `json:"AdvancedRoute,omitnil,omitempty" name:"AdvancedRoute"`
}
Predefined struct for user
type CreateLoadBalancerResponse ¶
type CreateLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *CreateLoadBalancerResponseParams `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 CreateLoadBalancerResponseParams ¶
type CreateLoadBalancerResponseParams struct {
// Array of unique CLB instance IDs.
// This field may return `null` in some cases, such as there is delay during instance creation. You can query the IDs of the created instances by invoking `DescribeTaskStatus` with the `RequestId` or `DealName` returned by this API.
// Note: This field may return `null`, indicating that no valid values can be obtained.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Order ID.
// Note: this field may return `null`, indicating that no valid values can be obtained.
DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateLoadBalancerSnatIpsRequest ¶
type CreateLoadBalancerSnatIpsRequest struct {
*tchttp.BaseRequest
// Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID, such as lb-12345678.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Added SnatIp information. specify IP for request or designated subnet for automatic application. can be accessed through [DescribeSubnets](https://www.tencentcloud.comom/document/api/215/15784?from_cn_redirect=1) to query and retrieve. the default upper limit for one CLB instance is 10.
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// Number of SNAT IPs to be added. This parameter is used in conjunction with `SnatIps`. Note that if `Ip` is specified in `SnapIps`, this parameter is not available. It defaults to `1` and the upper limit is `10`.
Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
}
func 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 CreateLoadBalancerSnatIpsRequestParams ¶
type CreateLoadBalancerSnatIpsRequestParams struct {
// Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID, such as lb-12345678.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Added SnatIp information. specify IP for request or designated subnet for automatic application. can be accessed through [DescribeSubnets](https://www.tencentcloud.comom/document/api/215/15784?from_cn_redirect=1) to query and retrieve. the default upper limit for one CLB instance is 10.
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// Number of SNAT IPs to be added. This parameter is used in conjunction with `SnatIps`. Note that if `Ip` is specified in `SnapIps`, this parameter is not available. It defaults to `1` and the upper limit is `10`.
Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`
}
Predefined struct for user
type CreateLoadBalancerSnatIpsResponse ¶
type CreateLoadBalancerSnatIpsResponse struct {
*tchttp.BaseResponse
Response *CreateLoadBalancerSnatIpsResponseParams `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 CreateLoadBalancerSnatIpsResponseParams ¶
type CreateLoadBalancerSnatIpsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateRuleRequest ¶
type CreateRuleRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the listener ID, which can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Information of the new forwarding rule
Rules []*RuleInput `json:"Rules,omitnil,omitempty" name:"Rules"`
}
func 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 CreateRuleRequestParams ¶
type CreateRuleRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the listener ID, which can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Information of the new forwarding rule
Rules []*RuleInput `json:"Rules,omitnil,omitempty" name:"Rules"`
}
Predefined struct for user
type CreateRuleResponse ¶
type CreateRuleResponse struct {
*tchttp.BaseResponse
Response *CreateRuleResponseParams `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 CreateRuleResponseParams ¶
type CreateRuleResponseParams struct {
// Array of unique IDs of created forwarding rules
LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateTargetGroupRequest ¶
type CreateTargetGroupRequest struct {
*tchttp.BaseRequest
// Target group name (up to 50 characters)
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
// Specifies the vpc id attribute of the target group. uses the default vpc if left empty.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Specifies the default Port of the target group. the default Port can be used when servers are added subsequently. this parameter is not supported for full-listen target groups. for non-full-listen target groups, either Port or Port in TargetGroupInstances.N is required.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Specifies the real servers bound to the target group. supports up to 50 at a time.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
// Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Health check.
HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
// <ur><li>WRR: weighted round-robin.</li><li>LEAST_CONN: LEAST connection.</li><li>IP_HASH: based on IP HASH.</li><li>default is WRR.</li></ur>.
ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
// Tag.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// Specifies the default weight of the backend service. among them:.
// <ul><li>Value ranges from 0 to 100.</li><li>after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.</li><li>Weight parameter settings not supported for v1 target group type.</li></ul>.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Full listen target group flag. valid values: true (yes), false (no). only target groups of the new version V2 event type support this parameter.
FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
// Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. 0: disable; 1: enable. this feature is off by default.
KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Session hold time, unit: second. value range: 30-3600. default: 0, disabled. this parameter is supported only for target groups with HTTP/HTTPS/GRPC backend forwarding protocol in the new version V2.
SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// IP version type.
IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
}
func 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 CreateTargetGroupRequestParams ¶
type CreateTargetGroupRequestParams struct {
// Target group name (up to 50 characters)
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
// Specifies the vpc id attribute of the target group. uses the default vpc if left empty.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Specifies the default Port of the target group. the default Port can be used when servers are added subsequently. this parameter is not supported for full-listen target groups. for non-full-listen target groups, either Port or Port in TargetGroupInstances.N is required.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Specifies the real servers bound to the target group. supports up to 50 at a time.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
// Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Health check.
HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
// <ur><li>WRR: weighted round-robin.</li><li>LEAST_CONN: LEAST connection.</li><li>IP_HASH: based on IP HASH.</li><li>default is WRR.</li></ur>.
ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
// Tag.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// Specifies the default weight of the backend service. among them:.
// <ul><li>Value ranges from 0 to 100.</li><li>after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.</li><li>Weight parameter settings not supported for v1 target group type.</li></ul>.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Full listen target group flag. valid values: true (yes), false (no). only target groups of the new version V2 event type support this parameter.
FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
// Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. 0: disable; 1: enable. this feature is off by default.
KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Session hold time, unit: second. value range: 30-3600. default: 0, disabled. this parameter is supported only for target groups with HTTP/HTTPS/GRPC backend forwarding protocol in the new version V2.
SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// IP version type.
IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
}
Predefined struct for user
type CreateTargetGroupResponse ¶
type CreateTargetGroupResponse struct {
*tchttp.BaseResponse
Response *CreateTargetGroupResponseParams `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 CreateTargetGroupResponseParams ¶
type CreateTargetGroupResponseParams struct {
// ID generated after target group creation
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CreateTopicRequest ¶
type CreateTopicRequest struct {
*tchttp.BaseRequest
// Log topic name
TopicName *string `json:"TopicName,omitnil,omitempty" name:"TopicName"`
// The number of topic partitions, which changes as partitions are split or merged. Each log topic can have up to 50 partitions. If this parameter is not passed in, 1 partition will be created by default and up to 10 partitions are allowed to be created.
PartitionCount *uint64 `json:"PartitionCount,omitnil,omitempty" name:"PartitionCount"`
// Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
TopicType *string `json:"TopicType,omitnil,omitempty" name:"TopicType"`
// Storage time in days, defaults to 30.
// -Log access to standard storage supports 1 to 3600 days. a value of 3640 indicates permanent retention.
// -Log access to infrequent storage supports 7 to 3600 days. a value of 3640 indicates permanent retention.
Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
// Log topic storage type. Valid values: `hot` (STANDARD storage); `cold` (IA storage). Default value: `hot`.
StorageType *string `json:"StorageType,omitnil,omitempty" name:"StorageType"`
}
func 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 CreateTopicRequestParams ¶
type CreateTopicRequestParams struct {
// Log topic name
TopicName *string `json:"TopicName,omitnil,omitempty" name:"TopicName"`
// The number of topic partitions, which changes as partitions are split or merged. Each log topic can have up to 50 partitions. If this parameter is not passed in, 1 partition will be created by default and up to 10 partitions are allowed to be created.
PartitionCount *uint64 `json:"PartitionCount,omitnil,omitempty" name:"PartitionCount"`
// Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
TopicType *string `json:"TopicType,omitnil,omitempty" name:"TopicType"`
// Storage time in days, defaults to 30.
// -Log access to standard storage supports 1 to 3600 days. a value of 3640 indicates permanent retention.
// -Log access to infrequent storage supports 7 to 3600 days. a value of 3640 indicates permanent retention.
Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
// Log topic storage type. Valid values: `hot` (STANDARD storage); `cold` (IA storage). Default value: `hot`.
StorageType *string `json:"StorageType,omitnil,omitempty" name:"StorageType"`
}
Predefined struct for user
type CreateTopicResponse ¶
type CreateTopicResponse struct {
*tchttp.BaseResponse
Response *CreateTopicResponseParams `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 CreateTopicResponseParams ¶
type CreateTopicResponseParams struct {
// Log topic ID
TopicId *string `json:"TopicId,omitnil,omitempty" name:"TopicId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type CrossTargets ¶
type CrossTargets struct {
// VPC ID of the CLB instance
LocalVpcId *string `json:"LocalVpcId,omitnil,omitempty" name:"LocalVpcId"`
// VPC ID of the CVM or ENI instance
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// IP address of the CVM or ENI instance
IP *string `json:"IP,omitnil,omitempty" name:"IP"`
// VPC name of the CVM or ENI instance
VpcName *string `json:"VpcName,omitnil,omitempty" name:"VpcName"`
// ENI ID of the CVM instance
EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
// Submachine instance ID.
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Submachine instance name.
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Region of the CVM or ENI instance
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
}
type DeleteCustomizedConfigRequest ¶
type DeleteCustomizedConfigRequest struct {
*tchttp.BaseRequest
// Specifies the configuration ID list for deletion.
UconfigIdList []*string `json:"UconfigIdList,omitnil,omitempty" name:"UconfigIdList"`
}
func NewDeleteCustomizedConfigRequest ¶
func NewDeleteCustomizedConfigRequest() (request *DeleteCustomizedConfigRequest)
func (*DeleteCustomizedConfigRequest) FromJsonString ¶
func (r *DeleteCustomizedConfigRequest) 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 (*DeleteCustomizedConfigRequest) ToJsonString ¶
func (r *DeleteCustomizedConfigRequest) ToJsonString() string
type DeleteCustomizedConfigRequestParams ¶
type DeleteCustomizedConfigRequestParams struct {
// Specifies the configuration ID list for deletion.
UconfigIdList []*string `json:"UconfigIdList,omitnil,omitempty" name:"UconfigIdList"`
}
Predefined struct for user
type DeleteCustomizedConfigResponse ¶
type DeleteCustomizedConfigResponse struct {
*tchttp.BaseResponse
Response *DeleteCustomizedConfigResponseParams `json:"Response"`
}
func NewDeleteCustomizedConfigResponse ¶
func NewDeleteCustomizedConfigResponse() (response *DeleteCustomizedConfigResponse)
func (*DeleteCustomizedConfigResponse) FromJsonString ¶
func (r *DeleteCustomizedConfigResponse) 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 (*DeleteCustomizedConfigResponse) ToJsonString ¶
func (r *DeleteCustomizedConfigResponse) ToJsonString() string
type DeleteCustomizedConfigResponseParams ¶
type DeleteCustomizedConfigResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteListenerRequest ¶
type DeleteListenerRequest struct {
*tchttp.BaseRequest
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// The listener ID to be deleted, can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
}
func 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 DeleteListenerRequestParams ¶
type DeleteListenerRequestParams struct {
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// The listener ID to be deleted, can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
}
Predefined struct for user
type DeleteListenerResponse ¶
type DeleteListenerResponse struct {
*tchttp.BaseResponse
Response *DeleteListenerResponseParams `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 DeleteListenerResponseParams ¶
type DeleteListenerResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteLoadBalancerListenersRequest ¶
type DeleteLoadBalancerListenersRequest struct {
*tchttp.BaseRequest
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the listener ID array to be deleted, with a maximum of 20 elements. if left blank, all listeners of the clb will be deleted. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
}
func 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 DeleteLoadBalancerListenersRequestParams ¶
type DeleteLoadBalancerListenersRequestParams struct {
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the listener ID array to be deleted, with a maximum of 20 elements. if left blank, all listeners of the clb will be deleted. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
}
Predefined struct for user
type DeleteLoadBalancerListenersResponse ¶
type DeleteLoadBalancerListenersResponse struct {
*tchttp.BaseResponse
Response *DeleteLoadBalancerListenersResponseParams `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 DeleteLoadBalancerListenersResponseParams ¶
type DeleteLoadBalancerListenersResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteLoadBalancerRequest ¶
type DeleteLoadBalancerRequest struct {
*tchttp.BaseRequest
// CLB instance ID array to be deleted, which can be obtained by calling the [DescribeLoadBalancers](https://www.tencentcloud.com/document/product/214/30685?from_cn_redirect=1) API. The array can include up to 20 elements.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Whether to forcibly delete the CLB instance. True indicates forced deletion; False indicates non-forced deletion, and blocking verification is required.
// The default value is False.
// The deletion operation is blocked by default in the following cases. If you confirm forced deletion, the value of the forced verification parameter ForceDelete should be set to True.
// 1. The instance with 20 or more RS bound to the backend is deleted.
// 2. The instance with RS bound to the backend and the maximum peak inbound/outbound bandwidth exceeding 10 Mbps within 5 minutes is deleted.
// 3. Thirty or more instances are deleted within 5 minutes in a single region.
ForceDelete *bool `json:"ForceDelete,omitnil,omitempty" name:"ForceDelete"`
}
func 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 DeleteLoadBalancerRequestParams ¶
type DeleteLoadBalancerRequestParams struct {
// CLB instance ID array to be deleted, which can be obtained by calling the [DescribeLoadBalancers](https://www.tencentcloud.com/document/product/214/30685?from_cn_redirect=1) API. The array can include up to 20 elements.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Whether to forcibly delete the CLB instance. True indicates forced deletion; False indicates non-forced deletion, and blocking verification is required.
// The default value is False.
// The deletion operation is blocked by default in the following cases. If you confirm forced deletion, the value of the forced verification parameter ForceDelete should be set to True.
// 1. The instance with 20 or more RS bound to the backend is deleted.
// 2. The instance with RS bound to the backend and the maximum peak inbound/outbound bandwidth exceeding 10 Mbps within 5 minutes is deleted.
// 3. Thirty or more instances are deleted within 5 minutes in a single region.
ForceDelete *bool `json:"ForceDelete,omitnil,omitempty" name:"ForceDelete"`
}
Predefined struct for user
type DeleteLoadBalancerResponse ¶
type DeleteLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *DeleteLoadBalancerResponseParams `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 DeleteLoadBalancerResponseParams ¶
type DeleteLoadBalancerResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteLoadBalancerSnatIpsRequest ¶
type DeleteLoadBalancerSnatIpsRequest struct {
*tchttp.BaseRequest
// Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID, such as lb-12345678.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the address array of SnatIp to delete. maximum deletion supported is 20.
Ips []*string `json:"Ips,omitnil,omitempty" name:"Ips"`
}
func 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 DeleteLoadBalancerSnatIpsRequestParams ¶
type DeleteLoadBalancerSnatIpsRequestParams struct {
// Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID, such as lb-12345678.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the address array of SnatIp to delete. maximum deletion supported is 20.
Ips []*string `json:"Ips,omitnil,omitempty" name:"Ips"`
}
Predefined struct for user
type DeleteLoadBalancerSnatIpsResponse ¶
type DeleteLoadBalancerSnatIpsResponse struct {
*tchttp.BaseResponse
Response *DeleteLoadBalancerSnatIpsResponseParams `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 DeleteLoadBalancerSnatIpsResponseParams ¶
type DeleteLoadBalancerSnatIpsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteRewriteRequest ¶
type DeleteRewriteRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Source listener ID
SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
// Target listener ID
TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
// Redirection relationship between forwarding rules
RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
}
func 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 DeleteRewriteRequestParams ¶
type DeleteRewriteRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Source listener ID
SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
// Target listener ID
TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
// Redirection relationship between forwarding rules
RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
}
Predefined struct for user
type DeleteRewriteResponse ¶
type DeleteRewriteResponse struct {
*tchttp.BaseResponse
Response *DeleteRewriteResponseParams `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 DeleteRewriteResponseParams ¶
type DeleteRewriteResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteRuleRequest ¶
type DeleteRuleRequest struct {
*tchttp.BaseRequest
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Array of ids of forwarding rules to be deleted, can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
// Domain name of the forwarding rule to be deleted. if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Forwarding path of the forwarding rule to be deleted can be accessed through the DescribeLoadBalancersDetail api (https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1).
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// A default domain name must be configured under the listener. when you need to delete the default domain name, you can specify another domain name as the new default domain name. if the new default domain name is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
}
func 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 DeleteRuleRequestParams ¶
type DeleteRuleRequestParams struct {
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Array of ids of forwarding rules to be deleted, can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
// Domain name of the forwarding rule to be deleted. if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1) api.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Forwarding path of the forwarding rule to be deleted can be accessed through the DescribeLoadBalancersDetail api (https://www.tencentcloud.comom/document/api/214/46916?from_cn_redirect=1).
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// A default domain name must be configured under the listener. when you need to delete the default domain name, you can specify another domain name as the new default domain name. if the new default domain name is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
}
Predefined struct for user
type DeleteRuleResponse ¶
type DeleteRuleResponse struct {
*tchttp.BaseResponse
Response *DeleteRuleResponseParams `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 DeleteRuleResponseParams ¶
type DeleteRuleResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeleteTargetGroupsRequest ¶
type DeleteTargetGroupsRequest struct {
*tchttp.BaseRequest
// Specifies the ID array of the target group. supports up to 20 deletions.
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
}
func 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 DeleteTargetGroupsRequestParams ¶
type DeleteTargetGroupsRequestParams struct {
// Specifies the ID array of the target group. supports up to 20 deletions.
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
}
Predefined struct for user
type DeleteTargetGroupsResponse ¶
type DeleteTargetGroupsResponse struct {
*tchttp.BaseResponse
Response *DeleteTargetGroupsResponseParams `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 DeleteTargetGroupsResponseParams ¶
type DeleteTargetGroupsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeregisterFunctionTargetsRequest ¶
type DeregisterFunctionTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of functions to be unbound
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// The ID of target forwarding rule. To unbind a function from an L7 forwarding rule, either `LocationId` or `Domain+Url` is required.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// URL of the target forwarding rule. It is ignored if `LocationId` is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
func NewDeregisterFunctionTargetsRequest ¶
func NewDeregisterFunctionTargetsRequest() (request *DeregisterFunctionTargetsRequest)
func (*DeregisterFunctionTargetsRequest) FromJsonString ¶
func (r *DeregisterFunctionTargetsRequest) 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 (*DeregisterFunctionTargetsRequest) ToJsonString ¶
func (r *DeregisterFunctionTargetsRequest) ToJsonString() string
type DeregisterFunctionTargetsRequestParams ¶
type DeregisterFunctionTargetsRequestParams struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of functions to be unbound
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// The ID of target forwarding rule. To unbind a function from an L7 forwarding rule, either `LocationId` or `Domain+Url` is required.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// URL of the target forwarding rule. It is ignored if `LocationId` is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
Predefined struct for user
type DeregisterFunctionTargetsResponse ¶
type DeregisterFunctionTargetsResponse struct {
*tchttp.BaseResponse
Response *DeregisterFunctionTargetsResponseParams `json:"Response"`
}
func NewDeregisterFunctionTargetsResponse ¶
func NewDeregisterFunctionTargetsResponse() (response *DeregisterFunctionTargetsResponse)
func (*DeregisterFunctionTargetsResponse) FromJsonString ¶
func (r *DeregisterFunctionTargetsResponse) 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 (*DeregisterFunctionTargetsResponse) ToJsonString ¶
func (r *DeregisterFunctionTargetsResponse) ToJsonString() string
type DeregisterFunctionTargetsResponseParams ¶
type DeregisterFunctionTargetsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeregisterTargetGroupInstancesRequest ¶
type DeregisterTargetGroupInstancesRequest struct {
*tchttp.BaseRequest
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Specifies information on server to be unbound. supports bulk removal with the largest quantity of 20 per operation.
// Port is a required item in this api.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
func 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 DeregisterTargetGroupInstancesRequestParams ¶
type DeregisterTargetGroupInstancesRequestParams struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Specifies information on server to be unbound. supports bulk removal with the largest quantity of 20 per operation.
// Port is a required item in this api.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
Predefined struct for user
type DeregisterTargetGroupInstancesResponse ¶
type DeregisterTargetGroupInstancesResponse struct {
*tchttp.BaseResponse
Response *DeregisterTargetGroupInstancesResponseParams `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 DeregisterTargetGroupInstancesResponseParams ¶
type DeregisterTargetGroupInstancesResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeregisterTargetsFromClassicalLBRequest ¶
type DeregisterTargetsFromClassicalLBRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of real server IDs
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
func 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 DeregisterTargetsFromClassicalLBRequestParams ¶
type DeregisterTargetsFromClassicalLBRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of real server IDs
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
Predefined struct for user
type DeregisterTargetsFromClassicalLBResponse ¶
type DeregisterTargetsFromClassicalLBResponse struct {
*tchttp.BaseResponse
Response *DeregisterTargetsFromClassicalLBResponseParams `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 DeregisterTargetsFromClassicalLBResponseParams ¶
type DeregisterTargetsFromClassicalLBResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DeregisterTargetsRequest ¶
type DeregisterTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID in the format of "lb-12345678"
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Listener ID in the format of "lbl-12345678"
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers to be unbound. Array length limit: 20.
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Forwarding rule ID in the format of "loc-12345678". When unbinding a server from a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
func 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 DeregisterTargetsRequestParams ¶
type DeregisterTargetsRequestParams struct {
// CLB instance ID in the format of "lb-12345678"
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Listener ID in the format of "lbl-12345678"
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers to be unbound. Array length limit: 20.
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Forwarding rule ID in the format of "loc-12345678". When unbinding a server from a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
Predefined struct for user
type DeregisterTargetsResponse ¶
type DeregisterTargetsResponse struct {
*tchttp.BaseResponse
Response *DeregisterTargetsResponseParams `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 DeregisterTargetsResponseParams ¶
type DeregisterTargetsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeBlockIPListRequest ¶
type DescribeBlockIPListRequest struct {
*tchttp.BaseRequest
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Data offset. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Maximum number of IPs to be returned. Default value: 100,000.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
func 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 DescribeBlockIPListRequestParams ¶
type DescribeBlockIPListRequestParams struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Data offset. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Maximum number of IPs to be returned. Default value: 100,000.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
Predefined struct for user
type DescribeBlockIPListResponse ¶
type DescribeBlockIPListResponse struct {
*tchttp.BaseResponse
Response *DescribeBlockIPListResponseParams `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 DescribeBlockIPListResponseParams ¶
type DescribeBlockIPListResponseParams struct {
// Number of returned IPs
BlockedIPCount *uint64 `json:"BlockedIPCount,omitnil,omitempty" name:"BlockedIPCount"`
// Field for getting real client IP
ClientIPField *string `json:"ClientIPField,omitnil,omitempty" name:"ClientIPField"`
// List of IPs added to blocklist 12360
BlockedIPList []*BlockedIP `json:"BlockedIPList,omitnil,omitempty" name:"BlockedIPList"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeBlockIPTaskRequest ¶
type DescribeBlockIPTaskRequest struct {
*tchttp.BaseRequest
// Async task ID returned by the `ModifyBlockIPList` API
TaskId *string `json:"TaskId,omitnil,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 DescribeBlockIPTaskRequestParams ¶
type DescribeBlockIPTaskRequestParams struct {
// Async task ID returned by the `ModifyBlockIPList` API
TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}
Predefined struct for user
type DescribeBlockIPTaskResponse ¶
type DescribeBlockIPTaskResponse struct {
*tchttp.BaseResponse
Response *DescribeBlockIPTaskResponseParams `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 DescribeBlockIPTaskResponseParams ¶
type DescribeBlockIPTaskResponseParams struct {
// 1: running; 2: failed; 6: succeeded
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeClassicalLBByInstanceIdRequest ¶
type DescribeClassicalLBByInstanceIdRequest struct {
*tchttp.BaseRequest
// List of real server IDs
InstanceIds []*string `json:"InstanceIds,omitnil,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 DescribeClassicalLBByInstanceIdRequestParams ¶
type DescribeClassicalLBByInstanceIdRequestParams struct {
// List of real server IDs
InstanceIds []*string `json:"InstanceIds,omitnil,omitempty" name:"InstanceIds"`
}
Predefined struct for user
type DescribeClassicalLBByInstanceIdResponse ¶
type DescribeClassicalLBByInstanceIdResponse struct {
*tchttp.BaseResponse
Response *DescribeClassicalLBByInstanceIdResponseParams `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 DescribeClassicalLBByInstanceIdResponseParams ¶
type DescribeClassicalLBByInstanceIdResponseParams struct {
// CLB information list
LoadBalancerInfoList []*ClassicalLoadBalancerInfo `json:"LoadBalancerInfoList,omitnil,omitempty" name:"LoadBalancerInfoList"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeClassicalLBHealthStatusRequest ¶
type DescribeClassicalLBHealthStatusRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
}
func 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 DescribeClassicalLBHealthStatusRequestParams ¶
type DescribeClassicalLBHealthStatusRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
}
Predefined struct for user
type DescribeClassicalLBHealthStatusResponse ¶
type DescribeClassicalLBHealthStatusResponse struct {
*tchttp.BaseResponse
Response *DescribeClassicalLBHealthStatusResponseParams `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 DescribeClassicalLBHealthStatusResponseParams ¶
type DescribeClassicalLBHealthStatusResponseParams struct {
// Backend health status list.
HealthList []*ClassicalHealth `json:"HealthList,omitnil,omitempty" name:"HealthList"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeClassicalLBListenersRequest ¶
type DescribeClassicalLBListenersRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of CLB listener IDs
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// CLB listening protocol. Valid values: TCP, UDP, HTTP, and HTTPS.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// CLB listening port. Value range: 1 - 65535.
ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
// Listener status. Valid values: 0 (creating) and 1 (running).
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}
func 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 DescribeClassicalLBListenersRequestParams ¶
type DescribeClassicalLBListenersRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of CLB listener IDs
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// CLB listening protocol. Valid values: TCP, UDP, HTTP, and HTTPS.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// CLB listening port. Value range: 1 - 65535.
ListenerPort *int64 `json:"ListenerPort,omitnil,omitempty" name:"ListenerPort"`
// Listener status. Valid values: 0 (creating) and 1 (running).
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}
Predefined struct for user
type DescribeClassicalLBListenersResponse ¶
type DescribeClassicalLBListenersResponse struct {
*tchttp.BaseResponse
Response *DescribeClassicalLBListenersResponseParams `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 DescribeClassicalLBListenersResponseParams ¶
type DescribeClassicalLBListenersResponseParams struct {
// Specifies the listener list.
Listeners []*ClassicalListener `json:"Listeners,omitnil,omitempty" name:"Listeners"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeClassicalLBTargetsRequest ¶
type DescribeClassicalLBTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,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 DescribeClassicalLBTargetsRequestParams ¶
type DescribeClassicalLBTargetsRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
}
Predefined struct for user
type DescribeClassicalLBTargetsResponse ¶
type DescribeClassicalLBTargetsResponse struct {
*tchttp.BaseResponse
Response *DescribeClassicalLBTargetsResponseParams `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 DescribeClassicalLBTargetsResponseParams ¶
type DescribeClassicalLBTargetsResponseParams struct {
// Real server list.
Targets []*ClassicalTarget `json:"Targets,omitnil,omitempty" name:"Targets"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
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 DescribeClsLogSetRequestParams ¶
type DescribeClsLogSetRequestParams struct {
}
Predefined struct for user
type DescribeClsLogSetResponse ¶
type DescribeClsLogSetResponse struct {
*tchttp.BaseResponse
Response *DescribeClsLogSetResponseParams `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 DescribeClsLogSetResponseParams ¶
type DescribeClsLogSetResponseParams struct {
// Logset ID
LogsetId *string `json:"LogsetId,omitnil,omitempty" name:"LogsetId"`
// Health check logset ID
HealthLogsetId *string `json:"HealthLogsetId,omitnil,omitempty" name:"HealthLogsetId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCrossTargetsRequest ¶
type DescribeCrossTargetsRequest struct {
*tchttp.BaseRequest
// Number of real server lists returned. Default value: 20; maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting offset of the real server list returned. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Filter conditions to query CVMs and ENIs
// <li> `vpc-id` - String - Required: No - (Filter condition) Filter by VPC ID, such as "vpc-12345678".</li>
// <li> `ip` - String - Required: No - (Filter condition) Filter by real server IP, such as "192.168.0.1".</li>
// <li> `listener-id` - String - Required: No - (Filter condition) Filter by listener ID, such as "lbl-12345678".</li>
// <li> `location-id` - String - Required: No - (Filter condition) Filter by forwarding rule ID of the layer-7 listener, such as "loc-12345678".</li>
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeCrossTargetsRequest ¶
func NewDescribeCrossTargetsRequest() (request *DescribeCrossTargetsRequest)
func (*DescribeCrossTargetsRequest) FromJsonString ¶
func (r *DescribeCrossTargetsRequest) 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 (*DescribeCrossTargetsRequest) ToJsonString ¶
func (r *DescribeCrossTargetsRequest) ToJsonString() string
type DescribeCrossTargetsRequestParams ¶
type DescribeCrossTargetsRequestParams struct {
// Number of real server lists returned. Default value: 20; maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting offset of the real server list returned. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Filter conditions to query CVMs and ENIs
// <li> `vpc-id` - String - Required: No - (Filter condition) Filter by VPC ID, such as "vpc-12345678".</li>
// <li> `ip` - String - Required: No - (Filter condition) Filter by real server IP, such as "192.168.0.1".</li>
// <li> `listener-id` - String - Required: No - (Filter condition) Filter by listener ID, such as "lbl-12345678".</li>
// <li> `location-id` - String - Required: No - (Filter condition) Filter by forwarding rule ID of the layer-7 listener, such as "loc-12345678".</li>
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeCrossTargetsResponse ¶
type DescribeCrossTargetsResponse struct {
*tchttp.BaseResponse
Response *DescribeCrossTargetsResponseParams `json:"Response"`
}
func NewDescribeCrossTargetsResponse ¶
func NewDescribeCrossTargetsResponse() (response *DescribeCrossTargetsResponse)
func (*DescribeCrossTargetsResponse) FromJsonString ¶
func (r *DescribeCrossTargetsResponse) 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 (*DescribeCrossTargetsResponse) ToJsonString ¶
func (r *DescribeCrossTargetsResponse) ToJsonString() string
type DescribeCrossTargetsResponseParams ¶
type DescribeCrossTargetsResponseParams struct {
// Total number of real server lists
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Real server list
CrossTargetSet []*CrossTargets `json:"CrossTargetSet,omitnil,omitempty" name:"CrossTargetSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeCustomizedConfigAssociateListRequest ¶
type DescribeCustomizedConfigAssociateListRequest struct {
*tchttp.BaseRequest
// Specifies the configuration ID, which can be obtained through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/product/214/60009?from_cn_redirect=1) api.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Start position of the binding list. Default: 0.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of binding lists to pull. Default: 20.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Search Domain. can be queried through the `Domain` field in the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/product/214/46916?from_cn_redirect=1) API return value.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
func 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 DescribeCustomizedConfigAssociateListRequestParams ¶
type DescribeCustomizedConfigAssociateListRequestParams struct {
// Specifies the configuration ID, which can be obtained through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/product/214/60009?from_cn_redirect=1) api.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Start position of the binding list. Default: 0.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of binding lists to pull. Default: 20.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Search Domain. can be queried through the `Domain` field in the [DescribeLoadBalancersDetail](https://www.tencentcloud.comom/document/product/214/46916?from_cn_redirect=1) API return value.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
Predefined struct for user
type DescribeCustomizedConfigAssociateListResponse ¶
type DescribeCustomizedConfigAssociateListResponse struct {
*tchttp.BaseResponse
Response *DescribeCustomizedConfigAssociateListResponseParams `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 DescribeCustomizedConfigAssociateListResponseParams ¶
type DescribeCustomizedConfigAssociateListResponseParams struct {
// List of bound resources
BindList []*BindDetailItem `json:"BindList,omitnil,omitempty" name:"BindList"`
// Total number of bound resources
TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
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,omitnil,omitempty" name:"ConfigType"`
// Pagination offset. defaults to 0.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of results. default value: 20.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Specifies the name of configs to query. Fuzzy match is supported.
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// Configuration ID, can be accessed through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/api/214/60009?from_cn_redirect=1) api.
UconfigIds []*string `json:"UconfigIds,omitnil,omitempty" name:"UconfigIds"`
// Filter criteria as follows:.
// - loadbalancer-id
// Filter by [cloud load balancer ID]. instance billing mode such as lb-9vxezxza.
// Type: String.
// Required: No
// Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
// - vip
// Filter by [clb VIP]. network billing mode such as "1.1.1.1", "2204::22:3".
// Type: String.
// Required: No
// Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func 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 DescribeCustomizedConfigListRequestParams ¶
type DescribeCustomizedConfigListRequestParams struct {
// Configuration type. Valid values: `CLB` (CLB-specific configs), `SERVER` (domain name-specific configs), and `LOCATION` (forwarding rule-specific configs).
ConfigType *string `json:"ConfigType,omitnil,omitempty" name:"ConfigType"`
// Pagination offset. defaults to 0.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of results. default value: 20.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Specifies the name of configs to query. Fuzzy match is supported.
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// Configuration ID, can be accessed through the [DescribeCustomizedConfigList](https://www.tencentcloud.comom/document/api/214/60009?from_cn_redirect=1) api.
UconfigIds []*string `json:"UconfigIds,omitnil,omitempty" name:"UconfigIds"`
// Filter criteria as follows:.
// - loadbalancer-id
// Filter by [cloud load balancer ID]. instance billing mode such as lb-9vxezxza.
// Type: String.
// Required: No
// Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
// - vip
// Filter by [clb VIP]. network billing mode such as "1.1.1.1", "2204::22:3".
// Type: String.
// Required: No
// Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeCustomizedConfigListResponse ¶
type DescribeCustomizedConfigListResponse struct {
*tchttp.BaseResponse
Response *DescribeCustomizedConfigListResponseParams `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 DescribeCustomizedConfigListResponseParams ¶
type DescribeCustomizedConfigListResponseParams struct {
// Configuration list.
ConfigList []*ConfigListItem `json:"ConfigList,omitnil,omitempty" name:"ConfigList"`
// Number of configurations.
TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeIdleLoadBalancersRequest ¶
type DescribeIdleLoadBalancersRequest struct {
*tchttp.BaseRequest
// Data offset. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of returned CLB instances. Default value: 20. Maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// The Region of the cloud load balancer can be obtained through the `RegionSet.Region` field in the API return value of [DescribeRegions](https://www.tencentcloud.comom/document/product/1596/77930?from_cn_redirect=1).
LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
}
func NewDescribeIdleLoadBalancersRequest ¶
func NewDescribeIdleLoadBalancersRequest() (request *DescribeIdleLoadBalancersRequest)
func (*DescribeIdleLoadBalancersRequest) FromJsonString ¶
func (r *DescribeIdleLoadBalancersRequest) 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 (*DescribeIdleLoadBalancersRequest) ToJsonString ¶
func (r *DescribeIdleLoadBalancersRequest) ToJsonString() string
type DescribeIdleLoadBalancersRequestParams ¶
type DescribeIdleLoadBalancersRequestParams struct {
// Data offset. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of returned CLB instances. Default value: 20. Maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// The Region of the cloud load balancer can be obtained through the `RegionSet.Region` field in the API return value of [DescribeRegions](https://www.tencentcloud.comom/document/product/1596/77930?from_cn_redirect=1).
LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
}
Predefined struct for user
type DescribeIdleLoadBalancersResponse ¶
type DescribeIdleLoadBalancersResponse struct {
*tchttp.BaseResponse
Response *DescribeIdleLoadBalancersResponseParams `json:"Response"`
}
func NewDescribeIdleLoadBalancersResponse ¶
func NewDescribeIdleLoadBalancersResponse() (response *DescribeIdleLoadBalancersResponse)
func (*DescribeIdleLoadBalancersResponse) FromJsonString ¶
func (r *DescribeIdleLoadBalancersResponse) 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 (*DescribeIdleLoadBalancersResponse) ToJsonString ¶
func (r *DescribeIdleLoadBalancersResponse) ToJsonString() string
type DescribeIdleLoadBalancersResponseParams ¶
type DescribeIdleLoadBalancersResponseParams struct {
// Idle instance list.
IdleLoadBalancers []*IdleLoadBalancer `json:"IdleLoadBalancers,omitnil,omitempty" name:"IdleLoadBalancers"`
// Total number of idle CLB instances
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeLBListenersRequest ¶
type DescribeLBListenersRequest struct {
*tchttp.BaseRequest
// List of private network IPs to be queried.
Backends []*LbRsItem `json:"Backends,omitnil,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 DescribeLBListenersRequestParams ¶
type DescribeLBListenersRequestParams struct {
// List of private network IPs to be queried.
Backends []*LbRsItem `json:"Backends,omitnil,omitempty" name:"Backends"`
}
Predefined struct for user
type DescribeLBListenersResponse ¶
type DescribeLBListenersResponse struct {
*tchttp.BaseResponse
Response *DescribeLBListenersResponseParams `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 DescribeLBListenersResponseParams ¶
type DescribeLBListenersResponseParams struct {
// Listener rule associated with the real server.
LoadBalancers []*LBItem `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeLBOperateProtectRequest ¶
type DescribeLBOperateProtectRequest struct {
*tchttp.BaseRequest
// CLB instance ID.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
func NewDescribeLBOperateProtectRequest ¶
func NewDescribeLBOperateProtectRequest() (request *DescribeLBOperateProtectRequest)
func (*DescribeLBOperateProtectRequest) FromJsonString ¶
func (r *DescribeLBOperateProtectRequest) 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 (*DescribeLBOperateProtectRequest) ToJsonString ¶
func (r *DescribeLBOperateProtectRequest) ToJsonString() string
type DescribeLBOperateProtectRequestParams ¶
type DescribeLBOperateProtectRequestParams struct {
// CLB instance ID.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
Predefined struct for user
type DescribeLBOperateProtectResponse ¶
type DescribeLBOperateProtectResponse struct {
*tchttp.BaseResponse
Response *DescribeLBOperateProtectResponseParams `json:"Response"`
}
func NewDescribeLBOperateProtectResponse ¶
func NewDescribeLBOperateProtectResponse() (response *DescribeLBOperateProtectResponse)
func (*DescribeLBOperateProtectResponse) FromJsonString ¶
func (r *DescribeLBOperateProtectResponse) 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 (*DescribeLBOperateProtectResponse) ToJsonString ¶
func (r *DescribeLBOperateProtectResponse) ToJsonString() string
type DescribeLBOperateProtectResponseParams ¶
type DescribeLBOperateProtectResponseParams struct {
// Describes the returned cloud load balancer operation protection information array.
LoadBalancerSet []*LBOperateProtectInfo `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeListenersRequest ¶
type DescribeListenersRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/api/214/30685?from_cn_redirect=1) api to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the array of clb listener ids to query, with a maximum of 100. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/api/214/30686?from_cn_redirect=1) api to obtain the ids.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// Type of the listener protocols to be queried. Values: TCP`, `UDP`, `HTTP`, `HTTPS`, `TCP_SSL` and `QUIC`.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Port of listener to query. value range: 1-65535.
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
}
func 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 DescribeListenersRequestParams ¶
type DescribeListenersRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/api/214/30685?from_cn_redirect=1) api to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the array of clb listener ids to query, with a maximum of 100. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/api/214/30686?from_cn_redirect=1) api to obtain the ids.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// Type of the listener protocols to be queried. Values: TCP`, `UDP`, `HTTP`, `HTTPS`, `TCP_SSL` and `QUIC`.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Port of listener to query. value range: 1-65535.
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
}
Predefined struct for user
type DescribeListenersResponse ¶
type DescribeListenersResponse struct {
*tchttp.BaseResponse
Response *DescribeListenersResponseParams `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 DescribeListenersResponseParams ¶
type DescribeListenersResponseParams struct {
// Listener list
Listeners []*Listener `json:"Listeners,omitnil,omitempty" name:"Listeners"`
// Total number of listeners (filtered by port, protocol, and listener ID).
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeLoadBalancerListByCertIdRequest ¶
type DescribeLoadBalancerListByCertIdRequest struct {
*tchttp.BaseRequest
// Specifies the server certificate ID or client certificate ID. can be accessed through the [DescribeCertificate](https://www.tencentcloud.comom/document/api/400/41674?from_cn_redirect=1) api.
// Specifies the maximum length of the array is 20.
CertIds []*string `json:"CertIds,omitnil,omitempty" name:"CertIds"`
}
func 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 DescribeLoadBalancerListByCertIdRequestParams ¶
type DescribeLoadBalancerListByCertIdRequestParams struct {
// Specifies the server certificate ID or client certificate ID. can be accessed through the [DescribeCertificate](https://www.tencentcloud.comom/document/api/400/41674?from_cn_redirect=1) api.
// Specifies the maximum length of the array is 20.
CertIds []*string `json:"CertIds,omitnil,omitempty" name:"CertIds"`
}
Predefined struct for user
type DescribeLoadBalancerListByCertIdResponse ¶
type DescribeLoadBalancerListByCertIdResponse struct {
*tchttp.BaseResponse
Response *DescribeLoadBalancerListByCertIdResponseParams `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 DescribeLoadBalancerListByCertIdResponseParams ¶
type DescribeLoadBalancerListByCertIdResponseParams struct {
// Certificate ID and list of CLB instances associated with it
CertSet []*CertIdRelatedWithLoadBalancers `json:"CertSet,omitnil,omitempty" name:"CertSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeLoadBalancerOverviewRequest ¶
type DescribeLoadBalancerOverviewRequest struct {
*tchttp.BaseRequest
}
func NewDescribeLoadBalancerOverviewRequest ¶
func NewDescribeLoadBalancerOverviewRequest() (request *DescribeLoadBalancerOverviewRequest)
func (*DescribeLoadBalancerOverviewRequest) FromJsonString ¶
func (r *DescribeLoadBalancerOverviewRequest) 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 (*DescribeLoadBalancerOverviewRequest) ToJsonString ¶
func (r *DescribeLoadBalancerOverviewRequest) ToJsonString() string
type DescribeLoadBalancerOverviewRequestParams ¶
type DescribeLoadBalancerOverviewRequestParams struct {
}
Predefined struct for user
type DescribeLoadBalancerOverviewResponse ¶
type DescribeLoadBalancerOverviewResponse struct {
*tchttp.BaseResponse
Response *DescribeLoadBalancerOverviewResponseParams `json:"Response"`
}
func NewDescribeLoadBalancerOverviewResponse ¶
func NewDescribeLoadBalancerOverviewResponse() (response *DescribeLoadBalancerOverviewResponse)
func (*DescribeLoadBalancerOverviewResponse) FromJsonString ¶
func (r *DescribeLoadBalancerOverviewResponse) 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 (*DescribeLoadBalancerOverviewResponse) ToJsonString ¶
func (r *DescribeLoadBalancerOverviewResponse) ToJsonString() string
type DescribeLoadBalancerOverviewResponseParams ¶
type DescribeLoadBalancerOverviewResponseParams struct {
// Total number of CLB instances
TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Number of CLB instances that are running
RunningCount *int64 `json:"RunningCount,omitnil,omitempty" name:"RunningCount"`
// Number of CLB instances that are isolated
IsolationCount *int64 `json:"IsolationCount,omitnil,omitempty" name:"IsolationCount"`
// Number of CLB instances that are about to expire
WillExpireCount *int64 `json:"WillExpireCount,omitnil,omitempty" name:"WillExpireCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
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,omitnil,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 DescribeLoadBalancerTrafficRequestParams ¶
type DescribeLoadBalancerTrafficRequestParams struct {
// CLB instance region. If this parameter is not passed in, CLB instances in all regions will be returned.
LoadBalancerRegion *string `json:"LoadBalancerRegion,omitnil,omitempty" name:"LoadBalancerRegion"`
}
Predefined struct for user
type DescribeLoadBalancerTrafficResponse ¶
type DescribeLoadBalancerTrafficResponse struct {
*tchttp.BaseResponse
Response *DescribeLoadBalancerTrafficResponseParams `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 DescribeLoadBalancerTrafficResponseParams ¶
type DescribeLoadBalancerTrafficResponseParams struct {
// Load balance information sorted in descending order by outbound bandwidth.
LoadBalancerTraffic []*LoadBalancerTraffic `json:"LoadBalancerTraffic,omitnil,omitempty" name:"LoadBalancerTraffic"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeLoadBalancersDetailRequest ¶
type DescribeLoadBalancersDetailRequest struct {
*tchttp.BaseRequest
// Number of CLB instance lists returned. Default value: 20; maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting offset of the CLB instance list returned. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// List of fields. Only fields specified will be returned. If it’s left blank, `null` is returned. The fields `LoadBalancerId` and `LoadBalancerName` are added by default. For details about fields, see <a href="https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#LoadBalancerDetail">LoadBalancerDetail</a>.
Fields []*string `json:"Fields,omitnil,omitempty" name:"Fields"`
// When the Fields include TargetId, TargetAddress, TargetPort, TargetWeight, ListenerId, Protocol, Port, LocationId, Domain, and Url, you must select exporting the Target of the Target GROUP or a non-Target GROUP. valid values: NODE, GROUP.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Querying conditions for cloud load balancer detailed information list. detailed filter criteria.
// - loadbalancer-id
// Filter by [clb ID], for example: lb-rbw5skde.
// Type: String.
// Required: No
// Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
// - project-id
// Filters by [project ID]. for example: "0", "123".
// Type: String.
// Required: No
// Method for obtaining: [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1).
// - network
// Filters by [clb network type]. for example: Public.
// Type: String.
// Required: No
// Valid values: Private (Private network), Public (Public network).
// - vip
// Filter by [cloud load balancer VIP], such as "1.1.1.1", "2204::22:3".
// Type: String.
// Required: No
// - vpcid
// Filter by the vpc to which the cloud load balancer belongs, such as "vpc-12345678".
// Type: String.
// Required: No
// Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
// - target-ip
// Filters by the private network IP of the backend destination. for example: "1.1.1.1", "2203::214:4".
// Type: String.
// Required: No
// - zone
// Filter by [availability zone of the cloud load balancer]. for example: "ap-guangzhou-1".
// Type: String.
// Required: No
// Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
// - tag-key
// Filters by [tag key of the cloud load balancer tag], for example: "name".
// Type: String.
// Required: No
// Method for obtaining: [DescribeTags](https://www.tencentcloud.comom/document/api/651/35316?from_cn_redirect=1).
// - tag:*
// Filter by [cloud load balancer tag], where ':' is followed by the tag key. for example, to filter by tag key 'name' with tag Values 'zhangsan' and 'lisi', use {"name": "tag:name","Values": ["zhangsan", "lisi"]}.
// Type: String.
// Required: No
// Method for obtaining: [DescribeTagKeys](https://www.tencentcloud.comom/document/api/651/35318?from_cn_redirect=1).
// - fuzzy-search
// Searches by [clb VIP, clb name] using fuzzy search, for example: "1.1".
// Type: String.
// Required: No
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func 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 DescribeLoadBalancersDetailRequestParams ¶
type DescribeLoadBalancersDetailRequestParams struct {
// Number of CLB instance lists returned. Default value: 20; maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting offset of the CLB instance list returned. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// List of fields. Only fields specified will be returned. If it’s left blank, `null` is returned. The fields `LoadBalancerId` and `LoadBalancerName` are added by default. For details about fields, see <a href="https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#LoadBalancerDetail">LoadBalancerDetail</a>.
Fields []*string `json:"Fields,omitnil,omitempty" name:"Fields"`
// When the Fields include TargetId, TargetAddress, TargetPort, TargetWeight, ListenerId, Protocol, Port, LocationId, Domain, and Url, you must select exporting the Target of the Target GROUP or a non-Target GROUP. valid values: NODE, GROUP.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Querying conditions for cloud load balancer detailed information list. detailed filter criteria.
// - loadbalancer-id
// Filter by [clb ID], for example: lb-rbw5skde.
// Type: String.
// Required: No
// Method for obtaining: [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1).
// - project-id
// Filters by [project ID]. for example: "0", "123".
// Type: String.
// Required: No
// Method for obtaining: [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1).
// - network
// Filters by [clb network type]. for example: Public.
// Type: String.
// Required: No
// Valid values: Private (Private network), Public (Public network).
// - vip
// Filter by [cloud load balancer VIP], such as "1.1.1.1", "2204::22:3".
// Type: String.
// Required: No
// - vpcid
// Filter by the vpc to which the cloud load balancer belongs, such as "vpc-12345678".
// Type: String.
// Required: No
// Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
// - target-ip
// Filters by the private network IP of the backend destination. for example: "1.1.1.1", "2203::214:4".
// Type: String.
// Required: No
// - zone
// Filter by [availability zone of the cloud load balancer]. for example: "ap-guangzhou-1".
// Type: String.
// Required: No
// Method for obtaining: [DescribeZones](https://www.tencentcloud.comom/document/product/213/15707?from_cn_redirect=1).
// - tag-key
// Filters by [tag key of the cloud load balancer tag], for example: "name".
// Type: String.
// Required: No
// Method for obtaining: [DescribeTags](https://www.tencentcloud.comom/document/api/651/35316?from_cn_redirect=1).
// - tag:*
// Filter by [cloud load balancer tag], where ':' is followed by the tag key. for example, to filter by tag key 'name' with tag Values 'zhangsan' and 'lisi', use {"name": "tag:name","Values": ["zhangsan", "lisi"]}.
// Type: String.
// Required: No
// Method for obtaining: [DescribeTagKeys](https://www.tencentcloud.comom/document/api/651/35318?from_cn_redirect=1).
// - fuzzy-search
// Searches by [clb VIP, clb name] using fuzzy search, for example: "1.1".
// Type: String.
// Required: No
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeLoadBalancersDetailResponse ¶
type DescribeLoadBalancersDetailResponse struct {
*tchttp.BaseResponse
Response *DescribeLoadBalancersDetailResponseParams `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 DescribeLoadBalancersDetailResponseParams ¶
type DescribeLoadBalancersDetailResponseParams struct {
// Total number of lists describing CLB instance details.
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Load balancing detail list.
LoadBalancerDetailSet []*LoadBalancerDetail `json:"LoadBalancerDetailSet,omitnil,omitempty" name:"LoadBalancerDetailSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeLoadBalancersRequest ¶
type DescribeLoadBalancersRequest struct {
*tchttp.BaseRequest
// CLB instance IDs. There can be up to 20 IDs.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// CLB instance network type:
// OPEN: public network; INTERNAL: private network.
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// CLB instance type. 1: generic CLB instance; 0: classic CLB instance
Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// Specifies the name of the clb instance. fuzzy query is supported.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Tencent cloud assigns a domain name to the cloud load balancer instance. fuzzy query is supported.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// VIP address of a CLB instance (there can be multiple addresses)
LoadBalancerVips []*string `json:"LoadBalancerVips,omitnil,omitempty" name:"LoadBalancerVips"`
// Public IPs of the backend services bound with the load balancer. Only the public IPs of CVMs are supported now.
BackendPublicIps []*string `json:"BackendPublicIps,omitnil,omitempty" name:"BackendPublicIps"`
// Private IPs of the backend services bound with the load balancer. Only the private IPs of CVMs are supported now.
BackendPrivateIps []*string `json:"BackendPrivateIps,omitnil,omitempty" name:"BackendPrivateIps"`
// Data offset. Default value: 0.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of returned CLB instances. Default value: 20. Maximum value: 100.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sorting parameter. supports the following fields:.
// - LoadBalancerName
// - CreateTime
// - Domain
// - LoadBalancerType
//
// Defaults to CreateTime.
OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 1 for descending, 0 for ascending, defaults to 1, sorted by creation time in descending order.
OrderType *int64 `json:"OrderType,omitnil,omitempty" name:"OrderType"`
// Specifies the fuzzy search field for fuzzy matching the name, domain name, VIP address, or ID of a cloud load balancer instance.
SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
// Project ID of the cloud load balancer instance. you can call the [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1) api to obtain the ID. defaults to all projects if not passed.
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// Whether a CLB instance is bound to a real server. 0: no; 1: yes; -1: query all.
WithRs *int64 `json:"WithRs,omitnil,omitempty" name:"WithRs"`
// Specifies the unique vpc ID of the load balancing instance, such as vpc-bhqkbhdx. you can call the [DescribeVpcs](https://www.tencentcloud.comom/document/api/215/15778?from_cn_redirect=1) api to obtain it.
// Searches for cloud load balancer of basic network type. allows input '0'.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Security group ID, such as sg-m1cc****, can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// Primary availability zone ID, such as 100001 (corresponding to Guangzhou Zone 1). You can obtain the list of availability zones through [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1).
MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// Each request can have up to 10 `Filters` and 100 `Filter.Values`. Detailed filter conditions:
// <li> internet-charge-type - Type: String - Required: No - Filter by CLB network billing mode, including `TRAFFIC_POSTPAID_BY_HOUR`</li>
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Specifies the expanded fields to return. not specified, expanded fields do not return by default. supported expanded fields are as follows:.
// <Li>TargetCount: specifies the number of real servers bound to it.</li>.
AdditionalFields []*string `json:"AdditionalFields,omitnil,omitempty" name:"AdditionalFields"`
}
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 DescribeLoadBalancersRequestParams ¶
type DescribeLoadBalancersRequestParams struct {
// CLB instance IDs. There can be up to 20 IDs.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// CLB instance network type:
// OPEN: public network; INTERNAL: private network.
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// CLB instance type. 1: generic CLB instance; 0: classic CLB instance
Forward *int64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// Specifies the name of the clb instance. fuzzy query is supported.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Tencent cloud assigns a domain name to the cloud load balancer instance. fuzzy query is supported.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// VIP address of a CLB instance (there can be multiple addresses)
LoadBalancerVips []*string `json:"LoadBalancerVips,omitnil,omitempty" name:"LoadBalancerVips"`
// Public IPs of the backend services bound with the load balancer. Only the public IPs of CVMs are supported now.
BackendPublicIps []*string `json:"BackendPublicIps,omitnil,omitempty" name:"BackendPublicIps"`
// Private IPs of the backend services bound with the load balancer. Only the private IPs of CVMs are supported now.
BackendPrivateIps []*string `json:"BackendPrivateIps,omitnil,omitempty" name:"BackendPrivateIps"`
// Data offset. Default value: 0.
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Number of returned CLB instances. Default value: 20. Maximum value: 100.
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Sorting parameter. supports the following fields:.
// - LoadBalancerName
// - CreateTime
// - Domain
// - LoadBalancerType
//
// Defaults to CreateTime.
OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
// 1 for descending, 0 for ascending, defaults to 1, sorted by creation time in descending order.
OrderType *int64 `json:"OrderType,omitnil,omitempty" name:"OrderType"`
// Specifies the fuzzy search field for fuzzy matching the name, domain name, VIP address, or ID of a cloud load balancer instance.
SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
// Project ID of the cloud load balancer instance. you can call the [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1) api to obtain the ID. defaults to all projects if not passed.
ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// Whether a CLB instance is bound to a real server. 0: no; 1: yes; -1: query all.
WithRs *int64 `json:"WithRs,omitnil,omitempty" name:"WithRs"`
// Specifies the unique vpc ID of the load balancing instance, such as vpc-bhqkbhdx. you can call the [DescribeVpcs](https://www.tencentcloud.comom/document/api/215/15778?from_cn_redirect=1) api to obtain it.
// Searches for cloud load balancer of basic network type. allows input '0'.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Security group ID, such as sg-m1cc****, can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// Primary availability zone ID, such as 100001 (corresponding to Guangzhou Zone 1). You can obtain the list of availability zones through [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1).
MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// Each request can have up to 10 `Filters` and 100 `Filter.Values`. Detailed filter conditions:
// <li> internet-charge-type - Type: String - Required: No - Filter by CLB network billing mode, including `TRAFFIC_POSTPAID_BY_HOUR`</li>
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Specifies the expanded fields to return. not specified, expanded fields do not return by default. supported expanded fields are as follows:.
// <Li>TargetCount: specifies the number of real servers bound to it.</li>.
AdditionalFields []*string `json:"AdditionalFields,omitnil,omitempty" name:"AdditionalFields"`
}
Predefined struct for user
type DescribeLoadBalancersResponse ¶
type DescribeLoadBalancersResponse struct {
*tchttp.BaseResponse
Response *DescribeLoadBalancersResponseParams `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 DescribeLoadBalancersResponseParams ¶
type DescribeLoadBalancersResponseParams struct {
// Total number of CLB instances that meet the filter criteria. This value is independent of the Limit in the input parameter.
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Array of returned CLB instances.
LoadBalancerSet []*LoadBalancer `json:"LoadBalancerSet,omitnil,omitempty" name:"LoadBalancerSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
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 DescribeQuotaRequestParams ¶
type DescribeQuotaRequestParams struct {
}
Predefined struct for user
type DescribeQuotaResponse ¶
type DescribeQuotaResponse struct {
*tchttp.BaseResponse
Response *DescribeQuotaResponseParams `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 DescribeQuotaResponseParams ¶
type DescribeQuotaResponseParams struct {
// Quota list
QuotaSet []*Quota `json:"QuotaSet,omitnil,omitempty" name:"QuotaSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeResourcesRequest ¶
type DescribeResourcesRequest struct {
*tchttp.BaseRequest
// Number of returned AZ resources. Default value: 20. Maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting offset of the returned AZ resource list. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Specifies the conditions for querying the availability zone resource list. detailed filter criteria are as follows:.
// - master-zone
// Filters by regional availability zone, for example: ap-guangzhou-2.
// Type: String.
// Required: No
// - ip-version
// Filter by [IP type], such as IPv4.
// Type: String.
// Required: No
// Valid values: IPv4, IPv6, IPv6_Nat.
// - isp
// Filters by [ISP type], for example: BGP.
// Type: String.
// Required: No
// Optional. valid values: BGP, CMCC (china mobile), CUCC (china unicom), CTCC (china telecom), BGP_PRO, INTERNAL (private network).
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func NewDescribeResourcesRequest ¶
func NewDescribeResourcesRequest() (request *DescribeResourcesRequest)
func (*DescribeResourcesRequest) FromJsonString ¶
func (r *DescribeResourcesRequest) 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 (*DescribeResourcesRequest) ToJsonString ¶
func (r *DescribeResourcesRequest) ToJsonString() string
type DescribeResourcesRequestParams ¶
type DescribeResourcesRequestParams struct {
// Number of returned AZ resources. Default value: 20. Maximum value: 100.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting offset of the returned AZ resource list. Default value: 0.
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Specifies the conditions for querying the availability zone resource list. detailed filter criteria are as follows:.
// - master-zone
// Filters by regional availability zone, for example: ap-guangzhou-2.
// Type: String.
// Required: No
// - ip-version
// Filter by [IP type], such as IPv4.
// Type: String.
// Required: No
// Valid values: IPv4, IPv6, IPv6_Nat.
// - isp
// Filters by [ISP type], for example: BGP.
// Type: String.
// Required: No
// Optional. valid values: BGP, CMCC (china mobile), CUCC (china unicom), CTCC (china telecom), BGP_PRO, INTERNAL (private network).
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeResourcesResponse ¶
type DescribeResourcesResponse struct {
*tchttp.BaseResponse
Response *DescribeResourcesResponseParams `json:"Response"`
}
func NewDescribeResourcesResponse ¶
func NewDescribeResourcesResponse() (response *DescribeResourcesResponse)
func (*DescribeResourcesResponse) FromJsonString ¶
func (r *DescribeResourcesResponse) 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 (*DescribeResourcesResponse) ToJsonString ¶
func (r *DescribeResourcesResponse) ToJsonString() string
type DescribeResourcesResponseParams ¶
type DescribeResourcesResponseParams struct {
// List of resources supported by the AZ
ZoneResourceSet []*ZoneResource `json:"ZoneResourceSet,omitnil,omitempty" name:"ZoneResourceSet"`
// Number of entries in the AZ resource list.
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeRewriteRequest ¶
type DescribeRewriteRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Array of CLB listener IDs
SourceListenerIds []*string `json:"SourceListenerIds,omitnil,omitempty" name:"SourceListenerIds"`
// Array of CLB forwarding rule IDs
SourceLocationIds []*string `json:"SourceLocationIds,omitnil,omitempty" name:"SourceLocationIds"`
}
func 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 DescribeRewriteRequestParams ¶
type DescribeRewriteRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Array of CLB listener IDs
SourceListenerIds []*string `json:"SourceListenerIds,omitnil,omitempty" name:"SourceListenerIds"`
// Array of CLB forwarding rule IDs
SourceLocationIds []*string `json:"SourceLocationIds,omitnil,omitempty" name:"SourceLocationIds"`
}
Predefined struct for user
type DescribeRewriteResponse ¶
type DescribeRewriteResponse struct {
*tchttp.BaseResponse
Response *DescribeRewriteResponseParams `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 DescribeRewriteResponseParams ¶
type DescribeRewriteResponseParams struct {
// Array of redirection forwarding rules. If there are no redirection rules, an empty array will be returned.
RewriteSet []*RuleOutput `json:"RewriteSet,omitnil,omitempty" name:"RewriteSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTargetGroupInstancesRequest ¶
type DescribeTargetGroupInstancesRequest struct {
*tchttp.BaseRequest
// Filter criteria, currently supported by multiple conditions combined as TargetGroupId, BindIP, and InstanceId.
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Number of displayed results. Default value: 20
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Display offset. Default value: 0
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}
func 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 DescribeTargetGroupInstancesRequestParams ¶
type DescribeTargetGroupInstancesRequestParams struct {
// Filter criteria, currently supported by multiple conditions combined as TargetGroupId, BindIP, and InstanceId.
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Number of displayed results. Default value: 20
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Display offset. Default value: 0
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}
Predefined struct for user
type DescribeTargetGroupInstancesResponse ¶
type DescribeTargetGroupInstancesResponse struct {
*tchttp.BaseResponse
Response *DescribeTargetGroupInstancesResponseParams `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 DescribeTargetGroupInstancesResponseParams ¶
type DescribeTargetGroupInstancesResponseParams struct {
// Number of results returned for the current query
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Information of the bound server
TargetGroupInstanceSet []*TargetGroupBackend `json:"TargetGroupInstanceSet,omitnil,omitempty" name:"TargetGroupInstanceSet"`
// The actual total number of bound instances, which is not affected by the setting of `Limit`, `Offset` and the CAM permissions.
RealCount *uint64 `json:"RealCount,omitnil,omitempty" name:"RealCount"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTargetGroupListRequest ¶
type DescribeTargetGroupListRequest struct {
*tchttp.BaseRequest
// Target group ID array
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
// Filter array, which is exclusive of `TargetGroupIds`. Valid values: `TargetGroupVpcId` and `TargetGroupName`. Target group ID will be used first.
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Starting display offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Limit of the number of displayed results. Default value: 20.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
func 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 DescribeTargetGroupListRequestParams ¶
type DescribeTargetGroupListRequestParams struct {
// Target group ID array
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
// Filter array, which is exclusive of `TargetGroupIds`. Valid values: `TargetGroupVpcId` and `TargetGroupName`. Target group ID will be used first.
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
// Starting display offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Limit of the number of displayed results. Default value: 20.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}
Predefined struct for user
type DescribeTargetGroupListResponse ¶
type DescribeTargetGroupListResponse struct {
*tchttp.BaseResponse
Response *DescribeTargetGroupListResponseParams `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 DescribeTargetGroupListResponseParams ¶
type DescribeTargetGroupListResponseParams struct {
// Number of displayed results
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Information set of displayed target groups
TargetGroupSet []*TargetGroupInfo `json:"TargetGroupSet,omitnil,omitempty" name:"TargetGroupSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTargetGroupsRequest ¶
type DescribeTargetGroupsRequest struct {
*tchttp.BaseRequest
// Target group ID, which is exclusive of `Filters`.
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
// Limit of the number of displayed results. Default value: 20.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting display offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Filter condition array, mutually exclusive with TargetGroupIds, supports TargetGroupVpcId (vpc ID), TargetGroupName (target group name), and Tag.
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
func 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 DescribeTargetGroupsRequestParams ¶
type DescribeTargetGroupsRequestParams struct {
// Target group ID, which is exclusive of `Filters`.
TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`
// Limit of the number of displayed results. Default value: 20.
Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// Starting display offset
Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`
// Filter condition array, mutually exclusive with TargetGroupIds, supports TargetGroupVpcId (vpc ID), TargetGroupName (target group name), and Tag.
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeTargetGroupsResponse ¶
type DescribeTargetGroupsResponse struct {
*tchttp.BaseResponse
Response *DescribeTargetGroupsResponseParams `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 DescribeTargetGroupsResponseParams ¶
type DescribeTargetGroupsResponseParams struct {
// Number of displayed results
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// Information set of displayed target groups
TargetGroupSet []*TargetGroupInfo `json:"TargetGroupSet,omitnil,omitempty" name:"TargetGroupSet"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTargetHealthRequest ¶
type DescribeTargetHealthRequest struct {
*tchttp.BaseRequest
// List of IDs of CLB instances to be queried
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Specifies the listener ID list to query.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// Specifies the list of rule ids to be queried.
LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
}
func 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 DescribeTargetHealthRequestParams ¶
type DescribeTargetHealthRequestParams struct {
// List of IDs of CLB instances to be queried
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Specifies the listener ID list to query.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// Specifies the list of rule ids to be queried.
LocationIds []*string `json:"LocationIds,omitnil,omitempty" name:"LocationIds"`
}
Predefined struct for user
type DescribeTargetHealthResponse ¶
type DescribeTargetHealthResponse struct {
*tchttp.BaseResponse
Response *DescribeTargetHealthResponseParams `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 DescribeTargetHealthResponseParams ¶
type DescribeTargetHealthResponseParams struct {
// LoadBalancer list.
LoadBalancers []*LoadBalancerHealth `json:"LoadBalancers,omitnil,omitempty" name:"LoadBalancers"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTargetsRequest ¶
type DescribeTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of listener IDs (20 IDs at most).
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// Listener protocol type
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Conditions for querying the list of real servers bound to the CLB. The filter criteria are as follows:<li> location-id - String - Required: No - (Filter criterion) Filter by rule ID, such as loc-12345678.</li><li> private-ip-address - String - Required: No - (Filter criterion) Filter by private IP address of the real server, such as 172.16.1.1.</li><li> tag - String - Required: No - (Filter criterion) Filter by tag, such as tag-test.</li>
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
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 DescribeTargetsRequestParams ¶
type DescribeTargetsRequestParams struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// List of listener IDs (20 IDs at most).
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
// Listener protocol type
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Conditions for querying the list of real servers bound to the CLB. The filter criteria are as follows:<li> location-id - String - Required: No - (Filter criterion) Filter by rule ID, such as loc-12345678.</li><li> private-ip-address - String - Required: No - (Filter criterion) Filter by private IP address of the real server, such as 172.16.1.1.</li><li> tag - String - Required: No - (Filter criterion) Filter by tag, such as tag-test.</li>
Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}
Predefined struct for user
type DescribeTargetsResponse ¶
type DescribeTargetsResponse struct {
*tchttp.BaseResponse
Response *DescribeTargetsResponseParams `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 DescribeTargetsResponseParams ¶
type DescribeTargetsResponseParams struct {
// Information of real servers bound to the listener.
Listeners []*ListenerBackend `json:"Listeners,omitnil,omitempty" name:"Listeners"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DescribeTaskStatusRequest ¶
type DescribeTaskStatusRequest struct {
*tchttp.BaseRequest
// Request ID, i.e., the RequestId parameter returned by the API.
TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
// Order ID.
// Note: Either `TaskId` or `DealName` is required.
DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
}
func 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 DescribeTaskStatusRequestParams ¶
type DescribeTaskStatusRequestParams struct {
// Request ID, i.e., the RequestId parameter returned by the API.
TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
// Order ID.
// Note: Either `TaskId` or `DealName` is required.
DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
}
Predefined struct for user
type DescribeTaskStatusResponse ¶
type DescribeTaskStatusResponse struct {
*tchttp.BaseResponse
Response *DescribeTaskStatusResponseParams `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 DescribeTaskStatusResponseParams ¶
type DescribeTaskStatusResponseParams struct {
// Current status of a task. Value range: 0 (succeeded), 1 (failed), 2 (in progress).
Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
// Array of unique CLB instance IDs.
// Note: this field may return `null`, indicating that no valid values can be obtained.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Auxiliary description information, such as failure cause.
// Note: This field may return null, indicating that no valid values can be obtained.
Message *string `json:"Message,omitnil,omitempty" name:"Message"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DisassociateCustomizedConfigRequest ¶
type DisassociateCustomizedConfigRequest struct {
*tchttp.BaseRequest
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Specifies the list of unbinding.
BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
}
func NewDisassociateCustomizedConfigRequest ¶
func NewDisassociateCustomizedConfigRequest() (request *DisassociateCustomizedConfigRequest)
func (*DisassociateCustomizedConfigRequest) FromJsonString ¶
func (r *DisassociateCustomizedConfigRequest) 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 (*DisassociateCustomizedConfigRequest) ToJsonString ¶
func (r *DisassociateCustomizedConfigRequest) ToJsonString() string
type DisassociateCustomizedConfigRequestParams ¶
type DisassociateCustomizedConfigRequestParams struct {
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Specifies the list of unbinding.
BindList []*BindItem `json:"BindList,omitnil,omitempty" name:"BindList"`
}
Predefined struct for user
type DisassociateCustomizedConfigResponse ¶
type DisassociateCustomizedConfigResponse struct {
*tchttp.BaseResponse
Response *DisassociateCustomizedConfigResponseParams `json:"Response"`
}
func NewDisassociateCustomizedConfigResponse ¶
func NewDisassociateCustomizedConfigResponse() (response *DisassociateCustomizedConfigResponse)
func (*DisassociateCustomizedConfigResponse) FromJsonString ¶
func (r *DisassociateCustomizedConfigResponse) 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 (*DisassociateCustomizedConfigResponse) ToJsonString ¶
func (r *DisassociateCustomizedConfigResponse) ToJsonString() string
type DisassociateCustomizedConfigResponseParams ¶
type DisassociateCustomizedConfigResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type DisassociateTargetGroupsRequest ¶
type DisassociateTargetGroupsRequest struct {
*tchttp.BaseRequest
// Specifies the relationship array of rules to be unbound, supports batch operations for multiple listeners with a maximum of 20 per bulk removal.
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
func 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 DisassociateTargetGroupsRequestParams ¶
type DisassociateTargetGroupsRequestParams struct {
// Specifies the relationship array of rules to be unbound, supports batch operations for multiple listeners with a maximum of 20 per bulk removal.
Associations []*TargetGroupAssociation `json:"Associations,omitnil,omitempty" name:"Associations"`
}
Predefined struct for user
type DisassociateTargetGroupsResponse ¶
type DisassociateTargetGroupsResponse struct {
*tchttp.BaseResponse
Response *DisassociateTargetGroupsResponseParams `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 DisassociateTargetGroupsResponseParams ¶
type DisassociateTargetGroupsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
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,omitnil,omitempty" name:"L4Clusters"`
// Layer-7 dedicated cluster list
// Note: this field may return null, indicating that no valid values can be obtained.
L7Clusters []*ClusterItem `json:"L7Clusters,omitnil,omitempty" name:"L7Clusters"`
// vpcgw cluster
// Note: this field may return null, indicating that no valid values can be obtained.
ClassicalCluster *ClusterItem `json:"ClassicalCluster,omitnil,omitempty" name:"ClassicalCluster"`
}
type FunctionInfo ¶
type FunctionInfo struct {
// Function namespace
FunctionNamespace *string `json:"FunctionNamespace,omitnil,omitempty" name:"FunctionNamespace"`
// Function name
FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`
// Function version name or alias
FunctionQualifier *string `json:"FunctionQualifier,omitnil,omitempty" name:"FunctionQualifier"`
// Function qualifier type. Values: `VERSION`, `ALIAS`.
// Note: This field may return `null`, indicating that no valid values can be obtained.
FunctionQualifierType *string `json:"FunctionQualifierType,omitnil,omitempty" name:"FunctionQualifierType"`
}
type FunctionTarget ¶
type FunctionTarget struct {
// SCF information
Function *FunctionInfo `json:"Function,omitnil,omitempty" name:"Function"`
// Weight
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type HealthCheck ¶
type HealthCheck struct {
// Whether to enable health check. 1: Enable; 0: Disable.
//
// It is enabled by default.
HealthSwitch *int64 `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
// Health check response timeout, in seconds. Value range: 2–60. Default value: 2. The response timeout should be less than the check interval.
TimeOut *int64 `json:"TimeOut,omitnil,omitempty" name:"TimeOut"`
// Health check interval, in seconds. Default value: 5. Value range: 2–300 for IPv4 CLB instances and 5–300 for IPv6 CLB instances.
// Note: The value range is 5–300 for some IPv4 CLB instances of early versions.
IntervalTime *int64 `json:"IntervalTime,omitnil,omitempty" name:"IntervalTime"`
// Healthy threshold. Default: 3, indicating that if a forwarding is found healthy three consecutive times, it is considered to be normal. Value range: 2-10. Unit: times.
HealthNum *int64 `json:"HealthNum,omitnil,omitempty" name:"HealthNum"`
// Unhealthy threshold. Default: 3, indicating that if a forwarding is found unhealthy three consecutive times, it is considered to be exceptional. Value range: 2-10. Unit: times.
UnHealthNum *int64 `json:"UnHealthNum,omitnil,omitempty" name:"UnHealthNum"`
// Health check status code. (This parameter applies only to HTTP/HTTPS forwarding rules and the HTTP health check method of TCP listeners.) Value range: 1–31. Default value: 31.
// 1: return 1xx after the check (healthy); 2: return 2xx after the check (healthy); 4: return 3xx after the check (healthy); 8: return 4xx after the check (healthy); 16: return 5xx after the check (healthy). If you expect that multiple codes represent a healthy real server, set the value to the sum of the corresponding values.
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCode *int64 `json:"HttpCode,omitnil,omitempty" name:"HttpCode"`
// Health check path (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners).
//
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
// Health check domain name, which will be contained in a Host header field of the HTTP protocol. (This parameter applies only to HTTP/HTTPS listeners and the HTTP health check method of TCP listeners. For TCP listeners, this parameter is required if the HTTP health check method is used.)
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCheckDomain *string `json:"HttpCheckDomain,omitnil,omitempty" name:"HttpCheckDomain"`
// Health check method (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners). Default: HEAD. Valid values: HEAD and GET.
//
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCheckMethod *string `json:"HttpCheckMethod,omitnil,omitempty" name:"HttpCheckMethod"`
// Custom check parameters. health check port, defaults to the port of the backend service unless you want to specify a specific port, otherwise leave it blank. pass the parameter value -1 to restore default settings. (applicable only to TCP/UDP listener).
// Note: This field may return null, indicating that no valid values can be obtained.
CheckPort *int64 `json:"CheckPort,omitnil,omitempty" name:"CheckPort"`
// A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the input format of the health check. Valid values: HEX and TEXT. If the value is HEX, the characters of SendContext and RecvContext can only be selected from 0123456789ABCDEF and the length must be an even number. (Applicable only to TCP/UDP listeners.)
//
// Note: This field may return null, indicating that no valid values can be obtained.
ContextType *string `json:"ContextType,omitnil,omitempty" name:"ContextType"`
// A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the content of the request sent by the health check. Only ASCII visible characters are allowed, and the maximum length is 500. (Applicable only to TCP/UDP listeners.)
//
// Note: This field may return null, indicating that no valid values can be obtained.
SendContext *string `json:"SendContext,omitnil,omitempty" name:"SendContext"`
// A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the result returned by the health check. Only ASCII visible characters are allowed, and the maximum length is 500. (Applicable only to TCP/UDP listeners.)
//
// Note: This field may return null, indicating that no valid values can be obtained.
RecvContext *string `json:"RecvContext,omitnil,omitempty" name:"RecvContext"`
// Protocol used for health checks. Valid values: TCP (for TCP listeners, TCP_SSL listeners, and QUIC listeners), HTTP (for TCP listeners, TCP_SSL listeners, QUIC listeners, HTTP rules, and HTTPS rules), HTTPS (for HTTPS rules), GRPC (for HTTP rules and HTTPS rules), PING (for UDP listeners), and CUSTOM (for UDP listeners and TCP listeners). The default value is HTTP for HTTP listeners, TCP for TCP, TCP_SSL, and QUIC listeners, and PING for UDP listeners. For HTTPS listeners, the protocol is the same as the backend forwarding protocol.
CheckType *string `json:"CheckType,omitnil,omitempty" name:"CheckType"`
// HTTP version. This field indicates the HTTP version of real servers and is required if the value of CheckType is HTTP. Valid values: HTTP/1.0 and HTTP/1.1. (This field applies only to TCP listeners.)
// Note: This field may return null, indicating that no valid values can be obtained.
HttpVersion *string `json:"HttpVersion,omitnil,omitempty" name:"HttpVersion"`
// Source IP address type for health checks. 0: use the LB VIP as the source IP address; 1: use an IP address in the 100.64 range as the source IP address.
SourceIpType *int64 `json:"SourceIpType,omitnil,omitempty" name:"SourceIpType"`
// Health check status code when the protocol is GRPC. (This parameter applies only to rules with the backend forwarding protocol of GRPC.) Default value: 12. You can enter a single numerical value, multiple numerical values, or a range. For example, 20, 20,25, or 0-99.
// Note: This field may return null, indicating that no valid values can be obtained.
ExtendedCode *string `json:"ExtendedCode,omitnil,omitempty" name:"ExtendedCode"`
}
type IdleLoadBalancer ¶
type IdleLoadBalancer struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB instance name
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// CLB instance region
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// CLB instance VIP
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// The reason why the load balancer is considered idle. `NO_RULES`: No rules configured. `NO_RS`: The rules are not associated with servers.
IdleReason *string `json:"IdleReason,omitnil,omitempty" name:"IdleReason"`
// CLB instance status, including:
// `0`: Creating; `1`: Running.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// CLB type. Value range: `1` (CLB); `0` (classic CLB).
Forward *uint64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// Specifies the clb domain name.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
type InquiryPriceCreateLoadBalancerRequest ¶
type InquiryPriceCreateLoadBalancerRequest struct {
*tchttp.BaseRequest
// Network type of the CLB to query. `OPEN`: Public network; `INTERNAL`: Private network is intranet type
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// The billing mode to query. `POSTPAID`:Pay as you go
LoadBalancerChargeType *string `json:"LoadBalancerChargeType,omitnil,omitempty" name:"LoadBalancerChargeType"`
// Reserved field
LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
// The network billing mode to query
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// Number of CLB instances to query. Default value: 1.
GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// Availability zone in the format of "ap-guangzhou-1"
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// Specification of the LCU-supported instance, which is input to query the monthly subscription price. Valid values: <li>clb.c2.medium: Standard</li><li>clb.c3.small: Advanced 1</li><li>clb.c3.medium: Advanced 2</li><li>clb.c4.small: Super Large 1</li><li>clb.c4.medium: Super Large 2</li><li>clb.c4.large: Super Large 3</li><li>clb.c4.xlarge: Super Large 4</li>SLA is input to query the pay-as-you-go price.
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// IP version. Valid values: `IPV4` (default), `IPV6` (IPV6 NAT64 version) or `IPv6FullChain` (IPv6 version).
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
// It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
}
func NewInquiryPriceCreateLoadBalancerRequest ¶
func NewInquiryPriceCreateLoadBalancerRequest() (request *InquiryPriceCreateLoadBalancerRequest)
func (*InquiryPriceCreateLoadBalancerRequest) FromJsonString ¶
func (r *InquiryPriceCreateLoadBalancerRequest) 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 (*InquiryPriceCreateLoadBalancerRequest) ToJsonString ¶
func (r *InquiryPriceCreateLoadBalancerRequest) ToJsonString() string
type InquiryPriceCreateLoadBalancerRequestParams ¶
type InquiryPriceCreateLoadBalancerRequestParams struct {
// Network type of the CLB to query. `OPEN`: Public network; `INTERNAL`: Private network is intranet type
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// The billing mode to query. `POSTPAID`:Pay as you go
LoadBalancerChargeType *string `json:"LoadBalancerChargeType,omitnil,omitempty" name:"LoadBalancerChargeType"`
// Reserved field
LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
// The network billing mode to query
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
// Number of CLB instances to query. Default value: 1.
GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// Availability zone in the format of "ap-guangzhou-1"
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// Specification of the LCU-supported instance, which is input to query the monthly subscription price. Valid values: <li>clb.c2.medium: Standard</li><li>clb.c3.small: Advanced 1</li><li>clb.c3.medium: Advanced 2</li><li>clb.c4.small: Super Large 1</li><li>clb.c4.medium: Super Large 2</li><li>clb.c4.large: Super Large 3</li><li>clb.c4.xlarge: Super Large 4</li>SLA is input to query the pay-as-you-go price.
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// IP version. Valid values: `IPV4` (default), `IPV6` (IPV6 NAT64 version) or `IPv6FullChain` (IPv6 version).
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
// It only applies to public CLB. Currently, the static single-line IP type is supported only for the regions of Guangzhou, Shanghai, Nanjing, Jinan, Hangzhou, Fuzhou, Beijing, Shijiazhuang, Wuhan, Changsha, Chengdu, and Chongqing. If you need to experience it, contact your business manager. After approval, you can select the ISP type as China Mobile (CMCC), China Unicom (CUCC), or China Telecom (CTCC). The network billing mode should be selected as billing by bandwidth package (BANDWIDTH_PACKAGE). If this parameter is not specified, BGP is used by default. You can use the DescribeResources API to query ISPs supported for a region.
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
}
Predefined struct for user
type InquiryPriceCreateLoadBalancerResponse ¶
type InquiryPriceCreateLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *InquiryPriceCreateLoadBalancerResponseParams `json:"Response"`
}
func NewInquiryPriceCreateLoadBalancerResponse ¶
func NewInquiryPriceCreateLoadBalancerResponse() (response *InquiryPriceCreateLoadBalancerResponse)
func (*InquiryPriceCreateLoadBalancerResponse) FromJsonString ¶
func (r *InquiryPriceCreateLoadBalancerResponse) 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 (*InquiryPriceCreateLoadBalancerResponse) ToJsonString ¶
func (r *InquiryPriceCreateLoadBalancerResponse) ToJsonString() string
type InquiryPriceCreateLoadBalancerResponseParams ¶
type InquiryPriceCreateLoadBalancerResponseParams struct {
// Price of the instance with the specified configurations.
Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type InquiryPriceModifyLoadBalancerRequest ¶
type InquiryPriceModifyLoadBalancerRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// New bandwidth bandwidth specification
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
}
func NewInquiryPriceModifyLoadBalancerRequest ¶
func NewInquiryPriceModifyLoadBalancerRequest() (request *InquiryPriceModifyLoadBalancerRequest)
func (*InquiryPriceModifyLoadBalancerRequest) FromJsonString ¶
func (r *InquiryPriceModifyLoadBalancerRequest) 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 (*InquiryPriceModifyLoadBalancerRequest) ToJsonString ¶
func (r *InquiryPriceModifyLoadBalancerRequest) ToJsonString() string
type InquiryPriceModifyLoadBalancerRequestParams ¶
type InquiryPriceModifyLoadBalancerRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// New bandwidth bandwidth specification
InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`
}
Predefined struct for user
type InquiryPriceModifyLoadBalancerResponse ¶
type InquiryPriceModifyLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *InquiryPriceModifyLoadBalancerResponseParams `json:"Response"`
}
func NewInquiryPriceModifyLoadBalancerResponse ¶
func NewInquiryPriceModifyLoadBalancerResponse() (response *InquiryPriceModifyLoadBalancerResponse)
func (*InquiryPriceModifyLoadBalancerResponse) FromJsonString ¶
func (r *InquiryPriceModifyLoadBalancerResponse) 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 (*InquiryPriceModifyLoadBalancerResponse) ToJsonString ¶
func (r *InquiryPriceModifyLoadBalancerResponse) ToJsonString() string
type InquiryPriceModifyLoadBalancerResponseParams ¶
type InquiryPriceModifyLoadBalancerResponseParams struct {
// Pricing information
Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type InquiryPriceRefundLoadBalancerRequest ¶
type InquiryPriceRefundLoadBalancerRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
}
func NewInquiryPriceRefundLoadBalancerRequest ¶
func NewInquiryPriceRefundLoadBalancerRequest() (request *InquiryPriceRefundLoadBalancerRequest)
func (*InquiryPriceRefundLoadBalancerRequest) FromJsonString ¶
func (r *InquiryPriceRefundLoadBalancerRequest) 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 (*InquiryPriceRefundLoadBalancerRequest) ToJsonString ¶
func (r *InquiryPriceRefundLoadBalancerRequest) ToJsonString() string
type InquiryPriceRefundLoadBalancerRequestParams ¶
type InquiryPriceRefundLoadBalancerRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
}
Predefined struct for user
type InquiryPriceRefundLoadBalancerResponse ¶
type InquiryPriceRefundLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *InquiryPriceRefundLoadBalancerResponseParams `json:"Response"`
}
func NewInquiryPriceRefundLoadBalancerResponse ¶
func NewInquiryPriceRefundLoadBalancerResponse() (response *InquiryPriceRefundLoadBalancerResponse)
func (*InquiryPriceRefundLoadBalancerResponse) FromJsonString ¶
func (r *InquiryPriceRefundLoadBalancerResponse) 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 (*InquiryPriceRefundLoadBalancerResponse) ToJsonString ¶
func (r *InquiryPriceRefundLoadBalancerResponse) ToJsonString() string
type InquiryPriceRefundLoadBalancerResponseParams ¶
type InquiryPriceRefundLoadBalancerResponseParams struct {
// Price of the instance with the specified configurations.
Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type InquiryPriceRenewLoadBalancerRequest ¶
type InquiryPriceRenewLoadBalancerRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Renewal period
LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
}
func NewInquiryPriceRenewLoadBalancerRequest ¶
func NewInquiryPriceRenewLoadBalancerRequest() (request *InquiryPriceRenewLoadBalancerRequest)
func (*InquiryPriceRenewLoadBalancerRequest) FromJsonString ¶
func (r *InquiryPriceRenewLoadBalancerRequest) 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 (*InquiryPriceRenewLoadBalancerRequest) ToJsonString ¶
func (r *InquiryPriceRenewLoadBalancerRequest) ToJsonString() string
type InquiryPriceRenewLoadBalancerRequestParams ¶
type InquiryPriceRenewLoadBalancerRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Renewal period
LoadBalancerChargePrepaid *LBChargePrepaid `json:"LoadBalancerChargePrepaid,omitnil,omitempty" name:"LoadBalancerChargePrepaid"`
}
Predefined struct for user
type InquiryPriceRenewLoadBalancerResponse ¶
type InquiryPriceRenewLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *InquiryPriceRenewLoadBalancerResponseParams `json:"Response"`
}
func NewInquiryPriceRenewLoadBalancerResponse ¶
func NewInquiryPriceRenewLoadBalancerResponse() (response *InquiryPriceRenewLoadBalancerResponse)
func (*InquiryPriceRenewLoadBalancerResponse) FromJsonString ¶
func (r *InquiryPriceRenewLoadBalancerResponse) 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 (*InquiryPriceRenewLoadBalancerResponse) ToJsonString ¶
func (r *InquiryPriceRenewLoadBalancerResponse) ToJsonString() string
type InquiryPriceRenewLoadBalancerResponseParams ¶
type InquiryPriceRenewLoadBalancerResponseParams struct {
// Price to renew
Price *Price `json:"Price,omitnil,omitempty" name:"Price"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type InternetAccessible ¶
type InternetAccessible struct {
// TRAFFIC_POSTPAID_BY_HOUR: Postpaid by traffic on an hourly basis. BANDWIDTH_POSTPAID_BY_HOUR: Postpaid by bandwidth on an hourly basis. International site users do not support this billing mode. BANDWIDTH_PACKAGE: Charged by bandwidth package. BANDWIDTH_PREPAID: Bandwidth prepaid.
InternetChargeType *string `json:"InternetChargeType,omitnil,omitempty" name:"InternetChargeType"`
// Maximum outbound bandwidth, in Mbps. This parameter is valid only for public network shared, LCU-supported, and exclusive CLB instances and private network LCU-supported CLB instances.
// - The range of the maximum outbound bandwidth for public network shared and exclusive CLB instances is 1 Mbps to 2,048 Mbps.
// - The range of the maximum outbound bandwidth for public network and private network LCU-supported CLB instances is 1 Mbps to 61,440 Mbps.
// (If this parameter is not specified when CreateLoadBalancer is called to create a CLB instance, the default value of 10 Mbps is used. This value can be modified.)
InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitnil,omitempty" name:"InternetMaxBandwidthOut"`
// Bandwidth package type, for example BGP (multi-line).
// Type as follows:.
// SINGLEISP: single isp.
// BGP: multi-line.
// HIGH_QUALITY_BGP: specifies a dedicated bgp bandwidth package.
// SINGLEISP_CMCC: specifies a cmcc bandwidth package.
// SINGLEISP_CTCC: specifies the ctcc bandwidth package.
// SINGLEISP_CUCC: specifies the china unicom bandwidth package.
// Note: This field may return null, indicating that no valid values can be obtained.
BandwidthpkgSubType *string `json:"BandwidthpkgSubType,omitnil,omitempty" name:"BandwidthpkgSubType"`
}
type ItemPrice ¶
type ItemPrice struct {
// PAYG unit price, in USD.
// Note: This field may return·null, indicating that no valid values can be obtained.
UnitPrice *float64 `json:"UnitPrice,omitnil,omitempty" name:"UnitPrice"`
// Subsequent billing unit. Value Range:
// `HOUR`: Calculate the cost by hour. It's available when "InternetChargeType=POSTPAID_BY_HOUR".
// `GB`: Calculate the cost by traffic in GB. It's available when "InternetChargeType=TRAFFIC_POSTPAID_BY_HOUR".
// Note: This field may return·null, indicating that no valid values can be obtained.
ChargeUnit *string `json:"ChargeUnit,omitnil,omitempty" name:"ChargeUnit"`
// Reserved field
// Note: This field may return·null, indicating that no valid values can be obtained.
OriginalPrice *float64 `json:"OriginalPrice,omitnil,omitempty" name:"OriginalPrice"`
// Reserved field
// Note: This field may return·null, indicating that no valid values can be obtained.
DiscountPrice *float64 `json:"DiscountPrice,omitnil,omitempty" name:"DiscountPrice"`
// Discount unit price of a pay-as-you-go instance, in USD.
// Note: This field may return·null, indicating that no valid values can be obtained.
UnitPriceDiscount *float64 `json:"UnitPriceDiscount,omitnil,omitempty" name:"UnitPriceDiscount"`
// Discount. For example, 20.0 indicates 80% off.
// Note: This field may return·null, indicating that no valid values can be obtained.
Discount *float64 `json:"Discount,omitnil,omitempty" name:"Discount"`
}
type LBChargePrepaid ¶
type LBItem ¶
type LBItem struct {
// String ID of the CLB instance.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// VIP of the CLB instance.
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// Listener rule.
Listeners []*ListenerItem `json:"Listeners,omitnil,omitempty" name:"Listeners"`
// Region of the CLB instance
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
}
type LBOperateProtectInfo ¶
type LBOperateProtectInfo struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Protected status. true means operation protection is enabled. false means operation protection is disabled.
ProtectState *bool `json:"ProtectState,omitnil,omitempty" name:"ProtectState"`
// Specifies the uin for operation protection setting.
// Note: This field may return null, indicating that no valid values can be obtained.
OperatorUin *string `json:"OperatorUin,omitnil,omitempty" name:"OperatorUin"`
// Specifies the description when setting operation protection.
// Note: This field may return null, indicating that no valid values can be obtained.
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// Specifies the last modification time.
// Note: This field may return null, indicating that no valid values can be obtained.
ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
}
type LbRsItem ¶
type LbRsItem struct {
// VPC ID in string format. Only string format is supported.
// Can be queried through the [DescribeVpcs](https://www.tencentcloud.comom/document/api/215/15778?from_cn_redirect=1) api.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Specifies the private IP address for backend querying, which can be CVM or eni.
// Can be queried through the [DescribeAddresses](https://www.tencentcloud.comom/document/product/215/16702?from_cn_redirect=1) api.
PrivateIp *string `json:"PrivateIp,omitnil,omitempty" name:"PrivateIp"`
}
type LbRsTargets ¶
type LbRsTargets struct {
// Private network IP type, which can be `cvm` or `eni`.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Private network IP of the real server.
PrivateIp *string `json:"PrivateIp,omitnil,omitempty" name:"PrivateIp"`
// Port bound to the real server.
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// vpcId of RS
VpcId *int64 `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// RS weight
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type Listener ¶
type Listener struct {
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Listener protocol. valid values: TCP, UDP, HTTP, HTTPS, TCP_SSL, QUIC.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port. value range: 1-65535.
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Information of certificates bound to the listener
// Note: This field may return null, indicating that no valid values can be obtained.
Certificate *CertificateOutput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Health check information of the listener
// Note: This field may return null, indicating that no valid values can be obtained.
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Request scheduling method. WRR, LEAST_CONN, and IP_HASH respectively indicate weighted round robin, least connections, and IP hash.Note: This field may return null, indicating that no valid values can be obtained.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Session persistence time, in seconds. value range: 30-3600. default value: 0, indicating that session persistence is not enabled by default. this parameter applies only to TCP and UDP listeners.
// Note: This field may return null, indicating that no valid values can be obtained.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Specifies whether to enable the SNI feature. 1: enable; 0: disable. this parameter is applicable only to HTTPS listeners.
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// All forwarding rules under a listener (this parameter is meaningful only for HTTP/HTTPS listeners)
// Note: This field may return null, indicating that no valid values can be obtained.
Rules []*RuleOutput `json:"Rules,omitnil,omitempty" name:"Rules"`
// Listener name
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// Listener creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// End port of the port range. value range: 2-65535.
EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
// Backend server type. available values: NODE, POLARIS, TARGETGROUP, TARGETGROUP-V2.
// Note: This field may return null, indicating that no valid values can be obtained.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Basic information of a bound target group. This field will be returned when a target group is bound to a listener.
// Note: This field may return null, indicating that no valid values can be obtained.
TargetGroup *BasicTargetGroupInfo `json:"TargetGroup,omitnil,omitempty" name:"TargetGroup"`
// Session persistence type. NORMAL: Default session persistence type; QUIC_CID: Session persistence by Quic Connection ID.
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// Whether a persistent connection is enabled (1: enabled; 0: disabled). This parameter can only be configured in HTTP/HTTPS listeners.
// Note: this field may return `null`, indicating that no valid values can be obtained.
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Supports Nat64 CLB TCP listeners only
Toa *bool `json:"Toa,omitnil,omitempty" name:"Toa"`
// Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// Describes the attributes of the listener.
AttrFlags []*string `json:"AttrFlags,omitnil,omitempty" name:"AttrFlags"`
// List of bound target groups
// Note: This field may return `null`, indicating that no valid values can be obtained.
TargetGroupList []*BasicTargetGroupInfo `json:"TargetGroupList,omitnil,omitempty" name:"TargetGroupList"`
// Maximum number of connections to a listener. -1 indicates unlimited speed at the listener dimension.
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// Maximum number of new connections to a listener. -1 means no speed limit at the listener dimension.
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
// Connection idle timeout period (in seconds). It’s only available to TCP listeners. Value range: 300-900 for shared and dedicated instances; 300-2000 for LCU-supported CLB instances. It defaults to 900.
// Note: This field may return `null`, indicating that no valid values can be obtained.
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
// Rescheduling trigger duration, valid values: 0-3600s. only TCP/UDP listeners support this. after triggering rescheduling, persistent connections will disconnect and be reassigned within the set scheduling time.
RescheduleInterval *uint64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
// Data compression mode.
DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
// Reschedules the startup time. when configured, rescheduling will be triggered upon arrival of the start time.
RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
}
type ListenerBackend ¶
type ListenerBackend struct {
// Listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Listener protocol
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Information of rules under a listener (applicable only to HTTP/HTTPS listeners)
Rules []*RuleTargets `json:"Rules,omitnil,omitempty" name:"Rules"`
// List of real servers bound to the listener (applicable only to TCP/UDP/TCP_SSL listener)
Targets []*Backend `json:"Targets,omitnil,omitempty" name:"Targets"`
// End port in a port range if port range is supported, or 0 if port range is not supported
EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
}
type ListenerHealth ¶
type ListenerHealth struct {
// Listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Listener name.
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// Listener protocol
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// List of forwarding rules of the listener
Rules []*RuleHealth `json:"Rules,omitnil,omitempty" name:"Rules"`
}
type ListenerItem ¶
type ListenerItem struct {
// Listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Listener protocol.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port.
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Bound rule.
// Note: this field may return `null`, indicating that no valid values can be obtained.
Rules []*RulesItems `json:"Rules,omitnil,omitempty" name:"Rules"`
// Object bound to the layer-4 listener.
// Note: this field may return `null`, indicating that no valid values can be obtained.
Targets []*LbRsTargets `json:"Targets,omitnil,omitempty" name:"Targets"`
// End port of a port range for a listener
EndPort *int64 `json:"EndPort,omitnil,omitempty" name:"EndPort"`
}
type LoadBalancer ¶
type LoadBalancer struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB instance name.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Network type of the load balancing instance.
// OPEN: public network attribute. INTERNAL: private network attribute. for a cloud load balancer with private network attribute, you can bind an EIP for public network access. for details, see the EIP document on binding elastic IP (https://www.tencentcloud.comom/document/product/215/16700?from_cn_redirect=1).
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// CLB type identifier. Value range: 1 (CLB); 0 (classic CLB).
Forward *uint64 `json:"Forward,omitnil,omitempty" name:"Forward"`
// The domain name of the cloud load balancer instance. this field is only provided for public network classic and domain name-based load balancing instances. it is being gradually phased out. we recommend using LoadBalancerDomain instead.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// List of VIPs of a CLB instance.
LoadBalancerVips []*string `json:"LoadBalancerVips,omitnil,omitempty" name:"LoadBalancerVips"`
// Specifies the state of the load balancing instance, including.
// 0: creating. 1: normal operation.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// CLB instance creation time
// Format: YYYY-MM-DD HH:MM:ss.
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Last status transition time of the CLB instance.
// Format: YYYY-MM-DD HH:MM:ss.
StatusTime *string `json:"StatusTime,omitnil,omitempty" name:"StatusTime"`
// ID of the project to which a CLB instance belongs. 0: default project.
ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// VPC ID
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Anti-DDoS Pro identifier for CLB. 1: CLB with Anti-DDoS Pro; 0: CLB without Anti-DDoS Pro.
OpenBgp *uint64 `json:"OpenBgp,omitnil,omitempty" name:"OpenBgp"`
// Whether SNAT is enabled. for traditional private network clbs before december 2016, SNAT was enabled.
Snat *bool `json:"Snat,omitnil,omitempty" name:"Snat"`
// Whether isolated. 0 means not isolated. 1 means isolated.
Isolation *uint64 `json:"Isolation,omitnil,omitempty" name:"Isolation"`
// Log information. Only the public network CLB that have HTTP or HTTPS listeners can generate logs.
// Note: This field may return null, indicating that no valid values can be obtained.
//
// Deprecated: Log is deprecated.
Log *string `json:"Log,omitnil,omitempty" name:"Log"`
// Subnet of the CLB instance (applicable only to VPC-type CLB instances on private networks)
SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`
// CLB instance tag information
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// Security group of the CLB instance
SecureGroups []*string `json:"SecureGroups,omitnil,omitempty" name:"SecureGroups"`
// Basic information of real servers bound to the CLB instance
TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitnil,omitempty" name:"TargetRegionInfo"`
// Anycast CLB release domain. For non-anycast CLB, this field returns an empty string.
AnycastZone *string `json:"AnycastZone,omitnil,omitempty" name:"AnycastZone"`
// IP Version, ipv4 | ipv6
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
// Specifies the VPC ID in numerical form, obtainable through the DescribeVpcs API (https://www.tencentcloud.comom/document/product/215/15778?from_cn_redirect=1).
NumericalVpcId *uint64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
// Specifies the ISP of the load balancer IP address.
//
// -BGP (multi-line).
// - CMCC: CMCC single line network.
// -CTCC: ctcc single-line.
// - CUCC: china unicom single-line.
// Note: This field may return null, indicating that no valid values can be obtained.
VipIsp *string `json:"VipIsp,omitnil,omitempty" name:"VipIsp"`
// Primary AZ
// Note: This field may return null, indicating that no valid values can be obtained.
MasterZone *ZoneInfo `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// Secondary AZ
// Note: This field may return null, indicating that no valid values can be obtained.
BackupZoneSet []*ZoneInfo `json:"BackupZoneSet,omitnil,omitempty" name:"BackupZoneSet"`
// Specifies the isolation time of the cloud load balancer instance.
// Format: YYYY-MM-DD HH:MM:ss.
// Note: This field may return null, indicating that no valid values can be obtained.
IsolatedTime *string `json:"IsolatedTime,omitnil,omitempty" name:"IsolatedTime"`
// CLB instance expiration time, which takes effect only for prepaid instances
// Note: This field may return null, indicating that no valid values can be obtained.
ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// Billing mode of CLB instance. Valid values: PREPAID (monthly subscription), POSTPAID_BY_HOUR (pay as you go).
// Note: this field may return `null`, indicating that no valid values can be obtained.
ChargeType *string `json:"ChargeType,omitnil,omitempty" name:"ChargeType"`
// CLB instance network attributes
// Note: This field may return null, indicating that no valid values can be obtained.
NetworkAttributes *InternetAccessible `json:"NetworkAttributes,omitnil,omitempty" name:"NetworkAttributes"`
// Prepaid billing attributes of a CLB instance
// Note: This field may return null, indicating that no valid values can be obtained.
PrepaidAttributes *LBChargePrepaid `json:"PrepaidAttributes,omitnil,omitempty" name:"PrepaidAttributes"`
// Log set ID of Cloud Log Service (CLS) for CLB
LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
// Log topic ID of Cloud Log Service (CLS) for CLB
LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
// IPv6 address of a CLB instance
// Note: This field may return null, indicating that no valid values can be obtained.
AddressIPv6 *string `json:"AddressIPv6,omitnil,omitempty" name:"AddressIPv6"`
// Reserved field which can be ignored generally.
// Note: This field may return null, indicating that no valid values can be obtained.
ExtraInfo *ExtraInfo `json:"ExtraInfo,omitnil,omitempty" name:"ExtraInfo"`
// Whether an Anti-DDoS Pro instance can be bound
IsDDos *bool `json:"IsDDos,omitnil,omitempty" name:"IsDDos"`
// Custom configuration IDs of CLB instances
ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
// Whether the real server allows traffic from CLB
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// Exclusive cluster on the private network
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
// Specifies the field is meaningful when the IP address version is ipv6. valid values: ipv6Nat64 | ipv6FullChain.
// IPv6Nat64: specifies a load balancer based on Nat64 IPv6 transition technology.
// IPv6FullChain: specifies a cloud load balancer implemented based on ipv6 single-stack technology.
// Note: This field may return null, indicating that no valid values can be obtained.
IPv6Mode *string `json:"IPv6Mode,omitnil,omitempty" name:"IPv6Mode"`
// Specifies whether SnatPro is enabled.
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// Enables the SnatIp list after turning on SnatPro load balancing.
SnatIps []*SnatIp `json:"SnatIps,omitnil,omitempty" name:"SnatIps"`
// Performance capacity specification. <ul><li> clb.c1.small: minimalist specification </li> <li> clb.c2.medium: standard specification </li> <li> clb.c3.small: advanced type 1 specification </li> <li> clb.c3.medium: advanced type 2 specification </li> <li> clb.c4.small: super type 1 specification </li> <li> clb.c4.medium: super type 2 specification </li> <li> clb.c4.large: super type 3 specification </li> <li> clb.c4.xlarge: super type 4 specification </li> <li>"" : non-performance capacity instance</li></ul>.
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// Whether VIP is blocked
IsBlock *bool `json:"IsBlock,omitnil,omitempty" name:"IsBlock"`
// Specifies the blocking or unblocking time.
// Format: YYYY-MM-DD HH:MM:ss.
IsBlockTime *string `json:"IsBlockTime,omitnil,omitempty" name:"IsBlockTime"`
// Whether the IP type is Local BGP
LocalBgp *bool `json:"LocalBgp,omitnil,omitempty" name:"LocalBgp"`
// Dedicated layer-7 tag.
// Note: this field may return null, indicating that no valid values can be obtained.
ClusterTag *string `json:"ClusterTag,omitnil,omitempty" name:"ClusterTag"`
// If the layer-7 listener of an IPv6FullChain CLB instance is enabled, the CLB instance can be bound with IPv4 and IPv6 CVM instances simultaneously.
MixIpTarget *bool `json:"MixIpTarget,omitnil,omitempty" name:"MixIpTarget"`
// Availability zone of a VPC-based private network CLB instance
// Note: this field may return `null`, indicating that no valid values can be obtained.
Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
// Whether it is an NFV CLB instance. No returned information: no; l7nfv: yes.
// Note: this field may return `null`, indicating that no valid values can be obtained.
NfvInfo *string `json:"NfvInfo,omitnil,omitempty" name:"NfvInfo"`
// Health check log set ID of Cloud Log Service (CLS) for CLB
HealthLogSetId *string `json:"HealthLogSetId,omitnil,omitempty" name:"HealthLogSetId"`
// Health check log topic ID of Cloud Log Service (CLS) for CLB
HealthLogTopicId *string `json:"HealthLogTopicId,omitnil,omitempty" name:"HealthLogTopicId"`
// Cluster ID.
// Note: This field may return null, indicating that no valid values can be obtained.
ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"`
// Attributes of cloud load balancer, input an array of strings to determine whether it is enabled.
// DeleteProtect: specifies deletion protection. once enabled, it prevents the cloud load balancer from being accidentally deleted.
// UserInVisible: invisible to users, controls load balancing visibility to users.
// BlockStatus: specifies the blockage status, used to limit certain operations or traffic for cloud load balancer.
// NoLBNat: disables the NAT feature of cloud load balancer for direct forwarding of traffic in specific scenarios.
// BanStatus: specifies the blocking status for suspending the clb service or restricting access.
// ShiftupFlag: specifies the upgrade flag used to identify if the cloud load balancer requires a configuration upgrade or performance improvement.
// Specifies the stopped status. once enabled, the cloud load balancer suspends service.
// NoVpcGw: specifies not to use VPC gateway to bypass the gateway for direct traffic handling.
// SgInTgw: specifies the security group in TGW (Transit Gateway) involving network security policy configuration.
// SharedLimitFlag: specifies the shared limit flag used to control the resource constraints of cloud load balancer.
// WafFlag: specifies the Web application firewall (WAF) flag. enabled to enable WAF protection.
// IsDomainCLB: indicates whether the cloud load balancer is domain name-based for traffic distribution.
// IPv6Snat: IPv6 source address translation (Snat), used for source address processing in IPv6 networks.
// HideDomain. specifies whether to hide the domain name for privacy protection or to avoid exposing it in specific scenarios.
// JumboFrame: specifies giant frame support. once enabled, it supports larger data frames to improve network efficiency.
// NoLBNatL4IPdc: specifies layer 4 IP direct connection without NAT, used for direct forwarding of IP traffic in layer 4 load balancing.
// VpcGwL3Service: specifies the VPC gateway layer-3 Service, which involves the gateway feature of the layer-3 network.
// Ipv62Flag: specifies the Ipv6 expansion Flag for specific feature support.
// Ipv62ExclusiveFlag: specifies the Ipv6 exclusive flag used for exclusive Ipv6 traffic processing.
// BgpPro: specifies BGP Pro support.
// ToaClean: TOA (TCP Option Address) cleanup. clears Address information in TCP options.
AttributeFlags []*string `json:"AttributeFlags,omitnil,omitempty" name:"AttributeFlags"`
// Specifies the domain name of the load balancing instance.
LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
// Specifies the network outbound.
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
// Indicates whether the instance type is dedicated. 1: dedicated instance. 0: non-dedicated instance.
// Note: This field may return null, indicating that no valid values can be obtained.
Exclusive *uint64 `json:"Exclusive,omitnil,omitempty" name:"Exclusive"`
// Specifies the number of bound backend services.
TargetCount *uint64 `json:"TargetCount,omitnil,omitempty" name:"TargetCount"`
// Specifies the Endpoint id associated with the clb instance.
AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
}
type LoadBalancerDetail ¶
type LoadBalancerDetail struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB instance name.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Network type of the load balancing instance.
// Public: Public network attribute. Private: Private network attribute. for Private network cloud load balancer, bind EIP for Public network access. refer to EIP document.
// Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerType *string `json:"LoadBalancerType,omitnil,omitempty" name:"LoadBalancerType"`
// CLB instance status, including:
// 0: creating; 1: running.
// Note: this field may return null, indicating that no valid values can be obtained.
Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`
// CLB instance VIP.
// Note: this field may return null, indicating that no valid values can be obtained.
Address *string `json:"Address,omitnil,omitempty" name:"Address"`
// IPv6 VIP address of the CLB instance.
// Note: this field may return null, indicating that no valid values can be obtained.
AddressIPv6 *string `json:"AddressIPv6,omitnil,omitempty" name:"AddressIPv6"`
// IP version of the CLB instance. Valid values: IPv4, IPv6.
// Note: this field may return null, indicating that no valid values can be obtained.
AddressIPVersion *string `json:"AddressIPVersion,omitnil,omitempty" name:"AddressIPVersion"`
// IPv6 address type of the CLB instance. Valid values: IPv6Nat64, IPv6FullChain.
// Note: this field may return null, indicating that no valid values can be obtained.
IPv6Mode *string `json:"IPv6Mode,omitnil,omitempty" name:"IPv6Mode"`
// Availability zone where the CLB instance resides.
// Note: this field may return null, indicating that no valid values can be obtained.
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// ISP for the IP address of the CLB instance. Valid values: BGP (multi-line), CMCC (China Mobile), CUCC (China Unicom), CTCC (China Telecom), INTERNAL (private network).Note: This field may return null, indicating that no valid values can be obtained.
AddressIsp *string `json:"AddressIsp,omitnil,omitempty" name:"AddressIsp"`
// ID of the VPC instance to which the CLB instance belongs.
// Note: this field may return null, indicating that no valid values can be obtained.
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// ID of the project to which the CLB instance belongs. 0: default project.
// Note: this field may return null, indicating that no valid values can be obtained.
ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
// CLB instance creation time.
// Note: this field may return null, indicating that no valid values can be obtained.
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Billing type of a CLB instance. Valid values: PREPAID (prepaid), POSTPAID_BY_HOUR (pay-as-you-go).Note: This field may return null, indicating that no valid values can be obtained.
ChargeType *string `json:"ChargeType,omitnil,omitempty" name:"ChargeType"`
// CLB instance network attribute.
// Note: this field may return null, indicating that no valid values can be obtained.
NetworkAttributes *InternetAccessible `json:"NetworkAttributes,omitnil,omitempty" name:"NetworkAttributes"`
// Pay-as-you-go attribute of the CLB instance.
// Note: this field may return null, indicating that no valid values can be obtained.
PrepaidAttributes *LBChargePrepaid `json:"PrepaidAttributes,omitnil,omitempty" name:"PrepaidAttributes"`
// Reserved field, which can be ignored generally.
// Note: this field may return null, indicating that no valid values can be obtained.
ExtraInfo *ExtraInfo `json:"ExtraInfo,omitnil,omitempty" name:"ExtraInfo"`
// Custom configuration IDs of CLB instances. Multiple IDs must be separated by commas (,).
// Note: This field may return null, indicating that no valid values can be obtained.
ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
// CLB instance tag information.
// Note: this field may return null, indicating that no valid values can be obtained.
Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`
// CLB listener ID.
// Note: this field may return null, indicating that no valid values can be obtained.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Listener protocol.
// Note: this field may return null, indicating that no valid values can be obtained.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Listener port.
// Note: this field may return null, indicating that no valid values can be obtained.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Forwarding rule ID.
// Note: this field may return null, indicating that no valid values can be obtained.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the forwarding rule.
// Note: this field may return null, indicating that no valid values can be obtained.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Forwarding rule path.
// Note: this field may return null, indicating that no valid values can be obtained.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// ID of target real servers.
// Note: this field may return null, indicating that no valid values can be obtained.
TargetId *string `json:"TargetId,omitnil,omitempty" name:"TargetId"`
// Address of target real servers.
// Note: this field may return null, indicating that no valid values can be obtained.
TargetAddress *string `json:"TargetAddress,omitnil,omitempty" name:"TargetAddress"`
// Listening port of target real servers.
// Note: this field may return null, indicating that no valid values can be obtained.
TargetPort *uint64 `json:"TargetPort,omitnil,omitempty" name:"TargetPort"`
// Forwarding weight of target real servers.
// Note: this field may return null, indicating that no valid values can be obtained.
TargetWeight *uint64 `json:"TargetWeight,omitnil,omitempty" name:"TargetWeight"`
// 0: not isolated; 1: isolated.
// Note: this field may return null, indicating that no valid values can be obtained.
Isolation *uint64 `json:"Isolation,omitnil,omitempty" name:"Isolation"`
// List of the security groups bound to the CLB instance.
// Note: this field may return `null`, indicating that no valid values can be obtained.
SecurityGroup []*string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// Whether to enable moving up CLB security groups. Valid values: 1 (enabled), 0 (not enabled).Note: This field may return null, indicating that no valid values can be obtained.
LoadBalancerPassToTarget *uint64 `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// Health status of the target real server.
// Note: this field may return `null`, indicating that no valid values can be obtained.
TargetHealth *string `json:"TargetHealth,omitnil,omitempty" name:"TargetHealth"`
// List o domain names associated with the forwarding rule
// Note: This field may return `null`, indicating that no valid values can be obtained.
Domains *string `json:"Domains,omitnil,omitempty" name:"Domains"`
// The secondary zone of multi-AZ CLB instance
// Note: This field may return `null`, indicating that no valid values can be obtained.
SlaveZone []*string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
// The AZ of private CLB instance. This is only available for beta users.
// Note: This field may return `null`, indicating that no valid values can be obtained.
Zones []*string `json:"Zones,omitnil,omitempty" name:"Zones"`
// Whether to enable SNI. `1`: Enable; `0`: Do not enable. This parameter is only meaningful for HTTPS listeners.
// Note: This field may return·null, indicating that no valid values can be obtained.
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// Specifies the domain name of the load balancing instance.
LoadBalancerDomain *string `json:"LoadBalancerDomain,omitnil,omitempty" name:"LoadBalancerDomain"`
// Specifies the network outbound.
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
// Specifies the attributes of cloud load balancer.
// Note: This field may return null, indicating that no valid values can be obtained.
AttributeFlags []*string `json:"AttributeFlags,omitnil,omitempty" name:"AttributeFlags"`
// Specification type information for load balancing instances <ul><li>clb.c1.small: minimalist specification</li> <li>clb.c2.medium: standard specification</li> <li>clb.c3.small: advanced type 1 specification</li> <li>clb.c3.medium: advanced type 2 specification</li> <li>clb.c4.small: ultra type 1 specification</li> <li>clb.c4.medium: ultra type 2 specification</li> <li>clb.c4.large: ultra type 3 specification</li> <li>clb.c4.xlarge: ultra type 4 specification</li> <li>"" : non-lcu-supported instance</li></ul>.
//
// Note: This field may return null, indicating that no valid values can be obtained.
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
// 0 means non-dedicated instance. 1 means dedicated instance.
// Note: This field may return null, indicating that no valid values can be obtained.
Exclusive *uint64 `json:"Exclusive,omitnil,omitempty" name:"Exclusive"`
}
type LoadBalancerHealth ¶
type LoadBalancerHealth struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies the name of the load balancing instance.
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// Listener list
Listeners []*ListenerHealth `json:"Listeners,omitnil,omitempty" name:"Listeners"`
}
type LoadBalancerTraffic ¶
type LoadBalancerTraffic struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB instance name
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// CLB instance region
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// CLB instance VIP
Vip *string `json:"Vip,omitnil,omitempty" name:"Vip"`
// Maximum outbound bandwidth in Mbps
OutBandwidth *float64 `json:"OutBandwidth,omitnil,omitempty" name:"OutBandwidth"`
// Specifies the CLB domain name.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
}
type ManualRewriteRequest ¶
type ManualRewriteRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Source listener ID
SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
// Target listener ID
TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
// Redirection relationship between forwarding rules
RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
}
func 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 ManualRewriteRequestParams ¶
type ManualRewriteRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Source listener ID
SourceListenerId *string `json:"SourceListenerId,omitnil,omitempty" name:"SourceListenerId"`
// Target listener ID
TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
// Redirection relationship between forwarding rules
RewriteInfos []*RewriteLocationMap `json:"RewriteInfos,omitnil,omitempty" name:"RewriteInfos"`
}
Predefined struct for user
type ManualRewriteResponse ¶
type ManualRewriteResponse struct {
*tchttp.BaseResponse
Response *ManualRewriteResponseParams `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 ManualRewriteResponseParams ¶
type ManualRewriteResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type MigrateClassicalLoadBalancersRequest ¶
type MigrateClassicalLoadBalancersRequest struct {
*tchttp.BaseRequest
// Array of classic CLB instance IDs
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Exclusive cluster information
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
}
func NewMigrateClassicalLoadBalancersRequest ¶
func NewMigrateClassicalLoadBalancersRequest() (request *MigrateClassicalLoadBalancersRequest)
func (*MigrateClassicalLoadBalancersRequest) FromJsonString ¶
func (r *MigrateClassicalLoadBalancersRequest) 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 (*MigrateClassicalLoadBalancersRequest) ToJsonString ¶
func (r *MigrateClassicalLoadBalancersRequest) ToJsonString() string
type MigrateClassicalLoadBalancersRequestParams ¶
type MigrateClassicalLoadBalancersRequestParams struct {
// Array of classic CLB instance IDs
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Exclusive cluster information
ExclusiveCluster *ExclusiveCluster `json:"ExclusiveCluster,omitnil,omitempty" name:"ExclusiveCluster"`
}
Predefined struct for user
type MigrateClassicalLoadBalancersResponse ¶
type MigrateClassicalLoadBalancersResponse struct {
*tchttp.BaseResponse
Response *MigrateClassicalLoadBalancersResponseParams `json:"Response"`
}
func NewMigrateClassicalLoadBalancersResponse ¶
func NewMigrateClassicalLoadBalancersResponse() (response *MigrateClassicalLoadBalancersResponse)
func (*MigrateClassicalLoadBalancersResponse) FromJsonString ¶
func (r *MigrateClassicalLoadBalancersResponse) 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 (*MigrateClassicalLoadBalancersResponse) ToJsonString ¶
func (r *MigrateClassicalLoadBalancersResponse) ToJsonString() string
type MigrateClassicalLoadBalancersResponseParams ¶
type MigrateClassicalLoadBalancersResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyBlockIPListRequest ¶
type ModifyBlockIPListRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,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,omitnil,omitempty" name:"Type"`
// Header field that stores real client IPs
ClientIPField *string `json:"ClientIPField,omitnil,omitempty" name:"ClientIPField"`
// List of blocked IPs. The array can contain up to 200,000 entries in one operation.
BlockIPList []*string `json:"BlockIPList,omitnil,omitempty" name:"BlockIPList"`
// Expiration time in seconds. Default value: 3600
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// IP adding policy. Valid value: fifo (if a blocklist is full, new IPs added to the blocklist will adopt the first-in first-out policy)
AddStrategy *string `json:"AddStrategy,omitnil,omitempty" name:"AddStrategy"`
}
func 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 ModifyBlockIPListRequestParams ¶
type ModifyBlockIPListRequestParams struct {
// CLB instance ID
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,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,omitnil,omitempty" name:"Type"`
// Header field that stores real client IPs
ClientIPField *string `json:"ClientIPField,omitnil,omitempty" name:"ClientIPField"`
// List of blocked IPs. The array can contain up to 200,000 entries in one operation.
BlockIPList []*string `json:"BlockIPList,omitnil,omitempty" name:"BlockIPList"`
// Expiration time in seconds. Default value: 3600
ExpireTime *uint64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`
// IP adding policy. Valid value: fifo (if a blocklist is full, new IPs added to the blocklist will adopt the first-in first-out policy)
AddStrategy *string `json:"AddStrategy,omitnil,omitempty" name:"AddStrategy"`
}
Predefined struct for user
type ModifyBlockIPListResponse ¶
type ModifyBlockIPListResponse struct {
*tchttp.BaseResponse
Response *ModifyBlockIPListResponseParams `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 ModifyBlockIPListResponseParams ¶
type ModifyBlockIPListResponseParams struct {
// Async task ID
JodId *string `json:"JodId,omitnil,omitempty" name:"JodId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyCustomizedConfigRequest ¶
type ModifyCustomizedConfigRequest struct {
*tchttp.BaseRequest
// Configuration name
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Specifies the configuration content.
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
}
func NewModifyCustomizedConfigRequest ¶
func NewModifyCustomizedConfigRequest() (request *ModifyCustomizedConfigRequest)
func (*ModifyCustomizedConfigRequest) FromJsonString ¶
func (r *ModifyCustomizedConfigRequest) 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 (*ModifyCustomizedConfigRequest) ToJsonString ¶
func (r *ModifyCustomizedConfigRequest) ToJsonString() string
type ModifyCustomizedConfigRequestParams ¶
type ModifyCustomizedConfigRequestParams struct {
// Configuration name
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// Configuration ID.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Specifies the configuration content.
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
}
Predefined struct for user
type ModifyCustomizedConfigResponse ¶
type ModifyCustomizedConfigResponse struct {
*tchttp.BaseResponse
Response *ModifyCustomizedConfigResponseParams `json:"Response"`
}
func NewModifyCustomizedConfigResponse ¶
func NewModifyCustomizedConfigResponse() (response *ModifyCustomizedConfigResponse)
func (*ModifyCustomizedConfigResponse) FromJsonString ¶
func (r *ModifyCustomizedConfigResponse) 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 (*ModifyCustomizedConfigResponse) ToJsonString ¶
func (r *ModifyCustomizedConfigResponse) ToJsonString() string
type ModifyCustomizedConfigResponseParams ¶
type ModifyCustomizedConfigResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyDomainAttributesRequest ¶
type ModifyDomainAttributesRequest struct {
*tchttp.BaseRequest
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Domain name (must be a domain name under a created forwarding rule). if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// The one domain name to modify. `NewDomain` and `NewDomains` can not be both specified.
NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
// Certificate information of the domain name. It is only applicable to listeners with SNI enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Specifies whether to enable HTTP/2. note that only HTTPS domain names support HTTP/2.
// True: enable HTTP2. false: disable HTTP2.
Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
// Whether to set as the default domain name. Note: Only one default domain name can be set under a listener.
// True: set as default domain name. false: do not set as default domain name.
DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
// Specifies whether QUIC is enabled. note that QUIC can only be enabled for HTTPS domains.
// True: enable QUIC. False: disable.
Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
// Specifies a new default domain name for the listener. This field is used when the original default domain name is disabled. If there are multiple domain names, specify one of them.
NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
// The new domain names to modify. `NewDomain` and `NewDomains` can not be both specified.
NewDomains []*string `json:"NewDomains,omitnil,omitempty" name:"NewDomains"`
// Certificate information related to the domain name. Note: This applies only to listeners with SNI enabled. Multiple server certificates with different algorithm types can be input simultaneously, but this parameter cannot be input together with the Certificate.
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
}
func 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 ModifyDomainAttributesRequestParams ¶
type ModifyDomainAttributesRequestParams struct {
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the CLB instance listener. You can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Domain name (must be a domain name under a created forwarding rule). if it is multiple domains, you can specify any one of the domain name list. it can be accessed through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// The one domain name to modify. `NewDomain` and `NewDomains` can not be both specified.
NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
// Certificate information of the domain name. It is only applicable to listeners with SNI enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Specifies whether to enable HTTP/2. note that only HTTPS domain names support HTTP/2.
// True: enable HTTP2. false: disable HTTP2.
Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
// Whether to set as the default domain name. Note: Only one default domain name can be set under a listener.
// True: set as default domain name. false: do not set as default domain name.
DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
// Specifies whether QUIC is enabled. note that QUIC can only be enabled for HTTPS domains.
// True: enable QUIC. False: disable.
Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
// Specifies a new default domain name for the listener. This field is used when the original default domain name is disabled. If there are multiple domain names, specify one of them.
NewDefaultServerDomain *string `json:"NewDefaultServerDomain,omitnil,omitempty" name:"NewDefaultServerDomain"`
// The new domain names to modify. `NewDomain` and `NewDomains` can not be both specified.
NewDomains []*string `json:"NewDomains,omitnil,omitempty" name:"NewDomains"`
// Certificate information related to the domain name. Note: This applies only to listeners with SNI enabled. Multiple server certificates with different algorithm types can be input simultaneously, but this parameter cannot be input together with the Certificate.
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
}
Predefined struct for user
type ModifyDomainAttributesResponse ¶
type ModifyDomainAttributesResponse struct {
*tchttp.BaseResponse
Response *ModifyDomainAttributesResponseParams `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 ModifyDomainAttributesResponseParams ¶
type ModifyDomainAttributesResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyDomainRequest ¶
type ModifyDomainRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the clb listener. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// An existing domain under the listener, can be queried through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// New domain name. Length limit: 1-120. There are three usage formats: non-regular expression, wildcard, and regular expression. A non-regular expression can only contain letters, digits, "-", and ".". In a wildcard, "*" can only be at the beginning or the end. A regular expressions must begin with a "~".
NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
}
func 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 ModifyDomainRequestParams ¶
type ModifyDomainRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the clb listener. you can call the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// An existing domain under the listener, can be queried through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// New domain name. Length limit: 1-120. There are three usage formats: non-regular expression, wildcard, and regular expression. A non-regular expression can only contain letters, digits, "-", and ".". In a wildcard, "*" can only be at the beginning or the end. A regular expressions must begin with a "~".
NewDomain *string `json:"NewDomain,omitnil,omitempty" name:"NewDomain"`
}
Predefined struct for user
type ModifyDomainResponse ¶
type ModifyDomainResponse struct {
*tchttp.BaseResponse
Response *ModifyDomainResponseParams `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 ModifyDomainResponseParams ¶
type ModifyDomainResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyFunctionTargetsRequest ¶
type ModifyFunctionTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Specifies the backend SCF service list to modify. only Event function type is supported.
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or `Domain`+`Url`.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if `LocationId` is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if `LocationId` is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
func NewModifyFunctionTargetsRequest ¶
func NewModifyFunctionTargetsRequest() (request *ModifyFunctionTargetsRequest)
func (*ModifyFunctionTargetsRequest) FromJsonString ¶
func (r *ModifyFunctionTargetsRequest) 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 (*ModifyFunctionTargetsRequest) ToJsonString ¶
func (r *ModifyFunctionTargetsRequest) ToJsonString() string
type ModifyFunctionTargetsRequestParams ¶
type ModifyFunctionTargetsRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Specifies the backend SCF service list to modify. only Event function type is supported.
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or `Domain`+`Url`.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if `LocationId` is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if `LocationId` is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
Predefined struct for user
type ModifyFunctionTargetsResponse ¶
type ModifyFunctionTargetsResponse struct {
*tchttp.BaseResponse
Response *ModifyFunctionTargetsResponseParams `json:"Response"`
}
func NewModifyFunctionTargetsResponse ¶
func NewModifyFunctionTargetsResponse() (response *ModifyFunctionTargetsResponse)
func (*ModifyFunctionTargetsResponse) FromJsonString ¶
func (r *ModifyFunctionTargetsResponse) 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 (*ModifyFunctionTargetsResponse) ToJsonString ¶
func (r *ModifyFunctionTargetsResponse) ToJsonString() string
type ModifyFunctionTargetsResponseParams ¶
type ModifyFunctionTargetsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyListenerRequest ¶
type ModifyListenerRequest struct {
*tchttp.BaseRequest
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the CLB instance listener. You can call the [DescribeListeners](https://intl.cloud.tencent.com/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// New listener name. The maximum length is 255 characters.
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// Session persistence time in seconds. Value range: 30-3,600. The default value is 0, indicating that session persistence is not enabled. This parameter is applicable only to TCP/UDP listeners.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Health check parameter. It is only applicable only to TCP, UDP, TCP_SSL and QUIC listeners.
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Certificate information. This parameter is only applicable to HTTPS/TCP_SSL/QUIC listeners. `Certificate` and `MultiCertInfo` cannot be both specified.
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Listener forwarding method. Valid values: WRR (weighted round-robin), LEAST_CONN (least connections), and IP_HASH (IP address hash).
// They indicate weighted round-robin and least connections, respectively. Default value: WRR.
// Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners. The balancing method for Layer-7 listeners should be modified in the forwarding rules.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. The default value is 0, indicating disabled, and 1 indicates enabled. Note: The SNI feature can be enabled for listeners that have not enabled SNI, but cannot be disabled for listeners that have enabled SNI.
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// Target backend type. `NODE`: A single node; `TARGETGROUP`: A target group.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Whether to enable the persistent connection feature. This parameter applies only to HTTP/HTTPS listeners.
// The default value is 0, indicating disabled, and 1 indicates enabled.
//
// Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// Session persistence type. NORMAL: default session persistence type; QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported.
// Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners.
//
// Default value: NORMAL.
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// Maximum number of concurrent connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of concurrent connections for the instance specification. -1 indicates that no limit is set on the concurrent connections at the listener level. Classic network instances do not support this parameter.
//
// Default value: -1, which indicates no limit.
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// Maximum number of new connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of new connections for the instance specification. -1 indicates that no limit is set on the new connections at the listener level. Classic network instances do not support this parameter.
//
// Default value: -1, which indicates no limit.
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
// Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding 1980, [submit a ticket application](https://console.cloud.tencent.com/workorder/category). the maximum settable value is 3600.
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
// Specifies whether PP is supported for TCP_SSL and QUIC.
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
// Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// Data compression mode.
DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
// Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
// Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
// Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
// Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
// Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
func 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 ModifyListenerRequestParams ¶
type ModifyListenerRequestParams struct {
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the CLB instance listener. You can call the [DescribeListeners](https://intl.cloud.tencent.com/document/product/214/30686?from_cn_redirect=1) API to query the ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// New listener name. The maximum length is 255 characters.
ListenerName *string `json:"ListenerName,omitnil,omitempty" name:"ListenerName"`
// Session persistence time in seconds. Value range: 30-3,600. The default value is 0, indicating that session persistence is not enabled. This parameter is applicable only to TCP/UDP listeners.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Health check parameter. It is only applicable only to TCP, UDP, TCP_SSL and QUIC listeners.
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Certificate information. This parameter is only applicable to HTTPS/TCP_SSL/QUIC listeners. `Certificate` and `MultiCertInfo` cannot be both specified.
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Listener forwarding method. Valid values: WRR (weighted round-robin), LEAST_CONN (least connections), and IP_HASH (IP address hash).
// They indicate weighted round-robin and least connections, respectively. Default value: WRR.
// Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners. The balancing method for Layer-7 listeners should be modified in the forwarding rules.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. The default value is 0, indicating disabled, and 1 indicates enabled. Note: The SNI feature can be enabled for listeners that have not enabled SNI, but cannot be disabled for listeners that have enabled SNI.
SniSwitch *int64 `json:"SniSwitch,omitnil,omitempty" name:"SniSwitch"`
// Target backend type. `NODE`: A single node; `TARGETGROUP`: A target group.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Whether to enable the persistent connection feature. This parameter applies only to HTTP/HTTPS listeners.
// The default value is 0, indicating disabled, and 1 indicates enabled.
//
// Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
KeepaliveEnable *int64 `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Reschedules when unbinding real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
DeregisterTargetRst *bool `json:"DeregisterTargetRst,omitnil,omitempty" name:"DeregisterTargetRst"`
// Session persistence type. NORMAL: default session persistence type; QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported.
// Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners.
//
// Default value: NORMAL.
SessionType *string `json:"SessionType,omitnil,omitempty" name:"SessionType"`
// Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// Maximum number of concurrent connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of concurrent connections for the instance specification. -1 indicates that no limit is set on the concurrent connections at the listener level. Classic network instances do not support this parameter.
//
// Default value: -1, which indicates no limit.
MaxConn *int64 `json:"MaxConn,omitnil,omitempty" name:"MaxConn"`
// Maximum number of new connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of new connections for the instance specification. -1 indicates that no limit is set on the new connections at the listener level. Classic network instances do not support this parameter.
//
// Default value: -1, which indicates no limit.
MaxCps *int64 `json:"MaxCps,omitnil,omitempty" name:"MaxCps"`
// Specifies the idle connection timeout in seconds. this parameter applies only to TCP/UDP listeners. default value: 900 for TCP listeners and 300 for UDP listeners. value range: 10–900 for shared instances and dedicated instances and 10–1980 for lcu-supported instances. to set a value exceeding 1980, [submit a ticket application](https://console.cloud.tencent.com/workorder/category). the maximum settable value is 3600.
IdleConnectTimeout *int64 `json:"IdleConnectTimeout,omitnil,omitempty" name:"IdleConnectTimeout"`
// Specifies whether PP is supported for TCP_SSL and QUIC.
ProxyProtocol *bool `json:"ProxyProtocol,omitnil,omitempty" name:"ProxyProtocol"`
// Whether SNAT (source IP replacement) is enabled. valid values: True (enabled), False (disabled). disabled by default. note: when SnatEnable is enabled, the client source IP will be replaced, at this point the `pass through client source IP` option is disabled, and vice versa.
SnatEnable *bool `json:"SnatEnable,omitnil,omitempty" name:"SnatEnable"`
// Data compression mode.
DataCompressMode *string `json:"DataCompressMode,omitnil,omitempty" name:"DataCompressMode"`
// Reschedules when setting backend server weight to 0. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleTargetZeroWeight *bool `json:"RescheduleTargetZeroWeight,omitnil,omitempty" name:"RescheduleTargetZeroWeight"`
// Reschedules when health check exceptions occur on real servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleUnhealthy *bool `json:"RescheduleUnhealthy,omitnil,omitempty" name:"RescheduleUnhealthy"`
// Reschedules when adding or removing backend servers. only supported for TCP/UDP listeners. toggle on to enable this feature.
RescheduleExpandTarget *bool `json:"RescheduleExpandTarget,omitnil,omitempty" name:"RescheduleExpandTarget"`
// Specifies the trigger start time for rescheduling. value range: 0-3600s. supported only by TCP/UDP listeners.
RescheduleStartTime *int64 `json:"RescheduleStartTime,omitnil,omitempty" name:"RescheduleStartTime"`
// Rescheduling trigger duration. valid values: 0-3600s. only TCP/UDP listeners support this.
RescheduleInterval *int64 `json:"RescheduleInterval,omitnil,omitempty" name:"RescheduleInterval"`
}
Predefined struct for user
type ModifyListenerResponse ¶
type ModifyListenerResponse struct {
*tchttp.BaseResponse
Response *ModifyListenerResponseParams `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 ModifyListenerResponseParams ¶
type ModifyListenerResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyLoadBalancerAttributesRequest ¶
type ModifyLoadBalancerAttributesRequest struct {
*tchttp.BaseRequest
// Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Load balancing instance name. rule: 1-60 english letters, chinese characters, digits, hyphens "-", or underscores "_".
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// The backend service information of cross-region binding 1.0
TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitnil,omitempty" name:"TargetRegionInfo"`
// Network billing parameter
InternetChargeInfo *InternetAccessible `json:"InternetChargeInfo,omitnil,omitempty" name:"InternetChargeInfo"`
// Specifies whether to allow CLB traffic to the Target.
// Enable pass-through (true): verify security groups on CLB only.
// Denies CLB traffic to the target (false): verify security groups on both CLB and backend instances.
// Specifies no modification if left blank.
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// Specifies whether the cross-region binding 2.0 feature is enabled. leave blank for no modification.
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// Specifies whether to enable deletion protection. leave it blank to keep the current setting.
DeleteProtect *bool `json:"DeleteProtect,omitnil,omitempty" name:"DeleteProtect"`
// Modifies the second-level domain name of cloud load balancer from mycloud.com to tencentclb.com. the subdomain will be transformed, and the mycloud.com domain name will become invalid after modification. leave it blank if no modification is required.
ModifyClassicDomain *bool `json:"ModifyClassicDomain,omitnil,omitempty" name:"ModifyClassicDomain"`
// The associated endpoint Id, which can be queried via the [DescribeVpcEndPoint](https://www.tencentcloud.comom/document/product/215/54679?from_cn_redirect=1) api. input an empty string to unbind.
AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
}
func 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 ModifyLoadBalancerAttributesRequestParams ¶
type ModifyLoadBalancerAttributesRequestParams struct {
// Specifies the unique ID of the cloud load balancer. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Load balancing instance name. rule: 1-60 english letters, chinese characters, digits, hyphens "-", or underscores "_".
LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
// The backend service information of cross-region binding 1.0
TargetRegionInfo *TargetRegionInfo `json:"TargetRegionInfo,omitnil,omitempty" name:"TargetRegionInfo"`
// Network billing parameter
InternetChargeInfo *InternetAccessible `json:"InternetChargeInfo,omitnil,omitempty" name:"InternetChargeInfo"`
// Specifies whether to allow CLB traffic to the Target.
// Enable pass-through (true): verify security groups on CLB only.
// Denies CLB traffic to the target (false): verify security groups on both CLB and backend instances.
// Specifies no modification if left blank.
LoadBalancerPassToTarget *bool `json:"LoadBalancerPassToTarget,omitnil,omitempty" name:"LoadBalancerPassToTarget"`
// Specifies whether the cross-region binding 2.0 feature is enabled. leave blank for no modification.
SnatPro *bool `json:"SnatPro,omitnil,omitempty" name:"SnatPro"`
// Specifies whether to enable deletion protection. leave it blank to keep the current setting.
DeleteProtect *bool `json:"DeleteProtect,omitnil,omitempty" name:"DeleteProtect"`
// Modifies the second-level domain name of cloud load balancer from mycloud.com to tencentclb.com. the subdomain will be transformed, and the mycloud.com domain name will become invalid after modification. leave it blank if no modification is required.
ModifyClassicDomain *bool `json:"ModifyClassicDomain,omitnil,omitempty" name:"ModifyClassicDomain"`
// The associated endpoint Id, which can be queried via the [DescribeVpcEndPoint](https://www.tencentcloud.comom/document/product/215/54679?from_cn_redirect=1) api. input an empty string to unbind.
AssociateEndpoint *string `json:"AssociateEndpoint,omitnil,omitempty" name:"AssociateEndpoint"`
}
Predefined struct for user
type ModifyLoadBalancerAttributesResponse ¶
type ModifyLoadBalancerAttributesResponse struct {
*tchttp.BaseResponse
Response *ModifyLoadBalancerAttributesResponseParams `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 ModifyLoadBalancerAttributesResponseParams ¶
type ModifyLoadBalancerAttributesResponseParams struct {
// This parameter can be used to query whether CLB billing mode switch is successful.
// Note: this field may return null, indicating that no valid values can be obtained.
DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyLoadBalancerSlaRequest ¶
type ModifyLoadBalancerSlaRequest struct {
*tchttp.BaseRequest
// CLB instance information.
LoadBalancerSla []*SlaUpdateParam `json:"LoadBalancerSla,omitnil,omitempty" name:"LoadBalancerSla"`
// Whether to force upgrade. The default is no.
Force *bool `json:"Force,omitnil,omitempty" name:"Force"`
}
func NewModifyLoadBalancerSlaRequest ¶
func NewModifyLoadBalancerSlaRequest() (request *ModifyLoadBalancerSlaRequest)
func (*ModifyLoadBalancerSlaRequest) FromJsonString ¶
func (r *ModifyLoadBalancerSlaRequest) 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 (*ModifyLoadBalancerSlaRequest) ToJsonString ¶
func (r *ModifyLoadBalancerSlaRequest) ToJsonString() string
type ModifyLoadBalancerSlaRequestParams ¶
type ModifyLoadBalancerSlaRequestParams struct {
// CLB instance information.
LoadBalancerSla []*SlaUpdateParam `json:"LoadBalancerSla,omitnil,omitempty" name:"LoadBalancerSla"`
// Whether to force upgrade. The default is no.
Force *bool `json:"Force,omitnil,omitempty" name:"Force"`
}
Predefined struct for user
type ModifyLoadBalancerSlaResponse ¶
type ModifyLoadBalancerSlaResponse struct {
*tchttp.BaseResponse
Response *ModifyLoadBalancerSlaResponseParams `json:"Response"`
}
func NewModifyLoadBalancerSlaResponse ¶
func NewModifyLoadBalancerSlaResponse() (response *ModifyLoadBalancerSlaResponse)
func (*ModifyLoadBalancerSlaResponse) FromJsonString ¶
func (r *ModifyLoadBalancerSlaResponse) 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 (*ModifyLoadBalancerSlaResponse) ToJsonString ¶
func (r *ModifyLoadBalancerSlaResponse) ToJsonString() string
type ModifyLoadBalancerSlaResponseParams ¶
type ModifyLoadBalancerSlaResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyLoadBalancersProjectRequest ¶
type ModifyLoadBalancersProjectRequest struct {
*tchttp.BaseRequest
// One or more load balancing instance ids to be operated. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ids.
// Specifies the maximum length supported by the list is 20.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Project ID. You can obtain it through the [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1) API.
ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}
func NewModifyLoadBalancersProjectRequest ¶
func NewModifyLoadBalancersProjectRequest() (request *ModifyLoadBalancersProjectRequest)
func (*ModifyLoadBalancersProjectRequest) FromJsonString ¶
func (r *ModifyLoadBalancersProjectRequest) 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 (*ModifyLoadBalancersProjectRequest) ToJsonString ¶
func (r *ModifyLoadBalancersProjectRequest) ToJsonString() string
type ModifyLoadBalancersProjectRequestParams ¶
type ModifyLoadBalancersProjectRequestParams struct {
// One or more load balancing instance ids to be operated. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ids.
// Specifies the maximum length supported by the list is 20.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
// Project ID. You can obtain it through the [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1) API.
ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}
Predefined struct for user
type ModifyLoadBalancersProjectResponse ¶
type ModifyLoadBalancersProjectResponse struct {
*tchttp.BaseResponse
Response *ModifyLoadBalancersProjectResponseParams `json:"Response"`
}
func NewModifyLoadBalancersProjectResponse ¶
func NewModifyLoadBalancersProjectResponse() (response *ModifyLoadBalancersProjectResponse)
func (*ModifyLoadBalancersProjectResponse) FromJsonString ¶
func (r *ModifyLoadBalancersProjectResponse) 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 (*ModifyLoadBalancersProjectResponse) ToJsonString ¶
func (r *ModifyLoadBalancersProjectResponse) ToJsonString() string
type ModifyLoadBalancersProjectResponseParams ¶
type ModifyLoadBalancersProjectResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyRuleRequest ¶
type ModifyRuleRequest struct {
*tchttp.BaseRequest
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the clb listener. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Specifies the rule ID of the forwarding rule to be modified, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1).
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// New forwarding path of the forwarding rule. This parameter is not required if the URL does not need to be modified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Health check information
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Request forwarding method of the rule. Value range: WRR, LEAST_CONN, IP_HASH
// They represent weighted round robin, least connections, and IP hash, respectively. Default value: WRR.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Session persistence duration, in seconds. Value range: 0 or 30-86400.
// Defaults to 0.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Forwarding protocol between a CLB instance and the real server. Default value: HTTP. Valid values: HTTP, HTTPS, GRPC. This parameter is valid only for HTTPS listeners.
ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
// TRPC callee server route, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
// TRPC calling service API, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
// OAuth configuration information.
OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
// Specifies the custom cookie name.
CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
func 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 ModifyRuleRequestParams ¶
type ModifyRuleRequestParams struct {
// ID of the CLB instance. You can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// ID of the clb listener. can be obtained through the [DescribeListeners](https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1) api.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Specifies the rule ID of the forwarding rule to be modified, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1).
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// New forwarding path of the forwarding rule. This parameter is not required if the URL does not need to be modified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Health check information
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Request forwarding method of the rule. Value range: WRR, LEAST_CONN, IP_HASH
// They represent weighted round robin, least connections, and IP hash, respectively. Default value: WRR.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Session persistence duration, in seconds. Value range: 0 or 30-86400.
// Defaults to 0.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Forwarding protocol between a CLB instance and the real server. Default value: HTTP. Valid values: HTTP, HTTPS, GRPC. This parameter is valid only for HTTPS listeners.
ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
// TRPC callee server route, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
// TRPC calling service API, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
// OAuth configuration information.
OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
// Specifies the custom cookie name.
CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
Predefined struct for user
type ModifyRuleResponse ¶
type ModifyRuleResponse struct {
*tchttp.BaseResponse
Response *ModifyRuleResponseParams `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 ModifyRuleResponseParams ¶
type ModifyRuleResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyTargetGroupAttributeRequest ¶
type ModifyTargetGroupAttributeRequest struct {
*tchttp.BaseRequest
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// New name of target group
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
// The new default port of the target group. this parameter is not supported for full listen target groups.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
// <ur><li>WRR: weighted round-robin.</li><li>LEAST_CONN: LEAST connection.</li><li>IP_HASH: based on IP HASH.</li><li>default is WRR.</li></ur>.
ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
// Health check details.
HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Default Weight for backend service. among them: <ul><li>value ranges from 0 to 100.</li><li>after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.</li><li>Weight parameter settings not supported for v1 target group type.</li></ul>.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. true: disable; false: enable. this feature is off by default.
KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Specifies the session persistence time in seconds. value range: 30-3600. default: 0 (disabled). this parameter is unsupported for TCP/UDP target groups.
SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
}
func 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 ModifyTargetGroupAttributeRequestParams ¶
type ModifyTargetGroupAttributeRequestParams struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// New name of target group
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
// The new default port of the target group. this parameter is not supported for full listen target groups.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Scheduling algorithm. this parameter is valid only for target groups of the new version V2 when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
// <ur><li>WRR: weighted round-robin.</li><li>LEAST_CONN: LEAST connection.</li><li>IP_HASH: based on IP HASH.</li><li>default is WRR.</li></ur>.
ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
// Health check details.
HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Default Weight for backend service. among them: <ul><li>value ranges from 0 to 100.</li><li>after setting this value, when adding a backend service to the target group, if the backend service does not set Weight separately, use the default Weight here.</li><li>Weight parameter settings not supported for v1 target group type.</li></ul>.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Specifies whether to enable the persistent connection feature. this parameter applies only to HTTP and HTTPS target groups. true: disable; false: enable. this feature is off by default.
KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Specifies the session persistence time in seconds. value range: 30-3600. default: 0 (disabled). this parameter is unsupported for TCP/UDP target groups.
SessionExpireTime *uint64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
}
Predefined struct for user
type ModifyTargetGroupAttributeResponse ¶
type ModifyTargetGroupAttributeResponse struct {
*tchttp.BaseResponse
Response *ModifyTargetGroupAttributeResponseParams `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 ModifyTargetGroupAttributeResponseParams ¶
type ModifyTargetGroupAttributeResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyTargetGroupInstancesPortRequest ¶
type ModifyTargetGroupInstancesPortRequest struct {
*tchttp.BaseRequest
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Array of servers whose Port is to be modified. NewPort and Port are required items in this api.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
func 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 ModifyTargetGroupInstancesPortRequestParams ¶
type ModifyTargetGroupInstancesPortRequestParams struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Array of servers whose Port is to be modified. NewPort and Port are required items in this api.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
Predefined struct for user
type ModifyTargetGroupInstancesPortResponse ¶
type ModifyTargetGroupInstancesPortResponse struct {
*tchttp.BaseResponse
Response *ModifyTargetGroupInstancesPortResponseParams `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 ModifyTargetGroupInstancesPortResponseParams ¶
type ModifyTargetGroupInstancesPortResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyTargetGroupInstancesWeightRequest ¶
type ModifyTargetGroupInstancesWeightRequest struct {
*tchttp.BaseRequest
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Array of servers whose weight is to be modified. Port is a required item in this api.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
func 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 ModifyTargetGroupInstancesWeightRequestParams ¶
type ModifyTargetGroupInstancesWeightRequestParams struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Array of servers whose weight is to be modified. Port is a required item in this api.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
Predefined struct for user
type ModifyTargetGroupInstancesWeightResponse ¶
type ModifyTargetGroupInstancesWeightResponse struct {
*tchttp.BaseResponse
Response *ModifyTargetGroupInstancesWeightResponseParams `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 ModifyTargetGroupInstancesWeightResponseParams ¶
type ModifyTargetGroupInstancesWeightResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyTargetPortRequest ¶
type ModifyTargetPortRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers for which to modify the ports
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// New port of the real server bound to a listener or forwarding rule
NewPort *int64 `json:"NewPort,omitnil,omitempty" name:"NewPort"`
// Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
func 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 ModifyTargetPortRequestParams ¶
type ModifyTargetPortRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers for which to modify the ports
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// New port of the real server bound to a listener or forwarding rule
NewPort *int64 `json:"NewPort,omitnil,omitempty" name:"NewPort"`
// Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
Predefined struct for user
type ModifyTargetPortResponse ¶
type ModifyTargetPortResponse struct {
*tchttp.BaseResponse
Response *ModifyTargetPortResponseParams `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 ModifyTargetPortResponseParams ¶
type ModifyTargetPortResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type ModifyTargetWeightRequest ¶
type ModifyTargetWeightRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers for which to modify the weights
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// New forwarding weight of a real server. Value range: 0-100. Default value: 10. If the Targets.Weight parameter is set, this parameter will not take effect.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
func 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 ModifyTargetWeightRequestParams ¶
type ModifyTargetWeightRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers for which to modify the weights
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// New forwarding weight of a real server. Value range: 0-100. Default value: 10. If the Targets.Weight parameter is set, this parameter will not take effect.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
Predefined struct for user
type ModifyTargetWeightResponse ¶
type ModifyTargetWeightResponse struct {
*tchttp.BaseResponse
Response *ModifyTargetWeightResponseParams `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 ModifyTargetWeightResponseParams ¶
type ModifyTargetWeightResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type MultiCertInfo ¶
type MultiCertInfo struct {
// Authentication type. Values: `UNIDIRECTIONAL` (one-way authentication), `MUTUAL` (two-way authentication)
SSLMode *string `json:"SSLMode,omitnil,omitempty" name:"SSLMode"`
// List of listener or rule certificates. One-way and two-way authentication are supported. Only one certificate can be specified for one algorithm. If `SSLMode` is `MUTUAL` (two-way authentication), at least one CA certificate is required.
CertList []*CertInfo `json:"CertList,omitnil,omitempty" name:"CertList"`
// Whether to enable client authentication for mutual authentication. ON: enable it; OPTIONAL: client certificate not required. Default value: ON.
SSLVerifyClient *string `json:"SSLVerifyClient,omitnil,omitempty" name:"SSLVerifyClient"`
}
type OAuth ¶
type OAuth struct {
// Specifies whether to turn on or off authentication.
// True: enable.
// False: disabled.
// Disabled by default.
OAuthEnable *bool `json:"OAuthEnable,omitnil,omitempty" name:"OAuthEnable"`
// Deny requests or allow when all iaps fail.
// BYPASS: specifies the bypass.
// REJECT.
// Defaults to BYPASS.
OAuthFailureStatus *string `json:"OAuthFailureStatus,omitnil,omitempty" name:"OAuthFailureStatus"`
}
type Price ¶
type Price struct {
// Describes the instance pricing.
InstancePrice *ItemPrice `json:"InstancePrice,omitnil,omitempty" name:"InstancePrice"`
// Network price.
// Note: This field may return·null, indicating that no valid values can be obtained.
BandwidthPrice *ItemPrice `json:"BandwidthPrice,omitnil,omitempty" name:"BandwidthPrice"`
// LCU price.
// Note: This field may return·null, indicating that no valid values can be obtained.
LcuPrice *ItemPrice `json:"LcuPrice,omitnil,omitempty" name:"LcuPrice"`
}
type Quota ¶
type Quota struct {
// Quota name. value range:.
// <Li>TOTAL_OPEN_CLB_QUOTA: specifies the public network clb quota in the current region for the user.</li>.
// <Li>TOTAL_INTERNAL_CLB_QUOTA: specifies the private network clb quota in the current region for the user.</li>.
// <li>TOTAL_LISTENER_QUOTA: specifies the LISTENER QUOTA under a CLB.</li>.
// <Li>TOTAL_LISTENER_RULE_QUOTA: specifies the forwarding rule quota under a listener.</li>.
// <Li>TOTAL_TARGET_BIND_QUOTA: specifies the quota of devices that can be bound to a forwarding rule.</li>.
// <li> TOTAL_SNAT_IP_QUOTA: specifies the SNAT IP QUOTA for a cross-regional 2.0 CLB instance. </li>.
// <Li>TOTAL_ISP_CLB_QUOTA: specifies the quota of triple-isp (cmcc/cucc/ctcc) clb instances in the current region for the user.</li>.
// <li>TOTAL_FULL_PORT_RANGE_LISTENER_QUOTA: specifies the QUOTA of single-protocol FULL PORT RANGE listeners for a CLB instance.</li>.
QuotaId *string `json:"QuotaId,omitnil,omitempty" name:"QuotaId"`
// Currently used quantity. If it is `null`, it is meaningless.
// Note: this field may return null, indicating that no valid values can be obtained.
QuotaCurrent *int64 `json:"QuotaCurrent,omitnil,omitempty" name:"QuotaCurrent"`
// Quota limit.
QuotaLimit *int64 `json:"QuotaLimit,omitnil,omitempty" name:"QuotaLimit"`
}
type RegisterFunctionTargetsRequest ¶
type RegisterFunctionTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// SCF functions to be bound.
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// ID of the target forwarding rule. To bind an SCF function to a L7 forwarding rule, this parameter or `Domain+Url` is required.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// URL of the target forwarding rule. It is ignored if `LocationId` is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
func NewRegisterFunctionTargetsRequest ¶
func NewRegisterFunctionTargetsRequest() (request *RegisterFunctionTargetsRequest)
func (*RegisterFunctionTargetsRequest) FromJsonString ¶
func (r *RegisterFunctionTargetsRequest) 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 (*RegisterFunctionTargetsRequest) ToJsonString ¶
func (r *RegisterFunctionTargetsRequest) ToJsonString() string
type RegisterFunctionTargetsRequestParams ¶
type RegisterFunctionTargetsRequestParams struct {
// CLB instance ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// SCF functions to be bound.
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
// ID of the target forwarding rule. To bind an SCF function to a L7 forwarding rule, this parameter or `Domain+Url` is required.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the target forwarding rule. It is ignored if `LocationId` is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// URL of the target forwarding rule. It is ignored if `LocationId` is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
Predefined struct for user
type RegisterFunctionTargetsResponse ¶
type RegisterFunctionTargetsResponse struct {
*tchttp.BaseResponse
Response *RegisterFunctionTargetsResponseParams `json:"Response"`
}
func NewRegisterFunctionTargetsResponse ¶
func NewRegisterFunctionTargetsResponse() (response *RegisterFunctionTargetsResponse)
func (*RegisterFunctionTargetsResponse) FromJsonString ¶
func (r *RegisterFunctionTargetsResponse) 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 (*RegisterFunctionTargetsResponse) ToJsonString ¶
func (r *RegisterFunctionTargetsResponse) ToJsonString() string
type RegisterFunctionTargetsResponseParams ¶
type RegisterFunctionTargetsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type RegisterTargetGroupInstancesRequest ¶
type RegisterTargetGroupInstancesRequest struct {
*tchttp.BaseRequest
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Server instance array. the VPC of the server and target group must be the same.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
func 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 RegisterTargetGroupInstancesRequestParams ¶
type RegisterTargetGroupInstancesRequestParams struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Server instance array. the VPC of the server and target group must be the same.
TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}
Predefined struct for user
type RegisterTargetGroupInstancesResponse ¶
type RegisterTargetGroupInstancesResponse struct {
*tchttp.BaseResponse
Response *RegisterTargetGroupInstancesResponseParams `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 RegisterTargetGroupInstancesResponseParams ¶
type RegisterTargetGroupInstancesResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type RegisterTargetsRequest ¶
type RegisterTargetsRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers to be bound. Array length limit: 20.
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Specifies the forwarding rule ID, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1). you must provide this parameter or either Domain or Url when binding a backend service to a layer-7 forwarding rule.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target forwarding rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target forwarding rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
func 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 RegisterTargetsRequestParams ¶
type RegisterTargetsRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// CLB listener ID
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers to be bound. Array length limit: 20.
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Specifies the forwarding rule ID, which can be obtained through the DescribeListeners API (https://www.tencentcloud.comom/document/product/214/30686?from_cn_redirect=1). you must provide this parameter or either Domain or Url when binding a backend service to a layer-7 forwarding rule.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target forwarding rule domain name. This parameter does not take effect if LocationId is specified.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target forwarding rule URL. This parameter does not take effect if LocationId is specified.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}
Predefined struct for user
type RegisterTargetsResponse ¶
type RegisterTargetsResponse struct {
*tchttp.BaseResponse
Response *RegisterTargetsResponseParams `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 RegisterTargetsResponseParams ¶
type RegisterTargetsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type RegisterTargetsWithClassicalLBRequest ¶
type RegisterTargetsWithClassicalLBRequest struct {
*tchttp.BaseRequest
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Real server information
Targets []*ClassicalTargetInfo `json:"Targets,omitnil,omitempty" name:"Targets"`
}
func 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 RegisterTargetsWithClassicalLBRequestParams ¶
type RegisterTargetsWithClassicalLBRequestParams struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Real server information
Targets []*ClassicalTargetInfo `json:"Targets,omitnil,omitempty" name:"Targets"`
}
Predefined struct for user
type RegisterTargetsWithClassicalLBResponse ¶
type RegisterTargetsWithClassicalLBResponse struct {
*tchttp.BaseResponse
Response *RegisterTargetsWithClassicalLBResponseParams `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 RegisterTargetsWithClassicalLBResponseParams ¶
type RegisterTargetsWithClassicalLBResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
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,omitnil,omitempty" name:"OldCertificateId"`
// Information such as the content of the new certificate
Certificate *CertificateInput `json:"Certificate,omitnil,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 ReplaceCertForLoadBalancersRequestParams ¶
type ReplaceCertForLoadBalancersRequestParams struct {
// ID of the certificate to be replaced, which can be a server certificate or a client certificate.
OldCertificateId *string `json:"OldCertificateId,omitnil,omitempty" name:"OldCertificateId"`
// Information such as the content of the new certificate
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
}
Predefined struct for user
type ReplaceCertForLoadBalancersResponse ¶
type ReplaceCertForLoadBalancersResponse struct {
*tchttp.BaseResponse
Response *ReplaceCertForLoadBalancersResponseParams `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 ReplaceCertForLoadBalancersResponseParams ¶
type ReplaceCertForLoadBalancersResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type Resource ¶
type Resource struct {
// Specific ISP resource information, Vaules: `CMCC`, `CUCC`, `CTCC`, `BGP`, and `INTERNAL`.
Type []*string `json:"Type,omitnil,omitempty" name:"Type"`
// ISP information, such as `CMCC`, `CUCC`, `CTCC`, `BGP`, and `INTERNAL`.
Isp *string `json:"Isp,omitnil,omitempty" name:"Isp"`
// Available resources.
AvailabilitySet []*ResourceAvailability `json:"AvailabilitySet,omitnil,omitempty" name:"AvailabilitySet"`
// Operator type info.
TypeSet []*TypeInfo `json:"TypeSet,omitnil,omitempty" name:"TypeSet"`
}
type ResourceAvailability ¶
type ResourceAvailability struct {
// Specific ISP resource information. Values: `CMCC`, `CUCC`, `CTCC`, `BGP`.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Whether the resource is available. Values: `Available`, `Unavailable`
Availability *string `json:"Availability,omitnil,omitempty" name:"Availability"`
}
type RewriteLocationMap ¶
type RewriteLocationMap struct {
// Source forwarding rule ID
SourceLocationId *string `json:"SourceLocationId,omitnil,omitempty" name:"SourceLocationId"`
// ID of the forwarding rule of the destination
TargetLocationId *string `json:"TargetLocationId,omitnil,omitempty" name:"TargetLocationId"`
// Redirection status code. Valid values: 301, 302, and 307.
RewriteCode *int64 `json:"RewriteCode,omitnil,omitempty" name:"RewriteCode"`
// Whether the matched URL is carried in redirection. It is required when configuring `RewriteCode`.
TakeUrl *bool `json:"TakeUrl,omitnil,omitempty" name:"TakeUrl"`
// Original domain name of redirection, which must be the corresponding domain name of `SourceLocationId`. It is required when configuring `RewriteCode`.
SourceDomain *string `json:"SourceDomain,omitnil,omitempty" name:"SourceDomain"`
}
type RewriteTarget ¶
type RewriteTarget struct {
// Listener ID of the redirection target. this field is valid only when redirection is configured.
// Note: This field may return null, indicating that no valid values can be obtained.
TargetListenerId *string `json:"TargetListenerId,omitnil,omitempty" name:"TargetListenerId"`
// Specifies the forwarding rule ID of redirection target. field is valid only when redirection is configured.
// Note: This field may return null, indicating that no valid values can be obtained.
TargetLocationId *string `json:"TargetLocationId,omitnil,omitempty" name:"TargetLocationId"`
// Specifies the redirection status code.
RewriteCode *int64 `json:"RewriteCode,omitnil,omitempty" name:"RewriteCode"`
// Whether the matched URL is carried in redirection
TakeUrl *bool `json:"TakeUrl,omitnil,omitempty" name:"TakeUrl"`
// Redirection type. Manual: Manual redirection; Auto: Automatic redirection
RewriteType *string `json:"RewriteType,omitnil,omitempty" name:"RewriteType"`
}
type RsTagRule ¶
type RsTagRule struct {
// CLB listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers with tags to be modified.
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Forwarding rule ID, which is required only for Layer-7 rules but not for Layer-4 rules.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Modified Tag of the backend service. this parameter has a lower priority than the Tag parameter in the aforementioned [Target](https://www.tencentcloud.comom/document/api/214/30694?from_cn_redirect=1#Target). the final Tag value is based on the Tag parameter in the Target. the Tag parameter in RsTagRule will be used only when the Tag parameter in the Target is empty.
Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
}
type RsWeightRule ¶
type RsWeightRule struct {
// CLB listener ID.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// List of real servers whose weights to modify.
Targets []*Target `json:"Targets,omitnil,omitempty" name:"Targets"`
// Forwarding rule ID, which is required only for layer-7 rules.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Target rule domain name. This parameter does not take effect if LocationId is specified
//
// Deprecated: Domain is deprecated.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Target rule URL. This parameter does not take effect if LocationId is specified
//
// Deprecated: Url is deprecated.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// The new forwarding weight of the real server. Value range: [0, 100]. This parameter takes lower precedence than `Weight` in [`Targets`](https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#Target), which means that this parameter only takes effect when the `Weight` in `RsWeightRule` is left empty.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type RuleHealth ¶
type RuleHealth struct {
// Forwarding rule ID
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the forwarding rule
// Note: This field may return null, indicating that no valid values can be obtained.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Forwarding rule Url
// Note: This field may return null, indicating that no valid values can be obtained.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Advanced routing rule ID.
RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
// Indicates the health check status of the backend service bound to this rule.
Targets []*TargetHealth `json:"Targets,omitnil,omitempty" name:"Targets"`
}
type RuleInput ¶
type RuleInput struct {
// Forwarding rule path. Length: 1-200.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// The domain name associated with the forwarding rule. It can contain 1-80 characters. Only one domain name can be entered. If you need to enter multiple domain names, use `Domains`.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Session persistence duration, in seconds. 0 indicates that session persistence is disabled, and a value ranging from 30 to 86400 indicates that session persistence is enabled.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Health check information. For more information, please see [Health Check](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1)
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Certificate information. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
Certificate *CertificateInput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Request forwarding method of the rule. Value range: WRR, LEAST_CONN, IP_HASH
// They represent weighted round robin, least connections, and IP hash, respectively. Default value: WRR.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// Specifies the forwarding protocol between cloud load balancer and backend service. currently supports HTTP/HTTPS/GRPC/GRPCS/TRPC. TRPC is not yet available. default HTTP.
ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
// Whether to set this domain name as the default domain name. Note: Only one default domain name can be set under one listener.
DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
// Whether to enable HTTP/2. Note: HTTP/2 can be enabled only for HTTPS domain names.
Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
// Target real server type. NODE: binding a general node; TARGETGROUP: binding a target group.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// TRPC callee server route, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
// TRPC calling service API, which is required when `ForwardType` is "TRPC". This is now only for internal usage.
TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
// Whether to enable QUIC. Note: QUIC can be enabled only for HTTPS domain names
Quic *bool `json:"Quic,omitnil,omitempty" name:"Quic"`
// The domain name associated with the forwarding rule. Each contain 1-80 characters. If you only need to enter one domain name, use `Domain` instead.
Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
// Certificate information. You can specify multiple server-side certificates with different algorithm types. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
MultiCertInfo *MultiCertInfo `json:"MultiCertInfo,omitnil,omitempty" name:"MultiCertInfo"`
// Specifies the custom cookie name.
CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
type RuleOutput ¶
type RuleOutput struct {
// Forwarding rule ID
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the forwarding rule
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Path of forwarding rules.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Session persistence time
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// Health Check Information
HealthCheck *HealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Certificate information
// Note: This field may return null, indicating that no valid values can be obtained.
Certificate *CertificateOutput `json:"Certificate,omitnil,omitempty" name:"Certificate"`
// Request forwarding method in the rules.WRR, LEAST_CONN, and IP_HASH respectively indicate weighted round robin, least connections, and IP hash.
Scheduler *string `json:"Scheduler,omitnil,omitempty" name:"Scheduler"`
// ID of the listener to which the forwarding rule belongs
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Redirection target information of the forwarding rule
RewriteTarget *RewriteTarget `json:"RewriteTarget,omitnil,omitempty" name:"RewriteTarget"`
// Whether to enable gzip
HttpGzip *bool `json:"HttpGzip,omitnil,omitempty" name:"HttpGzip"`
// Whether the forwarding rule is automatically created
BeAutoCreated *bool `json:"BeAutoCreated,omitnil,omitempty" name:"BeAutoCreated"`
// Whether to use as the default domain name
DefaultServer *bool `json:"DefaultServer,omitnil,omitempty" name:"DefaultServer"`
// Whether to enable Http2
Http2 *bool `json:"Http2,omitnil,omitempty" name:"Http2"`
// Forwarding protocol between CLB and real server
ForwardType *string `json:"ForwardType,omitnil,omitempty" name:"ForwardType"`
// Forwarding rule creation time
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// Real server type. NODE indicates binding to a general node, and TARGETGROUP indicates binding to a target group.
TargetType *string `json:"TargetType,omitnil,omitempty" name:"TargetType"`
// Basic information of a bound target group. This field will be returned if a target group is bound to a rule.
// Note: This field may return null, indicating that no valid values can be obtained.
TargetGroup *BasicTargetGroupInfo `json:"TargetGroup,omitnil,omitempty" name:"TargetGroup"`
// WAF instance ID.
WafDomainId *string `json:"WafDomainId,omitnil,omitempty" name:"WafDomainId"`
// Called server routing. valid when ForwardType is TRPC. currently not yet available.
TrpcCallee *string `json:"TrpcCallee,omitnil,omitempty" name:"TrpcCallee"`
// TRPC calling service api. valid when ForwardType is TRPC. currently not yet available.
TrpcFunc *string `json:"TrpcFunc,omitnil,omitempty" name:"TrpcFunc"`
// QUIC status. QUIC_ACTIVE means enabled, QUIC_INACTIVE means not enabled. note that only HTTPS domain names can enable QUIC.
QuicStatus *string `json:"QuicStatus,omitnil,omitempty" name:"QuicStatus"`
// Specifies the domain name list of the forwarding rule.
Domains []*string `json:"Domains,omitnil,omitempty" name:"Domains"`
// List of bound target groups
// Note: This field may return `null`, indicating that no valid values can be obtained.
TargetGroupList []*BasicTargetGroupInfo `json:"TargetGroupList,omitnil,omitempty" name:"TargetGroupList"`
// OAuth configuration status.
OAuth *OAuth `json:"OAuth,omitnil,omitempty" name:"OAuth"`
// Specifies the custom cookie name.
CookieName *string `json:"CookieName,omitnil,omitempty" name:"CookieName"`
}
type RuleTargets ¶
type RuleTargets struct {
// Forwarding rule ID
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name of the forwarding rule
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Forwarding rule path.
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Real server information
Targets []*Backend `json:"Targets,omitnil,omitempty" name:"Targets"`
// Describes the backend cloud function info.
FunctionTargets []*FunctionTarget `json:"FunctionTargets,omitnil,omitempty" name:"FunctionTargets"`
}
type RulesItems ¶
type RulesItems struct {
// Rule ID.
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Domain name.
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// Uri
Url *string `json:"Url,omitnil,omitempty" name:"Url"`
// Object bound to the real server.
Targets []*LbRsTargets `json:"Targets,omitnil,omitempty" name:"Targets"`
}
type SetCustomizedConfigForLoadBalancerRequest ¶
type SetCustomizedConfigForLoadBalancerRequest struct {
*tchttp.BaseRequest
// Operation type.
// -ADD. specifies the creation.
// - DELETE: DELETE.
// -UPDATE: modify.
// -BIND: specifies the binding status.
// -UNBIND: unbind.
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
// Personalized configuration ID. this field is required except when creating a custom configuration, for example: pz-1234abcd.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Specifies the personalized configuration content. this field is required when creating or modifying custom configuration.
// Specifies specific restrictions. view layer-7 personalized configuration (https://www.tencentcloud.comom/document/product/214/15171?from_cn_redirect=1).
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
// Custom configuration name. specifies the name when creating or modifying a custom configuration. this field is required.
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// CLB instance ID. this field is required for bind/unbind operations.
// Can be queried through the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) api.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
func NewSetCustomizedConfigForLoadBalancerRequest ¶
func NewSetCustomizedConfigForLoadBalancerRequest() (request *SetCustomizedConfigForLoadBalancerRequest)
func (*SetCustomizedConfigForLoadBalancerRequest) FromJsonString ¶
func (r *SetCustomizedConfigForLoadBalancerRequest) 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 (*SetCustomizedConfigForLoadBalancerRequest) ToJsonString ¶
func (r *SetCustomizedConfigForLoadBalancerRequest) ToJsonString() string
type SetCustomizedConfigForLoadBalancerRequestParams ¶
type SetCustomizedConfigForLoadBalancerRequestParams struct {
// Operation type.
// -ADD. specifies the creation.
// - DELETE: DELETE.
// -UPDATE: modify.
// -BIND: specifies the binding status.
// -UNBIND: unbind.
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
// Personalized configuration ID. this field is required except when creating a custom configuration, for example: pz-1234abcd.
UconfigId *string `json:"UconfigId,omitnil,omitempty" name:"UconfigId"`
// Specifies the personalized configuration content. this field is required when creating or modifying custom configuration.
// Specifies specific restrictions. view layer-7 personalized configuration (https://www.tencentcloud.comom/document/product/214/15171?from_cn_redirect=1).
ConfigContent *string `json:"ConfigContent,omitnil,omitempty" name:"ConfigContent"`
// Custom configuration name. specifies the name when creating or modifying a custom configuration. this field is required.
ConfigName *string `json:"ConfigName,omitnil,omitempty" name:"ConfigName"`
// CLB instance ID. this field is required for bind/unbind operations.
// Can be queried through the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) api.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
Predefined struct for user
type SetCustomizedConfigForLoadBalancerResponse ¶
type SetCustomizedConfigForLoadBalancerResponse struct {
*tchttp.BaseResponse
Response *SetCustomizedConfigForLoadBalancerResponseParams `json:"Response"`
}
func NewSetCustomizedConfigForLoadBalancerResponse ¶
func NewSetCustomizedConfigForLoadBalancerResponse() (response *SetCustomizedConfigForLoadBalancerResponse)
func (*SetCustomizedConfigForLoadBalancerResponse) FromJsonString ¶
func (r *SetCustomizedConfigForLoadBalancerResponse) 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 (*SetCustomizedConfigForLoadBalancerResponse) ToJsonString ¶
func (r *SetCustomizedConfigForLoadBalancerResponse) ToJsonString() string
type SetCustomizedConfigForLoadBalancerResponseParams ¶
type SetCustomizedConfigForLoadBalancerResponseParams struct {
// Configuration ID, such as "pz-1234abcd"
ConfigId *string `json:"ConfigId,omitnil,omitempty" name:"ConfigId"`
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type SetLoadBalancerClsLogRequest ¶
type SetLoadBalancerClsLogRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Log set ID of cloud log service (CLS).
// <li>Specifies the logset ID that can be obtained by calling the [DescribeLogsets](https://www.tencentcloud.comom/document/product/614/58624?from_cn_redirect=1) API when adding or updating a log topic.</li>.
// <Li>When deleting a log topic, set this parameter to an empty string.</li>.
LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
// Specifies the log topic ID of cloud log service (CLS).
// <li>Specifies the log topic ID can be obtained by calling the [DescribeTopics](https://www.tencentcloud.comom/document/product/614/56454?from_cn_redirect=1) API when adding or updating a log topic.</li>.
// <Li>When deleting a log topic, set this parameter to an empty string.</li>.
LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
// Log type:
// <li>`ACCESS`: access logs</li>
// <li>`HEALTH`: health check logs</li>
// Default: `ACCESS`
LogType *string `json:"LogType,omitnil,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 SetLoadBalancerClsLogRequestParams ¶
type SetLoadBalancerClsLogRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Log set ID of cloud log service (CLS).
// <li>Specifies the logset ID that can be obtained by calling the [DescribeLogsets](https://www.tencentcloud.comom/document/product/614/58624?from_cn_redirect=1) API when adding or updating a log topic.</li>.
// <Li>When deleting a log topic, set this parameter to an empty string.</li>.
LogSetId *string `json:"LogSetId,omitnil,omitempty" name:"LogSetId"`
// Specifies the log topic ID of cloud log service (CLS).
// <li>Specifies the log topic ID can be obtained by calling the [DescribeTopics](https://www.tencentcloud.comom/document/product/614/56454?from_cn_redirect=1) API when adding or updating a log topic.</li>.
// <Li>When deleting a log topic, set this parameter to an empty string.</li>.
LogTopicId *string `json:"LogTopicId,omitnil,omitempty" name:"LogTopicId"`
// Log type:
// <li>`ACCESS`: access logs</li>
// <li>`HEALTH`: health check logs</li>
// Default: `ACCESS`
LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`
}
Predefined struct for user
type SetLoadBalancerClsLogResponse ¶
type SetLoadBalancerClsLogResponse struct {
*tchttp.BaseResponse
Response *SetLoadBalancerClsLogResponseParams `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 SetLoadBalancerClsLogResponseParams ¶
type SetLoadBalancerClsLogResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type SetLoadBalancerSecurityGroupsRequest ¶
type SetLoadBalancerSecurityGroupsRequest struct {
*tchttp.BaseRequest
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies an array of security group ids. a load balancing instance supports a maximum binding of 50 security groups. to unbind all security groups, omit this parameter.
// Can be queried through the [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1) api.
SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
}
func 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 SetLoadBalancerSecurityGroupsRequestParams ¶
type SetLoadBalancerSecurityGroupsRequestParams struct {
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specifies an array of security group ids. a load balancing instance supports a maximum binding of 50 security groups. to unbind all security groups, omit this parameter.
// Can be queried through the [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1) api.
SecurityGroups []*string `json:"SecurityGroups,omitnil,omitempty" name:"SecurityGroups"`
}
Predefined struct for user
type SetLoadBalancerSecurityGroupsResponse ¶
type SetLoadBalancerSecurityGroupsResponse struct {
*tchttp.BaseResponse
Response *SetLoadBalancerSecurityGroupsResponseParams `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 SetLoadBalancerSecurityGroupsResponseParams ¶
type SetLoadBalancerSecurityGroupsResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type SetLoadBalancerStartStatusRequest ¶
type SetLoadBalancerStartStatusRequest struct {
*tchttp.BaseRequest
// Operation type. Start: Start the instance; Stop: Stop the instance.
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Listener ID. If this field is empty, it indicates operating the CLB instance; if not empty, it indicates operating the listener.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
}
func NewSetLoadBalancerStartStatusRequest ¶
func NewSetLoadBalancerStartStatusRequest() (request *SetLoadBalancerStartStatusRequest)
func (*SetLoadBalancerStartStatusRequest) FromJsonString ¶
func (r *SetLoadBalancerStartStatusRequest) 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 (*SetLoadBalancerStartStatusRequest) ToJsonString ¶
func (r *SetLoadBalancerStartStatusRequest) ToJsonString() string
type SetLoadBalancerStartStatusRequestParams ¶
type SetLoadBalancerStartStatusRequestParams struct {
// Operation type. Start: Start the instance; Stop: Stop the instance.
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
// ID of the cloud load balancer instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Listener ID. If this field is empty, it indicates operating the CLB instance; if not empty, it indicates operating the listener.
ListenerIds []*string `json:"ListenerIds,omitnil,omitempty" name:"ListenerIds"`
}
Predefined struct for user
type SetLoadBalancerStartStatusResponse ¶
type SetLoadBalancerStartStatusResponse struct {
*tchttp.BaseResponse
Response *SetLoadBalancerStartStatusResponseParams `json:"Response"`
}
func NewSetLoadBalancerStartStatusResponse ¶
func NewSetLoadBalancerStartStatusResponse() (response *SetLoadBalancerStartStatusResponse)
func (*SetLoadBalancerStartStatusResponse) FromJsonString ¶
func (r *SetLoadBalancerStartStatusResponse) 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 (*SetLoadBalancerStartStatusResponse) ToJsonString ¶
func (r *SetLoadBalancerStartStatusResponse) ToJsonString() string
type SetLoadBalancerStartStatusResponseParams ¶
type SetLoadBalancerStartStatusResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type SetSecurityGroupForLoadbalancersRequest ¶
type SetSecurityGroupForLoadbalancersRequest struct {
*tchttp.BaseRequest
// Security group ID, such as sg-12345678. can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// ADD: bind a security group;
// DEL: unbind a security group
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
// ID array of the clb instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
// Specifies the maximum length supported by the list is 20.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
func 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 SetSecurityGroupForLoadbalancersRequestParams ¶
type SetSecurityGroupForLoadbalancersRequestParams struct {
// Security group ID, such as sg-12345678. can be obtained through the API [DescribeSecurityGroups](https://www.tencentcloud.comom/document/product/215/15808?from_cn_redirect=1).
SecurityGroup *string `json:"SecurityGroup,omitnil,omitempty" name:"SecurityGroup"`
// ADD: bind a security group;
// DEL: unbind a security group
OperationType *string `json:"OperationType,omitnil,omitempty" name:"OperationType"`
// ID array of the clb instance. you can call the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) API to query the ID.
// Specifies the maximum length supported by the list is 20.
LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}
Predefined struct for user
type SetSecurityGroupForLoadbalancersResponse ¶
type SetSecurityGroupForLoadbalancersResponse struct {
*tchttp.BaseResponse
Response *SetSecurityGroupForLoadbalancersResponseParams `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 SetSecurityGroupForLoadbalancersResponseParams ¶
type SetSecurityGroupForLoadbalancersResponseParams struct {
// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
Predefined struct for user
type SlaUpdateParam ¶
type SlaUpdateParam struct {
// CLB instance ID.
// Can be queried through the [DescribeLoadBalancers](https://www.tencentcloud.comom/document/product/1108/48459?from_cn_redirect=1) api.
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Specification of the LCU-supported instance. Valid values:<li> clb.c2.medium: Standard </li><li> clb.c3.small: Advanced 1 </li><li> clb.c3.medium: Advanced 2 </li><li> clb.c4.small: Super Large 1 </li><li> clb.c4.medium: Super Large 2 </li><li> clb.c4.large: Super Large 3 </li><li> clb.c4.xlarge: Super Large 4 </li> For specification details, see [Instance Specifications Comparison](https://intl.cloud.tencent.com/document/product/214/84689?from_cn_redirect=1).
SlaType *string `json:"SlaType,omitnil,omitempty" name:"SlaType"`
}
type SpecAvailability ¶
type SpecAvailability struct {
// Specifies the specification type.
// <Li>Clb.C2.Medium (standard type)</li><li>clb.c3.small (advanced type 1)</li><li>clb.c3.medium (advanced type 2)</li>.
// <li>clb.c4.small (high-strength type 1)</li> <li>clb.c4.medium (high-strength type 2)</li> <li>clb.c4.large (high-strength type 3)</li> <li>clb.c4.xlarge (high-strength type 4)</li> <li>shared (shared type)</li>.
SpecType *string `json:"SpecType,omitnil,omitempty" name:"SpecType"`
// Specification availability. resource availability, "Available": Available, "Unavailable": Unavailable.
Availability *string `json:"Availability,omitnil,omitempty" name:"Availability"`
}
type Target ¶
type Target struct {
// Specifies the listening port of the backend service.
// Note: this parameter must be specified when binding to CVM (cloud virtual machine) or ENI (elastic network interface).
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Specifies the backend service type. valid values: CVM (cloud virtual machine), ENI (elastic network interface). as an input parameter, this parameter does not take effect currently.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// This parameter must be passed in when binding to CVM. it represents the unique ID of the CVM and can be obtained from the InstanceId field in the response of the DescribeInstances api. indicates binding the primary IPv4 address of the primary network interface. the InstanceId cannot be specified in the following scenarios: binding to non-CVM resources, binding to auxiliary network interface ips on CVM, binding to CVM through cross-domain 2.0, and binding to IPv6 addresses of CVM.
// Note: you can only input one of the InstanceId parameter or the EniIp parameter.
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// The new forwarding weight of the real server. Value range: [0, 100]. Default: 10. This parameter takes priority over `Weight` in [`RsWeightRule`](https://intl.cloud.tencent.com/document/api/214/30694?from_cn_redirect=1#RsWeightRule). If it’s left empty, the value of `Weight` in `RsWeightRule` will be used.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// This parameter must be passed in for IP binding. it supports eni ips and other private IP addresses. if it is an eni, it must first be bound to a CVM before binding to a cloud load balancer instance.
// Note: only one of the InstanceId parameter and EniIp parameter can be passed. if binding a dual-stack IPV6 instance, this parameter must be passed. if it is a cross-region binding, the parameter must be passed and the InstanceId parameter is not supported.
EniIp *string `json:"EniIp,omitnil,omitempty" name:"EniIp"`
// Tag.
Tag *string `json:"Tag,omitnil,omitempty" name:"Tag"`
}
type TargetGroupAssociation ¶
type TargetGroupAssociation struct {
// CLB instance ID
LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Listener ID. This parameter is required when the AssociateTargetGroups and DisassociateTargetGroups APIs are called.
ListenerId *string `json:"ListenerId,omitnil,omitempty" name:"ListenerId"`
// Forwarding rule ID
LocationId *string `json:"LocationId,omitnil,omitempty" name:"LocationId"`
// Weight of the target group. Value range: [0, 100]. It takes effect only for binding v2 target groups. If not specified, it defaults to 10.
Weight *int64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type TargetGroupBackend ¶
type TargetGroupBackend struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Real server type. Valid values: CVM, ENI (coming soon)
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Unique real server ID
InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
// Specifies the listening port of the backend service. for a port range listener, this field returns 0, representing an invalid port, indicating settings not supported.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Forwarding weight of real server. Value range: [0, 100]. Default value: 10.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Public network IP of the real server
PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`
// Private network IP of the real server
PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`
// Instance name of the real server
InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`
// Real server binding time
// Note: this field may return null, indicating that no valid values can be obtained.
RegisteredTime *string `json:"RegisteredTime,omitnil,omitempty" name:"RegisteredTime"`
// Unique ID of the ENI
EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`
// Specifies the availability zone ID of the backend service.
ZoneId *uint64 `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
}
type TargetGroupHealthCheck ¶
type TargetGroupHealthCheck struct {
// Whether to enable the health check.
HealthSwitch *bool `json:"HealthSwitch,omitnil,omitempty" name:"HealthSwitch"`
// Health check method. among them, only the new version V2 target group type supports this parameter. valid values: TCP | HTTP | HTTPS | PING | CUSTOM. among them:.
// <ur><li>When the backend forwarding protocol of the target group is TCP, the health check method supports TCP/HTTP/CUSTOM, with a default value of TCP.</li><li>when the backend forwarding protocol of the target group is UDP, the health check method supports PING/CUSTOM, with a default value of PING.</li><li>when the backend forwarding protocol of the target group is HTTP, the health check method supports HTTP/TCP, with a default value of HTTP.</li><li>when the backend forwarding protocol of the target group is HTTPS, the health check method supports HTTPS/TCP, with a default value of HTTPS.</li><li>when the backend forwarding protocol of the target group is GRPC, the health check method supports GRPC/TCP, with a default value of GRPC.</li></ur>.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Custom check parameters. health check port, defaults to the port of the backend service unless you want to specify a specific port, otherwise leave it blank. (applicable only to TCP/UDP target group).
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"`
// Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
GapTime *int64 `json:"GapTime,omitnil,omitempty" name:"GapTime"`
// Health detection threshold. The default is 3 times. Value range: 2-10 times.
GoodLimit *int64 `json:"GoodLimit,omitnil,omitempty" name:"GoodLimit"`
// Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
BadLimit *int64 `json:"BadLimit,omitnil,omitempty" name:"BadLimit"`
// Indicates whether jumbo frames are enabled for probe packets of all rss in the target group. enabled by default. this parameter is supported only for GWLB type target groups.
JumboFrame *bool `json:"JumboFrame,omitnil,omitempty" name:"JumboFrame"`
// Health check status code (applicable only to HTTP/HTTPS target group and HTTP health check method of TCP target group). value range: 1~31. default: 31. among them: <url> <li>1 means post-detection return value 1xx represents health.</li> <li>2 means return 2xx represents health.</li> <li>4 means return 3xx represents health.</li> <li>8 means return 4xx represents health.</li> <li>16 means return 5xx represents health.</li></url> to have multiple return codes represent health, sum up corresponding values.
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCode *int64 `json:"HttpCode,omitnil,omitempty" name:"HttpCode"`
// Health check domain name. among them: <ur><li>applicable only to HTTP/HTTPS target groups and TCP target groups when using HTTP health check method.</li><li>targeting HTTP/HTTPS target groups, this parameter is required when using HTTP health check method.</li></ur>.
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCheckDomain *string `json:"HttpCheckDomain,omitnil,omitempty" name:"HttpCheckDomain"`
// Health check path (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners).
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCheckPath *string `json:"HttpCheckPath,omitnil,omitempty" name:"HttpCheckPath"`
// Health check method (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners). Default: HEAD. Valid values: HEAD and GET.
// Note: This field may return null, indicating that no valid values can be obtained.
HttpCheckMethod *string `json:"HttpCheckMethod,omitnil,omitempty" name:"HttpCheckMethod"`
// Input format of health check. required when health check method is CUSTOM. valid values: HEX or TEXT. among them:<ur><li>TEXT: TEXT format.</li><li>HEX: hexadecimal format. characters of SendContext and RecvContext can only be selected from 0123456789ABCDEF and the length must be an even number.</li><li>applicable only to TCP/UDP target group.</li></ur>.
// Note: This field may return null, indicating that no valid values can be obtained.
ContextType *string `json:"ContextType,omitnil,omitempty" name:"ContextType"`
// CUSTOM check parameters. required when the CheckType value is CUSTOM, represents the content of the request sent by the health check, only ASCII visible characters, maximum length limit 500. applicable only to TCP/UDP target group.
// Note: This field may return null, indicating that no valid values can be obtained.
SendContext *string `json:"SendContext,omitnil,omitempty" name:"SendContext"`
// CUSTOM check parameters. required when the CheckType value is CUSTOM. represents the result returned by the health check. only ASCII visible characters are allowed. maximum length limit is 500. (applicable only to TCP/UDP target group).
// Note: This field may return null, indicating that no valid values can be obtained.
RecvContext *string `json:"RecvContext,omitnil,omitempty" name:"RecvContext"`
// HTTP version, where: <ur><li>this field is required if the value of CheckType is HTTP.</li><li>supports configuration options: HTTP/1.0, HTTP/1.1.</li><li>applicable only to TCP target group.</li></ur>.
// Note: This field may return null, indicating that no valid values can be obtained.
HttpVersion *string `json:"HttpVersion,omitnil,omitempty" name:"HttpVersion"`
// Health check status code when the protocol is GRPC. (this parameter applies only to target groups with the backend forwarding protocol of GRPC.) default value: 12. valid values: a single numerical value, multiple numerical values, or a range. for example, 20, 20,25, or 0-99.
// Note: This field may return null, indicating that no valid values can be obtained.
ExtendedCode *string `json:"ExtendedCode,omitnil,omitempty" name:"ExtendedCode"`
}
type TargetGroupInfo ¶
type TargetGroupInfo struct {
// Target group ID
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// `vpcid` of target group
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Target group name
TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`
// Specifies the default port of the target group. for a full listen target group, this field returns 0, indicating an invalid port.
// Note: This field may return null, indicating that no valid values can be obtained.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Target group creation time
CreatedTime *string `json:"CreatedTime,omitnil,omitempty" name:"CreatedTime"`
// Target group modification time
UpdatedTime *string `json:"UpdatedTime,omitnil,omitempty" name:"UpdatedTime"`
// Associated rule array. This parameter cannot be obtained when the DescribeTargetGroupList API is called.Note: This field may return null, indicating that no valid values can be obtained.
AssociatedRule []*AssociationItem `json:"AssociatedRule,omitnil,omitempty" name:"AssociatedRule"`
// Backend forwarding protocol of the target group. only returns valid values for the new version (v2) target group.
// Note: This field may return null, indicating that no valid values can be obtained.
Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`
// Scheduling algorithm. returns a valid value only when the backend forwarding protocol is HTTP, HTTPS, or GRPC. available values:.
// <ur>
// <Li>WRR: weighted round-robin.</li>.
// <Li>LEAST_CONN: specifies the least connection.</li>.
// <Li>IP_HASH: based on ip hash.</li>.
// </ur>
//
// Note: This field may return null, indicating that no valid values can be obtained.
ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`
// Health check details.
// Note: This field may return null, indicating that no valid values can be obtained.
HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`
// Target group type, currently supported v1 (legacy version target group) and v2 (new version target group). defaults to v1 (legacy version target group).
TargetGroupType *string `json:"TargetGroupType,omitnil,omitempty" name:"TargetGroupType"`
// Number of rules associated with the target group.
AssociatedRuleCount *int64 `json:"AssociatedRuleCount,omitnil,omitempty" name:"AssociatedRuleCount"`
// Specifies the number of instances in the target group.
RegisteredInstancesCount *int64 `json:"RegisteredInstancesCount,omitnil,omitempty" name:"RegisteredInstancesCount"`
// Tag.
Tag []*TagInfo `json:"Tag,omitnil,omitempty" name:"Tag"`
// Default weight. only target groups of v2 type return this field. when NULL is returned, it means the default weight is not set.
// Note: This field may return null, indicating that no valid values can be obtained.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// Specifies whether to listen to all target groups.
FullListenSwitch *bool `json:"FullListenSwitch,omitnil,omitempty" name:"FullListenSwitch"`
// Whether to enable persistent connections. valid only when the backend forwarding protocol is HTTP/HTTPS/GRPC and returned by the target group.
KeepaliveEnable *bool `json:"KeepaliveEnable,omitnil,omitempty" name:"KeepaliveEnable"`
// Session persistence time. valid only when the backend forwarding protocol is HTTP/HTTPS/GRPC and the target group returns a valid value.
SessionExpireTime *int64 `json:"SessionExpireTime,omitnil,omitempty" name:"SessionExpireTime"`
// IP version.
IpVersion *string `json:"IpVersion,omitnil,omitempty" name:"IpVersion"`
}
type TargetGroupInstance ¶
type TargetGroupInstance struct {
// Private IP of target group instance
BindIP *string `json:"BindIP,omitnil,omitempty" name:"BindIP"`
// Port of target group instance. this field is not supported for full listen target groups.
Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`
// Weight of a target group instance
// Specifies that the Weight must be configured for a v2 target group. when calling the CreateTargetGroup API for target group creation, this parameter is used in combination with the Weight parameter in the create api, and one of them is required.
// Valid values: 0-100.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// The new port of the target group instance. this field is not supported for full listen target groups.
NewPort *uint64 `json:"NewPort,omitnil,omitempty" name:"NewPort"`
}
type TargetHealth ¶
type TargetHealth struct {
// Private IP of the target
IP *string `json:"IP,omitnil,omitempty" name:"IP"`
// Port bound to the target
Port *int64 `json:"Port,omitnil,omitempty" name:"Port"`
// Current health status. true: healthy; false: unhealthy.
HealthStatus *bool `json:"HealthStatus,omitnil,omitempty" name:"HealthStatus"`
// Instance ID of the target, such as ins-12345678
TargetId *string `json:"TargetId,omitnil,omitempty" name:"TargetId"`
// Describes the detailed information of the current health status. for example: Alive, Dead, Unknown, Close. Alive status is healthy, Dead state is abnormal, Unknown status includes not started, checking, Unknown status, Close means health check disabled or listener status stop.
HealthStatusDetail *string `json:"HealthStatusDetail,omitnil,omitempty" name:"HealthStatusDetail"`
// (**This parameter will be disused soon. Please use `HealthStatusDetail` instead.**) Details of the current health status. Values: `Alive` (healthy), `Dead` (abnormal), `Unknown` (Health check not started/checking/unknown status)
//
// Deprecated: HealthStatusDetial is deprecated.
HealthStatusDetial *string `json:"HealthStatusDetial,omitnil,omitempty" name:"HealthStatusDetial"`
// Target group unique ID.
TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
// Specifies the weight of the Target.
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
type TargetRegionInfo ¶
type TargetRegionInfo struct {
// Region of the target, such as ap-guangzhou
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// Network of the target, which is in the format of vpc-abcd1234 for VPC or 0 for basic network
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// Target'S network, in the format of 86323 for a private network, or 0 if it is a basic network.
NumericalVpcId *int64 `json:"NumericalVpcId,omitnil,omitempty" name:"NumericalVpcId"`
}
type TypeInfo ¶
type TypeInfo struct {
// Operator type.
Type *string `json:"Type,omitnil,omitempty" name:"Type"`
// Specification availability.
SpecAvailabilitySet []*SpecAvailability `json:"SpecAvailabilitySet,omitnil,omitempty" name:"SpecAvailabilitySet"`
}
type ZoneInfo ¶
type ZoneInfo struct {
// Unique ID of the AZ in numeric form, such as 100001
ZoneId *uint64 `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// Unique ID of the AZ in string format, such as ap-guangzhou-1
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// AZ name, such as Guangzhou 1
ZoneName *string `json:"ZoneName,omitnil,omitempty" name:"ZoneName"`
// Specifies the region of the availability zone, for example: ap-guangzhou.
ZoneRegion *string `json:"ZoneRegion,omitnil,omitempty" name:"ZoneRegion"`
// Indicates whether the AZ is a LocalZone az, for example: false.
LocalZone *bool `json:"LocalZone,omitnil,omitempty" name:"LocalZone"`
// Indicates whether the AZ is an EdgeZone az, for example: false.
EdgeZone *bool `json:"EdgeZone,omitnil,omitempty" name:"EdgeZone"`
}
type ZoneResource ¶
type ZoneResource struct {
// Primary AZ, such as "ap-guangzhou-1".
MasterZone *string `json:"MasterZone,omitnil,omitempty" name:"MasterZone"`
// Resource list.
ResourceSet []*Resource `json:"ResourceSet,omitnil,omitempty" name:"ResourceSet"`
// Secondary AZ, such as "ap-guangzhou-2".
// Note: This field may return null, indicating that no valid values can be obtained.
SlaveZone *string `json:"SlaveZone,omitnil,omitempty" name:"SlaveZone"`
// IP version. Values: `IPv4`, `IPv6`, and `IPv6_Nat`.
IPVersion *string `json:"IPVersion,omitnil,omitempty" name:"IPVersion"`
// Region of the AZ, such as `ap-guangzhou`.
ZoneRegion *string `json:"ZoneRegion,omitnil,omitempty" name:"ZoneRegion"`
// Whether the AZ is a `LocalZone`. Values: `true`, `false`.
LocalZone *bool `json:"LocalZone,omitnil,omitempty" name:"LocalZone"`
// Type of resources in the zone. Values: `SHARED`, `EXCLUSIVE`
ZoneResourceType *string `json:"ZoneResourceType,omitnil,omitempty" name:"ZoneResourceType"`
// Whether the AZ is an edge zone. Values: `true`, `false`.
EdgeZone *bool `json:"EdgeZone,omitnil,omitempty" name:"EdgeZone"`
// Specifies the network outbound.
Egress *string `json:"Egress,omitnil,omitempty" name:"Egress"`
}