v20240906

package
v3.0.1104+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Operation failed.
	FAILEDOPERATION = "FailedOperation"

	// FailedOperation.ResourceInOperating
	FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"

	// Internal error.
	INTERNALERROR = "InternalError"

	// Parameter error.
	INVALIDPARAMETER = "InvalidParameter"

	// InvalidParameter.FormatError
	INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"

	// InvalidParameter.RegionNotFound
	INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"

	// Invalid parameter value.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// The same value exists.
	INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"

	// InvalidParameterValue.Length
	INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"

	// The quota limit is exceeded.
	LIMITEXCEEDED = "LimitExceeded"

	// Unauthorized operation.
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
)
View Source
const APIVersion = "2024-09-06"

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateTargetGroupsRequest

type AssociateTargetGroupsRequest struct {
	*tchttp.BaseRequest

	// Binding relationship array. A single request supports up to 20 items.
	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 {
	// Binding relationship array. A single request supports up to 20 items.
	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 {
	// Associated GWLB instance ID
	LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`

	// GWLB instance name
	LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) AssociateTargetGroups

func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error)

AssociateTargetGroups This API is used to bind target groups to a CLB.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.

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 a CLB.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.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED = "LimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) CreateGatewayLoadBalancer

func (c *Client) CreateGatewayLoadBalancer(request *CreateGatewayLoadBalancerRequest) (response *CreateGatewayLoadBalancerResponse, err error)

CreateGatewayLoadBalancer This API is used to create a GWLB instance. To use the GWLB service, you must purchase one or more GWLB instances. After this API is called successfully, a unique ID for the GWLB instance will be returned.Note: The default purchase quota for each account in each region is 10.This is an async API. After the API is called successfully, you can use the DescribeGatewayLoadBalancers API to query the status of the GWLB instance (such as creating and normal) to determine whether the creation is successful.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"

func (*Client) CreateGatewayLoadBalancerWithContext

func (c *Client) CreateGatewayLoadBalancerWithContext(ctx context.Context, request *CreateGatewayLoadBalancerRequest) (response *CreateGatewayLoadBalancerResponse, err error)

CreateGatewayLoadBalancer This API is used to create a GWLB instance. To use the GWLB service, you must purchase one or more GWLB instances. After this API is called successfully, a unique ID for the GWLB instance will be returned.Note: The default purchase quota for each account in each region is 10.This is an async API. After the API is called successfully, you can use the DescribeGatewayLoadBalancers API to query the status of the GWLB instance (such as creating and normal) to determine whether the creation is successful.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"

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 testing. If you need to use it, 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 testing. If you need to use it, 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) DeleteGatewayLoadBalancer

func (c *Client) DeleteGatewayLoadBalancer(request *DeleteGatewayLoadBalancerRequest) (response *DeleteGatewayLoadBalancerResponse, err error)

DeleteGatewayLoadBalancer This API is used to delete one or more specified GWLB instances. After successful deletion, the GWLB instances will be unbound from the backend service.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.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"

func (*Client) DeleteGatewayLoadBalancerWithContext

func (c *Client) DeleteGatewayLoadBalancerWithContext(ctx context.Context, request *DeleteGatewayLoadBalancerRequest) (response *DeleteGatewayLoadBalancerResponse, err error)

DeleteGatewayLoadBalancer This API is used to delete one or more specified GWLB instances. After successful deletion, the GWLB instances will be unbound from the backend service.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.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"

func (*Client) DeleteTargetGroups

func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)

DeleteTargetGroups This API is used to delete a target group.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DeleteTargetGroupsWithContext

func (c *Client) DeleteTargetGroupsWithContext(ctx context.Context, request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error)

DeleteTargetGroups This API is used to delete a target group.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DeregisterTargetGroupInstances

func (c *Client) DeregisterTargetGroupInstances(request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error)

DeregisterTargetGroupInstances This API is used to unbind a server from a target group.

This is an async API. After 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.

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 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.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeGatewayLoadBalancers

func (c *Client) DescribeGatewayLoadBalancers(request *DescribeGatewayLoadBalancersRequest) (response *DescribeGatewayLoadBalancersResponse, err error)

DescribeGatewayLoadBalancers This API is used to query the list of GWLB instances in a region.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"

func (*Client) DescribeGatewayLoadBalancersWithContext

func (c *Client) DescribeGatewayLoadBalancersWithContext(ctx context.Context, request *DescribeGatewayLoadBalancersRequest) (response *DescribeGatewayLoadBalancersResponse, err error)

DescribeGatewayLoadBalancers This API is used to query the list of GWLB instances in a region.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"

func (*Client) DescribeTargetGroupInstanceStatus

func (c *Client) DescribeTargetGroupInstanceStatus(request *DescribeTargetGroupInstanceStatusRequest) (response *DescribeTargetGroupInstanceStatusResponse, err error)

DescribeTargetGroupInstanceStatus This API is used to query the backend service status of a target group. Currently, only GWLB type target groups support querying backend service status.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"

func (*Client) DescribeTargetGroupInstanceStatusWithContext

func (c *Client) DescribeTargetGroupInstanceStatusWithContext(ctx context.Context, request *DescribeTargetGroupInstanceStatusRequest) (response *DescribeTargetGroupInstanceStatusResponse, err error)

DescribeTargetGroupInstanceStatus This API is used to query the backend service status of a target group. Currently, only GWLB type target groups support querying backend service status.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"

func (*Client) DescribeTargetGroupInstances

func (c *Client) DescribeTargetGroupInstances(request *DescribeTargetGroupInstancesRequest) (response *DescribeTargetGroupInstancesResponse, err error)

DescribeTargetGroupInstances This API is used to obtain information on 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 obtain information on 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 obtain a 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 obtain a 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 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 target group information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeTaskStatus

func (c *Client) DescribeTaskStatus(request *DescribeTaskStatusRequest) (response *DescribeTaskStatusResponse, err error)

DescribeTaskStatus This API is used to query the execution status of an async task. After non-query APIs (for example, used to create/delete CLB instances) 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 (for example, used to create/delete CLB instances) 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) DisassociateTargetGroups

func (c *Client) DisassociateTargetGroups(request *DisassociateTargetGroupsRequest) (response *DisassociateTargetGroupsResponse, err error)

DisassociateTargetGroups This API is used to disassociate a CLB from a target group.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.

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 CLB from a target group.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.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) InquirePriceCreateGatewayLoadBalancer

func (c *Client) InquirePriceCreateGatewayLoadBalancer(request *InquirePriceCreateGatewayLoadBalancerRequest) (response *InquirePriceCreateGatewayLoadBalancerResponse, err error)

InquirePriceCreateGatewayLoadBalancer This API is used to query the price for creating a GWLB.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) InquirePriceCreateGatewayLoadBalancerWithContext

func (c *Client) InquirePriceCreateGatewayLoadBalancerWithContext(ctx context.Context, request *InquirePriceCreateGatewayLoadBalancerRequest) (response *InquirePriceCreateGatewayLoadBalancerResponse, err error)

InquirePriceCreateGatewayLoadBalancer This API is used to query the price for creating a GWLB.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) ModifyGatewayLoadBalancerAttribute

func (c *Client) ModifyGatewayLoadBalancerAttribute(request *ModifyGatewayLoadBalancerAttributeRequest) (response *ModifyGatewayLoadBalancerAttributeResponse, err error)

ModifyGatewayLoadBalancerAttribute This API is used to modify the attributes of a CLB instance. It supports modifying the name and bandwidth cap of the CLB instance.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"

func (*Client) ModifyGatewayLoadBalancerAttributeWithContext

func (c *Client) ModifyGatewayLoadBalancerAttributeWithContext(ctx context.Context, request *ModifyGatewayLoadBalancerAttributeRequest) (response *ModifyGatewayLoadBalancerAttributeResponse, err error)

ModifyGatewayLoadBalancerAttribute This API is used to modify the attributes of a CLB instance. It supports modifying the name and bandwidth cap of the CLB instance.

error code that may be returned:

INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"

func (*Client) ModifyTargetGroupAttribute

func (c *Client) ModifyTargetGroupAttribute(request *ModifyTargetGroupAttributeRequest) (response *ModifyTargetGroupAttributeResponse, err error)

ModifyTargetGroupAttribute This API is used to modify the name, health check, and other attributes of the target group.

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 modify the name, health check, and other attributes of the target group.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) ModifyTargetGroupInstancesWeight

func (c *Client) ModifyTargetGroupInstancesWeight(request *ModifyTargetGroupInstancesWeightRequest) (response *ModifyTargetGroupInstancesWeightResponse, err error)

ModifyTargetGroupInstancesWeight This API is used to modify the server weight of a target group.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.

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 the server weight of a target group.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.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
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 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.

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 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.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED = "LimitExceeded"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

type CreateGatewayLoadBalancerRequest

type CreateGatewayLoadBalancerRequest struct {
	*tchttp.BaseRequest

	// ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
	VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`

	// Subnet ID of the VPC to which the backend target device of the GWLB belongs.
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
	LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`

	// Number of GWLBs to create, with a default of 1. The maximum batch creation quantity is 10.
	Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`

	// While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
	Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`

	// GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
	LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
}

func NewCreateGatewayLoadBalancerRequest

func NewCreateGatewayLoadBalancerRequest() (request *CreateGatewayLoadBalancerRequest)

func (*CreateGatewayLoadBalancerRequest) FromJsonString

func (r *CreateGatewayLoadBalancerRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateGatewayLoadBalancerRequest) ToJsonString

func (r *CreateGatewayLoadBalancerRequest) ToJsonString() string

type CreateGatewayLoadBalancerRequestParams

type CreateGatewayLoadBalancerRequestParams struct {
	// ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
	VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`

	// Subnet ID of the VPC to which the backend target device of the GWLB belongs.
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
	LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`

	// Number of GWLBs to create, with a default of 1. The maximum batch creation quantity is 10.
	Number *uint64 `json:"Number,omitnil,omitempty" name:"Number"`

	// While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
	Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`

	// GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
	LBChargeType *string `json:"LBChargeType,omitnil,omitempty" name:"LBChargeType"`
}

Predefined struct for user

type CreateGatewayLoadBalancerResponse

type CreateGatewayLoadBalancerResponse struct {
	*tchttp.BaseResponse
	Response *CreateGatewayLoadBalancerResponseParams `json:"Response"`
}

func NewCreateGatewayLoadBalancerResponse

func NewCreateGatewayLoadBalancerResponse() (response *CreateGatewayLoadBalancerResponse)

func (*CreateGatewayLoadBalancerResponse) FromJsonString

func (r *CreateGatewayLoadBalancerResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateGatewayLoadBalancerResponse) ToJsonString

func (r *CreateGatewayLoadBalancerResponse) ToJsonString() string

type CreateGatewayLoadBalancerResponseParams

type CreateGatewayLoadBalancerResponseParams struct {
	// Array of unique GWLB instance IDs.In certain scenarios, for example, when there is a delay in creation, this field may return null; at this time, you can query the created resource ID through the DescribeTaskStatus API using the RequestId or DealName parameter returned by the API.Note: this field may return `null`, indicating that no valid values can be obtained.
	LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`

	// Order number.
	//
	// 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 CreateTargetGroupRequest

type CreateTargetGroupRequest struct {
	*tchttp.BaseRequest

	// Target group name, limited to 60 characters.
	TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`

	// VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
	VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`

	// Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// Real server bound to a target group
	TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`

	// GWLB target group protocol.
	// - TENCENT_GENEVE: GENEVE standard protocol
	//
	// - AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting)
	Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// Health check settings.
	HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`

	// Load balancing algorithm.
	// - IP_HASH_3_ELASTIC: elastic hashing
	ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`

	// Whether "All Dead, All Alive" is supported. It is supported by default.
	AllDeadToAlive *bool `json:"AllDeadToAlive,omitnil,omitempty" name:"AllDeadToAlive"`
}

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, limited to 60 characters.
	TargetGroupName *string `json:"TargetGroupName,omitnil,omitempty" name:"TargetGroupName"`

	// VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
	VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`

	// Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// Real server bound to a target group
	TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`

	// GWLB target group protocol.
	// - TENCENT_GENEVE: GENEVE standard protocol
	//
	// - AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting)
	Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// Health check settings.
	HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`

	// Load balancing algorithm.
	// - IP_HASH_3_ELASTIC: elastic hashing
	ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`

	// Whether "All Dead, All Alive" is supported. It is supported by default.
	AllDeadToAlive *bool `json:"AllDeadToAlive,omitnil,omitempty" name:"AllDeadToAlive"`
}

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 DeleteGatewayLoadBalancerRequest

type DeleteGatewayLoadBalancerRequest struct {
	*tchttp.BaseRequest

	// Array of GWLB instance IDs to be deleted, with the array size up to 20.
	LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}

func NewDeleteGatewayLoadBalancerRequest

func NewDeleteGatewayLoadBalancerRequest() (request *DeleteGatewayLoadBalancerRequest)

func (*DeleteGatewayLoadBalancerRequest) FromJsonString

func (r *DeleteGatewayLoadBalancerRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteGatewayLoadBalancerRequest) ToJsonString

func (r *DeleteGatewayLoadBalancerRequest) ToJsonString() string

type DeleteGatewayLoadBalancerRequestParams

type DeleteGatewayLoadBalancerRequestParams struct {
	// Array of GWLB instance IDs to be deleted, with the array size up to 20.
	LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`
}

Predefined struct for user

type DeleteGatewayLoadBalancerResponse

type DeleteGatewayLoadBalancerResponse struct {
	*tchttp.BaseResponse
	Response *DeleteGatewayLoadBalancerResponseParams `json:"Response"`
}

func NewDeleteGatewayLoadBalancerResponse

func NewDeleteGatewayLoadBalancerResponse() (response *DeleteGatewayLoadBalancerResponse)

func (*DeleteGatewayLoadBalancerResponse) FromJsonString

func (r *DeleteGatewayLoadBalancerResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteGatewayLoadBalancerResponse) ToJsonString

func (r *DeleteGatewayLoadBalancerResponse) ToJsonString() string

type DeleteGatewayLoadBalancerResponseParams

type DeleteGatewayLoadBalancerResponseParams 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

	// Target group ID list.
	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 {
	// Target group ID list.
	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 DeregisterTargetGroupInstancesRequest

type DeregisterTargetGroupInstancesRequest struct {
	*tchttp.BaseRequest

	// Target group ID.
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// Information on server to be unbound.
	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

type DeregisterTargetGroupInstancesRequestParams

type DeregisterTargetGroupInstancesRequestParams struct {
	// Target group ID.
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// Information on server to be unbound.
	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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeregisterTargetGroupInstancesResponse) ToJsonString

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 DescribeGatewayLoadBalancersRequest

type DescribeGatewayLoadBalancersRequest struct {
	*tchttp.BaseRequest

	// GWLB instance ID. Batch filtering is supported with a maximum of 20 instance IDs.
	LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`

	// Number of GWLB instances returned in a batch, with a default value of 20 and a maximum value of 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Starting offset for returning the list of GWLB instances, with a default value of 0.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Filter criteria for querying the CLB details list. For each request, the maximum value of Filters is 10, and the maximum value of Filter.Values is 100.Filter.Name and Filter.Values are both required. Detailed filter criteria are as follows:- name - String - required: No - (filter criteria) filter by GWLB instance name, such as "gwlb-xxxx".- VpcId - String - required: No - (filter criteria) filter by the VPC to which the GWLB instance belongs, such as "vpc-bhqk****".
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Search field, for fuzzy matching of name and VIP.
	SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}

func NewDescribeGatewayLoadBalancersRequest

func NewDescribeGatewayLoadBalancersRequest() (request *DescribeGatewayLoadBalancersRequest)

func (*DescribeGatewayLoadBalancersRequest) FromJsonString

func (r *DescribeGatewayLoadBalancersRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeGatewayLoadBalancersRequest) ToJsonString

func (r *DescribeGatewayLoadBalancersRequest) ToJsonString() string

type DescribeGatewayLoadBalancersRequestParams

type DescribeGatewayLoadBalancersRequestParams struct {
	// GWLB instance ID. Batch filtering is supported with a maximum of 20 instance IDs.
	LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`

	// Number of GWLB instances returned in a batch, with a default value of 20 and a maximum value of 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Starting offset for returning the list of GWLB instances, with a default value of 0.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Filter criteria for querying the CLB details list. For each request, the maximum value of Filters is 10, and the maximum value of Filter.Values is 100.Filter.Name and Filter.Values are both required. Detailed filter criteria are as follows:- name - String - required: No - (filter criteria) filter by GWLB instance name, such as "gwlb-xxxx".- VpcId - String - required: No - (filter criteria) filter by the VPC to which the GWLB instance belongs, such as "vpc-bhqk****".
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Search field, for fuzzy matching of name and VIP.
	SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}

Predefined struct for user

type DescribeGatewayLoadBalancersResponse

type DescribeGatewayLoadBalancersResponse struct {
	*tchttp.BaseResponse
	Response *DescribeGatewayLoadBalancersResponseParams `json:"Response"`
}

func NewDescribeGatewayLoadBalancersResponse

func NewDescribeGatewayLoadBalancersResponse() (response *DescribeGatewayLoadBalancersResponse)

func (*DescribeGatewayLoadBalancersResponse) FromJsonString

func (r *DescribeGatewayLoadBalancersResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeGatewayLoadBalancersResponse) ToJsonString

func (r *DescribeGatewayLoadBalancersResponse) ToJsonString() string

type DescribeGatewayLoadBalancersResponseParams

type DescribeGatewayLoadBalancersResponseParams struct {
	// Total number of CLB instances that meet the filter criteria. This value is independent of the Limit in the input parameters.
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Returned GWLB instance array.
	LoadBalancerSet []*GatewayLoadBalancer `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 DescribeTargetGroupInstanceStatusRequest

type DescribeTargetGroupInstanceStatusRequest struct {
	*tchttp.BaseRequest

	// Unique target group ID
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// List of backend service IPs bound to the target group
	TargetGroupInstanceIps []*string `json:"TargetGroupInstanceIps,omitnil,omitempty" name:"TargetGroupInstanceIps"`
}

func NewDescribeTargetGroupInstanceStatusRequest

func NewDescribeTargetGroupInstanceStatusRequest() (request *DescribeTargetGroupInstanceStatusRequest)

func (*DescribeTargetGroupInstanceStatusRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTargetGroupInstanceStatusRequest) ToJsonString

type DescribeTargetGroupInstanceStatusRequestParams

type DescribeTargetGroupInstanceStatusRequestParams struct {
	// Unique target group ID
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// List of backend service IPs bound to the target group
	TargetGroupInstanceIps []*string `json:"TargetGroupInstanceIps,omitnil,omitempty" name:"TargetGroupInstanceIps"`
}

Predefined struct for user

type DescribeTargetGroupInstanceStatusResponse

type DescribeTargetGroupInstanceStatusResponse struct {
	*tchttp.BaseResponse
	Response *DescribeTargetGroupInstanceStatusResponseParams `json:"Response"`
}

func NewDescribeTargetGroupInstanceStatusResponse

func NewDescribeTargetGroupInstanceStatusResponse() (response *DescribeTargetGroupInstanceStatusResponse)

func (*DescribeTargetGroupInstanceStatusResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTargetGroupInstanceStatusResponse) ToJsonString

type DescribeTargetGroupInstanceStatusResponseParams

type DescribeTargetGroupInstanceStatusResponseParams struct {
	// Health check backend RS status list
	TargetGroupInstanceSet []*TargetGroupInstanceStatus `json:"TargetGroupInstanceSet,omitnil,omitempty" name:"TargetGroupInstanceSet"`

	// 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, only filtering by TargetGroupId, BindIP, or InstanceId is supported.
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Number of displayed results. Default value: 20.
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Displayed 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, only filtering by TargetGroupId, BindIP, or InstanceId is supported.
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Number of displayed results. Default value: 20.
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Displayed 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 on bound server.
	TargetGroupInstanceSet []*TargetGroupBackend `json:"TargetGroupInstanceSet,omitnil,omitempty" name:"TargetGroupInstanceSet"`

	// Actual statistical quantity, which is not affected by Limit, Offset, or CAM.
	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 criterion array, which supports TargetGroupVpcId and TargetGroupName.
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Starting display offset.
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit on the number of displayed entries. 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 criterion array, which supports TargetGroupVpcId and TargetGroupName.
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Starting display offset.
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit on the number of displayed entries. 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"`

	// Collection of displayed target group information.
	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 mutually exclusive with Filters.
	TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`

	// Limit on the number of displayed entries. Default value: 20.
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Starting display offset.
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Filter criterion array, which supports TargetGroupVpcId and TargetGroupName.
	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 mutually exclusive with Filters.
	TargetGroupIds []*string `json:"TargetGroupIds,omitnil,omitempty" name:"TargetGroupIds"`

	// Limit on the number of displayed entries. Default value: 20.
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Starting display offset.
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Filter criterion array, which supports TargetGroupVpcId and TargetGroupName.
	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"`

	// Collection of displayed target group information.
	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 DescribeTaskStatusRequest

type DescribeTaskStatusRequest struct {
	*tchttp.BaseRequest

	// Request ID, which is the RequestId parameter returned by the API.
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

func NewDescribeTaskStatusRequest

func NewDescribeTaskStatusRequest() (request *DescribeTaskStatusRequest)

func (*DescribeTaskStatusRequest) FromJsonString

func (r *DescribeTaskStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeTaskStatusRequest) ToJsonString

func (r *DescribeTaskStatusRequest) ToJsonString() string

type DescribeTaskStatusRequestParams

type DescribeTaskStatusRequestParams struct {
	// Request ID, which is the RequestId parameter returned by the API.
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

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 task. Valid values: 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 value can be obtained.
	LoadBalancerIds []*string `json:"LoadBalancerIds,omitnil,omitempty" name:"LoadBalancerIds"`

	// Auxiliary description information, such as failure causes.
	// Note: This field may return null, indicating that no valid value 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 DisassociateTargetGroupsRequest

type DisassociateTargetGroupsRequest struct {
	*tchttp.BaseRequest

	// List of target groups to unbind.
	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 {
	// List of target groups to unbind.
	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 Filter

type Filter struct {
	// Filter name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Filter value array
	Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
}

type GatewayLoadBalancer

type GatewayLoadBalancer struct {
	// GWLB instance ID.
	LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`

	// Name of the GWLB instance.
	LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`

	// VPC to which the GWLB belongs.Note: this field may return `null`, indicating that no valid values can be obtained.
	VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`

	// Subnet to which the GWLB belongs.
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// Virtual IP of GWLB for providing service.
	Vips []*string `json:"Vips,omitnil,omitempty" name:"Vips"`

	// GWLB instance status.0: creating, 1: normal operation, 3: deleting.
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// Unique ID of associated target group.Note: this field may return `null`, indicating that no valid values can be obtained.
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// Whether to enable the deletion protection feature.Note: this field may return `null`, indicating that no valid values can be obtained.
	DeleteProtect *bool `json:"DeleteProtect,omitnil,omitempty" name:"DeleteProtect"`

	// Tag information on the CLB instance.Note: this field may return `null`, indicating that no valid values can be obtained.
	Tags []*TagInfo `json:"Tags,omitnil,omitempty" name:"Tags"`

	// Creation time.
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// Billing type of the GWLB instance. POSTPAID_BY_HOUR: pay-as-you-goNote: this field may return `null`, indicating that no valid values can be obtained.
	ChargeType *string `json:"ChargeType,omitnil,omitempty" name:"ChargeType"`

	// 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"`

	// CLB instance isolation time
	//
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	IsolatedTime *string `json:"IsolatedTime,omitnil,omitempty" name:"IsolatedTime"`
}

type InquirePriceCreateGatewayLoadBalancerRequest

type InquirePriceCreateGatewayLoadBalancerRequest struct {
	*tchttp.BaseRequest

	// Number of GWLB instances for inquiry, with a default of 1
	GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
}

func NewInquirePriceCreateGatewayLoadBalancerRequest

func NewInquirePriceCreateGatewayLoadBalancerRequest() (request *InquirePriceCreateGatewayLoadBalancerRequest)

func (*InquirePriceCreateGatewayLoadBalancerRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquirePriceCreateGatewayLoadBalancerRequest) ToJsonString

type InquirePriceCreateGatewayLoadBalancerRequestParams

type InquirePriceCreateGatewayLoadBalancerRequestParams struct {
	// Number of GWLB instances for inquiry, with a default of 1
	GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
}

Predefined struct for user

type InquirePriceCreateGatewayLoadBalancerResponse

type InquirePriceCreateGatewayLoadBalancerResponse struct {
	*tchttp.BaseResponse
	Response *InquirePriceCreateGatewayLoadBalancerResponseParams `json:"Response"`
}

func NewInquirePriceCreateGatewayLoadBalancerResponse

func NewInquirePriceCreateGatewayLoadBalancerResponse() (response *InquirePriceCreateGatewayLoadBalancerResponse)

func (*InquirePriceCreateGatewayLoadBalancerResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InquirePriceCreateGatewayLoadBalancerResponse) ToJsonString

type InquirePriceCreateGatewayLoadBalancerResponseParams

type InquirePriceCreateGatewayLoadBalancerResponseParams struct {
	// This parameter represents the corresponding price.
	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 ItemPrice

type ItemPrice struct {
	// Postpaid unit price. Unit: CNY.
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	UnitPrice *float64 `json:"UnitPrice,omitnil,omitempty" name:"UnitPrice"`

	// Pay-as-you-go billing unit. Valid values: HOUR: indicates that the billing unit is calculated by hour. Current scenarios involving this billing unit include: postpaid by hour for instances (POSTPAID_BY_HOUR).Note: This field may return null, indicating that no valid value can be obtained.
	ChargeUnit *string `json:"ChargeUnit,omitnil,omitempty" name:"ChargeUnit"`

	// Original price of pre-payment (in CNY).
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	OriginalPrice *float64 `json:"OriginalPrice,omitnil,omitempty" name:"OriginalPrice"`

	// Discount price of prepaid costs, unit: CNY.
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	DiscountPrice *float64 `json:"DiscountPrice,omitnil,omitempty" name:"DiscountPrice"`

	// Discounted unit price for pay-as-you-go. Unit: CNY.Note: This field may return null, indicating that no valid value can be obtained.
	UnitPriceDiscount *float64 `json:"UnitPriceDiscount,omitnil,omitempty" name:"UnitPriceDiscount"`

	// Discount, such as 20.0 representing 80% off.
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	Discount *float64 `json:"Discount,omitnil,omitempty" name:"Discount"`
}

type ModifyGatewayLoadBalancerAttributeRequest

type ModifyGatewayLoadBalancerAttributeRequest struct {
	*tchttp.BaseRequest

	// Unique GWLB ID.
	LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`

	// GWLB instance name. It supports input of 1 to 60 characters.
	LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
}

func NewModifyGatewayLoadBalancerAttributeRequest

func NewModifyGatewayLoadBalancerAttributeRequest() (request *ModifyGatewayLoadBalancerAttributeRequest)

func (*ModifyGatewayLoadBalancerAttributeRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyGatewayLoadBalancerAttributeRequest) ToJsonString

type ModifyGatewayLoadBalancerAttributeRequestParams

type ModifyGatewayLoadBalancerAttributeRequestParams struct {
	// Unique GWLB ID.
	LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`

	// GWLB instance name. It supports input of 1 to 60 characters.
	LoadBalancerName *string `json:"LoadBalancerName,omitnil,omitempty" name:"LoadBalancerName"`
}

Predefined struct for user

type ModifyGatewayLoadBalancerAttributeResponse

type ModifyGatewayLoadBalancerAttributeResponse struct {
	*tchttp.BaseResponse
	Response *ModifyGatewayLoadBalancerAttributeResponseParams `json:"Response"`
}

func NewModifyGatewayLoadBalancerAttributeResponse

func NewModifyGatewayLoadBalancerAttributeResponse() (response *ModifyGatewayLoadBalancerAttributeResponse)

func (*ModifyGatewayLoadBalancerAttributeResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyGatewayLoadBalancerAttributeResponse) ToJsonString

type ModifyGatewayLoadBalancerAttributeResponseParams

type ModifyGatewayLoadBalancerAttributeResponseParams 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"`

	// Health check details.
	HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`

	// Whether "All Dead, All Alive" is supported.
	AllDeadToAlive *bool `json:"AllDeadToAlive,omitnil,omitempty" name:"AllDeadToAlive"`
}

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"`

	// Health check details.
	HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`

	// Whether "All Dead, All Alive" is supported.
	AllDeadToAlive *bool `json:"AllDeadToAlive,omitnil,omitempty" name:"AllDeadToAlive"`
}

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 ModifyTargetGroupInstancesWeightRequest

type ModifyTargetGroupInstancesWeightRequest struct {
	*tchttp.BaseRequest

	// Target group ID.
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// Instance binding configuration array.
	TargetGroupInstances []*TargetGroupInstance `json:"TargetGroupInstances,omitnil,omitempty" name:"TargetGroupInstances"`
}

func NewModifyTargetGroupInstancesWeightRequest

func NewModifyTargetGroupInstancesWeightRequest() (request *ModifyTargetGroupInstancesWeightRequest)

func (*ModifyTargetGroupInstancesWeightRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTargetGroupInstancesWeightRequest) ToJsonString

type ModifyTargetGroupInstancesWeightRequestParams

type ModifyTargetGroupInstancesWeightRequestParams struct {
	// Target group ID.
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// Instance binding configuration array.
	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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyTargetGroupInstancesWeightResponse) ToJsonString

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 Price

type Price struct {
	// It describes the instance price.Note: This field may return null, indicating that no valid value can be obtained.
	InstancePrice *ItemPrice `json:"InstancePrice,omitnil,omitempty" name:"InstancePrice"`

	// It describes the price of GLCU.
	// Note: This field may return null, indicating that no valid value can be obtained.
	LcuPrice *ItemPrice `json:"LcuPrice,omitnil,omitempty" name:"LcuPrice"`
}

type RegisterTargetGroupInstancesRequest

type RegisterTargetGroupInstancesRequest struct {
	*tchttp.BaseRequest

	// Target group ID
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// Server instance array
	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
	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 TagInfo

type TagInfo struct {
	// Tag key
	TagKey *string `json:"TagKey,omitnil,omitempty" name:"TagKey"`

	// Tag value
	TagValue *string `json:"TagValue,omitnil,omitempty" name:"TagValue"`
}

type TargetGroupAssociation

type TargetGroupAssociation struct {
	// GWLB instance ID.
	LoadBalancerId *string `json:"LoadBalancerId,omitnil,omitempty" name:"LoadBalancerId"`

	// Target group ID.
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`
}

type TargetGroupBackend

type TargetGroupBackend struct {
	// Target group ID
	TargetGroupId *string `json:"TargetGroupId,omitnil,omitempty" name:"TargetGroupId"`

	// Backend service type. Valid values: CVM, ENI (to be supported soon)
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Unique backend service ID
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Listening port of backend service
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// Forwarding weight of backend service. Value range: [0, 100]. Default value: 10.
	Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`

	// Public network IP of the real server
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	PublicIpAddresses []*string `json:"PublicIpAddresses,omitnil,omitempty" name:"PublicIpAddresses"`

	// Private network IP of backend serviceNote: This field may return null, indicating that no valid value can be obtained.
	PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitnil,omitempty" name:"PrivateIpAddresses"`

	// Instance name of the real server
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`

	// Real server binding time
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	RegisteredTime *string `json:"RegisteredTime,omitnil,omitempty" name:"RegisteredTime"`

	// Unique ID of the ENI
	//
	// Note: This field may return null, indicating that no valid value can be obtained.
	EniId *string `json:"EniId,omitnil,omitempty" name:"EniId"`

	// Available zone ID of backend serviceNote: This field may return null, indicating that no valid value can be obtained.
	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"`

	// Protocol used for health check, which supports PING and TCP and is PING by default.
	//
	// - PING: icmp
	// - TCP: tcp
	Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// Health check port, which is required when the probe protocol is TCP.
	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.
	IntervalTime *int64 `json:"IntervalTime,omitnil,omitempty" name:"IntervalTime"`

	// Health detection threshold. The default is 3 times. Value range: 2-10 times.
	HealthNum *int64 `json:"HealthNum,omitnil,omitempty" name:"HealthNum"`

	// Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
	UnHealthNum *int64 `json:"UnHealthNum,omitnil,omitempty" name:"UnHealthNum"`
}

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"`

	// Default port of a target group
	//
	// Note: This field may return null, indicating that no valid value 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 value can be obtained.
	AssociatedRule []*AssociationItem `json:"AssociatedRule,omitnil,omitempty" name:"AssociatedRule"`

	// Backend protocol type.Note: This field may return null, indicating that no valid value can be obtained.
	Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// Scheduling algorithm.
	// ip_hash_3: elastic hashing
	// Note: This field may return null, indicating that no valid value can be obtained.
	ScheduleAlgorithm *string `json:"ScheduleAlgorithm,omitnil,omitempty" name:"ScheduleAlgorithm"`

	// Health check details.Note: This field may return null, indicating that no valid value can be obtained.
	HealthCheck *TargetGroupHealthCheck `json:"HealthCheck,omitnil,omitempty" name:"HealthCheck"`

	// Whether "All Dead, All Alive" is supported.Note: This field may return null, indicating that no valid value can be obtained.
	AllDeadToAlive *bool `json:"AllDeadToAlive,omitnil,omitempty" name:"AllDeadToAlive"`

	// Number of rules associated with the target group.Note: This field may return null, indicating that no valid value can be obtained.
	AssociatedRuleCount *int64 `json:"AssociatedRuleCount,omitnil,omitempty" name:"AssociatedRuleCount"`

	// Number of instances in the target group.Note: This field may return null, indicating that no valid value can be obtained.
	RegisteredInstancesCount *int64 `json:"RegisteredInstancesCount,omitnil,omitempty" name:"RegisteredInstancesCount"`
}

type TargetGroupInstance

type TargetGroupInstance struct {
	// Private network IP of target group instance.
	BindIP *string `json:"BindIP,omitnil,omitempty" name:"BindIP"`

	// Port of target group instance. Only 6081 is supported.
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
	Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}

type TargetGroupInstanceStatus

type TargetGroupInstanceStatus struct {
	// IP of backend RS
	InstanceIp *string `json:"InstanceIp,omitnil,omitempty" name:"InstanceIp"`

	// Health check status, with parameter values and meanings as follows:● on: indicates being under detection.● off: indicates that the health check is disabled.● health: indicates being healthy.● unhealth: indicates being abnormal.
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL