Documentation ¶
Index ¶
- Constants
- type AcquireClusterAdminRoleRequest
- type AcquireClusterAdminRoleResponse
- type AddExistedInstancesRequest
- type AddExistedInstancesResponse
- type AddNodeToNodePoolRequest
- type AddNodeToNodePoolResponse
- type AddVpcCniSubnetsRequest
- type AddVpcCniSubnetsResponse
- type AutoScalingGroupRange
- type AutoscalingAdded
- type CheckInstancesUpgradeAbleRequest
- type CheckInstancesUpgradeAbleResponse
- type Client
- func (c *Client) AcquireClusterAdminRole(request *AcquireClusterAdminRoleRequest) (response *AcquireClusterAdminRoleResponse, err error)
- func (c *Client) AddExistedInstances(request *AddExistedInstancesRequest) (response *AddExistedInstancesResponse, err error)
- func (c *Client) AddNodeToNodePool(request *AddNodeToNodePoolRequest) (response *AddNodeToNodePoolResponse, err error)
- func (c *Client) AddVpcCniSubnets(request *AddVpcCniSubnetsRequest) (response *AddVpcCniSubnetsResponse, err error)
- func (c *Client) CheckInstancesUpgradeAble(request *CheckInstancesUpgradeAbleRequest) (response *CheckInstancesUpgradeAbleResponse, err error)
- func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)
- func (c *Client) CreateClusterAsGroup(request *CreateClusterAsGroupRequest) (response *CreateClusterAsGroupResponse, err error)
- func (c *Client) CreateClusterEndpoint(request *CreateClusterEndpointRequest) (response *CreateClusterEndpointResponse, err error)
- func (c *Client) CreateClusterEndpointVip(request *CreateClusterEndpointVipRequest) (response *CreateClusterEndpointVipResponse, err error)
- func (c *Client) CreateClusterInstances(request *CreateClusterInstancesRequest) (response *CreateClusterInstancesResponse, err error)
- func (c *Client) CreateClusterNodePool(request *CreateClusterNodePoolRequest) (response *CreateClusterNodePoolResponse, err error)
- func (c *Client) CreateClusterNodePoolFromExistingAsg(request *CreateClusterNodePoolFromExistingAsgRequest) (response *CreateClusterNodePoolFromExistingAsgResponse, err error)
- func (c *Client) CreateClusterRouteTable(request *CreateClusterRouteTableRequest) (response *CreateClusterRouteTableResponse, err error)
- func (c *Client) CreatePrometheusAlertRule(request *CreatePrometheusAlertRuleRequest) (response *CreatePrometheusAlertRuleResponse, err error)
- func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)
- func (c *Client) DeleteClusterAsGroups(request *DeleteClusterAsGroupsRequest) (response *DeleteClusterAsGroupsResponse, err error)
- func (c *Client) DeleteClusterEndpoint(request *DeleteClusterEndpointRequest) (response *DeleteClusterEndpointResponse, err error)
- func (c *Client) DeleteClusterEndpointVip(request *DeleteClusterEndpointVipRequest) (response *DeleteClusterEndpointVipResponse, err error)
- func (c *Client) DeleteClusterInstances(request *DeleteClusterInstancesRequest) (response *DeleteClusterInstancesResponse, err error)
- func (c *Client) DeleteClusterNodePool(request *DeleteClusterNodePoolRequest) (response *DeleteClusterNodePoolResponse, err error)
- func (c *Client) DeleteClusterRoute(request *DeleteClusterRouteRequest) (response *DeleteClusterRouteResponse, err error)
- func (c *Client) DeleteClusterRouteTable(request *DeleteClusterRouteTableRequest) (response *DeleteClusterRouteTableResponse, err error)
- func (c *Client) DeletePrometheusAlertRule(request *DeletePrometheusAlertRuleRequest) (response *DeletePrometheusAlertRuleResponse, err error)
- func (c *Client) DescribeAvailableClusterVersion(request *DescribeAvailableClusterVersionRequest) (response *DescribeAvailableClusterVersionResponse, err error)
- func (c *Client) DescribeClusterAsGroupOption(request *DescribeClusterAsGroupOptionRequest) (response *DescribeClusterAsGroupOptionResponse, err error)
- func (c *Client) DescribeClusterAsGroups(request *DescribeClusterAsGroupsRequest) (response *DescribeClusterAsGroupsResponse, err error)
- func (c *Client) DescribeClusterAuthenticationOptions(request *DescribeClusterAuthenticationOptionsRequest) (response *DescribeClusterAuthenticationOptionsResponse, err error)
- func (c *Client) DescribeClusterCommonNames(request *DescribeClusterCommonNamesRequest) (response *DescribeClusterCommonNamesResponse, err error)
- func (c *Client) DescribeClusterEndpointStatus(request *DescribeClusterEndpointStatusRequest) (response *DescribeClusterEndpointStatusResponse, err error)
- func (c *Client) DescribeClusterEndpointVipStatus(request *DescribeClusterEndpointVipStatusRequest) (response *DescribeClusterEndpointVipStatusResponse, err error)
- func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)
- func (c *Client) DescribeClusterKubeconfig(request *DescribeClusterKubeconfigRequest) (response *DescribeClusterKubeconfigResponse, err error)
- func (c *Client) DescribeClusterNodePoolDetail(request *DescribeClusterNodePoolDetailRequest) (response *DescribeClusterNodePoolDetailResponse, err error)
- func (c *Client) DescribeClusterNodePools(request *DescribeClusterNodePoolsRequest) (response *DescribeClusterNodePoolsResponse, err error)
- func (c *Client) DescribeClusterRouteTables(request *DescribeClusterRouteTablesRequest) (response *DescribeClusterRouteTablesResponse, err error)
- func (c *Client) DescribeClusterRoutes(request *DescribeClusterRoutesRequest) (response *DescribeClusterRoutesResponse, err error)
- func (c *Client) DescribeClusterSecurity(request *DescribeClusterSecurityRequest) (response *DescribeClusterSecurityResponse, err error)
- func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
- func (c *Client) DescribeEnableVpcCniProgress(request *DescribeEnableVpcCniProgressRequest) (response *DescribeEnableVpcCniProgressResponse, err error)
- func (c *Client) DescribeExistedInstances(request *DescribeExistedInstancesRequest) (response *DescribeExistedInstancesResponse, err error)
- func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error)
- func (c *Client) DescribePrometheusInstance(request *DescribePrometheusInstanceRequest) (response *DescribePrometheusInstanceResponse, err error)
- func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
- func (c *Client) DescribeRouteTableConflicts(request *DescribeRouteTableConflictsRequest) (response *DescribeRouteTableConflictsResponse, err error)
- func (c *Client) DescribeVersions(request *DescribeVersionsRequest) (response *DescribeVersionsResponse, err error)
- func (c *Client) DescribeVpcCniPodLimits(request *DescribeVpcCniPodLimitsRequest) (response *DescribeVpcCniPodLimitsResponse, err error)
- func (c *Client) EnableVpcCniNetworkType(request *EnableVpcCniNetworkTypeRequest) (response *EnableVpcCniNetworkTypeResponse, err error)
- func (c *Client) GetUpgradeInstanceProgress(request *GetUpgradeInstanceProgressRequest) (response *GetUpgradeInstanceProgressResponse, err error)
- func (c *Client) ModifyClusterAsGroupAttribute(request *ModifyClusterAsGroupAttributeRequest) (response *ModifyClusterAsGroupAttributeResponse, err error)
- func (c *Client) ModifyClusterAsGroupOptionAttribute(request *ModifyClusterAsGroupOptionAttributeRequest) (response *ModifyClusterAsGroupOptionAttributeResponse, err error)
- func (c *Client) ModifyClusterAttribute(request *ModifyClusterAttributeRequest) (response *ModifyClusterAttributeResponse, err error)
- func (c *Client) ModifyClusterAuthenticationOptions(request *ModifyClusterAuthenticationOptionsRequest) (response *ModifyClusterAuthenticationOptionsResponse, err error)
- func (c *Client) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error)
- func (c *Client) ModifyClusterNodePool(request *ModifyClusterNodePoolRequest) (response *ModifyClusterNodePoolResponse, err error)
- func (c *Client) ModifyNodePoolInstanceTypes(request *ModifyNodePoolInstanceTypesRequest) (response *ModifyNodePoolInstanceTypesResponse, err error)
- func (c *Client) ModifyPrometheusAlertRule(request *ModifyPrometheusAlertRuleRequest) (response *ModifyPrometheusAlertRuleResponse, err error)
- func (c *Client) RemoveNodeFromNodePool(request *RemoveNodeFromNodePoolRequest) (response *RemoveNodeFromNodePoolResponse, err error)
- func (c *Client) SetNodePoolNodeProtection(request *SetNodePoolNodeProtectionRequest) (response *SetNodePoolNodeProtectionResponse, err error)
- func (c *Client) UpdateClusterVersion(request *UpdateClusterVersionRequest) (response *UpdateClusterVersionResponse, err error)
- func (c *Client) UpgradeClusterInstances(request *UpgradeClusterInstancesRequest) (response *UpgradeClusterInstancesResponse, err error)
- type Cluster
- type ClusterAdvancedSettings
- type ClusterAsGroup
- type ClusterAsGroupAttribute
- type ClusterAsGroupOption
- type ClusterBasicSettings
- type ClusterCIDRSettings
- type ClusterExtraArgs
- type ClusterNetworkSettings
- type ClusterVersion
- type CommonName
- type CreateClusterAsGroupRequest
- type CreateClusterAsGroupResponse
- type CreateClusterEndpointRequest
- type CreateClusterEndpointResponse
- type CreateClusterEndpointVipRequest
- type CreateClusterEndpointVipResponse
- type CreateClusterInstancesRequest
- type CreateClusterInstancesResponse
- type CreateClusterNodePoolFromExistingAsgRequest
- type CreateClusterNodePoolFromExistingAsgResponse
- type CreateClusterNodePoolRequest
- type CreateClusterNodePoolResponse
- type CreateClusterRequest
- type CreateClusterResponse
- type CreateClusterRouteTableRequest
- type CreateClusterRouteTableResponse
- type CreatePrometheusAlertRuleRequest
- type CreatePrometheusAlertRuleResponse
- type DataDisk
- type DeleteClusterAsGroupsRequest
- type DeleteClusterAsGroupsResponse
- type DeleteClusterEndpointRequest
- type DeleteClusterEndpointResponse
- type DeleteClusterEndpointVipRequest
- type DeleteClusterEndpointVipResponse
- type DeleteClusterInstancesRequest
- type DeleteClusterInstancesResponse
- type DeleteClusterNodePoolRequest
- type DeleteClusterNodePoolResponse
- type DeleteClusterRequest
- type DeleteClusterResponse
- type DeleteClusterRouteRequest
- type DeleteClusterRouteResponse
- type DeleteClusterRouteTableRequest
- type DeleteClusterRouteTableResponse
- type DeletePrometheusAlertRuleRequest
- type DeletePrometheusAlertRuleResponse
- type DescribeAvailableClusterVersionRequest
- type DescribeAvailableClusterVersionResponse
- type DescribeClusterAsGroupOptionRequest
- type DescribeClusterAsGroupOptionResponse
- type DescribeClusterAsGroupsRequest
- type DescribeClusterAsGroupsResponse
- type DescribeClusterAuthenticationOptionsRequest
- type DescribeClusterAuthenticationOptionsResponse
- type DescribeClusterCommonNamesRequest
- type DescribeClusterCommonNamesResponse
- type DescribeClusterEndpointStatusRequest
- type DescribeClusterEndpointStatusResponse
- type DescribeClusterEndpointVipStatusRequest
- type DescribeClusterEndpointVipStatusResponse
- type DescribeClusterInstancesRequest
- type DescribeClusterInstancesResponse
- type DescribeClusterKubeconfigRequest
- type DescribeClusterKubeconfigResponse
- type DescribeClusterNodePoolDetailRequest
- type DescribeClusterNodePoolDetailResponse
- type DescribeClusterNodePoolsRequest
- type DescribeClusterNodePoolsResponse
- type DescribeClusterRouteTablesRequest
- type DescribeClusterRouteTablesResponse
- type DescribeClusterRoutesRequest
- type DescribeClusterRoutesResponse
- type DescribeClusterSecurityRequest
- type DescribeClusterSecurityResponse
- type DescribeClustersRequest
- type DescribeClustersResponse
- type DescribeEnableVpcCniProgressRequest
- type DescribeEnableVpcCniProgressResponse
- type DescribeExistedInstancesRequest
- type DescribeExistedInstancesResponse
- type DescribeImagesRequest
- type DescribeImagesResponse
- type DescribePrometheusInstanceRequest
- type DescribePrometheusInstanceResponse
- type DescribeRegionsRequest
- type DescribeRegionsResponse
- type DescribeRouteTableConflictsRequest
- type DescribeRouteTableConflictsResponse
- type DescribeVersionsRequest
- type DescribeVersionsResponse
- type DescribeVpcCniPodLimitsRequest
- type DescribeVpcCniPodLimitsResponse
- type EnableVpcCniNetworkTypeRequest
- type EnableVpcCniNetworkTypeResponse
- type EnhancedService
- type ExistedInstance
- type ExistedInstancesForNode
- type ExistedInstancesPara
- type ExtensionAddon
- type Filter
- type GetUpgradeInstanceProgressRequest
- type GetUpgradeInstanceProgressResponse
- type ImageInstance
- type Instance
- type InstanceAdvancedSettings
- type InstanceDataDiskMountSetting
- type InstanceExtraArgs
- type InstanceUpgradeClusterStatus
- type InstanceUpgradePreCheckResult
- type InstanceUpgradePreCheckResultItem
- type InstanceUpgradeProgressItem
- type Label
- type LoginSettings
- type ManuallyAdded
- type ModifyClusterAsGroupAttributeRequest
- type ModifyClusterAsGroupAttributeResponse
- type ModifyClusterAsGroupOptionAttributeRequest
- type ModifyClusterAsGroupOptionAttributeResponse
- type ModifyClusterAttributeRequest
- type ModifyClusterAttributeResponse
- type ModifyClusterAuthenticationOptionsRequest
- type ModifyClusterAuthenticationOptionsResponse
- type ModifyClusterEndpointSPRequest
- type ModifyClusterEndpointSPResponse
- type ModifyClusterNodePoolRequest
- type ModifyClusterNodePoolResponse
- type ModifyNodePoolInstanceTypesRequest
- type ModifyNodePoolInstanceTypesResponse
- type ModifyPrometheusAlertRuleRequest
- type ModifyPrometheusAlertRuleResponse
- type NodeCountSummary
- type NodePool
- type NodePoolOption
- type PodLimitsByType
- type PodLimitsInstance
- type PrometheusAlertRule
- type PrometheusAlertRuleDetail
- type PrometheusGrafanaInfo
- type PrometheusNotification
- type RegionInstance
- type RemoveNodeFromNodePoolRequest
- type RemoveNodeFromNodePoolResponse
- type ResourceDeleteOption
- type RouteInfo
- type RouteTableConflict
- type RouteTableInfo
- type RunAutomationServiceEnabled
- type RunInstancesForNode
- type RunMonitorServiceEnabled
- type RunSecurityServiceEnabled
- type ServiceAccountAuthenticationOptions
- type SetNodePoolNodeProtectionRequest
- type SetNodePoolNodeProtectionResponse
- type Tag
- type TagSpecification
- type Taint
- type TaskStepInfo
- type UpdateClusterVersionRequest
- type UpdateClusterVersionResponse
- type UpgradeAbleInstancesItem
- type UpgradeClusterInstancesRequest
- type UpgradeClusterInstancesResponse
- type UpgradeNodeResetParam
- type VersionInstance
Constants ¶
const ( // Operation failed. FAILEDOPERATION = "FailedOperation" // Internal error. INTERNALERROR = "InternalError" // Failed to obtain the user authentication information INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" // Account not verified. INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" // Error creating scaling group resource. INTERNALERROR_ASCOMMON = "InternalError.AsCommon" // You do not have permissions. INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" // CIDR conflicts with the CIDR of another cluster. INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" // CIDR conflicts with another route. INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" // CIDR conflicts with VPC. INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" // CIDR conflicts with global route. INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" // Invalid CIDR. INTERNALERROR_CIDRINVALI = "InternalError.CidrInvali" // Invalid CIDR mask. INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" // Cluster not found. INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" // Cluster status error. INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" // The version of the cluster node is outdated. INTERNALERROR_CLUSTERUPGRADENODEVERSION = "InternalError.ClusterUpgradeNodeVersion" // Internal HTTP client error INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" // Error while requesting (HTTP) other Tencent Cloud services INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" // Failed to create cluster. INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" // Error in node creation. INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" // CVM does not exist. INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" // Some of the CVMs cannot be found INTERNALERROR_CVMNUMBERNOTMATCH = "InternalError.CvmNumberNotMatch" // DB error. INTERNALERROR_DB = "InternalError.Db" // Database error. INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" // Record not found. INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" // Failed to obtain total number of current security groups. INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" // Failed to obtain security group quota. INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" // Empty clusters are not supported. INTERNALERROR_EMPTYCLUSTERNOTSUPPORT = "InternalError.EmptyClusterNotSupport" // Image not found. INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" // Failed to initialize Master. INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" // Invalid CIDR. INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" // Failed to connect to the user’s Kubernetes cluster. INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" // Kubernetes API error. INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" // Failed to create the kubernetes client. INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" // Failed to create the kubernetes resource. INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" // Failed to delete the kubernetes resource. INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" // Failed to obtain the kubernetes resources INTERNALERROR_KUBERNETESGETOPERATIONERROR = "InternalError.KubernetesGetOperationError" // Unknown Kubernetes error INTERNALERROR_KUBERNETESINTERNAL = "InternalError.KubernetesInternal" // An error occurs while calling the underlying CLB INTERNALERROR_LBCOMMON = "InternalError.LbCommon" // Image OS not supported. INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" // Parameter error. INTERNALERROR_PARAM = "InternalError.Param" // Pod not found INTERNALERROR_PODNOTFOUND = "InternalError.PodNotFound" // Cluster does not support the current operation. INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" // Quota limit exceeded. INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" // Quota limit exceeded. INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" // Quota limit exceeded. INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" // Insufficient security group quota. INTERNALERROR_QUOTAUSGLIMIT = "InternalError.QuotaUSGLimit" // Resource already exists. INTERNALERROR_RESOURCEEXISTALREADY = "InternalError.ResourceExistAlready" // Route table is not empty. INTERNALERROR_ROUTETABLENOTEMPTY = "InternalError.RouteTableNotEmpty" // Route table does not exist. INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" // Failed to create the task. INTERNALERROR_TASKCREATEFAILED = "InternalError.TaskCreateFailed" // The task in the current state does not support this operation. INTERNALERROR_TASKLIFESTATEERROR = "InternalError.TaskLifeStateError" // No task found INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" // Internal error. INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" // Unknown internal error. INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" // Unknown VPC error INTERNALERROR_VPCUNEXPECTEDERROR = "InternalError.VPCUnexpectedError" // VPC error INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" // Peering connection does not exist INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" // VPC record not found INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" // Unknown allowlist error INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // Auto scaling group creation parameter error. INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" // The CIDR block conflicts with the CIDR blocks of other clusters. INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" // The route to create conflicts with existing routes. INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" // The CIDR block conflicts with the VPC’s CIDR block. INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" // The created route conflicts with the existing global route under the VPC. INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" // Parameter error. The CIDR block does not meet the specification. INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" // The CIDR block is not in the route table. INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" // The cluster ID does not exist. INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" // Next hop address is already associated with a CIDR block. INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" // Invalid parameter. INVALIDPARAMETER_PARAM = "InvalidParameter.Param" // The PROM instance does not exist. INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound" // Route table is not empty. INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" // Quota limit is exceeded. LIMITEXCEEDED = "LimitExceeded" // Missing parameter. MISSINGPARAMETER = "MissingParameter" // Operation denied. OPERATIONDENIED = "OperationDenied" // The cluster is under deletion protection and cannot be deleted. OPERATIONDENIED_CLUSTERINDELETIONPROTECTION = "OperationDenied.ClusterInDeletionProtection" // The resource is occupied. RESOURCEINUSE = "ResourceInUse" // The resource does not exist. RESOURCENOTFOUND = "ResourceNotFound" // The scaling group does not exist. RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" // The cluster does not exist. RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" // The specified resource is not found in the Kubernetes cluster. RESOURCENOTFOUND_KUBERESOURCENOTFOUND = "ResourceNotFound.KubeResourceNotFound" // The kubernetes resource does not exist. RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" // Resource is unavailable RESOURCEUNAVAILABLE = "ResourceUnavailable" // The cluster’s status does support this operation. RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // The API has no CAM permissions. UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" // Unknown parameter. UNKNOWNPARAMETER = "UnknownParameter" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" // Failed to enable CA because AS is disabled. UNSUPPORTEDOPERATION_CAENABLEFAILED = "UnsupportedOperation.CaEnableFailed" // The user is not in the allowlist. UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist" )
const APIVersion = "2018-05-25"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcquireClusterAdminRoleRequest ¶
type AcquireClusterAdminRoleRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewAcquireClusterAdminRoleRequest ¶
func NewAcquireClusterAdminRoleRequest() (request *AcquireClusterAdminRoleRequest)
func (*AcquireClusterAdminRoleRequest) FromJsonString ¶
func (r *AcquireClusterAdminRoleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AcquireClusterAdminRoleRequest) ToJsonString ¶
func (r *AcquireClusterAdminRoleRequest) ToJsonString() string
type AcquireClusterAdminRoleResponse ¶
type AcquireClusterAdminRoleResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAcquireClusterAdminRoleResponse ¶
func NewAcquireClusterAdminRoleResponse() (response *AcquireClusterAdminRoleResponse)
func (*AcquireClusterAdminRoleResponse) FromJsonString ¶
func (r *AcquireClusterAdminRoleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AcquireClusterAdminRoleResponse) ToJsonString ¶
func (r *AcquireClusterAdminRoleResponse) ToJsonString() string
type AddExistedInstancesRequest ¶
type AddExistedInstancesRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Instance list. Spot instance is not supported. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Detailed information of the instance InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Enhanced services. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitor and Cloud Security are enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Node login information (currently only supports using Password or single KeyIds) LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // When reinstalling the system, you can specify the HostName of the modified instance (when the cluster is in HostName mode, this parameter is required, and the rule name is the same as the [Create CVM Instance](https://intl.cloud.tencent.com/document/product/213/15730?from_cn_redirect=1) API HostName except for uppercase letters not being supported. HostName *string `json:"HostName,omitempty" name:"HostName"` // Security group to which the instance belongs. This parameter can be obtained from the `sgId` field returned by DescribeSecurityGroups. If this parameter is not specified, the default security group is bound. (Currently, you can only set a single sgId) SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Node pool options NodePool *NodePoolOption `json:"NodePool,omitempty" name:"NodePool"` // Skips the specified verification. Valid values: GlobalRouteCIDRCheck, VpcCniCIDRCheck SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions"` // This parameter is used to customize the configuration of an instance, which corresponds to the `InstanceIds` one-to-one in sequence. If this parameter is passed in, the default parameter `InstanceAdvancedSettings` will be overwritten and will not take effect. If this parameter is not passed in, the `InstanceAdvancedSettings` will take effect for each instance. // // The array length of `InstanceAdvancedSettingsOverride` should be the same as the array length of `InstanceIds`. If its array length is greater than the `InstanceIds` array length, an error will be reported. If its array length is less than the `InstanceIds` array length, the instance without corresponding configuration will use the default configuration. InstanceAdvancedSettingsOverrides []*InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverrides,omitempty" name:"InstanceAdvancedSettingsOverrides"` }
func NewAddExistedInstancesRequest ¶
func NewAddExistedInstancesRequest() (request *AddExistedInstancesRequest)
func (*AddExistedInstancesRequest) FromJsonString ¶
func (r *AddExistedInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddExistedInstancesRequest) ToJsonString ¶
func (r *AddExistedInstancesRequest) ToJsonString() string
type AddExistedInstancesResponse ¶
type AddExistedInstancesResponse struct { *tchttp.BaseResponse Response *struct { // IDs of failed nodes // Note: This field may return null, indicating that no valid value was found. FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds"` // IDs of successful nodes // Note: This field may return null, indicating that no valid value was found. SuccInstanceIds []*string `json:"SuccInstanceIds,omitempty" name:"SuccInstanceIds"` // IDs of (successful or failed) nodes that timed out // Note: This field may return null, indicating that no valid value was found. TimeoutInstanceIds []*string `json:"TimeoutInstanceIds,omitempty" name:"TimeoutInstanceIds"` // Causes of the failure to add a node to a cluster // Note: this field may return `null`, indicating that no valid value is obtained. FailedReasons []*string `json:"FailedReasons,omitempty" name:"FailedReasons"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddExistedInstancesResponse ¶
func NewAddExistedInstancesResponse() (response *AddExistedInstancesResponse)
func (*AddExistedInstancesResponse) FromJsonString ¶
func (r *AddExistedInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddExistedInstancesResponse) ToJsonString ¶
func (r *AddExistedInstancesResponse) ToJsonString() string
type AddNodeToNodePoolRequest ¶
type AddNodeToNodePoolRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // Node ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewAddNodeToNodePoolRequest ¶
func NewAddNodeToNodePoolRequest() (request *AddNodeToNodePoolRequest)
func (*AddNodeToNodePoolRequest) FromJsonString ¶
func (r *AddNodeToNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddNodeToNodePoolRequest) ToJsonString ¶
func (r *AddNodeToNodePoolRequest) ToJsonString() string
type AddNodeToNodePoolResponse ¶
type AddNodeToNodePoolResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddNodeToNodePoolResponse ¶
func NewAddNodeToNodePoolResponse() (response *AddNodeToNodePoolResponse)
func (*AddNodeToNodePoolResponse) FromJsonString ¶
func (r *AddNodeToNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddNodeToNodePoolResponse) ToJsonString ¶
func (r *AddNodeToNodePoolResponse) ToJsonString() string
type AddVpcCniSubnetsRequest ¶
type AddVpcCniSubnetsRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // The subnets added for the cluster container network SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` // ID of the VPC where the cluster resides VpcId *string `json:"VpcId,omitempty" name:"VpcId"` }
func NewAddVpcCniSubnetsRequest ¶
func NewAddVpcCniSubnetsRequest() (request *AddVpcCniSubnetsRequest)
func (*AddVpcCniSubnetsRequest) FromJsonString ¶
func (r *AddVpcCniSubnetsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddVpcCniSubnetsRequest) ToJsonString ¶
func (r *AddVpcCniSubnetsRequest) ToJsonString() string
type AddVpcCniSubnetsResponse ¶
type AddVpcCniSubnetsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddVpcCniSubnetsResponse ¶
func NewAddVpcCniSubnetsResponse() (response *AddVpcCniSubnetsResponse)
func (*AddVpcCniSubnetsResponse) FromJsonString ¶
func (r *AddVpcCniSubnetsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddVpcCniSubnetsResponse) ToJsonString ¶
func (r *AddVpcCniSubnetsResponse) ToJsonString() string
type AutoScalingGroupRange ¶
type AutoscalingAdded ¶
type AutoscalingAdded struct { // Number of nodes that are being added Joining *int64 `json:"Joining,omitempty" name:"Joining"` // Number of nodes that are being initialized Initializing *int64 `json:"Initializing,omitempty" name:"Initializing"` // Number of normal nodes Normal *int64 `json:"Normal,omitempty" name:"Normal"` // Total number of nodes Total *int64 `json:"Total,omitempty" name:"Total"` }
type CheckInstancesUpgradeAbleRequest ¶
type CheckInstancesUpgradeAbleRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Specify the node list to check. If it’s not passed in, all nodes of the cluster will be checked. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Upgrade type UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"` // Pagination offset Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Pagination limit Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filtering Filter []*Filter `json:"Filter,omitempty" name:"Filter"` }
func NewCheckInstancesUpgradeAbleRequest ¶
func NewCheckInstancesUpgradeAbleRequest() (request *CheckInstancesUpgradeAbleRequest)
func (*CheckInstancesUpgradeAbleRequest) FromJsonString ¶
func (r *CheckInstancesUpgradeAbleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckInstancesUpgradeAbleRequest) ToJsonString ¶
func (r *CheckInstancesUpgradeAbleRequest) ToJsonString() string
type CheckInstancesUpgradeAbleResponse ¶
type CheckInstancesUpgradeAbleResponse struct { *tchttp.BaseResponse Response *struct { // The current minor version of cluster Master ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` // The latest minor version of cluster Master corresponding major version LatestVersion *string `json:"LatestVersion,omitempty" name:"LatestVersion"` // List of nodes that can be upgraded // Note: this field may return `null`, indicating that no valid value is obtained. UpgradeAbleInstances []*UpgradeAbleInstancesItem `json:"UpgradeAbleInstances,omitempty" name:"UpgradeAbleInstances"` // Total number // Note: this field may return `null`, indicating that no valid value is obtained. Total *int64 `json:"Total,omitempty" name:"Total"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCheckInstancesUpgradeAbleResponse ¶
func NewCheckInstancesUpgradeAbleResponse() (response *CheckInstancesUpgradeAbleResponse)
func (*CheckInstancesUpgradeAbleResponse) FromJsonString ¶
func (r *CheckInstancesUpgradeAbleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CheckInstancesUpgradeAbleResponse) ToJsonString ¶
func (r *CheckInstancesUpgradeAbleResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AcquireClusterAdminRole ¶
func (c *Client) AcquireClusterAdminRole(request *AcquireClusterAdminRoleRequest) (response *AcquireClusterAdminRoleResponse, err error)
AcquireClusterAdminRole This API can be called to acquire the ClusterRole tke:admin. By setting a CAM policy, you can grant permission of this API to a sub-account that has higher permission in CAM. In this way, this sub-account can call this API directly to acquire the admin role of a Kubernetes cluster.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" INTERNALERROR_KUBERNETESGETOPERATIONERROR = "InternalError.KubernetesGetOperationError" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist"
func (*Client) AddExistedInstances ¶
func (c *Client) AddExistedInstances(request *AddExistedInstancesRequest) (response *AddExistedInstancesResponse, err error)
AddExistedInstances This API is used to add one or more existing instances to a cluster.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" LIMITEXCEEDED = "LimitExceeded"
func (*Client) AddNodeToNodePool ¶
func (c *Client) AddNodeToNodePool(request *AddNodeToNodePoolRequest) (response *AddNodeToNodePoolResponse, err error)
AddNodeToNodePool This API is used to move nodes in a cluster to a node pool.
error code that may be returned:
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) AddVpcCniSubnets ¶
func (c *Client) AddVpcCniSubnets(request *AddVpcCniSubnetsRequest) (response *AddVpcCniSubnetsResponse, err error)
AddVpcCniSubnets This API is used to add subnets in the container network for a VPC-CNI cluster.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) CheckInstancesUpgradeAble ¶
func (c *Client) CheckInstancesUpgradeAble(request *CheckInstancesUpgradeAbleRequest) (response *CheckInstancesUpgradeAbleResponse, err error)
CheckInstancesUpgradeAble This API is used to check which nodes can be upgraded in the given node list.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound"
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)
CreateCluster This API is used to create a cluster.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" INTERNALERROR_CIDRINVALI = "InternalError.CidrInvali" INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_CVMNUMBERNOTMATCH = "InternalError.CvmNumberNotMatch" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" INTERNALERROR_QUOTAUSGLIMIT = "InternalError.QuotaUSGLimit" INTERNALERROR_TASKCREATEFAILED = "InternalError.TaskCreateFailed" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CIDRCONFLICTWITHOTHERCLUSTER = "InvalidParameter.CidrConflictWithOtherCluster" INVALIDPARAMETER_CIDRCONFLICTWITHVPCCIDR = "InvalidParameter.CidrConflictWithVpcCidr" INVALIDPARAMETER_CIDRCONFLICTWITHVPCGLOBALROUTE = "InvalidParameter.CidrConflictWithVpcGlobalRoute" LIMITEXCEEDED = "LimitExceeded"
func (*Client) CreateClusterAsGroup ¶
func (c *Client) CreateClusterAsGroup(request *CreateClusterAsGroupRequest) (response *CreateClusterAsGroupResponse, err error)
CreateClusterAsGroup Create a scaling group for an existing cluster
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateClusterEndpoint ¶
func (c *Client) CreateClusterEndpoint(request *CreateClusterEndpointRequest) (response *CreateClusterEndpointResponse, err error)
CreateClusterEndpoint Create a cluster access port (intranet / extranet access is enabled for independent clusters, and intranet access is supported for managed clusters)
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_EMPTYCLUSTERNOTSUPPORT = "InternalError.EmptyClusterNotSupport" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateClusterEndpointVip ¶
func (c *Client) CreateClusterEndpointVip(request *CreateClusterEndpointVipRequest) (response *CreateClusterEndpointVipResponse, err error)
CreateClusterEndpointVip Create an external network access port for the managed cluster (the old way, only the external network port for the managed cluster is supported)
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateClusterInstances ¶
func (c *Client) CreateClusterInstances(request *CreateClusterInstancesRequest) (response *CreateClusterInstancesResponse, err error)
CreateClusterInstances This API is used to create one or more nodes in a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCOMMON = "InternalError.AccountCommon" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_COMPONENTCLINETHTTP = "InternalError.ComponentClinetHttp" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateClusterNodePool ¶
func (c *Client) CreateClusterNodePool(request *CreateClusterNodePoolRequest) (response *CreateClusterNodePoolResponse, err error)
CreateClusterNodePool This API is used to create a node pool.
error code that may be returned:
INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_ASASGNOTEXIST = "ResourceNotFound.AsAsgNotExist" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) CreateClusterNodePoolFromExistingAsg ¶
func (c *Client) CreateClusterNodePoolFromExistingAsg(request *CreateClusterNodePoolFromExistingAsgRequest) (response *CreateClusterNodePoolFromExistingAsgResponse, err error)
CreateClusterNodePoolFromExistingAsg This API is used to upgrade a scaling group to a node pool.
error code that may be returned:
INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal"
func (*Client) CreateClusterRouteTable ¶
func (c *Client) CreateClusterRouteTable(request *CreateClusterRouteTableRequest) (response *CreateClusterRouteTableResponse, err error)
CreateClusterRouteTable This API is used to create a cluster route table.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CIDRCONFLICTWITHOTHERCLUSTER = "InternalError.CidrConflictWithOtherCluster" INTERNALERROR_CIDRCONFLICTWITHOTHERROUTE = "InternalError.CidrConflictWithOtherRoute" INTERNALERROR_CIDRCONFLICTWITHVPCCIDR = "InternalError.CidrConflictWithVpcCidr" INTERNALERROR_CIDRCONFLICTWITHVPCGLOBALROUTE = "InternalError.CidrConflictWithVpcGlobalRoute" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" INTERNALERROR_RESOURCEEXISTALREADY = "InternalError.ResourceExistAlready" INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CIDRCONFLICTWITHOTHERROUTE = "InvalidParameter.CidrConflictWithOtherRoute" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) CreatePrometheusAlertRule ¶
func (c *Client) CreatePrometheusAlertRule(request *CreatePrometheusAlertRuleRequest) (response *CreatePrometheusAlertRuleResponse, err error)
CreatePrometheusAlertRule This API is used to create an alarm rule.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_PARAM = "InternalError.Param" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND = "ResourceNotFound"
func (*Client) DeleteCluster ¶
func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)
DeleteCluster This API is used to delete a cluster. (Cloud API v3).
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED_CLUSTERINDELETIONPROTECTION = "OperationDenied.ClusterInDeletionProtection" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (*Client) DeleteClusterAsGroups ¶
func (c *Client) DeleteClusterAsGroups(request *DeleteClusterAsGroupsRequest) (response *DeleteClusterAsGroupsResponse, err error)
DeleteClusterAsGroups Delete a cluster scaling group
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" INTERNALERROR_QUOTAMAXRTLIMIT = "InternalError.QuotaMaxRtLimit" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" LIMITEXCEEDED = "LimitExceeded" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" UNKNOWNPARAMETER = "UnknownParameter"
func (*Client) DeleteClusterEndpoint ¶
func (c *Client) DeleteClusterEndpoint(request *DeleteClusterEndpointRequest) (response *DeleteClusterEndpointResponse, err error)
DeleteClusterEndpoint Delete the cluster access port (intranet / extranet access is enabled for independent clusters, and intranet access is supported for managed clusters)
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteClusterEndpointVip ¶
func (c *Client) DeleteClusterEndpointVip(request *DeleteClusterEndpointVipRequest) (response *DeleteClusterEndpointVipResponse, err error)
DeleteClusterEndpointVip Delete the external network access port of the managed cluster (the old way, only the external network port of the managed cluster is supported)
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteClusterInstances ¶
func (c *Client) DeleteClusterInstances(request *DeleteClusterInstancesRequest) (response *DeleteClusterInstancesResponse, err error)
DeleteClusterInstances This API is used to delete one or more nodes from a cluster.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INVALIDPARAMETER = "InvalidParameter" LIMITEXCEEDED = "LimitExceeded"
func (*Client) DeleteClusterNodePool ¶
func (c *Client) DeleteClusterNodePool(request *DeleteClusterNodePoolRequest) (response *DeleteClusterNodePoolResponse, err error)
DeleteClusterNodePool This API is used to delete a node pool.
error code that may be returned:
INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) DeleteClusterRoute ¶
func (c *Client) DeleteClusterRoute(request *DeleteClusterRouteRequest) (response *DeleteClusterRouteResponse, err error)
DeleteClusterRoute This API is used to delete a cluster route.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_ROUTETABLENOTFOUND = "InternalError.RouteTableNotFound" INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DeleteClusterRouteTable ¶
func (c *Client) DeleteClusterRouteTable(request *DeleteClusterRouteTableRequest) (response *DeleteClusterRouteTableResponse, err error)
DeleteClusterRouteTable This API is used to delete cluster a route table.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_ROUTETABLENOTEMPTY = "InternalError.RouteTableNotEmpty" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty"
func (*Client) DeletePrometheusAlertRule ¶
func (c *Client) DeletePrometheusAlertRule(request *DeletePrometheusAlertRuleRequest) (response *DeletePrometheusAlertRuleResponse, err error)
DeletePrometheusAlertRule This API is used to delete an alarm rule.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_PARAM = "InternalError.Param" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound"
func (*Client) DescribeAvailableClusterVersion ¶
func (c *Client) DescribeAvailableClusterVersion(request *DescribeAvailableClusterVersionRequest) (response *DescribeAvailableClusterVersionResponse, err error)
DescribeAvailableClusterVersion This API is used to obtain all versions that the cluster can upgrade to.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound"
func (*Client) DescribeClusterAsGroupOption ¶
func (c *Client) DescribeClusterAsGroupOption(request *DescribeClusterAsGroupOptionRequest) (response *DescribeClusterAsGroupOptionResponse, err error)
DescribeClusterAsGroupOption Cluster auto scaling configuration
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeClusterAsGroups ¶
func (c *Client) DescribeClusterAsGroups(request *DescribeClusterAsGroupsRequest) (response *DescribeClusterAsGroupsResponse, err error)
DescribeClusterAsGroups Cluster-associated scaling group list
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PODNOTFOUND = "InternalError.PodNotFound" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" INTERNALERROR_VPCPEERNOTFOUND = "InternalError.VpcPeerNotFound" INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound"
func (*Client) DescribeClusterAuthenticationOptions ¶
func (c *Client) DescribeClusterAuthenticationOptions(request *DescribeClusterAuthenticationOptionsRequest) (response *DescribeClusterAuthenticationOptionsResponse, err error)
DescribeClusterAuthenticationOptions This API is used to query cluster authentication configuration.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) DescribeClusterCommonNames ¶
func (c *Client) DescribeClusterCommonNames(request *DescribeClusterCommonNamesRequest) (response *DescribeClusterCommonNamesResponse, err error)
DescribeClusterCommonNames This API is used to obtain the CommonName from the kube-apiserver client certificate that corresponding to the sub-account in RBAC authorization mode.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhitelist"
func (*Client) DescribeClusterEndpointStatus ¶
func (c *Client) DescribeClusterEndpointStatus(request *DescribeClusterEndpointStatusRequest) (response *DescribeClusterEndpointStatusResponse, err error)
DescribeClusterEndpointStatus Query cluster access port status (intranet / extranet access is enabled for independent clusters, and intranet access is supported for managed clusters)
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_KUBECLIENTCONNECTION = "InternalError.KubeClientConnection" INTERNALERROR_KUBECOMMON = "InternalError.KubeCommon" INTERNALERROR_KUBERNETESINTERNAL = "InternalError.KubernetesInternal" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeClusterEndpointVipStatus ¶
func (c *Client) DescribeClusterEndpointVipStatus(request *DescribeClusterEndpointVipStatusRequest) (response *DescribeClusterEndpointVipStatusResponse, err error)
DescribeClusterEndpointVipStatus Query cluster open port process status (only supports external ports of the managed cluster)
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_DFWGETUSGCOUNT = "InternalError.DfwGetUSGCount" INTERNALERROR_DFWGETUSGQUOTA = "InternalError.DfwGetUSGQuota" INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeClusterInstances ¶
func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)
DescribeClusterInstances
This API is used to query information of one or more instances in a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) DescribeClusterKubeconfig ¶
func (c *Client) DescribeClusterKubeconfig(request *DescribeClusterKubeconfigRequest) (response *DescribeClusterKubeconfigResponse, err error)
DescribeClusterKubeconfig This API is used to obtain the cluster kubeconfig file. Different sub-accounts have their own kubeconfig files. The kubeconfig file contains the kube-apiserver client certificate of the corresponding sub-account. By default, the client certificate is created when this API is called for the first time, and the certificate is valid for 20 years with no permissions granted. For the cluster owner or primary account, the cluster-admin permission is granted by default.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_KUBERNETESCLIENTBUILDERROR = "InternalError.KubernetesClientBuildError" INTERNALERROR_KUBERNETESCREATEOPERATIONERROR = "InternalError.KubernetesCreateOperationError" INTERNALERROR_KUBERNETESDELETEOPERATIONERROR = "InternalError.KubernetesDeleteOperationError" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INTERNALERROR_WHITELISTUNEXPECTEDERROR = "InternalError.WhitelistUnexpectedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_KUBERNETESRESOURCENOTFOUND = "ResourceNotFound.KubernetesResourceNotFound" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth"
func (*Client) DescribeClusterNodePoolDetail ¶
func (c *Client) DescribeClusterNodePoolDetail(request *DescribeClusterNodePoolDetailRequest) (response *DescribeClusterNodePoolDetailResponse, err error)
DescribeClusterNodePoolDetail This API is used to query detailed information of a node pool.
error code that may be returned:
INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound"
func (*Client) DescribeClusterNodePools ¶
func (c *Client) DescribeClusterNodePools(request *DescribeClusterNodePoolsRequest) (response *DescribeClusterNodePoolsResponse, err error)
DescribeClusterNodePools This API is used to query the node pool list
error code that may be returned:
INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound"
func (*Client) DescribeClusterRouteTables ¶
func (c *Client) DescribeClusterRouteTables(request *DescribeClusterRouteTablesRequest) (response *DescribeClusterRouteTablesResponse, err error)
DescribeClusterRouteTables This API is used to query one or more cluster route tables.
error code that may be returned:
INTERNALERROR_DB = "InternalError.Db"
func (*Client) DescribeClusterRoutes ¶
func (c *Client) DescribeClusterRoutes(request *DescribeClusterRoutesRequest) (response *DescribeClusterRoutesResponse, err error)
DescribeClusterRoutes This API is used to query cluster routes.
error code that may be returned:
INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_PARAM = "InternalError.Param" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeClusterSecurity ¶
func (c *Client) DescribeClusterSecurity(request *DescribeClusterSecurityRequest) (response *DescribeClusterSecurityResponse, err error)
DescribeClusterSecurity This API is used to query the key information of a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_COMPONENTCLIENTHTTP = "InternalError.ComponentClientHttp" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_LBCOMMON = "InternalError.LbCommon" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_CIDRINVALID = "InvalidParameter.CidrInvalid" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_KUBERESOURCENOTFOUND = "ResourceNotFound.KubeResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeClusters ¶
func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
DescribeClusters This API is used to query clusters list.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport" INTERNALERROR_QUOTAMAXCLSLIMIT = "InternalError.QuotaMaxClsLimit" INTERNALERROR_QUOTAMAXNODLIMIT = "InternalError.QuotaMaxNodLimit" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" LIMITEXCEEDED = "LimitExceeded" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth"
func (*Client) DescribeEnableVpcCniProgress ¶
func (c *Client) DescribeEnableVpcCniProgress(request *DescribeEnableVpcCniProgressRequest) (response *DescribeEnableVpcCniProgressResponse, err error)
DescribeEnableVpcCniProgress This API is used to query the task progress of enabling VPC-CNI mode.
error code that may be returned:
INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal"
func (*Client) DescribeExistedInstances ¶
func (c *Client) DescribeExistedInstances(request *DescribeExistedInstancesRequest) (response *DescribeExistedInstancesResponse, err error)
DescribeExistedInstances This API is used to query one or more existing node and determine whether they can be added to a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_CREATEMASTERFAILED = "InternalError.CreateMasterFailed" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed" INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" INTERNALERROR_OSNOTSUPPORT = "InternalError.OsNotSupport" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_VPCCOMMON = "InternalError.VpcCommon" INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" INVALIDPARAMETER = "InvalidParameter" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeImages ¶
func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error)
DescribeImages This API is used to get image information.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_IMAGEIDNOTFOUND = "InternalError.ImageIdNotFound" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribePrometheusInstance ¶
func (c *Client) DescribePrometheusInstance(request *DescribePrometheusInstanceRequest) (response *DescribePrometheusInstanceResponse, err error)
DescribePrometheusInstance This API is used to obtain the instance details.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound" INVALIDPARAMETER_PROMINSTANCENOTFOUND = "InvalidParameter.PromInstanceNotFound"
func (*Client) DescribeRegions ¶
func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
DescribeRegions This API is used to obtain all regions supported by TKE.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeRouteTableConflicts ¶
func (c *Client) DescribeRouteTableConflicts(request *DescribeRouteTableConflictsRequest) (response *DescribeRouteTableConflictsResponse, err error)
DescribeRouteTableConflicts This API is used to query the list of route table conflicts.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CIDRMASKSIZEOUTOFRANGE = "InternalError.CidrMaskSizeOutOfRange" INTERNALERROR_INVALIDPRIVATENETWORKCIDR = "InternalError.InvalidPrivateNetworkCidr" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_VPCRECODRNOTFOUND = "InternalError.VpcRecodrNotFound" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeVersions ¶
func (c *Client) DescribeVersions(request *DescribeVersionsRequest) (response *DescribeVersionsResponse, err error)
DescribeVersions This API is used to query cluster version information.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeVpcCniPodLimits ¶
func (c *Client) DescribeVpcCniPodLimits(request *DescribeVpcCniPodLimitsRequest) (response *DescribeVpcCniPodLimitsResponse, err error)
DescribeVpcCniPodLimits This API is used to query the maximum number of Pods in the VPC-CNI network mode supported by the models in the specified availability zone of the current user and region.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) EnableVpcCniNetworkType ¶
func (c *Client) EnableVpcCniNetworkType(request *EnableVpcCniNetworkTypeRequest) (response *EnableVpcCniNetworkTypeResponse, err error)
EnableVpcCniNetworkType This API is used to enable the VPC-CNI network mode for GR clusters.
error code that may be returned:
INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal"
func (*Client) GetUpgradeInstanceProgress ¶
func (c *Client) GetUpgradeInstanceProgress(request *GetUpgradeInstanceProgressRequest) (response *GetUpgradeInstanceProgressResponse, err error)
GetUpgradeInstanceProgress This API is used to obtain the current progress of the node upgrade.
error code that may be returned:
INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) ModifyClusterAsGroupAttribute ¶
func (c *Client) ModifyClusterAsGroupAttribute(request *ModifyClusterAsGroupAttributeRequest) (response *ModifyClusterAsGroupAttributeResponse, err error)
ModifyClusterAsGroupAttribute Modify cluster scaling group attributes
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ASCOMMONERROR = "InvalidParameter.AsCommonError" INVALIDPARAMETER_CIDROUTOFROUTETABLE = "InvalidParameter.CidrOutOfRouteTable" INVALIDPARAMETER_GATEWAYALREADYASSOCIATEDCIDR = "InvalidParameter.GatewayAlreadyAssociatedCidr" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" INVALIDPARAMETER_ROUTETABLENOTEMPTY = "InvalidParameter.RouteTableNotEmpty" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyClusterAsGroupOptionAttribute ¶
func (c *Client) ModifyClusterAsGroupOptionAttribute(request *ModifyClusterAsGroupOptionAttributeRequest) (response *ModifyClusterAsGroupOptionAttributeResponse, err error)
ModifyClusterAsGroupOptionAttribute This API is used to modify cluster auto scaling attributes.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ASCOMMON = "InternalError.AsCommon" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_CLUSTERSTATE = "InternalError.ClusterState" INTERNALERROR_CVMCOMMON = "InternalError.CvmCommon" INTERNALERROR_CVMNOTFOUND = "InternalError.CvmNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyClusterAttribute ¶
func (c *Client) ModifyClusterAttribute(request *ModifyClusterAttributeRequest) (response *ModifyClusterAttributeResponse, err error)
ModifyClusterAttribute This API is used to modify cluster attributes.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (*Client) ModifyClusterAuthenticationOptions ¶
func (c *Client) ModifyClusterAuthenticationOptions(request *ModifyClusterAuthenticationOptionsRequest) (response *ModifyClusterAuthenticationOptionsResponse, err error)
ModifyClusterAuthenticationOptions This API is used to modify cluster authentication configuration.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" OPERATIONDENIED = "OperationDenied" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) ModifyClusterEndpointSP ¶
func (c *Client) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error)
ModifyClusterEndpointSP Modify the security policy of the external port of the managed cluster (the old way, only the external port of the managed cluster is supported)
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMNOAUTH = "InternalError.CamNoAuth" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INTERNALERROR_VPCUNEXPECTEDERROR = "InternalError.VPCUnexpectedError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" OPERATIONDENIED = "OperationDenied" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyClusterNodePool ¶
func (c *Client) ModifyClusterNodePool(request *ModifyClusterNodePoolRequest) (response *ModifyClusterNodePoolResponse, err error)
ModifyClusterNodePool This API is used to edit a node pool.
error code that may be returned:
INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" OPERATIONDENIED = "OperationDenied" UNSUPPORTEDOPERATION_CAENABLEFAILED = "UnsupportedOperation.CaEnableFailed"
func (*Client) ModifyNodePoolInstanceTypes ¶
func (c *Client) ModifyNodePoolInstanceTypes(request *ModifyNodePoolInstanceTypesRequest) (response *ModifyNodePoolInstanceTypesResponse, err error)
ModifyNodePoolInstanceTypes This API is used to modify the model of instances in a node pool.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) ModifyPrometheusAlertRule ¶
func (c *Client) ModifyPrometheusAlertRule(request *ModifyPrometheusAlertRuleRequest) (response *ModifyPrometheusAlertRuleResponse, err error)
ModifyPrometheusAlertRule This API is used to modify an alarm rule.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) RemoveNodeFromNodePool ¶
func (c *Client) RemoveNodeFromNodePool(request *RemoveNodeFromNodePoolRequest) (response *RemoveNodeFromNodePoolResponse, err error)
RemoveNodeFromNodePool This API is used to remove a node from a node pool but retain it in the cluster.
error code that may be returned:
INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) SetNodePoolNodeProtection ¶
func (c *Client) SetNodePoolNodeProtection(request *SetNodePoolNodeProtectionRequest) (response *SetNodePoolNodeProtectionResponse, err error)
SetNodePoolNodeProtection This API is used to enable removal protection for the nodes automatically created by the scaling group in a node pool.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTUSERNOTAUTHENTICATED = "InternalError.AccountUserNotAuthenticated" INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_DB = "InternalError.Db" INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
func (*Client) UpdateClusterVersion ¶
func (c *Client) UpdateClusterVersion(request *UpdateClusterVersionRequest) (response *UpdateClusterVersionResponse, err error)
UpdateClusterVersion This API is used to upgrade the master component of the cluster to the specified version.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CLUSTERUPGRADENODEVERSION = "InternalError.ClusterUpgradeNodeVersion" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
func (*Client) UpgradeClusterInstances ¶
func (c *Client) UpgradeClusterInstances(request *UpgradeClusterInstancesRequest) (response *UpgradeClusterInstancesResponse, err error)
UpgradeClusterInstances This API is used to upgrade one or more work nodes in the cluster.
error code that may be returned:
INTERNALERROR_CLUSTERNOTFOUND = "InternalError.ClusterNotFound" INTERNALERROR_PARAM = "InternalError.Param" INTERNALERROR_TASKLIFESTATEERROR = "InternalError.TaskLifeStateError" INTERNALERROR_TASKNOTFOUND = "InternalError.TaskNotFound" INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal" INVALIDPARAMETER_PARAM = "InvalidParameter.Param" RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
type Cluster ¶
type Cluster struct { // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Cluster description ClusterDescription *string `json:"ClusterDescription,omitempty" name:"ClusterDescription"` // Cluster version. The default value is 1.10.5. ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` // Cluster operating system. centOS 7.2x86_64 or ubuntu 16.04.1 LTSx86_64. Default value: ubuntu 16.04.1 LTSx86_64 ClusterOs *string `json:"ClusterOs,omitempty" name:"ClusterOs"` // Cluster type. Managed cluster: MANAGED_CLUSTER; Self-deployed cluster: INDEPENDENT_CLUSTER. ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // Cluster network-related parameters ClusterNetworkSettings *ClusterNetworkSettings `json:"ClusterNetworkSettings,omitempty" name:"ClusterNetworkSettings"` // Current number of nodes in the cluster ClusterNodeNum *uint64 `json:"ClusterNodeNum,omitempty" name:"ClusterNodeNum"` // ID of the project to which the cluster belongs ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Tag description list. TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` // Cluster status (Running, Creating, or Abnormal) ClusterStatus *string `json:"ClusterStatus,omitempty" name:"ClusterStatus"` // Cluster attributes (including a map of different cluster attributes, with attribute fields including NodeNameType (lan-ip mode and hostname mode, with lan-ip mode as default)) Property *string `json:"Property,omitempty" name:"Property"` // Number of primary nodes currently in the cluster ClusterMaterNodeNum *uint64 `json:"ClusterMaterNodeNum,omitempty" name:"ClusterMaterNodeNum"` // ID of the image used by the cluster // Note: this field may return null, indicating that no valid value is obtained. ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // Container image tag // Note: This field may return null, indicating that no valid value was found. OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` // Runtime environment of the cluster. Values can be `docker` or `containerd`. // Note: this field may return null, indicating that no valid value is obtained. ContainerRuntime *string `json:"ContainerRuntime,omitempty" name:"ContainerRuntime"` // Creation time // Note: this field may return null, indicating that no valid value is obtained. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Whether Deletion Protection is enabled // Note: this field may return null, indicating that no valid value is obtained. DeletionProtection *bool `json:"DeletionProtection,omitempty" name:"DeletionProtection"` // Specifies whether the cluster supports external nodes. // Note: this field may return `null`, indicating that no valid value can be obtained. EnableExternalNode *bool `json:"EnableExternalNode,omitempty" name:"EnableExternalNode"` }
type ClusterAdvancedSettings ¶
type ClusterAdvancedSettings struct { // Whether IPVS is enabled IPVS *bool `json:"IPVS,omitempty" name:"IPVS"` // Whether auto-scaling is enabled for nodes in the cluster (Enabling this function is not supported when you create a cluster) AsEnabled *bool `json:"AsEnabled,omitempty" name:"AsEnabled"` // Type of runtime component used by the cluster. The types include "docker" and "containerd". Default value: docker ContainerRuntime *string `json:"ContainerRuntime,omitempty" name:"ContainerRuntime"` // NodeName type for a node in a cluster (This includes the two forms of **hostname** and **lan-ip**, with the default as **lan-ip**. If **hostname** is used, you need to set the HostName parameter when creating a node, and the InstanceName needs to be the same as the HostName.) NodeNameType *string `json:"NodeNameType,omitempty" name:"NodeNameType"` // Cluster custom parameter ExtraArgs *ClusterExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` // Cluster network type, which can be GR (Global Router) or VPC-CNI. The default value is GR. NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` // Whether a cluster in VPC-CNI mode uses dynamic IP addresses. The default value is FALSE, which indicates that static IP addresses are used. IsNonStaticIpMode *bool `json:"IsNonStaticIpMode,omitempty" name:"IsNonStaticIpMode"` // Indicates whether to enable cluster deletion protection. DeletionProtection *bool `json:"DeletionProtection,omitempty" name:"DeletionProtection"` // Cluster network proxy model, which is only used when ipvs-bpf mode is used. At present, TKE cluster supports three network proxy modes including `iptables`, `ipvs` and `ipvs-bpf` and their parameter setting relationships are as follows: // `iptables`: do not set IPVS and KubeProxyMode. // `ipvs`: set IPVS to `true` and do not set KubeProxyMode. // `ipvs-bpf`: set KubeProxyMode to `kube-proxy-bpf`. // The following conditions are required to use ipvs-bpf network mode: // 1. The cluster version must be v1.14 or later. // 2. The system image must be Tencent Linux 2.4. KubeProxyMode *string `json:"KubeProxyMode,omitempty" name:"KubeProxyMode"` // Indicates whether to enable auditing AuditEnabled *bool `json:"AuditEnabled,omitempty" name:"AuditEnabled"` // Specifies the ID of logset to which the audit logs are uploaded. AuditLogsetId *string `json:"AuditLogsetId,omitempty" name:"AuditLogsetId"` // Specifies the ID of topic to which the audit logs are uploaded. AuditLogTopicId *string `json:"AuditLogTopicId,omitempty" name:"AuditLogTopicId"` // Specifies whether the VPC CNI type is multi-IP ENI or or independent ENI. VpcCniType *string `json:"VpcCniType,omitempty" name:"VpcCniType"` // Runtime version RuntimeVersion *string `json:"RuntimeVersion,omitempty" name:"RuntimeVersion"` // Indicates whether to enable the custom mode for the node’s pod CIDR range EnableCustomizedPodCIDR *bool `json:"EnableCustomizedPodCIDR,omitempty" name:"EnableCustomizedPodCIDR"` // The basic number of Pods in custom mode BasePodNumber *int64 `json:"BasePodNumber,omitempty" name:"BasePodNumber"` // Specifies whether to enable Cilium. If it’s left empty, Cilium is not enabled. If `clusterIP` is passed in, it means to enable Cilium to support the clusterIP service type. CiliumMode *string `json:"CiliumMode,omitempty" name:"CiliumMode"` }
type ClusterAsGroup ¶
type ClusterAsGroup struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Scaling group status (`enabled`, `enabling`, `disabled`, `disabling`, `updating`, `deleting`, `scaleDownEnabling`, `scaleDownDisabling`) Status *string `json:"Status,omitempty" name:"Status"` // Whether the node is set to unschedulable // Note: this field may return null, indicating that no valid value was found. IsUnschedulable *bool `json:"IsUnschedulable,omitempty" name:"IsUnschedulable"` // Scaling group label list // Note: this field may return null, indicating that no valid value was found. Labels []*Label `json:"Labels,omitempty" name:"Labels"` // Creation time CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` }
type ClusterAsGroupAttribute ¶
type ClusterAsGroupAttribute struct { // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // Whether it is enabled AutoScalingGroupEnabled *bool `json:"AutoScalingGroupEnabled,omitempty" name:"AutoScalingGroupEnabled"` // Maximum and minimum number of pods in a scaling group AutoScalingGroupRange *AutoScalingGroupRange `json:"AutoScalingGroupRange,omitempty" name:"AutoScalingGroupRange"` }
type ClusterAsGroupOption ¶
type ClusterAsGroupOption struct { // Whether to enable scale-in // Note: this field may return null, indicating that no valid value was found. IsScaleDownEnabled *bool `json:"IsScaleDownEnabled,omitempty" name:"IsScaleDownEnabled"` // The scale-out method when there are multiple scaling groups. `random`: select a random scaling group. `most-pods`: choose the scaling group that can schedule the most pods. `least-waste`: select the scaling group that can ensure the fewest remaining resources after Pod scheduling.. The default value is `random`.) // Note: this field may return null, indicating that no valid value was found. Expander *string `json:"Expander,omitempty" name:"Expander"` // Max concurrent scale-in volume // Note: this field may return null, indicating that no valid value was found. MaxEmptyBulkDelete *int64 `json:"MaxEmptyBulkDelete,omitempty" name:"MaxEmptyBulkDelete"` // Number of minutes after cluster scale-out when the system starts judging whether to perform scale-in // Note: this field may return null, indicating that no valid value was found. ScaleDownDelay *int64 `json:"ScaleDownDelay,omitempty" name:"ScaleDownDelay"` // Number of consecutive minutes of idleness after which the node is subject to scale-in (default value: 10) // Note: this field may return null, indicating that no valid value was found. ScaleDownUnneededTime *int64 `json:"ScaleDownUnneededTime,omitempty" name:"ScaleDownUnneededTime"` // Percentage of node resource usage below which the node is considered to be idle (default value: 50) // Note: this field may return null, indicating that no valid value was found. ScaleDownUtilizationThreshold *int64 `json:"ScaleDownUtilizationThreshold,omitempty" name:"ScaleDownUtilizationThreshold"` // During scale-in, ignore nodes with local storage pods (default value: False) // Note: this field may return null, indicating that no valid value was found. SkipNodesWithLocalStorage *bool `json:"SkipNodesWithLocalStorage,omitempty" name:"SkipNodesWithLocalStorage"` // During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet (default value: False) // Note: this field may return null, indicating that no valid value was found. SkipNodesWithSystemPods *bool `json:"SkipNodesWithSystemPods,omitempty" name:"SkipNodesWithSystemPods"` // Whether to ignore DaemonSet pods by default when calculating resource usage (default value: False: do not ignore) // Note: this field may return null, indicating that no valid value was found. IgnoreDaemonSetsUtilization *bool `json:"IgnoreDaemonSetsUtilization,omitempty" name:"IgnoreDaemonSetsUtilization"` // Number at which CA health detection is triggered (default value: 3). After the number specified in OkTotalUnreadyCount is exceeded, CA will perform health detection. // Note: this field may return null, indicating that no valid value was found. OkTotalUnreadyCount *int64 `json:"OkTotalUnreadyCount,omitempty" name:"OkTotalUnreadyCount"` // Max percentage of unready nodes. After the max percentage is exceeded, CA will stop operation. // Note: this field may return null, indicating that no valid value was found. MaxTotalUnreadyPercentage *int64 `json:"MaxTotalUnreadyPercentage,omitempty" name:"MaxTotalUnreadyPercentage"` // Amount of time before unready nodes become eligible for scale-in // Note: this field may return null, indicating that no valid value was found. ScaleDownUnreadyTime *int64 `json:"ScaleDownUnreadyTime,omitempty" name:"ScaleDownUnreadyTime"` // Waiting time before CA deletes nodes that are not registered in Kubernetes // Note: this field may return null, indicating that no valid value was found. UnregisteredNodeRemovalTime *int64 `json:"UnregisteredNodeRemovalTime,omitempty" name:"UnregisteredNodeRemovalTime"` }
type ClusterBasicSettings ¶
type ClusterBasicSettings struct { // Cluster operating system. CentOS 7.2x86_64 or Ubuntu 16.04.1 LTSx86_64. Default value: Ubuntu 16.04.1 LTSx86_64 ClusterOs *string `json:"ClusterOs,omitempty" name:"ClusterOs"` // Cluster version. The default value is 1.10.5. ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Cluster description ClusterDescription *string `json:"ClusterDescription,omitempty" name:"ClusterDescription"` // VPC ID, in the format of vpc-xxx, which is required when you create an empty managed cluster. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // ID of the project to which the new resources in the cluster belong. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Tag description list. This parameter is used to bind a tag to a resource instance. Currently, a tag can only be bound to cluster instances. TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` // Container image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value) OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` // Whether to enable the node’s default security group (default: `No`, Aphla feature) NeedWorkSecurityGroup *bool `json:"NeedWorkSecurityGroup,omitempty" name:"NeedWorkSecurityGroup"` }
type ClusterCIDRSettings ¶
type ClusterCIDRSettings struct { // CIDR used to assign container and service IPs for the cluster. It cannot conflict with the VPC's CIDR or the CIDRs of other clusters in the same VPC ClusterCIDR *string `json:"ClusterCIDR,omitempty" name:"ClusterCIDR"` // Whether to ignore ClusterCIDR conflict errors, which are not ignored by default IgnoreClusterCIDRConflict *bool `json:"IgnoreClusterCIDRConflict,omitempty" name:"IgnoreClusterCIDRConflict"` // Maximum number of pods on each node in the cluster MaxNodePodNum *uint64 `json:"MaxNodePodNum,omitempty" name:"MaxNodePodNum"` // The maximum number of services in a cluster. The range is from 32 to 32768. When its power is not 2, it will round upward to the closest power of 2. Default value is 256. MaxClusterServiceNum *uint64 `json:"MaxClusterServiceNum,omitempty" name:"MaxClusterServiceNum"` // The CIDR block used to assign cluster service IP addresses. It must conflict with neither the VPC CIDR block nor with CIDR blocks of other clusters in the same VPC instance. The IP range must be within the private network IP range, such as 10.1.0.0/14, 192.168.0.1/18, and 172.16.0.0/16. ServiceCIDR *string `json:"ServiceCIDR,omitempty" name:"ServiceCIDR"` // Subnet ID of the ENI in VPC-CNI network mode EniSubnetIds []*string `json:"EniSubnetIds,omitempty" name:"EniSubnetIds"` // Repossession time of ENI IP addresses in VPC-CNI network mode, whose range is [300,15768000) ClaimExpiredSeconds *int64 `json:"ClaimExpiredSeconds,omitempty" name:"ClaimExpiredSeconds"` }
type ClusterExtraArgs ¶
type ClusterExtraArgs struct { // kube-apiserver custom parameter, in the format of ["k1=v1", "k1=v2"], for example: ["max-requests-inflight=500","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]. // Note: this field may return `null`, indicating that no valid value is obtained. KubeAPIServer []*string `json:"KubeAPIServer,omitempty" name:"KubeAPIServer"` // kube-controller-manager custom parameter // Note: this field may return null, indicating that no valid value is obtained. KubeControllerManager []*string `json:"KubeControllerManager,omitempty" name:"KubeControllerManager"` // kube-scheduler custom parameter // Note: this field may return null, indicating that no valid value is obtained. KubeScheduler []*string `json:"KubeScheduler,omitempty" name:"KubeScheduler"` // etcd custom parameter, which is only effective for self-deployed cluster. // Note: this field may return `null`, indicating that no valid value is obtained. Etcd []*string `json:"Etcd,omitempty" name:"Etcd"` }
type ClusterNetworkSettings ¶
type ClusterNetworkSettings struct { // CIDR used to assign container and service IPs for the cluster. It cannot conflict with the VPC's CIDR or the CIDRs of other clusters in the same VPC. ClusterCIDR *string `json:"ClusterCIDR,omitempty" name:"ClusterCIDR"` // Whether to ignore ClusterCIDR conflict errors. It defaults to not ignore. IgnoreClusterCIDRConflict *bool `json:"IgnoreClusterCIDRConflict,omitempty" name:"IgnoreClusterCIDRConflict"` // Maximum number of pods on each node in the cluster. Default value: 256 MaxNodePodNum *uint64 `json:"MaxNodePodNum,omitempty" name:"MaxNodePodNum"` // Maximum number of cluster services. Default value: 256 MaxClusterServiceNum *uint64 `json:"MaxClusterServiceNum,omitempty" name:"MaxClusterServiceNum"` // Whether IPVS is enabled. Default value: disabled Ipvs *bool `json:"Ipvs,omitempty" name:"Ipvs"` // Cluster VPC ID, which is required when you create an empty cluster; otherwise, it is automatically set to be consistent with that of the nodes in the cluster VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Whether CNI is enabled for network plugin(s). Default value: enabled Cni *bool `json:"Cni,omitempty" name:"Cni"` // The network mode of service. This parameter is only applicable to ipvs+bpf mode. // Note: this field may return `null`, indicating that no valid value can be obtained. KubeProxyMode *string `json:"KubeProxyMode,omitempty" name:"KubeProxyMode"` // The IP range for service assignment. It cannot conflict with the VPC’s CIDR block nor the CIDR blocks of other clusters in the same VPC. // Note: this field may return `null`, indicating that no valid value can be obtained. ServiceCIDR *string `json:"ServiceCIDR,omitempty" name:"ServiceCIDR"` // The container subnet associated with the cluster // Note: this field may return `null`, indicating that no valid value can be obtained. Subnets []*string `json:"Subnets,omitempty" name:"Subnets"` }
type ClusterVersion ¶
type CommonName ¶
type CreateClusterAsGroupRequest ¶
type CreateClusterAsGroupRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // The pass-through parameters for scaling group creation, in the format of a JSON string. For more information, see the [CreateAutoScalingGroup](https://intl.cloud.tencent.com/document/api/377/20440?from_cn_redirect=1) API. The **LaunchConfigurationId** is created with the LaunchConfigurePara parameter, which does not support data entry. AutoScalingGroupPara *string `json:"AutoScalingGroupPara,omitempty" name:"AutoScalingGroupPara"` // The pass-through parameters for launch configuration creation, in the format of a JSON string. For more information, see the [CreateLaunchConfiguration](https://intl.cloud.tencent.com/document/api/377/20447?from_cn_redirect=1) API. **ImageId** is not required as it is already included in the cluster dimension. **UserData** is not required as it's set through the **UserScript**. LaunchConfigurePara *string `json:"LaunchConfigurePara,omitempty" name:"LaunchConfigurePara"` // Advanced configuration information of the node InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Node label array Labels []*Label `json:"Labels,omitempty" name:"Labels"` }
func NewCreateClusterAsGroupRequest ¶
func NewCreateClusterAsGroupRequest() (request *CreateClusterAsGroupRequest)
func (*CreateClusterAsGroupRequest) FromJsonString ¶
func (r *CreateClusterAsGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterAsGroupRequest) ToJsonString ¶
func (r *CreateClusterAsGroupRequest) ToJsonString() string
type CreateClusterAsGroupResponse ¶
type CreateClusterAsGroupResponse struct { *tchttp.BaseResponse Response *struct { // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Scaling group ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterAsGroupResponse ¶
func NewCreateClusterAsGroupResponse() (response *CreateClusterAsGroupResponse)
func (*CreateClusterAsGroupResponse) FromJsonString ¶
func (r *CreateClusterAsGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterAsGroupResponse) ToJsonString ¶
func (r *CreateClusterAsGroupResponse) ToJsonString() string
type CreateClusterEndpointRequest ¶
type CreateClusterEndpointRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // The ID of the subnet where the cluster's port is located (only needs to be entered when the non-public network access is enabled, and must be within the subnet of the cluster's VPC). SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Whether public network access is enabled or not (True = public network access, FALSE = private network access, with the default value as FALSE). IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
func NewCreateClusterEndpointRequest ¶
func NewCreateClusterEndpointRequest() (request *CreateClusterEndpointRequest)
func (*CreateClusterEndpointRequest) FromJsonString ¶
func (r *CreateClusterEndpointRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterEndpointRequest) ToJsonString ¶
func (r *CreateClusterEndpointRequest) ToJsonString() string
type CreateClusterEndpointResponse ¶
type CreateClusterEndpointResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterEndpointResponse ¶
func NewCreateClusterEndpointResponse() (response *CreateClusterEndpointResponse)
func (*CreateClusterEndpointResponse) FromJsonString ¶
func (r *CreateClusterEndpointResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterEndpointResponse) ToJsonString ¶
func (r *CreateClusterEndpointResponse) ToJsonString() string
type CreateClusterEndpointVipRequest ¶
type CreateClusterEndpointVipRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Security policy opens single IP or CIDR to the Internet (for example: '192.168.1.0/24', with 'reject all' as the default). SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies"` }
func NewCreateClusterEndpointVipRequest ¶
func NewCreateClusterEndpointVipRequest() (request *CreateClusterEndpointVipRequest)
func (*CreateClusterEndpointVipRequest) FromJsonString ¶
func (r *CreateClusterEndpointVipRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterEndpointVipRequest) ToJsonString ¶
func (r *CreateClusterEndpointVipRequest) ToJsonString() string
type CreateClusterEndpointVipResponse ¶
type CreateClusterEndpointVipResponse struct { *tchttp.BaseResponse Response *struct { // Request job's FlowId RequestFlowId *int64 `json:"RequestFlowId,omitempty" name:"RequestFlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterEndpointVipResponse ¶
func NewCreateClusterEndpointVipResponse() (response *CreateClusterEndpointVipResponse)
func (*CreateClusterEndpointVipResponse) FromJsonString ¶
func (r *CreateClusterEndpointVipResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterEndpointVipResponse) ToJsonString ¶
func (r *CreateClusterEndpointVipResponse) ToJsonString() string
type CreateClusterInstancesRequest ¶
type CreateClusterInstancesRequest struct { *tchttp.BaseRequest // Cluster ID. Enter the ClusterId field returned by the DescribeClusters API ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Pass-through parameter for CVM creation in the format of a JSON string. To ensure the idempotence of requests for adding cluster nodes, you need to add the ClientToken field in this parameter. For more information, see the documentation for [RunInstances](https://intl.cloud.tencent.com/document/product/213/15730?from_cn_redirect=1) API. RunInstancePara *string `json:"RunInstancePara,omitempty" name:"RunInstancePara"` // Additional parameter to be set for the instance InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Skips the specified verification. Valid values: GlobalRouteCIDRCheck, VpcCniCIDRCheck SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions"` }
func NewCreateClusterInstancesRequest ¶
func NewCreateClusterInstancesRequest() (request *CreateClusterInstancesRequest)
func (*CreateClusterInstancesRequest) FromJsonString ¶
func (r *CreateClusterInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterInstancesRequest) ToJsonString ¶
func (r *CreateClusterInstancesRequest) ToJsonString() string
type CreateClusterInstancesResponse ¶
type CreateClusterInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterInstancesResponse ¶
func NewCreateClusterInstancesResponse() (response *CreateClusterInstancesResponse)
func (*CreateClusterInstancesResponse) FromJsonString ¶
func (r *CreateClusterInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterInstancesResponse) ToJsonString ¶
func (r *CreateClusterInstancesResponse) ToJsonString() string
type CreateClusterNodePoolFromExistingAsgRequest ¶
type CreateClusterNodePoolFromExistingAsgRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Scaling group ID AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` }
func NewCreateClusterNodePoolFromExistingAsgRequest ¶
func NewCreateClusterNodePoolFromExistingAsgRequest() (request *CreateClusterNodePoolFromExistingAsgRequest)
func (*CreateClusterNodePoolFromExistingAsgRequest) FromJsonString ¶
func (r *CreateClusterNodePoolFromExistingAsgRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterNodePoolFromExistingAsgRequest) ToJsonString ¶
func (r *CreateClusterNodePoolFromExistingAsgRequest) ToJsonString() string
type CreateClusterNodePoolFromExistingAsgResponse ¶
type CreateClusterNodePoolFromExistingAsgResponse struct { *tchttp.BaseResponse Response *struct { // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterNodePoolFromExistingAsgResponse ¶
func NewCreateClusterNodePoolFromExistingAsgResponse() (response *CreateClusterNodePoolFromExistingAsgResponse)
func (*CreateClusterNodePoolFromExistingAsgResponse) FromJsonString ¶
func (r *CreateClusterNodePoolFromExistingAsgResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterNodePoolFromExistingAsgResponse) ToJsonString ¶
func (r *CreateClusterNodePoolFromExistingAsgResponse) ToJsonString() string
type CreateClusterNodePoolRequest ¶
type CreateClusterNodePoolRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // AS group parameters AutoScalingGroupPara *string `json:"AutoScalingGroupPara,omitempty" name:"AutoScalingGroupPara"` // Running parameters LaunchConfigurePara *string `json:"LaunchConfigurePara,omitempty" name:"LaunchConfigurePara"` // Sample parameters InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Indicates whether to enable auto scaling EnableAutoscale *bool `json:"EnableAutoscale,omitempty" name:"EnableAutoscale"` // Node pool name Name *string `json:"Name,omitempty" name:"Name"` // Labels Labels []*Label `json:"Labels,omitempty" name:"Labels"` // Taints Taints []*Taint `json:"Taints,omitempty" name:"Taints"` // Operating system of the node pool NodePoolOs *string `json:"NodePoolOs,omitempty" name:"NodePoolOs"` // Container image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value) OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` }
func NewCreateClusterNodePoolRequest ¶
func NewCreateClusterNodePoolRequest() (request *CreateClusterNodePoolRequest)
func (*CreateClusterNodePoolRequest) FromJsonString ¶
func (r *CreateClusterNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterNodePoolRequest) ToJsonString ¶
func (r *CreateClusterNodePoolRequest) ToJsonString() string
type CreateClusterNodePoolResponse ¶
type CreateClusterNodePoolResponse struct { *tchttp.BaseResponse Response *struct { // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterNodePoolResponse ¶
func NewCreateClusterNodePoolResponse() (response *CreateClusterNodePoolResponse)
func (*CreateClusterNodePoolResponse) FromJsonString ¶
func (r *CreateClusterNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterNodePoolResponse) ToJsonString ¶
func (r *CreateClusterNodePoolResponse) ToJsonString() string
type CreateClusterRequest ¶
type CreateClusterRequest struct { *tchttp.BaseRequest // Container networking configuration information for the cluster ClusterCIDRSettings *ClusterCIDRSettings `json:"ClusterCIDRSettings,omitempty" name:"ClusterCIDRSettings"` // Cluster type. Managed cluster: MANAGED_CLUSTER; self-deployed cluster: INDEPENDENT_CLUSTER. ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // Pass-through parameter for CVM creation in the format of a JSON string. For more information, see the API for [creating a CVM instance](https://intl.cloud.tencent.com/document/product/213/15730?from_cn_redirect=1). RunInstancesForNode []*RunInstancesForNode `json:"RunInstancesForNode,omitempty" name:"RunInstancesForNode"` // Basic configuration information of the cluster ClusterBasicSettings *ClusterBasicSettings `json:"ClusterBasicSettings,omitempty" name:"ClusterBasicSettings"` // Advanced configuration information of the cluster ClusterAdvancedSettings *ClusterAdvancedSettings `json:"ClusterAdvancedSettings,omitempty" name:"ClusterAdvancedSettings"` // Advanced configuration information of the node InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Configuration information of an existing instance ExistedInstancesForNode []*ExistedInstancesForNode `json:"ExistedInstancesForNode,omitempty" name:"ExistedInstancesForNode"` // CVM type and the corresponding data disk mounting configuration information. InstanceDataDiskMountSettings []*InstanceDataDiskMountSetting `json:"InstanceDataDiskMountSettings,omitempty" name:"InstanceDataDiskMountSettings"` // Information of the add-on to be installed ExtensionAddons []*ExtensionAddon `json:"ExtensionAddons,omitempty" name:"ExtensionAddons"` }
func NewCreateClusterRequest ¶
func NewCreateClusterRequest() (request *CreateClusterRequest)
func (*CreateClusterRequest) FromJsonString ¶
func (r *CreateClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterRequest) ToJsonString ¶
func (r *CreateClusterRequest) ToJsonString() string
type CreateClusterResponse ¶
type CreateClusterResponse struct { *tchttp.BaseResponse Response *struct { // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterResponse ¶
func NewCreateClusterResponse() (response *CreateClusterResponse)
func (*CreateClusterResponse) FromJsonString ¶
func (r *CreateClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterResponse) ToJsonString ¶
func (r *CreateClusterResponse) ToJsonString() string
type CreateClusterRouteTableRequest ¶
type CreateClusterRouteTableRequest struct { *tchttp.BaseRequest // Route table name RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // Route table CIDR RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` // VPC bound to the route table VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Whether to ignore CIDR conflicts IgnoreClusterCidrConflict *int64 `json:"IgnoreClusterCidrConflict,omitempty" name:"IgnoreClusterCidrConflict"` }
func NewCreateClusterRouteTableRequest ¶
func NewCreateClusterRouteTableRequest() (request *CreateClusterRouteTableRequest)
func (*CreateClusterRouteTableRequest) FromJsonString ¶
func (r *CreateClusterRouteTableRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterRouteTableRequest) ToJsonString ¶
func (r *CreateClusterRouteTableRequest) ToJsonString() string
type CreateClusterRouteTableResponse ¶
type CreateClusterRouteTableResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterRouteTableResponse ¶
func NewCreateClusterRouteTableResponse() (response *CreateClusterRouteTableResponse)
func (*CreateClusterRouteTableResponse) FromJsonString ¶
func (r *CreateClusterRouteTableResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterRouteTableResponse) ToJsonString ¶
func (r *CreateClusterRouteTableResponse) ToJsonString() string
type CreatePrometheusAlertRuleRequest ¶
type CreatePrometheusAlertRuleRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Alarm configurations AlertRule *PrometheusAlertRuleDetail `json:"AlertRule,omitempty" name:"AlertRule"` }
func NewCreatePrometheusAlertRuleRequest ¶
func NewCreatePrometheusAlertRuleRequest() (request *CreatePrometheusAlertRuleRequest)
func (*CreatePrometheusAlertRuleRequest) FromJsonString ¶
func (r *CreatePrometheusAlertRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePrometheusAlertRuleRequest) ToJsonString ¶
func (r *CreatePrometheusAlertRuleRequest) ToJsonString() string
type CreatePrometheusAlertRuleResponse ¶
type CreatePrometheusAlertRuleResponse struct { *tchttp.BaseResponse Response *struct { // Alarm ID Id *string `json:"Id,omitempty" name:"Id"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreatePrometheusAlertRuleResponse ¶
func NewCreatePrometheusAlertRuleResponse() (response *CreatePrometheusAlertRuleResponse)
func (*CreatePrometheusAlertRuleResponse) FromJsonString ¶
func (r *CreatePrometheusAlertRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePrometheusAlertRuleResponse) ToJsonString ¶
func (r *CreatePrometheusAlertRuleResponse) ToJsonString() string
type DataDisk ¶
type DataDisk struct { // Disk type // Note: this field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // File system (ext3/ext4/xfs) // Note: This field may return null, indicating that no valid value was found. FileSystem *string `json:"FileSystem,omitempty" name:"FileSystem"` // Disk size (G) // Note: This field may return null, indicating that no valid value was found. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Whether the disk is auto-formatted and mounted // Note: this field may return `null`, indicating that no valid value is obtained. AutoFormatAndMount *bool `json:"AutoFormatAndMount,omitempty" name:"AutoFormatAndMount"` // Mounting directory // Note: This field may return null, indicating that no valid value was found. MountTarget *string `json:"MountTarget,omitempty" name:"MountTarget"` // The name of the device or partition to mount // Note: this field may return `null`, indicating that no valid value is obtained. DiskPartition *string `json:"DiskPartition,omitempty" name:"DiskPartition"` }
type DeleteClusterAsGroupsRequest ¶
type DeleteClusterAsGroupsRequest struct { *tchttp.BaseRequest // The cluster ID, obtained through the [DescribeClusters](https://intl.cloud.tencent.com/document/api/457/31862?from_cn_redirect=1) API. ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster scaling group ID list AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` // Whether to keep nodes in the scaling group. Default to **false** (not keep) KeepInstance *bool `json:"KeepInstance,omitempty" name:"KeepInstance"` }
func NewDeleteClusterAsGroupsRequest ¶
func NewDeleteClusterAsGroupsRequest() (request *DeleteClusterAsGroupsRequest)
func (*DeleteClusterAsGroupsRequest) FromJsonString ¶
func (r *DeleteClusterAsGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterAsGroupsRequest) ToJsonString ¶
func (r *DeleteClusterAsGroupsRequest) ToJsonString() string
type DeleteClusterAsGroupsResponse ¶
type DeleteClusterAsGroupsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterAsGroupsResponse ¶
func NewDeleteClusterAsGroupsResponse() (response *DeleteClusterAsGroupsResponse)
func (*DeleteClusterAsGroupsResponse) FromJsonString ¶
func (r *DeleteClusterAsGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterAsGroupsResponse) ToJsonString ¶
func (r *DeleteClusterAsGroupsResponse) ToJsonString() string
type DeleteClusterEndpointRequest ¶
type DeleteClusterEndpointRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Whether public network access is enabled or not (True = public network access, FALSE = private network access, with the default value as FALSE). IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
func NewDeleteClusterEndpointRequest ¶
func NewDeleteClusterEndpointRequest() (request *DeleteClusterEndpointRequest)
func (*DeleteClusterEndpointRequest) FromJsonString ¶
func (r *DeleteClusterEndpointRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterEndpointRequest) ToJsonString ¶
func (r *DeleteClusterEndpointRequest) ToJsonString() string
type DeleteClusterEndpointResponse ¶
type DeleteClusterEndpointResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterEndpointResponse ¶
func NewDeleteClusterEndpointResponse() (response *DeleteClusterEndpointResponse)
func (*DeleteClusterEndpointResponse) FromJsonString ¶
func (r *DeleteClusterEndpointResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterEndpointResponse) ToJsonString ¶
func (r *DeleteClusterEndpointResponse) ToJsonString() string
type DeleteClusterEndpointVipRequest ¶
type DeleteClusterEndpointVipRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDeleteClusterEndpointVipRequest ¶
func NewDeleteClusterEndpointVipRequest() (request *DeleteClusterEndpointVipRequest)
func (*DeleteClusterEndpointVipRequest) FromJsonString ¶
func (r *DeleteClusterEndpointVipRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterEndpointVipRequest) ToJsonString ¶
func (r *DeleteClusterEndpointVipRequest) ToJsonString() string
type DeleteClusterEndpointVipResponse ¶
type DeleteClusterEndpointVipResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterEndpointVipResponse ¶
func NewDeleteClusterEndpointVipResponse() (response *DeleteClusterEndpointVipResponse)
func (*DeleteClusterEndpointVipResponse) FromJsonString ¶
func (r *DeleteClusterEndpointVipResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterEndpointVipResponse) ToJsonString ¶
func (r *DeleteClusterEndpointVipResponse) ToJsonString() string
type DeleteClusterInstancesRequest ¶
type DeleteClusterInstancesRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // List of Instance IDs InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Policy used to delete an instance in the cluster: `terminate` (terminates the instance. Only available for pay-as-you-go CVMs); `retain` (only removes it from the cluster. The instance will be retained.) InstanceDeleteMode *string `json:"InstanceDeleteMode,omitempty" name:"InstanceDeleteMode"` // Whether or not there is forced deletion (when a node is initialized, the parameters can be specified as TRUE) ForceDelete *bool `json:"ForceDelete,omitempty" name:"ForceDelete"` }
func NewDeleteClusterInstancesRequest ¶
func NewDeleteClusterInstancesRequest() (request *DeleteClusterInstancesRequest)
func (*DeleteClusterInstancesRequest) FromJsonString ¶
func (r *DeleteClusterInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterInstancesRequest) ToJsonString ¶
func (r *DeleteClusterInstancesRequest) ToJsonString() string
type DeleteClusterInstancesResponse ¶
type DeleteClusterInstancesResponse struct { *tchttp.BaseResponse Response *struct { // IDs of deleted instances SuccInstanceIds []*string `json:"SuccInstanceIds,omitempty" name:"SuccInstanceIds"` // IDs of instances failed to be deleted FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds"` // IDs of instances that cannot be found NotFoundInstanceIds []*string `json:"NotFoundInstanceIds,omitempty" name:"NotFoundInstanceIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterInstancesResponse ¶
func NewDeleteClusterInstancesResponse() (response *DeleteClusterInstancesResponse)
func (*DeleteClusterInstancesResponse) FromJsonString ¶
func (r *DeleteClusterInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterInstancesResponse) ToJsonString ¶
func (r *DeleteClusterInstancesResponse) ToJsonString() string
type DeleteClusterNodePoolRequest ¶
type DeleteClusterNodePoolRequest struct { *tchttp.BaseRequest // ClusterId of a node pool ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // IDs of node pools to delete NodePoolIds []*string `json:"NodePoolIds,omitempty" name:"NodePoolIds"` // Indicates whether nodes in a node pool are retained when the node pool is deleted. (The nodes are removed from the cluster. However, the corresponding instances will not be terminated.) KeepInstance *bool `json:"KeepInstance,omitempty" name:"KeepInstance"` }
func NewDeleteClusterNodePoolRequest ¶
func NewDeleteClusterNodePoolRequest() (request *DeleteClusterNodePoolRequest)
func (*DeleteClusterNodePoolRequest) FromJsonString ¶
func (r *DeleteClusterNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterNodePoolRequest) ToJsonString ¶
func (r *DeleteClusterNodePoolRequest) ToJsonString() string
type DeleteClusterNodePoolResponse ¶
type DeleteClusterNodePoolResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterNodePoolResponse ¶
func NewDeleteClusterNodePoolResponse() (response *DeleteClusterNodePoolResponse)
func (*DeleteClusterNodePoolResponse) FromJsonString ¶
func (r *DeleteClusterNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterNodePoolResponse) ToJsonString ¶
func (r *DeleteClusterNodePoolResponse) ToJsonString() string
type DeleteClusterRequest ¶
type DeleteClusterRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Policy used to delete an instance in the cluster: terminate (terminates the instance. Only available for instances on pay-as-you-go CVMs); retain (only removes it from the cluster. The instance will be retained.) InstanceDeleteMode *string `json:"InstanceDeleteMode,omitempty" name:"InstanceDeleteMode"` // Specifies the policy to deal with resources in the cluster when the cluster is deleted. It only supports CBS now. The default policy is to retain CBS disks. ResourceDeleteOptions []*ResourceDeleteOption `json:"ResourceDeleteOptions,omitempty" name:"ResourceDeleteOptions"` }
func NewDeleteClusterRequest ¶
func NewDeleteClusterRequest() (request *DeleteClusterRequest)
func (*DeleteClusterRequest) FromJsonString ¶
func (r *DeleteClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterRequest) ToJsonString ¶
func (r *DeleteClusterRequest) ToJsonString() string
type DeleteClusterResponse ¶
type DeleteClusterResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterResponse ¶
func NewDeleteClusterResponse() (response *DeleteClusterResponse)
func (*DeleteClusterResponse) FromJsonString ¶
func (r *DeleteClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterResponse) ToJsonString ¶
func (r *DeleteClusterResponse) ToJsonString() string
type DeleteClusterRouteRequest ¶
type DeleteClusterRouteRequest struct { *tchttp.BaseRequest // Route table name. RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // Next hop address. GatewayIp *string `json:"GatewayIp,omitempty" name:"GatewayIp"` // Destination CIDR. DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` }
func NewDeleteClusterRouteRequest ¶
func NewDeleteClusterRouteRequest() (request *DeleteClusterRouteRequest)
func (*DeleteClusterRouteRequest) FromJsonString ¶
func (r *DeleteClusterRouteRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterRouteRequest) ToJsonString ¶
func (r *DeleteClusterRouteRequest) ToJsonString() string
type DeleteClusterRouteResponse ¶
type DeleteClusterRouteResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterRouteResponse ¶
func NewDeleteClusterRouteResponse() (response *DeleteClusterRouteResponse)
func (*DeleteClusterRouteResponse) FromJsonString ¶
func (r *DeleteClusterRouteResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterRouteResponse) ToJsonString ¶
func (r *DeleteClusterRouteResponse) ToJsonString() string
type DeleteClusterRouteTableRequest ¶
type DeleteClusterRouteTableRequest struct { *tchttp.BaseRequest // Route table name RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` }
func NewDeleteClusterRouteTableRequest ¶
func NewDeleteClusterRouteTableRequest() (request *DeleteClusterRouteTableRequest)
func (*DeleteClusterRouteTableRequest) FromJsonString ¶
func (r *DeleteClusterRouteTableRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterRouteTableRequest) ToJsonString ¶
func (r *DeleteClusterRouteTableRequest) ToJsonString() string
type DeleteClusterRouteTableResponse ¶
type DeleteClusterRouteTableResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteClusterRouteTableResponse ¶
func NewDeleteClusterRouteTableResponse() (response *DeleteClusterRouteTableResponse)
func (*DeleteClusterRouteTableResponse) FromJsonString ¶
func (r *DeleteClusterRouteTableResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterRouteTableResponse) ToJsonString ¶
func (r *DeleteClusterRouteTableResponse) ToJsonString() string
type DeletePrometheusAlertRuleRequest ¶
type DeletePrometheusAlertRuleRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The ID list of alarm rules AlertIds []*string `json:"AlertIds,omitempty" name:"AlertIds"` }
func NewDeletePrometheusAlertRuleRequest ¶
func NewDeletePrometheusAlertRuleRequest() (request *DeletePrometheusAlertRuleRequest)
func (*DeletePrometheusAlertRuleRequest) FromJsonString ¶
func (r *DeletePrometheusAlertRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePrometheusAlertRuleRequest) ToJsonString ¶
func (r *DeletePrometheusAlertRuleRequest) ToJsonString() string
type DeletePrometheusAlertRuleResponse ¶
type DeletePrometheusAlertRuleResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeletePrometheusAlertRuleResponse ¶
func NewDeletePrometheusAlertRuleResponse() (response *DeletePrometheusAlertRuleResponse)
func (*DeletePrometheusAlertRuleResponse) FromJsonString ¶
func (r *DeletePrometheusAlertRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePrometheusAlertRuleResponse) ToJsonString ¶
func (r *DeletePrometheusAlertRuleResponse) ToJsonString() string
type DescribeAvailableClusterVersionRequest ¶
type DescribeAvailableClusterVersionRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // List of cluster IDs ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` }
func NewDescribeAvailableClusterVersionRequest ¶
func NewDescribeAvailableClusterVersionRequest() (request *DescribeAvailableClusterVersionRequest)
func (*DescribeAvailableClusterVersionRequest) FromJsonString ¶
func (r *DescribeAvailableClusterVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAvailableClusterVersionRequest) ToJsonString ¶
func (r *DescribeAvailableClusterVersionRequest) ToJsonString() string
type DescribeAvailableClusterVersionResponse ¶
type DescribeAvailableClusterVersionResponse struct { *tchttp.BaseResponse Response *struct { // Upgradable cluster version // Note: this field may return `null`, indicating that no valid value is obtained. Versions []*string `json:"Versions,omitempty" name:"Versions"` // Cluster information // Note: this field may return `null`, indicating that no valid value is obtained. Clusters []*ClusterVersion `json:"Clusters,omitempty" name:"Clusters"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAvailableClusterVersionResponse ¶
func NewDescribeAvailableClusterVersionResponse() (response *DescribeAvailableClusterVersionResponse)
func (*DescribeAvailableClusterVersionResponse) FromJsonString ¶
func (r *DescribeAvailableClusterVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAvailableClusterVersionResponse) ToJsonString ¶
func (r *DescribeAvailableClusterVersionResponse) ToJsonString() string
type DescribeClusterAsGroupOptionRequest ¶
type DescribeClusterAsGroupOptionRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterAsGroupOptionRequest ¶
func NewDescribeClusterAsGroupOptionRequest() (request *DescribeClusterAsGroupOptionRequest)
func (*DescribeClusterAsGroupOptionRequest) FromJsonString ¶
func (r *DescribeClusterAsGroupOptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterAsGroupOptionRequest) ToJsonString ¶
func (r *DescribeClusterAsGroupOptionRequest) ToJsonString() string
type DescribeClusterAsGroupOptionResponse ¶
type DescribeClusterAsGroupOptionResponse struct { *tchttp.BaseResponse Response *struct { // Cluster auto scaling attributes // Note: this field may return null, indicating that no valid value was found. ClusterAsGroupOption *ClusterAsGroupOption `json:"ClusterAsGroupOption,omitempty" name:"ClusterAsGroupOption"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterAsGroupOptionResponse ¶
func NewDescribeClusterAsGroupOptionResponse() (response *DescribeClusterAsGroupOptionResponse)
func (*DescribeClusterAsGroupOptionResponse) FromJsonString ¶
func (r *DescribeClusterAsGroupOptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterAsGroupOptionResponse) ToJsonString ¶
func (r *DescribeClusterAsGroupOptionResponse) ToJsonString() string
type DescribeClusterAsGroupsRequest ¶
type DescribeClusterAsGroupsRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Scaling group ID list. If this value is null, it indicates that all cluster-associated scaling groups are pulled. AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"` // Offset. This value defaults to 0. For more information on Offset, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. This value defaults to 20. The maximum is 100. For more information on Limit, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeClusterAsGroupsRequest ¶
func NewDescribeClusterAsGroupsRequest() (request *DescribeClusterAsGroupsRequest)
func (*DescribeClusterAsGroupsRequest) FromJsonString ¶
func (r *DescribeClusterAsGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterAsGroupsRequest) ToJsonString ¶
func (r *DescribeClusterAsGroupsRequest) ToJsonString() string
type DescribeClusterAsGroupsResponse ¶
type DescribeClusterAsGroupsResponse struct { *tchttp.BaseResponse Response *struct { // Total number of scaling groups associated with the cluster TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Cluster-associated scaling group list ClusterAsGroupSet []*ClusterAsGroup `json:"ClusterAsGroupSet,omitempty" name:"ClusterAsGroupSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterAsGroupsResponse ¶
func NewDescribeClusterAsGroupsResponse() (response *DescribeClusterAsGroupsResponse)
func (*DescribeClusterAsGroupsResponse) FromJsonString ¶
func (r *DescribeClusterAsGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterAsGroupsResponse) ToJsonString ¶
func (r *DescribeClusterAsGroupsResponse) ToJsonString() string
type DescribeClusterAuthenticationOptionsRequest ¶
type DescribeClusterAuthenticationOptionsRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterAuthenticationOptionsRequest ¶
func NewDescribeClusterAuthenticationOptionsRequest() (request *DescribeClusterAuthenticationOptionsRequest)
func (*DescribeClusterAuthenticationOptionsRequest) FromJsonString ¶
func (r *DescribeClusterAuthenticationOptionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterAuthenticationOptionsRequest) ToJsonString ¶
func (r *DescribeClusterAuthenticationOptionsRequest) ToJsonString() string
type DescribeClusterAuthenticationOptionsResponse ¶
type DescribeClusterAuthenticationOptionsResponse struct { *tchttp.BaseResponse Response *struct { // ServiceAccount authentication configuration // Note: this field may return `null`, indicating that no valid values can be obtained. ServiceAccounts *ServiceAccountAuthenticationOptions `json:"ServiceAccounts,omitempty" name:"ServiceAccounts"` // Result of the last modification. Values: `Updating`, `Success`, `Failed` or `TimeOut`. // Note: this field may return `null`, indicating that no valid values can be obtained. LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterAuthenticationOptionsResponse ¶
func NewDescribeClusterAuthenticationOptionsResponse() (response *DescribeClusterAuthenticationOptionsResponse)
func (*DescribeClusterAuthenticationOptionsResponse) FromJsonString ¶
func (r *DescribeClusterAuthenticationOptionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterAuthenticationOptionsResponse) ToJsonString ¶
func (r *DescribeClusterAuthenticationOptionsResponse) ToJsonString() string
type DescribeClusterCommonNamesRequest ¶
type DescribeClusterCommonNamesRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Sub-account. Up to 50 sub-accounts can be passed in at a time. SubaccountUins []*string `json:"SubaccountUins,omitempty" name:"SubaccountUins"` // Role ID. Up to 50 role IDs can be passed in at a time. RoleIds []*string `json:"RoleIds,omitempty" name:"RoleIds"` }
func NewDescribeClusterCommonNamesRequest ¶
func NewDescribeClusterCommonNamesRequest() (request *DescribeClusterCommonNamesRequest)
func (*DescribeClusterCommonNamesRequest) FromJsonString ¶
func (r *DescribeClusterCommonNamesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterCommonNamesRequest) ToJsonString ¶
func (r *DescribeClusterCommonNamesRequest) ToJsonString() string
type DescribeClusterCommonNamesResponse ¶
type DescribeClusterCommonNamesResponse struct { *tchttp.BaseResponse Response *struct { // The CommonName in the certificate of the client corresponding to the sub-account UIN CommonNames []*CommonName `json:"CommonNames,omitempty" name:"CommonNames"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterCommonNamesResponse ¶
func NewDescribeClusterCommonNamesResponse() (response *DescribeClusterCommonNamesResponse)
func (*DescribeClusterCommonNamesResponse) FromJsonString ¶
func (r *DescribeClusterCommonNamesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterCommonNamesResponse) ToJsonString ¶
func (r *DescribeClusterCommonNamesResponse) ToJsonString() string
type DescribeClusterEndpointStatusRequest ¶
type DescribeClusterEndpointStatusRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Whether public network access is enabled or not (True = public network access, FALSE = private network access, with the default value as FALSE). IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
func NewDescribeClusterEndpointStatusRequest ¶
func NewDescribeClusterEndpointStatusRequest() (request *DescribeClusterEndpointStatusRequest)
func (*DescribeClusterEndpointStatusRequest) FromJsonString ¶
func (r *DescribeClusterEndpointStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterEndpointStatusRequest) ToJsonString ¶
func (r *DescribeClusterEndpointStatusRequest) ToJsonString() string
type DescribeClusterEndpointStatusResponse ¶
type DescribeClusterEndpointStatusResponse struct { *tchttp.BaseResponse Response *struct { // The status of cluster access port. It can be `Created` (enabled); `Creating` (enabling) and `NotFound` (not enabled) // Note: this field may return `null`, indicating that no valid value is obtained. Status *string `json:"Status,omitempty" name:"Status"` // Details of the error occurred while opening the access port // Note: this field may return `null`, indicating that no valid value is obtained. ErrorMsg *string `json:"ErrorMsg,omitempty" name:"ErrorMsg"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterEndpointStatusResponse ¶
func NewDescribeClusterEndpointStatusResponse() (response *DescribeClusterEndpointStatusResponse)
func (*DescribeClusterEndpointStatusResponse) FromJsonString ¶
func (r *DescribeClusterEndpointStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterEndpointStatusResponse) ToJsonString ¶
func (r *DescribeClusterEndpointStatusResponse) ToJsonString() string
type DescribeClusterEndpointVipStatusRequest ¶
type DescribeClusterEndpointVipStatusRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterEndpointVipStatusRequest ¶
func NewDescribeClusterEndpointVipStatusRequest() (request *DescribeClusterEndpointVipStatusRequest)
func (*DescribeClusterEndpointVipStatusRequest) FromJsonString ¶
func (r *DescribeClusterEndpointVipStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterEndpointVipStatusRequest) ToJsonString ¶
func (r *DescribeClusterEndpointVipStatusRequest) ToJsonString() string
type DescribeClusterEndpointVipStatusResponse ¶
type DescribeClusterEndpointVipStatusResponse struct { *tchttp.BaseResponse Response *struct { // Port operation status (Creating = in the process of creation; CreateFailed = creation has failed; Created = creation completed; Deleting = in the process of deletion; DeletedFailed = deletion has failed; Deleted = deletion completed; NotFound = operation not found) Status *string `json:"Status,omitempty" name:"Status"` // Reason for operation failure ErrorMsg *string `json:"ErrorMsg,omitempty" name:"ErrorMsg"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterEndpointVipStatusResponse ¶
func NewDescribeClusterEndpointVipStatusResponse() (response *DescribeClusterEndpointVipStatusResponse)
func (*DescribeClusterEndpointVipStatusResponse) FromJsonString ¶
func (r *DescribeClusterEndpointVipStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterEndpointVipStatusResponse) ToJsonString ¶
func (r *DescribeClusterEndpointVipStatusResponse) ToJsonString() string
type DescribeClusterInstancesRequest ¶
type DescribeClusterInstancesRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Maximum number of output entries. Default value: 20 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // List of instance IDs to be obtained. This parameter is empty by default, which indicates that all instances in the cluster will be pulled. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Node role. Valid values are MASTER, WORKER, ETCD, MASTER_ETCD, and ALL. Default value: WORKER. InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` // Filters include `nodepool-id` and `nodepool-instance-type` (how the instance is added to the pool). For `nodepool-instance-type`, the values can be `MANUALLY_ADDED`, `AUTOSCALING_ADDED` and `ALL`. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeClusterInstancesRequest ¶
func NewDescribeClusterInstancesRequest() (request *DescribeClusterInstancesRequest)
func (*DescribeClusterInstancesRequest) FromJsonString ¶
func (r *DescribeClusterInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterInstancesRequest) ToJsonString ¶
func (r *DescribeClusterInstancesRequest) ToJsonString() string
type DescribeClusterInstancesResponse ¶
type DescribeClusterInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Total number of instances in the cluster TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of instances in the cluster InstanceSet []*Instance `json:"InstanceSet,omitempty" name:"InstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterInstancesResponse ¶
func NewDescribeClusterInstancesResponse() (response *DescribeClusterInstancesResponse)
func (*DescribeClusterInstancesResponse) FromJsonString ¶
func (r *DescribeClusterInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterInstancesResponse) ToJsonString ¶
func (r *DescribeClusterInstancesResponse) ToJsonString() string
type DescribeClusterKubeconfigRequest ¶
type DescribeClusterKubeconfigRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Defaults to `false`, which means to obtain the kubeconfig of private network IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
func NewDescribeClusterKubeconfigRequest ¶
func NewDescribeClusterKubeconfigRequest() (request *DescribeClusterKubeconfigRequest)
func (*DescribeClusterKubeconfigRequest) FromJsonString ¶
func (r *DescribeClusterKubeconfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterKubeconfigRequest) ToJsonString ¶
func (r *DescribeClusterKubeconfigRequest) ToJsonString() string
type DescribeClusterKubeconfigResponse ¶
type DescribeClusterKubeconfigResponse struct { *tchttp.BaseResponse Response *struct { // Sub-account kubeconfig file, used to access the cluster kube-apiserver directly Kubeconfig *string `json:"Kubeconfig,omitempty" name:"Kubeconfig"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterKubeconfigResponse ¶
func NewDescribeClusterKubeconfigResponse() (response *DescribeClusterKubeconfigResponse)
func (*DescribeClusterKubeconfigResponse) FromJsonString ¶
func (r *DescribeClusterKubeconfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterKubeconfigResponse) ToJsonString ¶
func (r *DescribeClusterKubeconfigResponse) ToJsonString() string
type DescribeClusterNodePoolDetailRequest ¶
type DescribeClusterNodePoolDetailRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` }
func NewDescribeClusterNodePoolDetailRequest ¶
func NewDescribeClusterNodePoolDetailRequest() (request *DescribeClusterNodePoolDetailRequest)
func (*DescribeClusterNodePoolDetailRequest) FromJsonString ¶
func (r *DescribeClusterNodePoolDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterNodePoolDetailRequest) ToJsonString ¶
func (r *DescribeClusterNodePoolDetailRequest) ToJsonString() string
type DescribeClusterNodePoolDetailResponse ¶
type DescribeClusterNodePoolDetailResponse struct { *tchttp.BaseResponse Response *struct { // Node pool details NodePool *NodePool `json:"NodePool,omitempty" name:"NodePool"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterNodePoolDetailResponse ¶
func NewDescribeClusterNodePoolDetailResponse() (response *DescribeClusterNodePoolDetailResponse)
func (*DescribeClusterNodePoolDetailResponse) FromJsonString ¶
func (r *DescribeClusterNodePoolDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterNodePoolDetailResponse) ToJsonString ¶
func (r *DescribeClusterNodePoolDetailResponse) ToJsonString() string
type DescribeClusterNodePoolsRequest ¶
type DescribeClusterNodePoolsRequest struct { *tchttp.BaseRequest // ClusterId (cluster ID) ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterNodePoolsRequest ¶
func NewDescribeClusterNodePoolsRequest() (request *DescribeClusterNodePoolsRequest)
func (*DescribeClusterNodePoolsRequest) FromJsonString ¶
func (r *DescribeClusterNodePoolsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterNodePoolsRequest) ToJsonString ¶
func (r *DescribeClusterNodePoolsRequest) ToJsonString() string
type DescribeClusterNodePoolsResponse ¶
type DescribeClusterNodePoolsResponse struct { *tchttp.BaseResponse Response *struct { // NodePools (node pool list) // Note: this field may return `null`, indicating that no valid value is obtained. NodePoolSet []*NodePool `json:"NodePoolSet,omitempty" name:"NodePoolSet"` // Total resources TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterNodePoolsResponse ¶
func NewDescribeClusterNodePoolsResponse() (response *DescribeClusterNodePoolsResponse)
func (*DescribeClusterNodePoolsResponse) FromJsonString ¶
func (r *DescribeClusterNodePoolsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterNodePoolsResponse) ToJsonString ¶
func (r *DescribeClusterNodePoolsResponse) ToJsonString() string
type DescribeClusterRouteTablesRequest ¶
type DescribeClusterRouteTablesRequest struct {
*tchttp.BaseRequest
}
func NewDescribeClusterRouteTablesRequest ¶
func NewDescribeClusterRouteTablesRequest() (request *DescribeClusterRouteTablesRequest)
func (*DescribeClusterRouteTablesRequest) FromJsonString ¶
func (r *DescribeClusterRouteTablesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterRouteTablesRequest) ToJsonString ¶
func (r *DescribeClusterRouteTablesRequest) ToJsonString() string
type DescribeClusterRouteTablesResponse ¶
type DescribeClusterRouteTablesResponse struct { *tchttp.BaseResponse Response *struct { // Number of instances that match the filter condition(s). TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Object of cluster route table. RouteTableSet []*RouteTableInfo `json:"RouteTableSet,omitempty" name:"RouteTableSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterRouteTablesResponse ¶
func NewDescribeClusterRouteTablesResponse() (response *DescribeClusterRouteTablesResponse)
func (*DescribeClusterRouteTablesResponse) FromJsonString ¶
func (r *DescribeClusterRouteTablesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterRouteTablesResponse) ToJsonString ¶
func (r *DescribeClusterRouteTablesResponse) ToJsonString() string
type DescribeClusterRoutesRequest ¶
type DescribeClusterRoutesRequest struct { *tchttp.BaseRequest // Route table name. RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // Filtering conditions, which are optional. Currently, only filtering by GatewayIP is supported. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeClusterRoutesRequest ¶
func NewDescribeClusterRoutesRequest() (request *DescribeClusterRoutesRequest)
func (*DescribeClusterRoutesRequest) FromJsonString ¶
func (r *DescribeClusterRoutesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterRoutesRequest) ToJsonString ¶
func (r *DescribeClusterRoutesRequest) ToJsonString() string
type DescribeClusterRoutesResponse ¶
type DescribeClusterRoutesResponse struct { *tchttp.BaseResponse Response *struct { // Number of instances that match the filter condition(s). TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Object of cluster route. RouteSet []*RouteInfo `json:"RouteSet,omitempty" name:"RouteSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterRoutesResponse ¶
func NewDescribeClusterRoutesResponse() (response *DescribeClusterRoutesResponse)
func (*DescribeClusterRoutesResponse) FromJsonString ¶
func (r *DescribeClusterRoutesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterRoutesResponse) ToJsonString ¶
func (r *DescribeClusterRoutesResponse) ToJsonString() string
type DescribeClusterSecurityRequest ¶
type DescribeClusterSecurityRequest struct { *tchttp.BaseRequest // Cluster ID. Enter the ClusterId field returned by the DescribeClusters API ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterSecurityRequest ¶
func NewDescribeClusterSecurityRequest() (request *DescribeClusterSecurityRequest)
func (*DescribeClusterSecurityRequest) FromJsonString ¶
func (r *DescribeClusterSecurityRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterSecurityRequest) ToJsonString ¶
func (r *DescribeClusterSecurityRequest) ToJsonString() string
type DescribeClusterSecurityResponse ¶
type DescribeClusterSecurityResponse struct { *tchttp.BaseResponse Response *struct { // Cluster's account name UserName *string `json:"UserName,omitempty" name:"UserName"` // Cluster's password Password *string `json:"Password,omitempty" name:"Password"` // Cluster's access CA certificate CertificationAuthority *string `json:"CertificationAuthority,omitempty" name:"CertificationAuthority"` // Cluster's access address ClusterExternalEndpoint *string `json:"ClusterExternalEndpoint,omitempty" name:"ClusterExternalEndpoint"` // Domain name accessed by the cluster Domain *string `json:"Domain,omitempty" name:"Domain"` // Cluster's endpoint address PgwEndpoint *string `json:"PgwEndpoint,omitempty" name:"PgwEndpoint"` // Cluster's access policy group // Note: This field may return null, indicating that no valid value was found. SecurityPolicy []*string `json:"SecurityPolicy,omitempty" name:"SecurityPolicy"` // Cluster Kubeconfig file // Note: This field may return null, indicating that no valid value was found. Kubeconfig *string `json:"Kubeconfig,omitempty" name:"Kubeconfig"` // Access address of the cluster JnsGw // Note: This field may return null, indicating that no valid value was found. JnsGwEndpoint *string `json:"JnsGwEndpoint,omitempty" name:"JnsGwEndpoint"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClusterSecurityResponse ¶
func NewDescribeClusterSecurityResponse() (response *DescribeClusterSecurityResponse)
func (*DescribeClusterSecurityResponse) FromJsonString ¶
func (r *DescribeClusterSecurityResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterSecurityResponse) ToJsonString ¶
func (r *DescribeClusterSecurityResponse) ToJsonString() string
type DescribeClustersRequest ¶
type DescribeClustersRequest struct { *tchttp.BaseRequest // Cluster ID list (When it is empty, // all clusters under the account will be obtained) ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` // Offset. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Maximum number of output entries. Default value: 20 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // · ClusterName // Filters by the cluster name // Type: String // Required: no // // · Tags // Filters by key-value pairs of tags // Type: String // Required: no // // · vpc-id // Filters by the VPC ID // Type: String // Required: no // // · tag-key // Filters by the tag key // Type: String // Required: no // // · tag-value // Filters by the tag value // Type: String // Required: no // // · tag:tag-key // Filters by key-value pairs of tags // Type: String // Required: no Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Cluster type, such as `MANAGED_CLUSTER` ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` }
func NewDescribeClustersRequest ¶
func NewDescribeClustersRequest() (request *DescribeClustersRequest)
func (*DescribeClustersRequest) FromJsonString ¶
func (r *DescribeClustersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClustersRequest) ToJsonString ¶
func (r *DescribeClustersRequest) ToJsonString() string
type DescribeClustersResponse ¶
type DescribeClustersResponse struct { *tchttp.BaseResponse Response *struct { // Total number of clusters TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Cluster information list Clusters []*Cluster `json:"Clusters,omitempty" name:"Clusters"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeClustersResponse ¶
func NewDescribeClustersResponse() (response *DescribeClustersResponse)
func (*DescribeClustersResponse) FromJsonString ¶
func (r *DescribeClustersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClustersResponse) ToJsonString ¶
func (r *DescribeClustersResponse) ToJsonString() string
type DescribeEnableVpcCniProgressRequest ¶
type DescribeEnableVpcCniProgressRequest struct { *tchttp.BaseRequest // ID of the cluster for which you want to enable the VPC-CNI mode ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeEnableVpcCniProgressRequest ¶
func NewDescribeEnableVpcCniProgressRequest() (request *DescribeEnableVpcCniProgressRequest)
func (*DescribeEnableVpcCniProgressRequest) FromJsonString ¶
func (r *DescribeEnableVpcCniProgressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEnableVpcCniProgressRequest) ToJsonString ¶
func (r *DescribeEnableVpcCniProgressRequest) ToJsonString() string
type DescribeEnableVpcCniProgressResponse ¶
type DescribeEnableVpcCniProgressResponse struct { *tchttp.BaseResponse Response *struct { // Task status, which can be `Running`, `Succeed`, or `Failed`. Status *string `json:"Status,omitempty" name:"Status"` // The description for the task status when the task status is “Failed”, for example, failed to install the IPAMD component. // Note: this field may return `null`, indicating that no valid values can be obtained. ErrorMessage *string `json:"ErrorMessage,omitempty" name:"ErrorMessage"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeEnableVpcCniProgressResponse ¶
func NewDescribeEnableVpcCniProgressResponse() (response *DescribeEnableVpcCniProgressResponse)
func (*DescribeEnableVpcCniProgressResponse) FromJsonString ¶
func (r *DescribeEnableVpcCniProgressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEnableVpcCniProgressResponse) ToJsonString ¶
func (r *DescribeEnableVpcCniProgressResponse) ToJsonString() string
type DescribeExistedInstancesRequest ¶
type DescribeExistedInstancesRequest struct { *tchttp.BaseRequest // Cluster ID. Enter the `ClusterId` field returned when you call the DescribeClusters API (Only VPC ID obtained through `ClusterId` need filtering conditions. When comparing statuses, the nodes on all clusters in this region will be used for comparison. You cannot specify `InstanceIds` and `ClusterId` at the same time.) ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Query by one or more instance ID(s). Instance ID format: ins-xxxxxxxx. (Refer to section ID.N of the API overview for this parameter's specific format.) Up to 100 instances are allowed for each request. You cannot specify InstanceIds and Filters at the same time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Filter condition. For fields and other information, see [the DescribeInstances API](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1). If a ClusterId has been set, then the cluster's VPC ID will be attached as a query field. In this situation, if a "vpc-id" is specified in Filter, then the specified VPC ID must be consistent with the cluster's VPC ID. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Filter by instance IP (Supports both private and public IPs) VagueIpAddress *string `json:"VagueIpAddress,omitempty" name:"VagueIpAddress"` // Filter by instance name VagueInstanceName *string `json:"VagueInstanceName,omitempty" name:"VagueInstanceName"` // Offset. Default value: 0. For more information on Offset, see the relevant section in the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit, see the relevant section in the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Filter by multiple instance IPs IpAddresses []*string `json:"IpAddresses,omitempty" name:"IpAddresses"` }
func NewDescribeExistedInstancesRequest ¶
func NewDescribeExistedInstancesRequest() (request *DescribeExistedInstancesRequest)
func (*DescribeExistedInstancesRequest) FromJsonString ¶
func (r *DescribeExistedInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeExistedInstancesRequest) ToJsonString ¶
func (r *DescribeExistedInstancesRequest) ToJsonString() string
type DescribeExistedInstancesResponse ¶
type DescribeExistedInstancesResponse struct { *tchttp.BaseResponse Response *struct { // Array of existing instance information. // Note: This field may return null, indicating that no valid values can be obtained. ExistedInstanceSet []*ExistedInstance `json:"ExistedInstanceSet,omitempty" name:"ExistedInstanceSet"` // Number of instances that match the filter condition(s). TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeExistedInstancesResponse ¶
func NewDescribeExistedInstancesResponse() (response *DescribeExistedInstancesResponse)
func (*DescribeExistedInstancesResponse) FromJsonString ¶
func (r *DescribeExistedInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeExistedInstancesResponse) ToJsonString ¶
func (r *DescribeExistedInstancesResponse) ToJsonString() string
type DescribeImagesRequest ¶
type DescribeImagesRequest struct {
*tchttp.BaseRequest
}
func NewDescribeImagesRequest ¶
func NewDescribeImagesRequest() (request *DescribeImagesRequest)
func (*DescribeImagesRequest) FromJsonString ¶
func (r *DescribeImagesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeImagesRequest) ToJsonString ¶
func (r *DescribeImagesRequest) ToJsonString() string
type DescribeImagesResponse ¶
type DescribeImagesResponse struct { *tchttp.BaseResponse Response *struct { // Number of images // Note: this field may return null, indicating that no valid values can be obtained. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Image information list // Note: this field may return null, indicating that no valid values can be obtained. ImageInstanceSet []*ImageInstance `json:"ImageInstanceSet,omitempty" name:"ImageInstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeImagesResponse ¶
func NewDescribeImagesResponse() (response *DescribeImagesResponse)
func (*DescribeImagesResponse) FromJsonString ¶
func (r *DescribeImagesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeImagesResponse) ToJsonString ¶
func (r *DescribeImagesResponse) ToJsonString() string
type DescribePrometheusInstanceRequest ¶
type DescribePrometheusInstanceRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDescribePrometheusInstanceRequest ¶
func NewDescribePrometheusInstanceRequest() (request *DescribePrometheusInstanceRequest)
func (*DescribePrometheusInstanceRequest) FromJsonString ¶
func (r *DescribePrometheusInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusInstanceRequest) ToJsonString ¶
func (r *DescribePrometheusInstanceRequest) ToJsonString() string
type DescribePrometheusInstanceResponse ¶
type DescribePrometheusInstanceResponse struct { *tchttp.BaseResponse Response *struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name Name *string `json:"Name,omitempty" name:"Name"` // VPC ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // COS bucket name COSBucket *string `json:"COSBucket,omitempty" name:"COSBucket"` // Data query address QueryAddress *string `json:"QueryAddress,omitempty" name:"QueryAddress"` // The grafana related information in the instance // Note: this field may return `null`, indicating that no valid value can be obtained. Grafana *PrometheusGrafanaInfo `json:"Grafana,omitempty" name:"Grafana"` // Custom alertmanager // Note: this field may return `null`, indicating that no valid value can be obtained. AlertManagerUrl *string `json:"AlertManagerUrl,omitempty" name:"AlertManagerUrl"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusInstanceResponse ¶
func NewDescribePrometheusInstanceResponse() (response *DescribePrometheusInstanceResponse)
func (*DescribePrometheusInstanceResponse) FromJsonString ¶
func (r *DescribePrometheusInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusInstanceResponse) ToJsonString ¶
func (r *DescribePrometheusInstanceResponse) ToJsonString() string
type DescribeRegionsRequest ¶
type DescribeRegionsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeRegionsRequest ¶
func NewDescribeRegionsRequest() (request *DescribeRegionsRequest)
func (*DescribeRegionsRequest) FromJsonString ¶
func (r *DescribeRegionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRegionsRequest) ToJsonString ¶
func (r *DescribeRegionsRequest) ToJsonString() string
type DescribeRegionsResponse ¶
type DescribeRegionsResponse struct { *tchttp.BaseResponse Response *struct { // Number of regions // Note: this field may return null, indicating that no valid values can be obtained. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // ## Region List // Note: this field may return null, indicating that no valid values can be obtained. RegionInstanceSet []*RegionInstance `json:"RegionInstanceSet,omitempty" name:"RegionInstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRegionsResponse ¶
func NewDescribeRegionsResponse() (response *DescribeRegionsResponse)
func (*DescribeRegionsResponse) FromJsonString ¶
func (r *DescribeRegionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRegionsResponse) ToJsonString ¶
func (r *DescribeRegionsResponse) ToJsonString() string
type DescribeRouteTableConflictsRequest ¶
type DescribeRouteTableConflictsRequest struct { *tchttp.BaseRequest // Route table CIDR RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` // VPC bound to the route table VpcId *string `json:"VpcId,omitempty" name:"VpcId"` }
func NewDescribeRouteTableConflictsRequest ¶
func NewDescribeRouteTableConflictsRequest() (request *DescribeRouteTableConflictsRequest)
func (*DescribeRouteTableConflictsRequest) FromJsonString ¶
func (r *DescribeRouteTableConflictsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRouteTableConflictsRequest) ToJsonString ¶
func (r *DescribeRouteTableConflictsRequest) ToJsonString() string
type DescribeRouteTableConflictsResponse ¶
type DescribeRouteTableConflictsResponse struct { *tchttp.BaseResponse Response *struct { // Whether there is a conflict in the route table. HasConflict *bool `json:"HasConflict,omitempty" name:"HasConflict"` // Route table conflict list. // Note: This field may return null, indicating that no valid values can be obtained. RouteTableConflictSet []*RouteTableConflict `json:"RouteTableConflictSet,omitempty" name:"RouteTableConflictSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRouteTableConflictsResponse ¶
func NewDescribeRouteTableConflictsResponse() (response *DescribeRouteTableConflictsResponse)
func (*DescribeRouteTableConflictsResponse) FromJsonString ¶
func (r *DescribeRouteTableConflictsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRouteTableConflictsResponse) ToJsonString ¶
func (r *DescribeRouteTableConflictsResponse) ToJsonString() string
type DescribeVersionsRequest ¶
type DescribeVersionsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeVersionsRequest ¶
func NewDescribeVersionsRequest() (request *DescribeVersionsRequest)
func (*DescribeVersionsRequest) FromJsonString ¶
func (r *DescribeVersionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVersionsRequest) ToJsonString ¶
func (r *DescribeVersionsRequest) ToJsonString() string
type DescribeVersionsResponse ¶
type DescribeVersionsResponse struct { *tchttp.BaseResponse Response *struct { // Number of versions // Note: this field may return `null`, indicating that no valid values can be obtained. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // Version list // Note: this field may return `null`, indicating that no valid values can be obtained. VersionInstanceSet []*VersionInstance `json:"VersionInstanceSet,omitempty" name:"VersionInstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeVersionsResponse ¶
func NewDescribeVersionsResponse() (response *DescribeVersionsResponse)
func (*DescribeVersionsResponse) FromJsonString ¶
func (r *DescribeVersionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVersionsResponse) ToJsonString ¶
func (r *DescribeVersionsResponse) ToJsonString() string
type DescribeVpcCniPodLimitsRequest ¶
type DescribeVpcCniPodLimitsRequest struct { *tchttp.BaseRequest // The availability zone of the model to query, for example, `ap-guangzhou-3`. This field is left empty by default, that is, do not filter by the availability zone. Zone *string `json:"Zone,omitempty" name:"Zone"` // The instance family to query, for example, `S5`. This field is left empty by default, that is, do not filter by the instance family. InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"` // The instance model to query, for example, `S5.LARGE8`. This field is empty by default, that is, do not filter by instance type. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
func NewDescribeVpcCniPodLimitsRequest ¶
func NewDescribeVpcCniPodLimitsRequest() (request *DescribeVpcCniPodLimitsRequest)
func (*DescribeVpcCniPodLimitsRequest) FromJsonString ¶
func (r *DescribeVpcCniPodLimitsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVpcCniPodLimitsRequest) ToJsonString ¶
func (r *DescribeVpcCniPodLimitsRequest) ToJsonString() string
type DescribeVpcCniPodLimitsResponse ¶
type DescribeVpcCniPodLimitsResponse struct { *tchttp.BaseResponse Response *struct { // The number of the models // Note: this field may return `null`, indicating that no valid value can be obtained. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The model information and the maximum supported number of Pods in the VPC-CNI mode // Note: this field may return `null`, indicating that no valid value can be obtained. PodLimitsInstanceSet []*PodLimitsInstance `json:"PodLimitsInstanceSet,omitempty" name:"PodLimitsInstanceSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeVpcCniPodLimitsResponse ¶
func NewDescribeVpcCniPodLimitsResponse() (response *DescribeVpcCniPodLimitsResponse)
func (*DescribeVpcCniPodLimitsResponse) FromJsonString ¶
func (r *DescribeVpcCniPodLimitsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVpcCniPodLimitsResponse) ToJsonString ¶
func (r *DescribeVpcCniPodLimitsResponse) ToJsonString() string
type EnableVpcCniNetworkTypeRequest ¶
type EnableVpcCniNetworkTypeRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // The VPC-CNI mode. `tke-route-eni`: Multi-IP ENI, `tke-direct-eni`: Independent ENI VpcCniType *string `json:"VpcCniType,omitempty" name:"VpcCniType"` // Whether to enable static IP address EnableStaticIp *bool `json:"EnableStaticIp,omitempty" name:"EnableStaticIp"` // The container subnet being used Subnets []*string `json:"Subnets,omitempty" name:"Subnets"` // Specifies when to release the IP after the Pod termination in static IP mode. It must be longer than 300 seconds. If this parameter is left empty, the IP address will never be released. ExpiredSeconds *uint64 `json:"ExpiredSeconds,omitempty" name:"ExpiredSeconds"` }
func NewEnableVpcCniNetworkTypeRequest ¶
func NewEnableVpcCniNetworkTypeRequest() (request *EnableVpcCniNetworkTypeRequest)
func (*EnableVpcCniNetworkTypeRequest) FromJsonString ¶
func (r *EnableVpcCniNetworkTypeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableVpcCniNetworkTypeRequest) ToJsonString ¶
func (r *EnableVpcCniNetworkTypeRequest) ToJsonString() string
type EnableVpcCniNetworkTypeResponse ¶
type EnableVpcCniNetworkTypeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewEnableVpcCniNetworkTypeResponse ¶
func NewEnableVpcCniNetworkTypeResponse() (response *EnableVpcCniNetworkTypeResponse)
func (*EnableVpcCniNetworkTypeResponse) FromJsonString ¶
func (r *EnableVpcCniNetworkTypeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableVpcCniNetworkTypeResponse) ToJsonString ¶
func (r *EnableVpcCniNetworkTypeResponse) ToJsonString() string
type EnhancedService ¶
type EnhancedService struct { // Enables cloud security service. If this parameter is not specified, the cloud security service will be enabled by default. SecurityService *RunSecurityServiceEnabled `json:"SecurityService,omitempty" name:"SecurityService"` // Enables cloud monitor service. If this parameter is not specified, the cloud monitor service will be enabled by default. MonitorService *RunMonitorServiceEnabled `json:"MonitorService,omitempty" name:"MonitorService"` // Enables the TAT service. If this parameter is not specified, the TAT service will not be enabled. AutomationService *RunAutomationServiceEnabled `json:"AutomationService,omitempty" name:"AutomationService"` }
type ExistedInstance ¶
type ExistedInstance struct { // Whether the instance supports being added to the cluster (TRUE: support; FALSE: not support). // Note: This field may return null, indicating that no valid values can be obtained. Usable *bool `json:"Usable,omitempty" name:"Usable"` // Reason that the instance does not support being added. // Note: This field may return null, indicating that no valid values can be obtained. UnusableReason *string `json:"UnusableReason,omitempty" name:"UnusableReason"` // ID of the cluster in which the instance currently resides. // Note: This field may return null, indicating that no valid values can be obtained. AlreadyInCluster *string `json:"AlreadyInCluster,omitempty" name:"AlreadyInCluster"` // Instance ID, in the format of ins-xxxxxxxx. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance name. // Note: This field may return null, indicating that no valid values can be obtained. InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // List of private IPs of the instance's primary ENI. // Note: This field may return null, indicating that no valid values can be obtained. PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` // List of public IPs of the instance's primary ENI. // Note: This field may return null, indicating that no valid values can be obtained. PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses"` // Creation time, which follows the ISO8601 standard and uses UTC time. Format: YYYY-MM-DDThh:mm:ssZ. // Note: This field may return null, indicating that no valid values can be obtained. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Instance's number of CPU cores. Unit: cores. // Note: This field may return null, indicating that no valid values can be obtained. CPU *uint64 `json:"CPU,omitempty" name:"CPU"` // Instance's memory capacity. Unit: GB. // Note: This field may return null, indicating that no valid values can be obtained. Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // Operating system name. // Note: This field may return null, indicating that no valid values can be obtained. OsName *string `json:"OsName,omitempty" name:"OsName"` // Instance model. // Note: This field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Auto scaling group ID // Note: This field may return null, indicating that no valid value was found. AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` // Instance billing method. Valid values: POSTPAID_BY_HOUR (pay-as-you-go hourly); CDHPAID (billed based on CDH, i.e., only CDH is billed but not the instances on CDH) // Note: This field may return null, indicating that no valid value was found. InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` }
type ExistedInstancesForNode ¶
type ExistedInstancesForNode struct { // Node role. Values: MASTER_ETCD, WORKER. You only need to specify MASTER_ETCD when creating a self-deployed cluster (INDEPENDENT_CLUSTER). NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` // Reinstallation parameter of existing instances ExistedInstancesPara *ExistedInstancesPara `json:"ExistedInstancesPara,omitempty" name:"ExistedInstancesPara"` // Advanced node setting, which overrides the InstanceAdvancedSettings item set at the cluster level (currently valid for the ExtraArgs node custom parameter only) InstanceAdvancedSettingsOverride *InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverride,omitempty" name:"InstanceAdvancedSettingsOverride"` // When the custom PodCIDR mode is enabled for the cluster, you can specify the maximum number of pods per node. DesiredPodNumbers []*int64 `json:"DesiredPodNumbers,omitempty" name:"DesiredPodNumbers"` }
type ExistedInstancesPara ¶
type ExistedInstancesPara struct { // Cluster ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Additional parameter to be set for the instance InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Enhanced services. This parameter is used to specify whether to enable Cloud Security, Cloud Monitor and other services. If this parameter is not specified, Cloud Monitor and Cloud Security are enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Node login information (currently only supports using Password or single KeyIds) LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Security group to which the instance belongs. This parameter can be obtained from the sgId field in the returned values of DescribeSecurityGroups. If this parameter is not specified, the default security group is bound. (Currently, you can only set a single sgId) SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // When reinstalling the system, you can specify the HostName of the modified instance (when the cluster is in HostName mode, this parameter is required, and the rule name is the same as the [Create CVM Instance](https://intl.cloud.tencent.com/document/product/213/15730?from_cn_redirect=1) API HostName except for uppercase letters not being supported. HostName *string `json:"HostName,omitempty" name:"HostName"` }
type ExtensionAddon ¶
type GetUpgradeInstanceProgressRequest ¶
type GetUpgradeInstanceProgressRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Maximum number of nodes to be queried Limit *int64 `json:"Limit,omitempty" name:"Limit"` // The starting node for the query Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewGetUpgradeInstanceProgressRequest ¶
func NewGetUpgradeInstanceProgressRequest() (request *GetUpgradeInstanceProgressRequest)
func (*GetUpgradeInstanceProgressRequest) FromJsonString ¶
func (r *GetUpgradeInstanceProgressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetUpgradeInstanceProgressRequest) ToJsonString ¶
func (r *GetUpgradeInstanceProgressRequest) ToJsonString() string
type GetUpgradeInstanceProgressResponse ¶
type GetUpgradeInstanceProgressResponse struct { *tchttp.BaseResponse Response *struct { // Total nodes to upgrade Total *int64 `json:"Total,omitempty" name:"Total"` // Total upgraded nodes Done *int64 `json:"Done,omitempty" name:"Done"` // The lifecycle of the upgrade task // process: running // paused: stopped // pausing: stopping // done: completed // timeout: timed out // aborted: canceled LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // Details of upgrade progress of each node Instances []*InstanceUpgradeProgressItem `json:"Instances,omitempty" name:"Instances"` // Current cluster status ClusterStatus *InstanceUpgradeClusterStatus `json:"ClusterStatus,omitempty" name:"ClusterStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetUpgradeInstanceProgressResponse ¶
func NewGetUpgradeInstanceProgressResponse() (response *GetUpgradeInstanceProgressResponse)
func (*GetUpgradeInstanceProgressResponse) FromJsonString ¶
func (r *GetUpgradeInstanceProgressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetUpgradeInstanceProgressResponse) ToJsonString ¶
func (r *GetUpgradeInstanceProgressResponse) ToJsonString() string
type ImageInstance ¶
type ImageInstance struct { // Image alias // Note: this field may return null, indicating that no valid values can be obtained. Alias *string `json:"Alias,omitempty" name:"Alias"` // Operating system name // Note: this field may return null, indicating that no valid values can be obtained. OsName *string `json:"OsName,omitempty" name:"OsName"` // Image ID // Note: this field may return null, indicating that no valid values can be obtained. ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // Container image tag, **DOCKER_CUSTOMIZE** (container customized tag), **GENERAL** (general tag, default value) // Note: this field may return null, indicating that no valid values can be obtained. OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` }
type Instance ¶
type Instance struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Node role: MASTER, WORKER, ETCD, MASTER_ETCD, and ALL. Default value: WORKER InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` // Reason for instance exception (or initialization) FailedReason *string `json:"FailedReason,omitempty" name:"FailedReason"` // Instance status (running, initializing, or failed) InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"` // Whether the instance is drained // Note: this field may return null, indicating that no valid value is obtained. DrainStatus *string `json:"DrainStatus,omitempty" name:"DrainStatus"` // Node settings // Note: this field may return null, indicating that no valid value is obtained. InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Creation time CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Node private IP // Note: this field may return null, indicating that no valid values can be obtained. LanIP *string `json:"LanIP,omitempty" name:"LanIP"` // Resource pool ID // Note: this field may return null, indicating that no valid values can be obtained. NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // ID of the auto-scaling group // Note: this field may return null, indicating that no valid value is obtained. AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` }
type InstanceAdvancedSettings ¶
type InstanceAdvancedSettings struct { // Data disk mount point. By default, no data disk is mounted. Data disks in ext3, ext4, or XFS file system formats will be mounted directly, while data disks in other file systems and unformatted data disks will automatically be formatted as ext4 (xfs for tlinux system) and then mounted. Please back up your data in advance. This setting is only applicable to CVMs with a single data disk. // Note: in multi-disk scenarios, use the DataDisks data structure below to set the corresponding information, such as cloud disk type, cloud disk size, mount path, and whether to perform formatting. // Note: this field may return `null`, indicating that no valid values can be obtained. MountTarget *string `json:"MountTarget,omitempty" name:"MountTarget"` // Specified value of dockerd --graph. Default value: /var/lib/docker // Note: This field may return null, indicating that no valid value was found. DockerGraphPath *string `json:"DockerGraphPath,omitempty" name:"DockerGraphPath"` // Base64-encoded user script, which will be executed after the K8s component starts running. You need to ensure the reentrant and retry logic of the script. The script and its log files can be viewed at the node path: /data/ccs_userscript/. If you want to initialize nodes before adding them to the scheduling list, you can use this parameter together with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to enable the node for scheduling. // Note: This field may return null, indicating that no valid value was found. UserScript *string `json:"UserScript,omitempty" name:"UserScript"` // Sets whether the added node is schedulable. 0 (default): schedulable; other values: unschedulable. After node initialization is completed, you can run kubectl uncordon nodename to enable this node for scheduling. Unschedulable *int64 `json:"Unschedulable,omitempty" name:"Unschedulable"` // Node label array // Note: This field may return null, indicating that no valid value was found. Labels []*Label `json:"Labels,omitempty" name:"Labels"` // Mounting information of multiple data disks. When you create a node, ensure that the CVM purchase parameter specifies the information required for the purchase of multiple data disks. For example, the `DataDisks` under `RunInstancesPara` of the `CreateClusterInstances` API should be configured accordingly (Referto document of CreateClusterInstances API). When you add an existing node, ensure that the specified partition exists in the node. // Note: this field may return `null`, indicating that no valid values can be obtained. DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Information about node custom parameters // Note: This field may return null, indicating that no valid value was found. ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` // When the custom PodCIDR mode is enabled for the cluster, you can specify the maximum number of pods per node. // Note: this field may return `null`, indicating that no valid values can be obtained. DesiredPodNumber *int64 `json:"DesiredPodNumber,omitempty" name:"DesiredPodNumber"` // Specifies the base64-encoded custom script to be executed before initialization of the node. It’s only valid for adding existing nodes for now. // Note: this field may return `null`, indicating that no valid values can be obtained. PreStartUserScript *string `json:"PreStartUserScript,omitempty" name:"PreStartUserScript"` }
type InstanceDataDiskMountSetting ¶
type InstanceDataDiskMountSetting struct { // CVM instance type InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Data disk mounting information DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"` // Availability zone where the CVM instance is located Zone *string `json:"Zone,omitempty" name:"Zone"` }
type InstanceExtraArgs ¶
type InstanceExtraArgs struct { // Kubelet custom parameter, in the format of ["k1=v1", "k1=v2"], for example: ["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]. // Note: this field may return `null`, indicating that no valid value is obtained. Kubelet []*string `json:"Kubelet,omitempty" name:"Kubelet"` }
type InstanceUpgradePreCheckResult ¶
type InstanceUpgradePreCheckResult struct { // Whether the check is passed CheckPass *bool `json:"CheckPass,omitempty" name:"CheckPass"` // Array of check items Items []*InstanceUpgradePreCheckResultItem `json:"Items,omitempty" name:"Items"` // List of independent pods on this node SinglePods []*string `json:"SinglePods,omitempty" name:"SinglePods"` }
type InstanceUpgradePreCheckResultItem ¶
type InstanceUpgradePreCheckResultItem struct { // The namespace of the workload Namespace *string `json:"Namespace,omitempty" name:"Namespace"` // Workload type WorkLoadKind *string `json:"WorkLoadKind,omitempty" name:"WorkLoadKind"` // Workload name WorkLoadName *string `json:"WorkLoadName,omitempty" name:"WorkLoadName"` // The number of running pods in the workload before draining the node Before *uint64 `json:"Before,omitempty" name:"Before"` // The number of running pods in the workload after draining the node After *uint64 `json:"After,omitempty" name:"After"` // The pod list of the workload on this node Pods []*string `json:"Pods,omitempty" name:"Pods"` }
type InstanceUpgradeProgressItem ¶
type InstanceUpgradeProgressItem struct { // Node instance ID InstanceID *string `json:"InstanceID,omitempty" name:"InstanceID"` // Task lifecycle // process: running // paused: stopped // pausing: stopping // done: completed // timeout: timed out // aborted: canceled // pending: not started LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // Upgrade start time // Note: this field may return `null`, indicating that no valid value is obtained. StartAt *string `json:"StartAt,omitempty" name:"StartAt"` // Upgrade end time // Note: this field may return `null`, indicating that no valid value is obtained. EndAt *string `json:"EndAt,omitempty" name:"EndAt"` // Check result before upgrading CheckResult *InstanceUpgradePreCheckResult `json:"CheckResult,omitempty" name:"CheckResult"` // Upgrade steps details Detail []*TaskStepInfo `json:"Detail,omitempty" name:"Detail"` }
type LoginSettings ¶
type LoginSettings struct { // Login password of the instance. The password requirements vary among different operating systems: <br><li>For Linux instances, the password must be 8-30 characters long and contain at least two of the following types: [a-z], [A-Z], [0-9] and [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]. <br><li>For Windows instances, the password must be 12-30 characters long and contain at least three of the following categories: [a-z], [A-Z], [0-9] and [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]. <br><br>If this parameter is not specified, a random password will be generated and sent to you via the Message Center. // Note: this field may return null, indicating that no valid value is obtained. Password *string `json:"Password,omitempty" name:"Password"` // List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair. You can call [`DescribeKeyPairs`](https://intl.cloud.tencent.com/document/api/213/15699?from_cn_redirect=1) to obtain `KeyId`. A key and password cannot be specified at the same time. Windows instances do not support keys. Currently, you can only specify one key when purchasing an instance. // Note: this field may return null, indicating that no valid value is obtained. KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"` // Whether to keep the original settings of an image. You cannot specify this parameter and `Password` or `KeyIds.N` at the same time. You can specify this parameter as `TRUE` only when you create an instance using a custom image, a shared image, or an imported image. Valid values: <br><li>TRUE: keep the login settings of the image <br><li>FALSE: do not keep the login settings of the image <br><br>Default value: FALSE. // Note: This field may return null, indicating that no valid value is found. KeepImageLogin *string `json:"KeepImageLogin,omitempty" name:"KeepImageLogin"` }
type ManuallyAdded ¶
type ManuallyAdded struct { // Number of nodes that are being added Joining *int64 `json:"Joining,omitempty" name:"Joining"` // Number of nodes that are being initialized Initializing *int64 `json:"Initializing,omitempty" name:"Initializing"` // Number of normal nodes Normal *int64 `json:"Normal,omitempty" name:"Normal"` // Total number of nodes Total *int64 `json:"Total,omitempty" name:"Total"` }
type ModifyClusterAsGroupAttributeRequest ¶
type ModifyClusterAsGroupAttributeRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster-associated scaling group attributes ClusterAsGroupAttribute *ClusterAsGroupAttribute `json:"ClusterAsGroupAttribute,omitempty" name:"ClusterAsGroupAttribute"` }
func NewModifyClusterAsGroupAttributeRequest ¶
func NewModifyClusterAsGroupAttributeRequest() (request *ModifyClusterAsGroupAttributeRequest)
func (*ModifyClusterAsGroupAttributeRequest) FromJsonString ¶
func (r *ModifyClusterAsGroupAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAsGroupAttributeRequest) ToJsonString ¶
func (r *ModifyClusterAsGroupAttributeRequest) ToJsonString() string
type ModifyClusterAsGroupAttributeResponse ¶
type ModifyClusterAsGroupAttributeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyClusterAsGroupAttributeResponse ¶
func NewModifyClusterAsGroupAttributeResponse() (response *ModifyClusterAsGroupAttributeResponse)
func (*ModifyClusterAsGroupAttributeResponse) FromJsonString ¶
func (r *ModifyClusterAsGroupAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAsGroupAttributeResponse) ToJsonString ¶
func (r *ModifyClusterAsGroupAttributeResponse) ToJsonString() string
type ModifyClusterAsGroupOptionAttributeRequest ¶
type ModifyClusterAsGroupOptionAttributeRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Cluster auto scaling attributes ClusterAsGroupOption *ClusterAsGroupOption `json:"ClusterAsGroupOption,omitempty" name:"ClusterAsGroupOption"` }
func NewModifyClusterAsGroupOptionAttributeRequest ¶
func NewModifyClusterAsGroupOptionAttributeRequest() (request *ModifyClusterAsGroupOptionAttributeRequest)
func (*ModifyClusterAsGroupOptionAttributeRequest) FromJsonString ¶
func (r *ModifyClusterAsGroupOptionAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAsGroupOptionAttributeRequest) ToJsonString ¶
func (r *ModifyClusterAsGroupOptionAttributeRequest) ToJsonString() string
type ModifyClusterAsGroupOptionAttributeResponse ¶
type ModifyClusterAsGroupOptionAttributeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyClusterAsGroupOptionAttributeResponse ¶
func NewModifyClusterAsGroupOptionAttributeResponse() (response *ModifyClusterAsGroupOptionAttributeResponse)
func (*ModifyClusterAsGroupOptionAttributeResponse) FromJsonString ¶
func (r *ModifyClusterAsGroupOptionAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAsGroupOptionAttributeResponse) ToJsonString ¶
func (r *ModifyClusterAsGroupOptionAttributeResponse) ToJsonString() string
type ModifyClusterAttributeRequest ¶
type ModifyClusterAttributeRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Project of the Cluster ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Cluster description ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"` }
func NewModifyClusterAttributeRequest ¶
func NewModifyClusterAttributeRequest() (request *ModifyClusterAttributeRequest)
func (*ModifyClusterAttributeRequest) FromJsonString ¶
func (r *ModifyClusterAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAttributeRequest) ToJsonString ¶
func (r *ModifyClusterAttributeRequest) ToJsonString() string
type ModifyClusterAttributeResponse ¶
type ModifyClusterAttributeResponse struct { *tchttp.BaseResponse Response *struct { // Project of the Cluster // Note: this field may return null, indicating that no valid values can be obtained. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Cluster name // Note: this field may return null, indicating that no valid values can be obtained. ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Cluster description // Note: this field may return null, indicating that no valid values can be obtained. ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyClusterAttributeResponse ¶
func NewModifyClusterAttributeResponse() (response *ModifyClusterAttributeResponse)
func (*ModifyClusterAttributeResponse) FromJsonString ¶
func (r *ModifyClusterAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAttributeResponse) ToJsonString ¶
func (r *ModifyClusterAttributeResponse) ToJsonString() string
type ModifyClusterAuthenticationOptionsRequest ¶
type ModifyClusterAuthenticationOptionsRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // ServiceAccount authentication configuration ServiceAccounts *ServiceAccountAuthenticationOptions `json:"ServiceAccounts,omitempty" name:"ServiceAccounts"` }
func NewModifyClusterAuthenticationOptionsRequest ¶
func NewModifyClusterAuthenticationOptionsRequest() (request *ModifyClusterAuthenticationOptionsRequest)
func (*ModifyClusterAuthenticationOptionsRequest) FromJsonString ¶
func (r *ModifyClusterAuthenticationOptionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAuthenticationOptionsRequest) ToJsonString ¶
func (r *ModifyClusterAuthenticationOptionsRequest) ToJsonString() string
type ModifyClusterAuthenticationOptionsResponse ¶
type ModifyClusterAuthenticationOptionsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyClusterAuthenticationOptionsResponse ¶
func NewModifyClusterAuthenticationOptionsResponse() (response *ModifyClusterAuthenticationOptionsResponse)
func (*ModifyClusterAuthenticationOptionsResponse) FromJsonString ¶
func (r *ModifyClusterAuthenticationOptionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterAuthenticationOptionsResponse) ToJsonString ¶
func (r *ModifyClusterAuthenticationOptionsResponse) ToJsonString() string
type ModifyClusterEndpointSPRequest ¶
type ModifyClusterEndpointSPRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Security policy opens single IP or CIDR block to the Internet (for example: '192.168.1.0/24', with 'reject all' as the default). SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies"` }
func NewModifyClusterEndpointSPRequest ¶
func NewModifyClusterEndpointSPRequest() (request *ModifyClusterEndpointSPRequest)
func (*ModifyClusterEndpointSPRequest) FromJsonString ¶
func (r *ModifyClusterEndpointSPRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterEndpointSPRequest) ToJsonString ¶
func (r *ModifyClusterEndpointSPRequest) ToJsonString() string
type ModifyClusterEndpointSPResponse ¶
type ModifyClusterEndpointSPResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyClusterEndpointSPResponse ¶
func NewModifyClusterEndpointSPResponse() (response *ModifyClusterEndpointSPResponse)
func (*ModifyClusterEndpointSPResponse) FromJsonString ¶
func (r *ModifyClusterEndpointSPResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterEndpointSPResponse) ToJsonString ¶
func (r *ModifyClusterEndpointSPResponse) ToJsonString() string
type ModifyClusterNodePoolRequest ¶
type ModifyClusterNodePoolRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // Name Name *string `json:"Name,omitempty" name:"Name"` // Maximum number of nodes MaxNodesNum *int64 `json:"MaxNodesNum,omitempty" name:"MaxNodesNum"` // Minimum number of nodes MinNodesNum *int64 `json:"MinNodesNum,omitempty" name:"MinNodesNum"` // Labels Labels []*Label `json:"Labels,omitempty" name:"Labels"` // Taints Taints []*Taint `json:"Taints,omitempty" name:"Taints"` // Indicates whether auto scaling is enabled. EnableAutoscale *bool `json:"EnableAutoscale,omitempty" name:"EnableAutoscale"` // Operating system name OsName *string `json:"OsName,omitempty" name:"OsName"` // Image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value) OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` // Node custom parameter ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` }
func NewModifyClusterNodePoolRequest ¶
func NewModifyClusterNodePoolRequest() (request *ModifyClusterNodePoolRequest)
func (*ModifyClusterNodePoolRequest) FromJsonString ¶
func (r *ModifyClusterNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterNodePoolRequest) ToJsonString ¶
func (r *ModifyClusterNodePoolRequest) ToJsonString() string
type ModifyClusterNodePoolResponse ¶
type ModifyClusterNodePoolResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyClusterNodePoolResponse ¶
func NewModifyClusterNodePoolResponse() (response *ModifyClusterNodePoolResponse)
func (*ModifyClusterNodePoolResponse) FromJsonString ¶
func (r *ModifyClusterNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyClusterNodePoolResponse) ToJsonString ¶
func (r *ModifyClusterNodePoolResponse) ToJsonString() string
type ModifyNodePoolInstanceTypesRequest ¶
type ModifyNodePoolInstanceTypesRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // List of instance types InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"` }
func NewModifyNodePoolInstanceTypesRequest ¶
func NewModifyNodePoolInstanceTypesRequest() (request *ModifyNodePoolInstanceTypesRequest)
func (*ModifyNodePoolInstanceTypesRequest) FromJsonString ¶
func (r *ModifyNodePoolInstanceTypesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNodePoolInstanceTypesRequest) ToJsonString ¶
func (r *ModifyNodePoolInstanceTypesRequest) ToJsonString() string
type ModifyNodePoolInstanceTypesResponse ¶
type ModifyNodePoolInstanceTypesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyNodePoolInstanceTypesResponse ¶
func NewModifyNodePoolInstanceTypesResponse() (response *ModifyNodePoolInstanceTypesResponse)
func (*ModifyNodePoolInstanceTypesResponse) FromJsonString ¶
func (r *ModifyNodePoolInstanceTypesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNodePoolInstanceTypesResponse) ToJsonString ¶
func (r *ModifyNodePoolInstanceTypesResponse) ToJsonString() string
type ModifyPrometheusAlertRuleRequest ¶
type ModifyPrometheusAlertRuleRequest struct { *tchttp.BaseRequest // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Alarm configurations AlertRule *PrometheusAlertRuleDetail `json:"AlertRule,omitempty" name:"AlertRule"` }
func NewModifyPrometheusAlertRuleRequest ¶
func NewModifyPrometheusAlertRuleRequest() (request *ModifyPrometheusAlertRuleRequest)
func (*ModifyPrometheusAlertRuleRequest) FromJsonString ¶
func (r *ModifyPrometheusAlertRuleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyPrometheusAlertRuleRequest) ToJsonString ¶
func (r *ModifyPrometheusAlertRuleRequest) ToJsonString() string
type ModifyPrometheusAlertRuleResponse ¶
type ModifyPrometheusAlertRuleResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyPrometheusAlertRuleResponse ¶
func NewModifyPrometheusAlertRuleResponse() (response *ModifyPrometheusAlertRuleResponse)
func (*ModifyPrometheusAlertRuleResponse) FromJsonString ¶
func (r *ModifyPrometheusAlertRuleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyPrometheusAlertRuleResponse) ToJsonString ¶
func (r *ModifyPrometheusAlertRuleResponse) ToJsonString() string
type NodeCountSummary ¶
type NodeCountSummary struct { // Nodes that are manually managed // Note: this field may return `null`, indicating that no valid value is obtained. ManuallyAdded *ManuallyAdded `json:"ManuallyAdded,omitempty" name:"ManuallyAdded"` // Nodes that are automatically managed // Note: this field may return `null`, indicating that no valid value is obtained. AutoscalingAdded *AutoscalingAdded `json:"AutoscalingAdded,omitempty" name:"AutoscalingAdded"` }
type NodePool ¶
type NodePool struct { // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // Node pool name Name *string `json:"Name,omitempty" name:"Name"` // Cluster instance ID ClusterInstanceId *string `json:"ClusterInstanceId,omitempty" name:"ClusterInstanceId"` // The lifecycle state of the current node pool. Valid values: `creating`, `normal`, `updating`, `deleting`, and `deleted`. LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // Launch configuration ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // Auto-scaling group ID AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` // Labels Labels []*Label `json:"Labels,omitempty" name:"Labels"` // Array of taint Taints []*Taint `json:"Taints,omitempty" name:"Taints"` // Node list NodeCountSummary *NodeCountSummary `json:"NodeCountSummary,omitempty" name:"NodeCountSummary"` // AutoscalingGroupStatus *string `json:"AutoscalingGroupStatus,omitempty" name:"AutoscalingGroupStatus"` // Maximum number of nodes // Note: this field may return `null`, indicating that no valid value is obtained. MaxNodesNum *int64 `json:"MaxNodesNum,omitempty" name:"MaxNodesNum"` // Minimum number of nodes // Note: this field may return `null`, indicating that no valid value is obtained. MinNodesNum *int64 `json:"MinNodesNum,omitempty" name:"MinNodesNum"` // Desired number of nodes // Note: this field may return `null`, indicating that no valid value is obtained. DesiredNodesNum *int64 `json:"DesiredNodesNum,omitempty" name:"DesiredNodesNum"` // The operating system of the node pool // Note: this field may return `null`, indicating that no valid value is obtained. NodePoolOs *string `json:"NodePoolOs,omitempty" name:"NodePoolOs"` // Container image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value) // Note: this field may return `null`, indicating that no valid value is obtained. OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` // Image ID // Note: this field may return `null`, indicating that no valid value is obtained. ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // This parameter is required when the custom PodCIDR mode is enabled for the cluster. // Note: this field may return `null`, indicating that no valid value is obtained. DesiredPodNum *int64 `json:"DesiredPodNum,omitempty" name:"DesiredPodNum"` // Custom script // Note: this field may return `null`, indicating that no valid value is obtained. UserScript *string `json:"UserScript,omitempty" name:"UserScript"` }
type NodePoolOption ¶
type NodePoolOption struct { // Whether to add to the node pool. AddToNodePool *bool `json:"AddToNodePool,omitempty" name:"AddToNodePool"` // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // Whether to inherit the node pool configuration. InheritConfigurationFromNodePool *bool `json:"InheritConfigurationFromNodePool,omitempty" name:"InheritConfigurationFromNodePool"` }
type PodLimitsByType ¶
type PodLimitsByType struct { // The number of Pods supported by a TKE shared ENI in non-static IP address mode // Note: this field may return `null`, indicating that no valid value can be obtained. TKERouteENINonStaticIP *int64 `json:"TKERouteENINonStaticIP,omitempty" name:"TKERouteENINonStaticIP"` // The number of Pods supported by a TKE shared ENI in static IP address mode // Note: this field may return `null`, indicating that no valid value can be obtained. TKERouteENIStaticIP *int64 `json:"TKERouteENIStaticIP,omitempty" name:"TKERouteENIStaticIP"` // The number of Pods supported by TKE independent ENI mode // Note: this field may return `null`, indicating that no valid value can be obtained. TKEDirectENI *int64 `json:"TKEDirectENI,omitempty" name:"TKEDirectENI"` }
type PodLimitsInstance ¶
type PodLimitsInstance struct { // The availability zone where the model is located // Note: this field may return `null`, indicating that no valid value can be obtained. Zone *string `json:"Zone,omitempty" name:"Zone"` // The instance family to which the model belongs // Note: this field may return `null`, indicating that no valid value can be obtained. InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"` // Instance type // Note: this field may return `null`, indicating that no valid value can be obtained. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // The maximum number of Pods in the VPC-CNI mode supported by the model // Note: this field may return `null`, indicating that no valid value can be obtained. PodLimits *PodLimitsByType `json:"PodLimits,omitempty" name:"PodLimits"` }
type PrometheusAlertRule ¶
type PrometheusAlertRule struct { // Rule name Name *string `json:"Name,omitempty" name:"Name"` // PromQL contents Rule *string `json:"Rule,omitempty" name:"Rule"` // Additional labels Labels []*Label `json:"Labels,omitempty" name:"Labels"` // Alarm delivery template Template *string `json:"Template,omitempty" name:"Template"` // Duration For *string `json:"For,omitempty" name:"For"` // Rule description // Note: this field may return `null`, indicating that no valid value can be obtained. Describe *string `json:"Describe,omitempty" name:"Describe"` // Refer to annotations in prometheus rule // Note: this field may return `null`, indicating that no valid value can be obtained. Annotations []*Label `json:"Annotations,omitempty" name:"Annotations"` }
type PrometheusAlertRuleDetail ¶
type PrometheusAlertRuleDetail struct { // Rule name Name *string `json:"Name,omitempty" name:"Name"` // Rule list Rules []*PrometheusAlertRule `json:"Rules,omitempty" name:"Rules"` // Last modification time UpdatedAt *string `json:"UpdatedAt,omitempty" name:"UpdatedAt"` // Alarm delivery methods Notification *PrometheusNotification `json:"Notification,omitempty" name:"Notification"` // Alarm rule ID Id *string `json:"Id,omitempty" name:"Id"` // If the alarm is delivered via a template, the TemplateId is the template ID. // Note: this field may return `null`, indicating that no valid value can be obtained. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // Alarm interval // Note: this field may return `null`, indicating that no valid value can be obtained. Interval *string `json:"Interval,omitempty" name:"Interval"` }
type PrometheusGrafanaInfo ¶
type PrometheusGrafanaInfo struct { // Whether it is enabled Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` // Domain name. It will be effective only when the public network access is enabled. Domain *string `json:"Domain,omitempty" name:"Domain"` // The private network or public network address Address *string `json:"Address,omitempty" name:"Address"` // Whether the public network access is enabled. // `close`: the public network access is not enabled // `opening`: the public network access is being enabled // `open`: the public network access is enabled Internet *string `json:"Internet,omitempty" name:"Internet"` // The user name of the grafana admin AdminUser *string `json:"AdminUser,omitempty" name:"AdminUser"` }
type PrometheusNotification ¶
type PrometheusNotification struct { // Whether it is enabled Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` // Convergence time RepeatInterval *string `json:"RepeatInterval,omitempty" name:"RepeatInterval"` // Start time TimeRangeStart *string `json:"TimeRangeStart,omitempty" name:"TimeRangeStart"` // End time TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"` // Alarm delivery method. Valid values: `SMS`, `EMAIL`, `CALL`, and `WECHAT` // It respectively represents SMS, email, phone calls, and WeChat. // Note: this field may return `null`, indicating that no valid value can be obtained. NotifyWay []*string `json:"NotifyWay,omitempty" name:"NotifyWay"` // The alarm recipient group (user group) // Note: this field may return `null`, indicating that no valid value can be obtained. ReceiverGroups []*uint64 `json:"ReceiverGroups,omitempty" name:"ReceiverGroups"` // The alarm sequence of phone calls // This parameter is used when you specify `CALL` for `NotifyWay`. // Note: this field may return `null`, indicating that no valid value can be obtained. PhoneNotifyOrder []*uint64 `json:"PhoneNotifyOrder,omitempty" name:"PhoneNotifyOrder"` // The number of phone call alarms // This parameter is used when you specify `CALL` for `NotifyWay`. // Note: this field may return `null`, indicating that no valid value can be obtained. PhoneCircleTimes *int64 `json:"PhoneCircleTimes,omitempty" name:"PhoneCircleTimes"` // Dialing interval in seconds within one polling // This parameter is used when you specify `CALL` for `NotifyWay`. // Note: this field may return `null`, indicating that no valid value can be obtained. PhoneInnerInterval *int64 `json:"PhoneInnerInterval,omitempty" name:"PhoneInnerInterval"` // Polling interval in seconds // This parameter is used when you specify `CALL` for `NotifyWay`. // Note: this field may return `null`, indicating that no valid value can be obtained. PhoneCircleInterval *int64 `json:"PhoneCircleInterval,omitempty" name:"PhoneCircleInterval"` // Phone call alarm arrival notification // This parameter is used when you specify `CALL` for `NotifyWay`. // Note: this field may return `null`, indicating that no valid value can be obtained. PhoneArriveNotice *bool `json:"PhoneArriveNotice,omitempty" name:"PhoneArriveNotice"` // Channel type. Default value: `amp`. The following channels are supported: // amp // webhook // Note: this field may return `null`, indicating that no valid value can be obtained. Type *string `json:"Type,omitempty" name:"Type"` // This parameter is required if `Type` is `webhook`. // Note: this field may return `null`, indicating that no valid value can be obtained. WebHook *string `json:"WebHook,omitempty" name:"WebHook"` }
type RegionInstance ¶
type RegionInstance struct { // Region name // Note: this field may return null, indicating that no valid values can be obtained. RegionName *string `json:"RegionName,omitempty" name:"RegionName"` // Region ID // Note: this field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Region status // Note: this field may return null, indicating that no valid values can be obtained. Status *string `json:"Status,omitempty" name:"Status"` // Status of region-related features (return all attributes in JSON format) // Note: this field may return null, indicating that no valid values can be obtained. FeatureGates *string `json:"FeatureGates,omitempty" name:"FeatureGates"` // Region abbreviation // Note: this field may return null, indicating that no valid values can be obtained. Alias *string `json:"Alias,omitempty" name:"Alias"` // Whitelisted location // Note: this field may return null, indicating that no valid values can be obtained. Remark *string `json:"Remark,omitempty" name:"Remark"` }
type RemoveNodeFromNodePoolRequest ¶
type RemoveNodeFromNodePoolRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // The node ID list. Up to 100 nodes can be removed at a time. InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewRemoveNodeFromNodePoolRequest ¶
func NewRemoveNodeFromNodePoolRequest() (request *RemoveNodeFromNodePoolRequest)
func (*RemoveNodeFromNodePoolRequest) FromJsonString ¶
func (r *RemoveNodeFromNodePoolRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveNodeFromNodePoolRequest) ToJsonString ¶
func (r *RemoveNodeFromNodePoolRequest) ToJsonString() string
type RemoveNodeFromNodePoolResponse ¶
type RemoveNodeFromNodePoolResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRemoveNodeFromNodePoolResponse ¶
func NewRemoveNodeFromNodePoolResponse() (response *RemoveNodeFromNodePoolResponse)
func (*RemoveNodeFromNodePoolResponse) FromJsonString ¶
func (r *RemoveNodeFromNodePoolResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveNodeFromNodePoolResponse) ToJsonString ¶
func (r *RemoveNodeFromNodePoolResponse) ToJsonString() string
type ResourceDeleteOption ¶
type ResourceDeleteOption struct { // Resource type, for example `CBS` ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` // Specifies the policy to deal with resources in the cluster when the cluster is deleted. It can be `terminate` or `retain`. DeleteMode *string `json:"DeleteMode,omitempty" name:"DeleteMode"` }
type RouteInfo ¶
type RouteInfo struct { // Route table name. RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // Destination CIDR. DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` // Next hop address. GatewayIp *string `json:"GatewayIp,omitempty" name:"GatewayIp"` }
type RouteTableConflict ¶
type RouteTableConflict struct { // Route table type. RouteTableType *string `json:"RouteTableType,omitempty" name:"RouteTableType"` // Route table CIDR. // Note: This field may return null, indicating that no valid values can be obtained. RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` // Route table name. // Note: This field may return null, indicating that no valid values can be obtained. RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // Route table ID. // Note: This field may return null, indicating that no valid values can be obtained. RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` }
type RouteTableInfo ¶
type RouteTableInfo struct { // Route table name. RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // Route table CIDR. RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` // VPC instance ID. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` }
type RunAutomationServiceEnabled ¶
type RunAutomationServiceEnabled struct { // Whether to enable the TAT service. Valid values: <br><li>`TRUE`: yes;<br><li>`FALSE`: no<br><br>Default: `FALSE`. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type RunInstancesForNode ¶
type RunInstancesForNode struct { // Node role. Values: MASTER_ETCD, WORKER. You only need to specify MASTER_ETCD when creating a self-deployed cluster (INDEPENDENT_CLUSTER). NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` // Pass-through parameter for CVM creation in the format of a JSON string. For more information, see the API for [creating a CVM instance](https://intl.cloud.tencent.com/document/product/213/15730?from_cn_redirect=1). Pass any parameter other than common parameters. ImageId will be replaced with the image corresponding to the TKE cluster operating system. RunInstancesPara []*string `json:"RunInstancesPara,omitempty" name:"RunInstancesPara"` // An advanced node setting. This parameter overrides the InstanceAdvancedSettings item set at the cluster level and corresponds to RunInstancesPara in a one-to-one sequential manner (currently valid for the ExtraArgs node custom parameter only). InstanceAdvancedSettingsOverrides []*InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverrides,omitempty" name:"InstanceAdvancedSettingsOverrides"` }
type RunMonitorServiceEnabled ¶
type RunMonitorServiceEnabled struct { // Whether to enable [Cloud Monitor](https://intl.cloud.tencent.com/document/product/248?from_cn_redirect=1). Valid values: <br><li>TRUE: enable Cloud Monitor <br><li>FALSE: do not enable Cloud Monitor <br><br>Default value: TRUE. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type RunSecurityServiceEnabled ¶
type RunSecurityServiceEnabled struct { // Whether to enable [Cloud Security](https://intl.cloud.tencent.com/document/product/296?from_cn_redirect=1). Valid values: <br><li>TRUE: enable Cloud Security <br><li>FALSE: do not enable Cloud Security <br><br>Default value: TRUE. Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type ServiceAccountAuthenticationOptions ¶
type ServiceAccountAuthenticationOptions struct { // service-account-issuer // Note: this field may return `null`, indicating that no valid values can be obtained. Issuer *string `json:"Issuer,omitempty" name:"Issuer"` // service-account-jwks-uri // Note: this field may return `null`, indicating that no valid values can be obtained. JWKSURI *string `json:"JWKSURI,omitempty" name:"JWKSURI"` // If it is set to `true`, a RABC rule is automatically created to allow anonymous users to access `/.well-known/openid-configuration` and `/openid/v1/jwks`. // Note: this field may return `null`, indicating that no valid values can be obtained. AutoCreateDiscoveryAnonymousAuth *bool `json:"AutoCreateDiscoveryAnonymousAuth,omitempty" name:"AutoCreateDiscoveryAnonymousAuth"` }
type SetNodePoolNodeProtectionRequest ¶
type SetNodePoolNodeProtectionRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Node pool ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // Node ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // Whether the node needs removal protection ProtectedFromScaleIn *bool `json:"ProtectedFromScaleIn,omitempty" name:"ProtectedFromScaleIn"` }
func NewSetNodePoolNodeProtectionRequest ¶
func NewSetNodePoolNodeProtectionRequest() (request *SetNodePoolNodeProtectionRequest)
func (*SetNodePoolNodeProtectionRequest) FromJsonString ¶
func (r *SetNodePoolNodeProtectionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetNodePoolNodeProtectionRequest) ToJsonString ¶
func (r *SetNodePoolNodeProtectionRequest) ToJsonString() string
type SetNodePoolNodeProtectionResponse ¶
type SetNodePoolNodeProtectionResponse struct { *tchttp.BaseResponse Response *struct { // ID of the node that has successfully set the removal protection // Note: this field may return `null`, indicating that no valid values can be obtained. SucceedInstanceIds []*string `json:"SucceedInstanceIds,omitempty" name:"SucceedInstanceIds"` // ID of the node that fails to set the removal protection // Note: this field may return `null`, indicating that no valid values can be obtained. FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetNodePoolNodeProtectionResponse ¶
func NewSetNodePoolNodeProtectionResponse() (response *SetNodePoolNodeProtectionResponse)
func (*SetNodePoolNodeProtectionResponse) FromJsonString ¶
func (r *SetNodePoolNodeProtectionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetNodePoolNodeProtectionResponse) ToJsonString ¶
func (r *SetNodePoolNodeProtectionResponse) ToJsonString() string
type TagSpecification ¶
type TaskStepInfo ¶
type TaskStepInfo struct { // Step name Step *string `json:"Step,omitempty" name:"Step"` // Lifecycle // pending: the step is not started // running: the step is in progress // success: the step is completed // failed: the step failed LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // Step start time // Note: this field may return `null`, indicating that no valid value is obtained. StartAt *string `json:"StartAt,omitempty" name:"StartAt"` // Step end time // Note: this field may return `null`, indicating that no valid value is obtained. EndAt *string `json:"EndAt,omitempty" name:"EndAt"` // If the lifecycle of the step is failed, this field will display the error information. // Note: this field may return `null`, indicating that no valid value is obtained. FailedMsg *string `json:"FailedMsg,omitempty" name:"FailedMsg"` }
type UpdateClusterVersionRequest ¶
type UpdateClusterVersionRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // The version that needs to upgrade to DstVersion *string `json:"DstVersion,omitempty" name:"DstVersion"` // Cluster custom parameter ExtraArgs *ClusterExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` // The maximum tolerable number of unavailable pods MaxNotReadyPercent *float64 `json:"MaxNotReadyPercent,omitempty" name:"MaxNotReadyPercent"` // Whether to skip the precheck SkipPreCheck *bool `json:"SkipPreCheck,omitempty" name:"SkipPreCheck"` }
func NewUpdateClusterVersionRequest ¶
func NewUpdateClusterVersionRequest() (request *UpdateClusterVersionRequest)
func (*UpdateClusterVersionRequest) FromJsonString ¶
func (r *UpdateClusterVersionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateClusterVersionRequest) ToJsonString ¶
func (r *UpdateClusterVersionRequest) ToJsonString() string
type UpdateClusterVersionResponse ¶
type UpdateClusterVersionResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateClusterVersionResponse ¶
func NewUpdateClusterVersionResponse() (response *UpdateClusterVersionResponse)
func (*UpdateClusterVersionResponse) FromJsonString ¶
func (r *UpdateClusterVersionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateClusterVersionResponse) ToJsonString ¶
func (r *UpdateClusterVersionResponse) ToJsonString() string
type UpgradeAbleInstancesItem ¶
type UpgradeAbleInstancesItem struct { // Node ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The current version of the node Version *string `json:"Version,omitempty" name:"Version"` // The latest minor version of the current version // Note: this field may return `null`, indicating that no valid value is obtained. LatestVersion *string `json:"LatestVersion,omitempty" name:"LatestVersion"` }
type UpgradeClusterInstancesRequest ¶
type UpgradeClusterInstancesRequest struct { *tchttp.BaseRequest // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // create: starting an upgrade task // pause: pausing the task // resume: continuing the task // abort: stopping the task Operation *string `json:"Operation,omitempty" name:"Operation"` // Upgrade type. It’s only required when `Operation` is set as `create`. // reset: the reinstallation and upgrade of major version // hot: the hot upgrade of minor version // major: in-place upgrade of major version UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"` // List of nodes that need to upgrade InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` // This parameter is used when the node joins the cluster again. Refer to the API of creating one or more cluster nodes. ResetParam *UpgradeNodeResetParam `json:"ResetParam,omitempty" name:"ResetParam"` // Whether to skip the pre-upgrade check of the node SkipPreCheck *bool `json:"SkipPreCheck,omitempty" name:"SkipPreCheck"` // The maximum tolerable proportion of unavailable pods MaxNotReadyPercent *float64 `json:"MaxNotReadyPercent,omitempty" name:"MaxNotReadyPercent"` }
func NewUpgradeClusterInstancesRequest ¶
func NewUpgradeClusterInstancesRequest() (request *UpgradeClusterInstancesRequest)
func (*UpgradeClusterInstancesRequest) FromJsonString ¶
func (r *UpgradeClusterInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeClusterInstancesRequest) ToJsonString ¶
func (r *UpgradeClusterInstancesRequest) ToJsonString() string
type UpgradeClusterInstancesResponse ¶
type UpgradeClusterInstancesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpgradeClusterInstancesResponse ¶
func NewUpgradeClusterInstancesResponse() (response *UpgradeClusterInstancesResponse)
func (*UpgradeClusterInstancesResponse) FromJsonString ¶
func (r *UpgradeClusterInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeClusterInstancesResponse) ToJsonString ¶
func (r *UpgradeClusterInstancesResponse) ToJsonString() string
type UpgradeNodeResetParam ¶
type UpgradeNodeResetParam struct { // Additional parameters set for the instance InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // Node login information. For now, it only supports Password or a single KeyIds LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // Security group to which the instance belongs. This parameter can be obtained from the `sgId` field in the response of `DescribeSecurityGroups`. If this parameter is not specified, the default security group is bound. (Currently, you can only set a single sgId.) SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` }
type VersionInstance ¶
type VersionInstance struct { // Version name // Note: this field may return `null`, indicating that no valid values can be obtained. Name *string `json:"Name,omitempty" name:"Name"` // Version Info // Note: this field may return `null`, indicating that no valid values can be obtained. Version *string `json:"Version,omitempty" name:"Version"` // Remark // Note: this field may return `null`, indicating that no valid values can be obtained. Remark *string `json:"Remark,omitempty" name:"Remark"` }