Documentation
¶
Index ¶
- Constants
- type AcquireClusterAdminRoleRequest
- type AcquireClusterAdminRoleResponse
- type AddExistedInstancesRequest
- type AddExistedInstancesResponse
- type AddNodeToNodePoolRequest
- type AddNodeToNodePoolResponse
- 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) 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) CreateClusterRoute(request *CreateClusterRouteRequest) (response *CreateClusterRouteResponse, err error)
- func (c *Client) CreateClusterRouteTable(request *CreateClusterRouteTableRequest) (response *CreateClusterRouteTableResponse, err error)
- func (c *Client) CreateEKSCluster(request *CreateEKSClusterRequest) (response *CreateEKSClusterResponse, err error)
- func (c *Client) CreatePrometheusDashboard(request *CreatePrometheusDashboardRequest) (response *CreatePrometheusDashboardResponse, err error)
- func (c *Client) CreatePrometheusTemplate(request *CreatePrometheusTemplateRequest) (response *CreatePrometheusTemplateResponse, 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) DeleteEKSCluster(request *DeleteEKSClusterRequest) (response *DeleteEKSClusterResponse, err error)
- func (c *Client) DeletePrometheusTemplate(request *DeletePrometheusTemplateRequest) (response *DeletePrometheusTemplateResponse, err error)
- func (c *Client) DeletePrometheusTemplateSync(request *DeletePrometheusTemplateSyncRequest) (response *DeletePrometheusTemplateSyncResponse, 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) 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) DescribeEKSClusterCredential(request *DescribeEKSClusterCredentialRequest) (response *DescribeEKSClusterCredentialResponse, err error)
- func (c *Client) DescribeEKSClusters(request *DescribeEKSClustersRequest) (response *DescribeEKSClustersResponse, 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) DescribePrometheusAgentInstances(request *DescribePrometheusAgentInstancesRequest) (response *DescribePrometheusAgentInstancesResponse, err error)
- func (c *Client) DescribePrometheusAgents(request *DescribePrometheusAgentsRequest) (response *DescribePrometheusAgentsResponse, err error)
- func (c *Client) DescribePrometheusAlertHistory(request *DescribePrometheusAlertHistoryRequest) (response *DescribePrometheusAlertHistoryResponse, err error)
- func (c *Client) DescribePrometheusAlertRule(request *DescribePrometheusAlertRuleRequest) (response *DescribePrometheusAlertRuleResponse, err error)
- func (c *Client) DescribePrometheusOverviews(request *DescribePrometheusOverviewsRequest) (response *DescribePrometheusOverviewsResponse, err error)
- func (c *Client) DescribePrometheusTargets(request *DescribePrometheusTargetsRequest) (response *DescribePrometheusTargetsResponse, err error)
- func (c *Client) DescribePrometheusTemplateSync(request *DescribePrometheusTemplateSyncRequest) (response *DescribePrometheusTemplateSyncResponse, err error)
- func (c *Client) DescribePrometheusTemplates(request *DescribePrometheusTemplatesRequest) (response *DescribePrometheusTemplatesResponse, 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) 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) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error)
- func (c *Client) ModifyClusterNodePool(request *ModifyClusterNodePoolRequest) (response *ModifyClusterNodePoolResponse, err error)
- func (c *Client) ModifyNodePoolDesiredCapacityAboutAsg(request *ModifyNodePoolDesiredCapacityAboutAsgRequest) (response *ModifyNodePoolDesiredCapacityAboutAsgResponse, err error)
- func (c *Client) ModifyPrometheusTemplate(request *ModifyPrometheusTemplateRequest) (response *ModifyPrometheusTemplateResponse, 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) SyncPrometheusTemplate(request *SyncPrometheusTemplateRequest) (response *SyncPrometheusTemplateResponse, err error)
- func (c *Client) UpdateClusterVersion(request *UpdateClusterVersionRequest) (response *UpdateClusterVersionResponse, err error)
- func (c *Client) UpdateEKSCluster(request *UpdateEKSClusterRequest) (response *UpdateEKSClusterResponse, 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 ClusterCredential
- type ClusterExtraArgs
- type ClusterInternalLB
- type ClusterNetworkSettings
- type ClusterPublicLB
- type ClusterVersion
- 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 CreateClusterRouteRequest
- type CreateClusterRouteResponse
- type CreateClusterRouteTableRequest
- type CreateClusterRouteTableResponse
- type CreateEKSClusterRequest
- type CreateEKSClusterResponse
- type CreatePrometheusDashboardRequest
- type CreatePrometheusDashboardResponse
- type CreatePrometheusTemplateRequest
- type CreatePrometheusTemplateResponse
- 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 DeleteEKSClusterRequest
- type DeleteEKSClusterResponse
- type DeletePrometheusTemplateRequest
- type DeletePrometheusTemplateResponse
- type DeletePrometheusTemplateSyncRequest
- type DeletePrometheusTemplateSyncResponse
- type DescribeAvailableClusterVersionRequest
- type DescribeAvailableClusterVersionResponse
- type DescribeClusterAsGroupOptionRequest
- type DescribeClusterAsGroupOptionResponse
- type DescribeClusterAsGroupsRequest
- type DescribeClusterAsGroupsResponse
- 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 DescribeEKSClusterCredentialRequest
- type DescribeEKSClusterCredentialResponse
- type DescribeEKSClustersRequest
- type DescribeEKSClustersResponse
- type DescribeExistedInstancesRequest
- type DescribeExistedInstancesResponse
- type DescribeImagesRequest
- type DescribeImagesResponse
- type DescribePrometheusAgentInstancesRequest
- type DescribePrometheusAgentInstancesResponse
- type DescribePrometheusAgentsRequest
- type DescribePrometheusAgentsResponse
- type DescribePrometheusAlertHistoryRequest
- type DescribePrometheusAlertHistoryResponse
- type DescribePrometheusAlertRuleRequest
- type DescribePrometheusAlertRuleResponse
- type DescribePrometheusOverviewsRequest
- type DescribePrometheusOverviewsResponse
- type DescribePrometheusTargetsRequest
- type DescribePrometheusTargetsResponse
- type DescribePrometheusTemplateSyncRequest
- type DescribePrometheusTemplateSyncResponse
- type DescribePrometheusTemplatesRequest
- type DescribePrometheusTemplatesResponse
- type DescribeRegionsRequest
- type DescribeRegionsResponse
- type DescribeRouteTableConflictsRequest
- type DescribeRouteTableConflictsResponse
- type DnsServerConf
- type EksCluster
- type EnhancedService
- type ExistedInstance
- type ExistedInstancesForNode
- type ExistedInstancesPara
- type ExtensionAddon
- type Filter
- type GetUpgradeInstanceProgressRequest
- type GetUpgradeInstanceProgressResponse
- type IPAddress
- 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 ModifyClusterEndpointSPRequest
- type ModifyClusterEndpointSPResponse
- type ModifyClusterNodePoolRequest
- type ModifyClusterNodePoolResponse
- type ModifyNodePoolDesiredCapacityAboutAsgRequest
- type ModifyNodePoolDesiredCapacityAboutAsgResponse
- type ModifyPrometheusTemplateRequest
- type ModifyPrometheusTemplateResponse
- type NodeCountSummary
- type NodePool
- type NodePoolOption
- type PrometheusAgentOverview
- type PrometheusAlertHistoryItem
- type PrometheusAlertRule
- type PrometheusAlertRuleDetail
- type PrometheusConfigItem
- type PrometheusInstanceOverview
- type PrometheusJobTargets
- type PrometheusNotification
- type PrometheusTarget
- type PrometheusTemplate
- type PrometheusTemplateModify
- type PrometheusTemplateSyncTarget
- type RegionInstance
- type RemoveNodeFromNodePoolRequest
- type RemoveNodeFromNodePoolResponse
- type ResourceDeleteOption
- type RouteInfo
- type RouteTableConflict
- type RouteTableInfo
- type RunInstancesForNode
- type RunMonitorServiceEnabled
- type RunSecurityServiceEnabled
- type SetNodePoolNodeProtectionRequest
- type SetNodePoolNodeProtectionResponse
- type SyncPrometheusTemplateRequest
- type SyncPrometheusTemplateResponse
- type Tag
- type TagSpecification
- type Taint
- type TaskStepInfo
- type UpdateClusterVersionRequest
- type UpdateClusterVersionResponse
- type UpdateEKSClusterRequest
- type UpdateEKSClusterResponse
- type UpgradeAbleInstancesItem
- type UpgradeClusterInstancesRequest
- type UpgradeClusterInstancesResponse
- type UpgradeNodeResetParam
Constants ¶
const APIVersion = "2018-05-25"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcquireClusterAdminRoleRequest ¶
type AcquireClusterAdminRoleRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewAcquireClusterAdminRoleRequest ¶
func NewAcquireClusterAdminRoleRequest() (request *AcquireClusterAdminRoleRequest)
func (*AcquireClusterAdminRoleRequest) FromJsonString ¶
func (r *AcquireClusterAdminRoleRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 实例列表,不支持竞价实例 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 实例额外需要设置参数信息(默认值) InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // 节点登录信息(目前仅支持使用Password或者单个KeyIds) LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // 重装系统时,可以指定修改实例的HostName(集群为HostName模式时,此参数必传,规则名称除不支持大写字符外与[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口HostName一致) HostName *string `json:"HostName,omitempty" name:"HostName"` // 实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。(目前仅支持设置单个sgId) SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` // 节点池选项 NodePool *NodePoolOption `json:"NodePool,omitempty" name:"NodePool"` // 校验规则相关选项,可配置跳过某些校验规则。目前支持GlobalRouteCIDRCheck(跳过GlobalRouter的相关校验),VpcCniCIDRCheck(跳过VpcCni相关校验) SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions" list` }
func NewAddExistedInstancesRequest ¶
func NewAddExistedInstancesRequest() (request *AddExistedInstancesRequest)
func (*AddExistedInstancesRequest) FromJsonString ¶
func (r *AddExistedInstancesRequest) FromJsonString(s string) error
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 { // 失败的节点ID // 注意:此字段可能返回 null,表示取不到有效值。 FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds" list` // 成功的节点ID // 注意:此字段可能返回 null,表示取不到有效值。 SuccInstanceIds []*string `json:"SuccInstanceIds,omitempty" name:"SuccInstanceIds" list` // 超时未返回出来节点的ID(可能失败,也可能成功) // 注意:此字段可能返回 null,表示取不到有效值。 TimeoutInstanceIds []*string `json:"TimeoutInstanceIds,omitempty" name:"TimeoutInstanceIds" list` // 失败的节点的失败原因 // 注意:此字段可能返回 null,表示取不到有效值。 FailedReasons []*string `json:"FailedReasons,omitempty" name:"FailedReasons" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 节点池id NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 节点id InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewAddNodeToNodePoolRequest ¶
func NewAddNodeToNodePoolRequest() (request *AddNodeToNodePoolRequest)
func (*AddNodeToNodePoolRequest) FromJsonString ¶
func (r *AddNodeToNodePoolRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 AutoScalingGroupRange ¶
type AutoscalingAdded ¶
type AutoscalingAdded struct { // 正在加入中的节点数量 Joining *int64 `json:"Joining,omitempty" name:"Joining"` // 初始化中的节点数量 Initializing *int64 `json:"Initializing,omitempty" name:"Initializing"` // 正常的节点数量 Normal *int64 `json:"Normal,omitempty" name:"Normal"` // 节点总数 Total *int64 `json:"Total,omitempty" name:"Total"` }
type CheckInstancesUpgradeAbleRequest ¶
type CheckInstancesUpgradeAbleRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 节点列表,空为全部节点 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 升级类型 UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"` // 分页Offset Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 分页Limit Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 过滤 Filter []*Filter `json:"Filter,omitempty" name:"Filter" list` }
func NewCheckInstancesUpgradeAbleRequest ¶
func NewCheckInstancesUpgradeAbleRequest() (request *CheckInstancesUpgradeAbleRequest)
func (*CheckInstancesUpgradeAbleRequest) FromJsonString ¶
func (r *CheckInstancesUpgradeAbleRequest) FromJsonString(s string) error
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 { // 集群master当前小版本 ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` // 集群master对应的大版本目前最新小版本 LatestVersion *string `json:"LatestVersion,omitempty" name:"LatestVersion"` // 可升级节点列表 // 注意:此字段可能返回 null,表示取不到有效值。 UpgradeAbleInstances []*UpgradeAbleInstancesItem `json:"UpgradeAbleInstances,omitempty" name:"UpgradeAbleInstances" list` // 总数 // 注意:此字段可能返回 null,表示取不到有效值。 Total *int64 `json:"Total,omitempty" name:"Total"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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.Credential, 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)
通过此接口,可以获取集群的tke:admin的ClusterRole,即管理员角色,可以用于CAM侧高权限的用户,通过CAM策略给予子账户此接口权限,进而可以通过此接口直接获取到kubernetes集群内的管理员角色。
func (*Client) AddExistedInstances ¶
func (c *Client) AddExistedInstances(request *AddExistedInstancesRequest) (response *AddExistedInstancesResponse, err error)
添加已经存在的实例到集群
func (*Client) AddNodeToNodePool ¶
func (c *Client) AddNodeToNodePool(request *AddNodeToNodePoolRequest) (response *AddNodeToNodePoolResponse, err error)
将集群内节点移入节点池
func (*Client) CheckInstancesUpgradeAble ¶
func (c *Client) CheckInstancesUpgradeAble(request *CheckInstancesUpgradeAbleRequest) (response *CheckInstancesUpgradeAbleResponse, err error)
检查给定节点列表中哪些是可升级的
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)
创建集群
func (*Client) CreateClusterAsGroup ¶
func (c *Client) CreateClusterAsGroup(request *CreateClusterAsGroupRequest) (response *CreateClusterAsGroupResponse, err error)
为已经存在的集群创建伸缩组
func (*Client) CreateClusterEndpoint ¶
func (c *Client) CreateClusterEndpoint(request *CreateClusterEndpointRequest) (response *CreateClusterEndpointResponse, err error)
创建集群访问端口(独立集群开启内网/外网访问,托管集群支持开启内网访问)
func (*Client) CreateClusterEndpointVip ¶
func (c *Client) CreateClusterEndpointVip(request *CreateClusterEndpointVipRequest) (response *CreateClusterEndpointVipResponse, err error)
创建托管集群外网访问端口(老的方式,仅支持托管集群外网端口)
func (*Client) CreateClusterInstances ¶
func (c *Client) CreateClusterInstances(request *CreateClusterInstancesRequest) (response *CreateClusterInstancesResponse, err error)
扩展(新建)集群节点
func (*Client) CreateClusterNodePool ¶
func (c *Client) CreateClusterNodePool(request *CreateClusterNodePoolRequest) (response *CreateClusterNodePoolResponse, err error)
创建节点池
func (*Client) CreateClusterNodePoolFromExistingAsg ¶
func (c *Client) CreateClusterNodePoolFromExistingAsg(request *CreateClusterNodePoolFromExistingAsgRequest) (response *CreateClusterNodePoolFromExistingAsgResponse, err error)
从伸缩组创建节点池
func (*Client) CreateClusterRoute ¶
func (c *Client) CreateClusterRoute(request *CreateClusterRouteRequest) (response *CreateClusterRouteResponse, err error)
创建集群路由
func (*Client) CreateClusterRouteTable ¶
func (c *Client) CreateClusterRouteTable(request *CreateClusterRouteTableRequest) (response *CreateClusterRouteTableResponse, err error)
创建集群路由表
func (*Client) CreateEKSCluster ¶
func (c *Client) CreateEKSCluster(request *CreateEKSClusterRequest) (response *CreateEKSClusterResponse, err error)
创建弹性集群
func (*Client) CreatePrometheusDashboard ¶
func (c *Client) CreatePrometheusDashboard(request *CreatePrometheusDashboardRequest) (response *CreatePrometheusDashboardResponse, err error)
创建grafana监控面板
func (*Client) CreatePrometheusTemplate ¶
func (c *Client) CreatePrometheusTemplate(request *CreatePrometheusTemplateRequest) (response *CreatePrometheusTemplateResponse, err error)
创建一个云原生Prometheus模板实例
func (*Client) DeleteCluster ¶
func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)
删除集群(YUNAPI V3版本)
func (*Client) DeleteClusterAsGroups ¶
func (c *Client) DeleteClusterAsGroups(request *DeleteClusterAsGroupsRequest) (response *DeleteClusterAsGroupsResponse, err error)
删除集群伸缩组
func (*Client) DeleteClusterEndpoint ¶
func (c *Client) DeleteClusterEndpoint(request *DeleteClusterEndpointRequest) (response *DeleteClusterEndpointResponse, err error)
删除集群访问端口(独立集群开启内网/外网访问,托管集群支持开启内网访问)
func (*Client) DeleteClusterEndpointVip ¶
func (c *Client) DeleteClusterEndpointVip(request *DeleteClusterEndpointVipRequest) (response *DeleteClusterEndpointVipResponse, err error)
删除托管集群外网访问端口(老的方式,仅支持托管集群外网端口)
func (*Client) DeleteClusterInstances ¶
func (c *Client) DeleteClusterInstances(request *DeleteClusterInstancesRequest) (response *DeleteClusterInstancesResponse, err error)
删除集群中的实例
func (*Client) DeleteClusterNodePool ¶
func (c *Client) DeleteClusterNodePool(request *DeleteClusterNodePoolRequest) (response *DeleteClusterNodePoolResponse, err error)
删除节点池
func (*Client) DeleteClusterRoute ¶
func (c *Client) DeleteClusterRoute(request *DeleteClusterRouteRequest) (response *DeleteClusterRouteResponse, err error)
删除集群路由
func (*Client) DeleteClusterRouteTable ¶
func (c *Client) DeleteClusterRouteTable(request *DeleteClusterRouteTableRequest) (response *DeleteClusterRouteTableResponse, err error)
删除集群路由表
func (*Client) DeleteEKSCluster ¶
func (c *Client) DeleteEKSCluster(request *DeleteEKSClusterRequest) (response *DeleteEKSClusterResponse, err error)
删除弹性集群(yunapiv3)
func (*Client) DeletePrometheusTemplate ¶
func (c *Client) DeletePrometheusTemplate(request *DeletePrometheusTemplateRequest) (response *DeletePrometheusTemplateResponse, err error)
删除一个云原生Prometheus配置模板
func (*Client) DeletePrometheusTemplateSync ¶
func (c *Client) DeletePrometheusTemplateSync(request *DeletePrometheusTemplateSyncRequest) (response *DeletePrometheusTemplateSyncResponse, err error)
取消模板同步,这将会删除目标中该模板所生产的配置
func (*Client) DescribeAvailableClusterVersion ¶
func (c *Client) DescribeAvailableClusterVersion(request *DescribeAvailableClusterVersionRequest) (response *DescribeAvailableClusterVersionResponse, err error)
获取集群可以升级的所有版本
func (*Client) DescribeClusterAsGroupOption ¶
func (c *Client) DescribeClusterAsGroupOption(request *DescribeClusterAsGroupOptionRequest) (response *DescribeClusterAsGroupOptionResponse, err error)
集群弹性伸缩配置
func (*Client) DescribeClusterAsGroups ¶
func (c *Client) DescribeClusterAsGroups(request *DescribeClusterAsGroupsRequest) (response *DescribeClusterAsGroupsResponse, err error)
集群关联的伸缩组列表
func (*Client) DescribeClusterEndpointStatus ¶
func (c *Client) DescribeClusterEndpointStatus(request *DescribeClusterEndpointStatusRequest) (response *DescribeClusterEndpointStatusResponse, err error)
查询集群访问端口状态(独立集群开启内网/外网访问,托管集群支持开启内网访问)
func (*Client) DescribeClusterEndpointVipStatus ¶
func (c *Client) DescribeClusterEndpointVipStatus(request *DescribeClusterEndpointVipStatusRequest) (response *DescribeClusterEndpointVipStatusResponse, err error)
查询集群开启端口流程状态(仅支持托管集群外网端口)
func (*Client) DescribeClusterInstances ¶
func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)
查询集群下节点实例信息
func (*Client) DescribeClusterKubeconfig ¶
func (c *Client) DescribeClusterKubeconfig(request *DescribeClusterKubeconfigRequest) (response *DescribeClusterKubeconfigResponse, err error)
获取集群的kubeconfig文件,不同子账户获取自己的kubeconfig文件,该文件中有每个子账户自己的kube-apiserver的客户端证书,默认首次调此接口时候创建客户端证书,时效20年,未授予任何权限,如果是集群所有者或者主账户,则默认是cluster-admin权限。
func (*Client) DescribeClusterNodePoolDetail ¶
func (c *Client) DescribeClusterNodePoolDetail(request *DescribeClusterNodePoolDetailRequest) (response *DescribeClusterNodePoolDetailResponse, err error)
查询节点池详情
func (*Client) DescribeClusterNodePools ¶
func (c *Client) DescribeClusterNodePools(request *DescribeClusterNodePoolsRequest) (response *DescribeClusterNodePoolsResponse, err error)
查询节点池列表
func (*Client) DescribeClusterRouteTables ¶
func (c *Client) DescribeClusterRouteTables(request *DescribeClusterRouteTablesRequest) (response *DescribeClusterRouteTablesResponse, err error)
查询集群路由表
func (*Client) DescribeClusterRoutes ¶
func (c *Client) DescribeClusterRoutes(request *DescribeClusterRoutesRequest) (response *DescribeClusterRoutesResponse, err error)
查询集群路由
func (*Client) DescribeClusterSecurity ¶
func (c *Client) DescribeClusterSecurity(request *DescribeClusterSecurityRequest) (response *DescribeClusterSecurityResponse, err error)
集群的密钥信息
func (*Client) DescribeClusters ¶
func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
查询集群列表
func (*Client) DescribeEKSClusterCredential ¶
func (c *Client) DescribeEKSClusterCredential(request *DescribeEKSClusterCredentialRequest) (response *DescribeEKSClusterCredentialResponse, err error)
获取弹性容器集群的接入认证信息
func (*Client) DescribeEKSClusters ¶
func (c *Client) DescribeEKSClusters(request *DescribeEKSClustersRequest) (response *DescribeEKSClustersResponse, err error)
查询弹性集群列表
func (*Client) DescribeExistedInstances ¶
func (c *Client) DescribeExistedInstances(request *DescribeExistedInstancesRequest) (response *DescribeExistedInstancesResponse, err error)
查询已经存在的节点,判断是否可以加入集群
func (*Client) DescribeImages ¶
func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error)
获取镜像信息
func (*Client) DescribePrometheusAgentInstances ¶
func (c *Client) DescribePrometheusAgentInstances(request *DescribePrometheusAgentInstancesRequest) (response *DescribePrometheusAgentInstancesResponse, err error)
获取关联目标集群的实例列表
func (*Client) DescribePrometheusAgents ¶
func (c *Client) DescribePrometheusAgents(request *DescribePrometheusAgentsRequest) (response *DescribePrometheusAgentsResponse, err error)
获取被关联集群列表
func (*Client) DescribePrometheusAlertHistory ¶
func (c *Client) DescribePrometheusAlertHistory(request *DescribePrometheusAlertHistoryRequest) (response *DescribePrometheusAlertHistoryResponse, err error)
获取告警历史
func (*Client) DescribePrometheusAlertRule ¶
func (c *Client) DescribePrometheusAlertRule(request *DescribePrometheusAlertRuleRequest) (response *DescribePrometheusAlertRuleResponse, err error)
获取告警规则列表
func (*Client) DescribePrometheusOverviews ¶
func (c *Client) DescribePrometheusOverviews(request *DescribePrometheusOverviewsRequest) (response *DescribePrometheusOverviewsResponse, err error)
获取实例列表
func (*Client) DescribePrometheusTargets ¶
func (c *Client) DescribePrometheusTargets(request *DescribePrometheusTargetsRequest) (response *DescribePrometheusTargetsResponse, err error)
获取targets信息
func (*Client) DescribePrometheusTemplateSync ¶
func (c *Client) DescribePrometheusTemplateSync(request *DescribePrometheusTemplateSyncRequest) (response *DescribePrometheusTemplateSyncResponse, err error)
获取模板同步信息
func (*Client) DescribePrometheusTemplates ¶
func (c *Client) DescribePrometheusTemplates(request *DescribePrometheusTemplatesRequest) (response *DescribePrometheusTemplatesResponse, err error)
拉取模板列表,默认模板将总是在最前面
func (*Client) DescribeRegions ¶
func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
获取容器服务支持的所有地域
func (*Client) DescribeRouteTableConflicts ¶
func (c *Client) DescribeRouteTableConflicts(request *DescribeRouteTableConflictsRequest) (response *DescribeRouteTableConflictsResponse, err error)
查询路由表冲突列表
func (*Client) GetUpgradeInstanceProgress ¶
func (c *Client) GetUpgradeInstanceProgress(request *GetUpgradeInstanceProgressRequest) (response *GetUpgradeInstanceProgressResponse, err error)
获得节点升级当前的进度
func (*Client) ModifyClusterAsGroupAttribute ¶
func (c *Client) ModifyClusterAsGroupAttribute(request *ModifyClusterAsGroupAttributeRequest) (response *ModifyClusterAsGroupAttributeResponse, err error)
修改集群伸缩组属性
func (*Client) ModifyClusterAsGroupOptionAttribute ¶
func (c *Client) ModifyClusterAsGroupOptionAttribute(request *ModifyClusterAsGroupOptionAttributeRequest) (response *ModifyClusterAsGroupOptionAttributeResponse, err error)
修改集群弹性伸缩属性
func (*Client) ModifyClusterAttribute ¶
func (c *Client) ModifyClusterAttribute(request *ModifyClusterAttributeRequest) (response *ModifyClusterAttributeResponse, err error)
修改集群属性
func (*Client) ModifyClusterEndpointSP ¶
func (c *Client) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error)
修改托管集群外网端口的安全策略(老的方式,仅支持托管集群外网端口)
func (*Client) ModifyClusterNodePool ¶
func (c *Client) ModifyClusterNodePool(request *ModifyClusterNodePoolRequest) (response *ModifyClusterNodePoolResponse, err error)
编辑节点池
func (*Client) ModifyNodePoolDesiredCapacityAboutAsg ¶
func (c *Client) ModifyNodePoolDesiredCapacityAboutAsg(request *ModifyNodePoolDesiredCapacityAboutAsgRequest) (response *ModifyNodePoolDesiredCapacityAboutAsgResponse, err error)
修改节点池关联伸缩组的期望实例数
func (*Client) ModifyPrometheusTemplate ¶
func (c *Client) ModifyPrometheusTemplate(request *ModifyPrometheusTemplateRequest) (response *ModifyPrometheusTemplateResponse, err error)
修改模板内容
func (*Client) RemoveNodeFromNodePool ¶
func (c *Client) RemoveNodeFromNodePool(request *RemoveNodeFromNodePoolRequest) (response *RemoveNodeFromNodePoolResponse, err error)
移出节点池节点,但保留在集群内
func (*Client) SetNodePoolNodeProtection ¶
func (c *Client) SetNodePoolNodeProtection(request *SetNodePoolNodeProtectionRequest) (response *SetNodePoolNodeProtectionResponse, err error)
仅能设置节点池中处于伸缩组的节点
func (*Client) SyncPrometheusTemplate ¶
func (c *Client) SyncPrometheusTemplate(request *SyncPrometheusTemplateRequest) (response *SyncPrometheusTemplateResponse, err error)
同步模板到实例或者集群
func (*Client) UpdateClusterVersion ¶
func (c *Client) UpdateClusterVersion(request *UpdateClusterVersionRequest) (response *UpdateClusterVersionResponse, err error)
升级集群 Master 组件到指定版本
func (*Client) UpdateEKSCluster ¶
func (c *Client) UpdateEKSCluster(request *UpdateEKSClusterRequest) (response *UpdateEKSClusterResponse, err error)
修改弹性集群名称等属性
func (*Client) UpgradeClusterInstances ¶
func (c *Client) UpgradeClusterInstances(request *UpgradeClusterInstancesRequest) (response *UpgradeClusterInstancesResponse, err error)
给集群的一批work节点进行升级
type Cluster ¶
type Cluster struct { // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群名称 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // 集群描述 ClusterDescription *string `json:"ClusterDescription,omitempty" name:"ClusterDescription"` // 集群版本(默认值为1.10.5) ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` // 集群系统。centos7.2x86_64 或者 ubuntu16.04.1 LTSx86_64,默认取值为ubuntu16.04.1 LTSx86_64 ClusterOs *string `json:"ClusterOs,omitempty" name:"ClusterOs"` // 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // 集群网络相关参数 ClusterNetworkSettings *ClusterNetworkSettings `json:"ClusterNetworkSettings,omitempty" name:"ClusterNetworkSettings"` // 集群当前node数量 ClusterNodeNum *uint64 `json:"ClusterNodeNum,omitempty" name:"ClusterNodeNum"` // 集群所属的项目ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // 标签描述列表。 // 注意:此字段可能返回 null,表示取不到有效值。 TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification" list` // 集群状态 (Running 运行中 Creating 创建中 Abnormal 异常 ) ClusterStatus *string `json:"ClusterStatus,omitempty" name:"ClusterStatus"` // 集群属性(包括集群不同属性的MAP,属性字段包括NodeNameType (lan-ip模式和hostname 模式,默认无lan-ip模式)) // 注意:此字段可能返回 null,表示取不到有效值。 Property *string `json:"Property,omitempty" name:"Property"` // 集群当前master数量 ClusterMaterNodeNum *uint64 `json:"ClusterMaterNodeNum,omitempty" name:"ClusterMaterNodeNum"` // 集群使用镜像id // 注意:此字段可能返回 null,表示取不到有效值。 ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // OsCustomizeType 系统定制类型 // 注意:此字段可能返回 null,表示取不到有效值。 OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` // 集群运行环境docker或container // 注意:此字段可能返回 null,表示取不到有效值。 ContainerRuntime *string `json:"ContainerRuntime,omitempty" name:"ContainerRuntime"` // 创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // 删除保护开关 // 注意:此字段可能返回 null,表示取不到有效值。 DeletionProtection *bool `json:"DeletionProtection,omitempty" name:"DeletionProtection"` }
type ClusterAdvancedSettings ¶
type ClusterAdvancedSettings struct { // 是否启用IPVS IPVS *bool `json:"IPVS,omitempty" name:"IPVS"` // 是否启用集群节点自动扩缩容(创建集群流程不支持开启此功能) AsEnabled *bool `json:"AsEnabled,omitempty" name:"AsEnabled"` // 集群使用的runtime类型,包括"docker"和"containerd"两种类型,默认为"docker" ContainerRuntime *string `json:"ContainerRuntime,omitempty" name:"ContainerRuntime"` // 集群中节点NodeName类型(包括 hostname,lan-ip两种形式,默认为lan-ip。如果开启了hostname模式,创建节点时需要设置HostName参数,并且InstanceName需要和HostName一致) NodeNameType *string `json:"NodeNameType,omitempty" name:"NodeNameType"` // 集群自定义参数 ExtraArgs *ClusterExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` // 集群网络类型(包括GR(全局路由)和VPC-CNI两种模式,默认为GR。 NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` // 集群VPC-CNI模式是否为非固定IP,默认: FALSE 固定IP。 IsNonStaticIpMode *bool `json:"IsNonStaticIpMode,omitempty" name:"IsNonStaticIpMode"` // 是否启用集群删除保护 DeletionProtection *bool `json:"DeletionProtection,omitempty" name:"DeletionProtection"` // 集群的网络代理模型,目前tke集群支持的网络代理模式有三种:iptables,ipvs,ipvs-bpf,此参数仅在使用ipvs-bpf模式时使用,三种网络模式的参数设置关系如下: // iptables模式:IPVS和KubeProxyMode都不设置 // ipvs模式: 设置IPVS为true, KubeProxyMode不设置 // ipvs-bpf模式: 设置KubeProxyMode为kube-proxy-bpf // 使用ipvs-bpf的网络模式需要满足以下条件: // 1. 集群版本必须为1.14及以上; // 2. 系统镜像必须是: Tencent Linux 2.4; KubeProxyMode *string `json:"KubeProxyMode,omitempty" name:"KubeProxyMode"` // 是否开启审计开关 AuditEnabled *bool `json:"AuditEnabled,omitempty" name:"AuditEnabled"` // 审计日志上传到的logset日志集 AuditLogsetId *string `json:"AuditLogsetId,omitempty" name:"AuditLogsetId"` // 审计日志上传到的topic AuditLogTopicId *string `json:"AuditLogTopicId,omitempty" name:"AuditLogTopicId"` // 区分单网卡多IP模式和独立网卡模式 VpcCniType *string `json:"VpcCniType,omitempty" name:"VpcCniType"` // 运行时版本 RuntimeVersion *string `json:"RuntimeVersion,omitempty" name:"RuntimeVersion"` // 是否开节点podCIDR大小的自定义模式 EnableCustomizedPodCIDR *bool `json:"EnableCustomizedPodCIDR,omitempty" name:"EnableCustomizedPodCIDR"` // 自定义模式下的基础pod数量 BasePodNumber *int64 `json:"BasePodNumber,omitempty" name:"BasePodNumber"` }
type ClusterAsGroup ¶
type ClusterAsGroup struct { // 伸缩组ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // 伸缩组状态(开启 enabled 开启中 enabling 关闭 disabled 关闭中 disabling 更新中 updating 删除中 deleting 开启缩容中 scaleDownEnabling 关闭缩容中 scaleDownDisabling) Status *string `json:"Status,omitempty" name:"Status"` // 节点是否设置成不可调度 // 注意:此字段可能返回 null,表示取不到有效值。 IsUnschedulable *bool `json:"IsUnschedulable,omitempty" name:"IsUnschedulable"` // 伸缩组的label列表 // 注意:此字段可能返回 null,表示取不到有效值。 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // 创建时间 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` }
type ClusterAsGroupAttribute ¶
type ClusterAsGroupAttribute struct { // 伸缩组ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // 是否开启 AutoScalingGroupEnabled *bool `json:"AutoScalingGroupEnabled,omitempty" name:"AutoScalingGroupEnabled"` // 伸缩组最大最小实例数 AutoScalingGroupRange *AutoScalingGroupRange `json:"AutoScalingGroupRange,omitempty" name:"AutoScalingGroupRange"` }
type ClusterAsGroupOption ¶
type ClusterAsGroupOption struct { // 是否开启缩容 // 注意:此字段可能返回 null,表示取不到有效值。 IsScaleDownEnabled *bool `json:"IsScaleDownEnabled,omitempty" name:"IsScaleDownEnabled"` // 多伸缩组情况下扩容选择算法(random 随机选择,most-pods 最多类型的Pod least-waste 最少的资源浪费,默认为random) // 注意:此字段可能返回 null,表示取不到有效值。 Expander *string `json:"Expander,omitempty" name:"Expander"` // 最大并发缩容数 // 注意:此字段可能返回 null,表示取不到有效值。 MaxEmptyBulkDelete *int64 `json:"MaxEmptyBulkDelete,omitempty" name:"MaxEmptyBulkDelete"` // 集群扩容后多少分钟开始判断缩容(默认为10分钟) // 注意:此字段可能返回 null,表示取不到有效值。 ScaleDownDelay *int64 `json:"ScaleDownDelay,omitempty" name:"ScaleDownDelay"` // 节点连续空闲多少分钟后被缩容(默认为 10分钟) // 注意:此字段可能返回 null,表示取不到有效值。 ScaleDownUnneededTime *int64 `json:"ScaleDownUnneededTime,omitempty" name:"ScaleDownUnneededTime"` // 节点资源使用量低于多少(百分比)时认为空闲(默认: 50(百分比)) // 注意:此字段可能返回 null,表示取不到有效值。 ScaleDownUtilizationThreshold *int64 `json:"ScaleDownUtilizationThreshold,omitempty" name:"ScaleDownUtilizationThreshold"` // 含有本地存储Pod的节点是否不缩容(默认: FALSE) // 注意:此字段可能返回 null,表示取不到有效值。 SkipNodesWithLocalStorage *bool `json:"SkipNodesWithLocalStorage,omitempty" name:"SkipNodesWithLocalStorage"` // 含有kube-system namespace下非DaemonSet管理的Pod的节点是否不缩容 (默认: FALSE) // 注意:此字段可能返回 null,表示取不到有效值。 SkipNodesWithSystemPods *bool `json:"SkipNodesWithSystemPods,omitempty" name:"SkipNodesWithSystemPods"` // 计算资源使用量时是否默认忽略DaemonSet的实例(默认值: False,不忽略) // 注意:此字段可能返回 null,表示取不到有效值。 IgnoreDaemonSetsUtilization *bool `json:"IgnoreDaemonSetsUtilization,omitempty" name:"IgnoreDaemonSetsUtilization"` // CA做健康性判断的个数,默认3,即超过OkTotalUnreadyCount个数后,CA会进行健康性判断。 // 注意:此字段可能返回 null,表示取不到有效值。 OkTotalUnreadyCount *int64 `json:"OkTotalUnreadyCount,omitempty" name:"OkTotalUnreadyCount"` // 未就绪节点的最大百分比,此后CA会停止操作 // 注意:此字段可能返回 null,表示取不到有效值。 MaxTotalUnreadyPercentage *int64 `json:"MaxTotalUnreadyPercentage,omitempty" name:"MaxTotalUnreadyPercentage"` // 表示未准备就绪的节点在有资格进行缩减之前应该停留多长时间 // 注意:此字段可能返回 null,表示取不到有效值。 ScaleDownUnreadyTime *int64 `json:"ScaleDownUnreadyTime,omitempty" name:"ScaleDownUnreadyTime"` // CA删除未在Kubernetes中注册的节点之前等待的时间 // 注意:此字段可能返回 null,表示取不到有效值。 UnregisteredNodeRemovalTime *int64 `json:"UnregisteredNodeRemovalTime,omitempty" name:"UnregisteredNodeRemovalTime"` }
type ClusterBasicSettings ¶
type ClusterBasicSettings struct { // 集群系统。centos7.2x86_64 或者 ubuntu16.04.1 LTSx86_64,默认取值为ubuntu16.04.1 LTSx86_64 ClusterOs *string `json:"ClusterOs,omitempty" name:"ClusterOs"` // 集群版本,默认值为1.10.5 ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` // 集群名称 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // 集群描述 ClusterDescription *string `json:"ClusterDescription,omitempty" name:"ClusterDescription"` // 私有网络ID,形如vpc-xxx。创建托管空集群时必传。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 集群内新增资源所属项目ID。 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。 TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification" list` // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值) OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` // 是否开启节点的默认安全组(默认: 否,Aphla特性) NeedWorkSecurityGroup *bool `json:"NeedWorkSecurityGroup,omitempty" name:"NeedWorkSecurityGroup"` }
type ClusterCIDRSettings ¶
type ClusterCIDRSettings struct { // 用于分配集群容器和服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突。且网段范围必须在内网网段内,例如:10.1.0.0/14, 192.168.0.1/18,172.16.0.0/16。 ClusterCIDR *string `json:"ClusterCIDR,omitempty" name:"ClusterCIDR"` // 是否忽略 ClusterCIDR 冲突错误, 默认不忽略 IgnoreClusterCIDRConflict *bool `json:"IgnoreClusterCIDRConflict,omitempty" name:"IgnoreClusterCIDRConflict"` // 集群中每个Node上最大的Pod数量。取值范围4~256。不为2的幂值时会向上取最接近的2的幂值。 MaxNodePodNum *uint64 `json:"MaxNodePodNum,omitempty" name:"MaxNodePodNum"` // 集群最大的service数量。取值范围32~32768,不为2的幂值时会向上取最接近的2的幂值。 MaxClusterServiceNum *uint64 `json:"MaxClusterServiceNum,omitempty" name:"MaxClusterServiceNum"` // 用于分配集群服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突。且网段范围必须在内网网段内,例如:10.1.0.0/14, 192.168.0.1/18,172.16.0.0/16。 ServiceCIDR *string `json:"ServiceCIDR,omitempty" name:"ServiceCIDR"` // VPC-CNI网络模式下,弹性网卡的子网Id。 EniSubnetIds []*string `json:"EniSubnetIds,omitempty" name:"EniSubnetIds" list` // VPC-CNI网络模式下,弹性网卡IP的回收时间,取值范围[300,15768000) ClaimExpiredSeconds *int64 `json:"ClaimExpiredSeconds,omitempty" name:"ClaimExpiredSeconds"` }
type ClusterCredential ¶
type ClusterExtraArgs ¶
type ClusterExtraArgs struct { // kube-apiserver自定义参数,参数格式为["k1=v1", "k1=v2"], 例如["max-requests-inflight=500","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"] // 注意:此字段可能返回 null,表示取不到有效值。 KubeAPIServer []*string `json:"KubeAPIServer,omitempty" name:"KubeAPIServer" list` // kube-controller-manager自定义参数 // 注意:此字段可能返回 null,表示取不到有效值。 KubeControllerManager []*string `json:"KubeControllerManager,omitempty" name:"KubeControllerManager" list` // kube-scheduler自定义参数 // 注意:此字段可能返回 null,表示取不到有效值。 KubeScheduler []*string `json:"KubeScheduler,omitempty" name:"KubeScheduler" list` // etcd自定义参数,只支持独立集群 // 注意:此字段可能返回 null,表示取不到有效值。 Etcd []*string `json:"Etcd,omitempty" name:"Etcd" list` }
type ClusterInternalLB ¶
type ClusterNetworkSettings ¶
type ClusterNetworkSettings struct { // 用于分配集群容器和服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突 ClusterCIDR *string `json:"ClusterCIDR,omitempty" name:"ClusterCIDR"` // 是否忽略 ClusterCIDR 冲突错误, 默认不忽略 IgnoreClusterCIDRConflict *bool `json:"IgnoreClusterCIDRConflict,omitempty" name:"IgnoreClusterCIDRConflict"` // 集群中每个Node上最大的Pod数量(默认为256) MaxNodePodNum *uint64 `json:"MaxNodePodNum,omitempty" name:"MaxNodePodNum"` // 集群最大的service数量(默认为256) MaxClusterServiceNum *uint64 `json:"MaxClusterServiceNum,omitempty" name:"MaxClusterServiceNum"` // 是否启用IPVS(默认不开启) Ipvs *bool `json:"Ipvs,omitempty" name:"Ipvs"` // 集群的VPCID(如果创建空集群,为必传值,否则自动设置为和集群的节点保持一致) VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 网络插件是否启用CNI(默认开启) Cni *bool `json:"Cni,omitempty" name:"Cni"` }
type ClusterPublicLB ¶
type ClusterPublicLB struct { // 是否开启公网访问LB Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` // 允许访问的来源CIDR列表 AllowFromCidrs []*string `json:"AllowFromCidrs,omitempty" name:"AllowFromCidrs" list` // 安全策略放通单个IP或CIDR(例如: "192.168.1.0/24",默认为拒绝所有) SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies" list` }
type ClusterVersion ¶
type CreateClusterAsGroupRequest ¶
type CreateClusterAsGroupRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 伸缩组创建透传参数,json化字符串格式,详见[伸缩组创建实例](https://cloud.tencent.com/document/api/377/20440)接口。LaunchConfigurationId由LaunchConfigurePara参数创建,不支持填写 AutoScalingGroupPara *string `json:"AutoScalingGroupPara,omitempty" name:"AutoScalingGroupPara"` // 启动配置创建透传参数,json化字符串格式,详见[创建启动配置](https://cloud.tencent.com/document/api/377/20447)接口。另外ImageId参数由于集群维度已经有的ImageId信息,这个字段不需要填写。UserData字段设置通过UserScript设置,这个字段不需要填写。 LaunchConfigurePara *string `json:"LaunchConfigurePara,omitempty" name:"LaunchConfigurePara"` // 节点高级配置信息 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 节点Label数组 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` }
func NewCreateClusterAsGroupRequest ¶
func NewCreateClusterAsGroupRequest() (request *CreateClusterAsGroupRequest)
func (*CreateClusterAsGroupRequest) FromJsonString ¶
func (r *CreateClusterAsGroupRequest) FromJsonString(s string) error
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 { // 启动配置ID LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // 伸缩组ID AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网) SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE) IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
func NewCreateClusterEndpointRequest ¶
func NewCreateClusterEndpointRequest() (request *CreateClusterEndpointRequest)
func (*CreateClusterEndpointRequest) FromJsonString ¶
func (r *CreateClusterEndpointRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 安全策略放通单个IP或CIDR(例如: "192.168.1.0/24",默认为拒绝所有) SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies" list` }
func NewCreateClusterEndpointVipRequest ¶
func NewCreateClusterEndpointVipRequest() (request *CreateClusterEndpointVipRequest)
func (*CreateClusterEndpointVipRequest) FromJsonString ¶
func (r *CreateClusterEndpointVipRequest) FromJsonString(s string) error
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 { // 请求任务的FlowId RequestFlowId *int64 `json:"RequestFlowId,omitempty" name:"RequestFlowId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群 ID,请填写 查询集群列表 接口中返回的 clusterId 字段 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // CVM创建透传参数,json化字符串格式,如需要保证扩展集群节点请求幂等性需要在此参数添加ClientToken字段,详见[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口。 RunInstancePara *string `json:"RunInstancePara,omitempty" name:"RunInstancePara"` // 实例额外需要设置参数信息 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 校验规则相关选项,可配置跳过某些校验规则。目前支持GlobalRouteCIDRCheck(跳过GlobalRouter的相关校验),VpcCniCIDRCheck(跳过VpcCni相关校验) SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions" list` }
func NewCreateClusterInstancesRequest ¶
func NewCreateClusterInstancesRequest() (request *CreateClusterInstancesRequest)
func (*CreateClusterInstancesRequest) FromJsonString ¶
func (r *CreateClusterInstancesRequest) FromJsonString(s string) error
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 { // 节点实例ID InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 伸缩组ID AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` }
func NewCreateClusterNodePoolFromExistingAsgRequest ¶
func NewCreateClusterNodePoolFromExistingAsgRequest() (request *CreateClusterNodePoolFromExistingAsgRequest)
func (*CreateClusterNodePoolFromExistingAsgRequest) FromJsonString ¶
func (r *CreateClusterNodePoolFromExistingAsgRequest) FromJsonString(s string) error
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 { // 节点池ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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"` // AutoScalingGroupPara AS组参数 AutoScalingGroupPara *string `json:"AutoScalingGroupPara,omitempty" name:"AutoScalingGroupPara"` // LaunchConfigurePara 运行参数 LaunchConfigurePara *string `json:"LaunchConfigurePara,omitempty" name:"LaunchConfigurePara"` // InstanceAdvancedSettings 示例参数 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 是否启用自动伸缩 EnableAutoscale *bool `json:"EnableAutoscale,omitempty" name:"EnableAutoscale"` // 节点池名称 Name *string `json:"Name,omitempty" name:"Name"` // Labels标签 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // Taints互斥 Taints []*Taint `json:"Taints,omitempty" name:"Taints" list` // 节点池os NodePoolOs *string `json:"NodePoolOs,omitempty" name:"NodePoolOs"` // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值) OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` }
func NewCreateClusterNodePoolRequest ¶
func NewCreateClusterNodePoolRequest() (request *CreateClusterNodePoolRequest)
func (*CreateClusterNodePoolRequest) FromJsonString ¶
func (r *CreateClusterNodePoolRequest) FromJsonString(s string) error
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 { // 节点池id NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群容器网络配置信息 ClusterCIDRSettings *ClusterCIDRSettings `json:"ClusterCIDRSettings,omitempty" name:"ClusterCIDRSettings"` // 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // CVM创建透传参数,json化字符串格式,详见[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口。总机型(包括地域)数量不超过10个,相同机型(地域)购买多台机器可以通过设置参数中RunInstances中InstanceCount来实现。 RunInstancesForNode []*RunInstancesForNode `json:"RunInstancesForNode,omitempty" name:"RunInstancesForNode" list` // 集群的基本配置信息 ClusterBasicSettings *ClusterBasicSettings `json:"ClusterBasicSettings,omitempty" name:"ClusterBasicSettings"` // 集群高级配置信息 ClusterAdvancedSettings *ClusterAdvancedSettings `json:"ClusterAdvancedSettings,omitempty" name:"ClusterAdvancedSettings"` // 节点高级配置信息 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 已存在实例的配置信息。所有实例必须在同一个VPC中,最大数量不超过100。 ExistedInstancesForNode []*ExistedInstancesForNode `json:"ExistedInstancesForNode,omitempty" name:"ExistedInstancesForNode" list` // CVM类型和其对应的数据盘挂载配置信息 InstanceDataDiskMountSettings []*InstanceDataDiskMountSetting `json:"InstanceDataDiskMountSettings,omitempty" name:"InstanceDataDiskMountSettings" list` // 需要安装的扩展组件信息 ExtensionAddons []*ExtensionAddon `json:"ExtensionAddons,omitempty" name:"ExtensionAddons" list` }
func NewCreateClusterRequest ¶
func NewCreateClusterRequest() (request *CreateClusterRequest)
func (*CreateClusterRequest) FromJsonString ¶
func (r *CreateClusterRequest) FromJsonString(s string) error
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 { // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 CreateClusterRouteRequest ¶
type CreateClusterRouteRequest struct { *tchttp.BaseRequest // 路由表名称。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // 目的端CIDR。 DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` // 下一跳地址。 GatewayIp *string `json:"GatewayIp,omitempty" name:"GatewayIp"` }
func NewCreateClusterRouteRequest ¶
func NewCreateClusterRouteRequest() (request *CreateClusterRouteRequest)
func (*CreateClusterRouteRequest) FromJsonString ¶
func (r *CreateClusterRouteRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterRouteRequest) ToJsonString ¶
func (r *CreateClusterRouteRequest) ToJsonString() string
type CreateClusterRouteResponse ¶
type CreateClusterRouteResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateClusterRouteResponse ¶
func NewCreateClusterRouteResponse() (response *CreateClusterRouteResponse)
func (*CreateClusterRouteResponse) FromJsonString ¶
func (r *CreateClusterRouteResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterRouteResponse) ToJsonString ¶
func (r *CreateClusterRouteResponse) ToJsonString() string
type CreateClusterRouteTableRequest ¶
type CreateClusterRouteTableRequest struct { *tchttp.BaseRequest // 路由表名称 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // 路由表CIDR RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` // 路由表绑定的VPC VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 是否忽略CIDR冲突 IgnoreClusterCidrConflict *int64 `json:"IgnoreClusterCidrConflict,omitempty" name:"IgnoreClusterCidrConflict"` }
func NewCreateClusterRouteTableRequest ¶
func NewCreateClusterRouteTableRequest() (request *CreateClusterRouteTableRequest)
func (*CreateClusterRouteTableRequest) FromJsonString ¶
func (r *CreateClusterRouteTableRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 CreateEKSClusterRequest ¶
type CreateEKSClusterRequest struct { *tchttp.BaseRequest // k8s版本号。可为1.14.4, 1.12.8。 K8SVersion *string `json:"K8SVersion,omitempty" name:"K8SVersion"` // vpc 的Id VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 集群名称 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // 子网Id 列表 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` // 集群描述信息 ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"` // Serivce 所在子网Id ServiceSubnetId *string `json:"ServiceSubnetId,omitempty" name:"ServiceSubnetId"` // 集群自定义的Dns服务器信息 DnsServers []*DnsServerConf `json:"DnsServers,omitempty" name:"DnsServers" list` // 扩展参数。须是map[string]string 的json 格式。 ExtraParam *string `json:"ExtraParam,omitempty" name:"ExtraParam"` // 是否在用户集群内开启Dns。默认为true EnableVpcCoreDNS *bool `json:"EnableVpcCoreDNS,omitempty" name:"EnableVpcCoreDNS"` // 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。 TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification" list` }
func NewCreateEKSClusterRequest ¶
func NewCreateEKSClusterRequest() (request *CreateEKSClusterRequest)
func (*CreateEKSClusterRequest) FromJsonString ¶
func (r *CreateEKSClusterRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEKSClusterRequest) ToJsonString ¶
func (r *CreateEKSClusterRequest) ToJsonString() string
type CreateEKSClusterResponse ¶
type CreateEKSClusterResponse struct { *tchttp.BaseResponse Response *struct { // 弹性集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateEKSClusterResponse ¶
func NewCreateEKSClusterResponse() (response *CreateEKSClusterResponse)
func (*CreateEKSClusterResponse) FromJsonString ¶
func (r *CreateEKSClusterResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEKSClusterResponse) ToJsonString ¶
func (r *CreateEKSClusterResponse) ToJsonString() string
type CreatePrometheusDashboardRequest ¶
type CreatePrometheusDashboardRequest struct { *tchttp.BaseRequest // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 面板组名称 DashboardName *string `json:"DashboardName,omitempty" name:"DashboardName"` // 面板列表 // 每一项是一个grafana dashboard的json定义 Contents []*string `json:"Contents,omitempty" name:"Contents" list` }
func NewCreatePrometheusDashboardRequest ¶
func NewCreatePrometheusDashboardRequest() (request *CreatePrometheusDashboardRequest)
func (*CreatePrometheusDashboardRequest) FromJsonString ¶
func (r *CreatePrometheusDashboardRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePrometheusDashboardRequest) ToJsonString ¶
func (r *CreatePrometheusDashboardRequest) ToJsonString() string
type CreatePrometheusDashboardResponse ¶
type CreatePrometheusDashboardResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreatePrometheusDashboardResponse ¶
func NewCreatePrometheusDashboardResponse() (response *CreatePrometheusDashboardResponse)
func (*CreatePrometheusDashboardResponse) FromJsonString ¶
func (r *CreatePrometheusDashboardResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePrometheusDashboardResponse) ToJsonString ¶
func (r *CreatePrometheusDashboardResponse) ToJsonString() string
type CreatePrometheusTemplateRequest ¶
type CreatePrometheusTemplateRequest struct { *tchttp.BaseRequest // 模板设置 Template *PrometheusTemplate `json:"Template,omitempty" name:"Template"` }
func NewCreatePrometheusTemplateRequest ¶
func NewCreatePrometheusTemplateRequest() (request *CreatePrometheusTemplateRequest)
func (*CreatePrometheusTemplateRequest) FromJsonString ¶
func (r *CreatePrometheusTemplateRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePrometheusTemplateRequest) ToJsonString ¶
func (r *CreatePrometheusTemplateRequest) ToJsonString() string
type CreatePrometheusTemplateResponse ¶
type CreatePrometheusTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 模板Id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreatePrometheusTemplateResponse ¶
func NewCreatePrometheusTemplateResponse() (response *CreatePrometheusTemplateResponse)
func (*CreatePrometheusTemplateResponse) FromJsonString ¶
func (r *CreatePrometheusTemplateResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreatePrometheusTemplateResponse) ToJsonString ¶
func (r *CreatePrometheusTemplateResponse) ToJsonString() string
type DataDisk ¶
type DataDisk struct { // 云盘类型 // 注意:此字段可能返回 null,表示取不到有效值。 DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // 文件系统(ext3/ext4/xfs) // 注意:此字段可能返回 null,表示取不到有效值。 FileSystem *string `json:"FileSystem,omitempty" name:"FileSystem"` // 云盘大小(G) // 注意:此字段可能返回 null,表示取不到有效值。 DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // 是否自动化格式盘并挂载 // 注意:此字段可能返回 null,表示取不到有效值。 AutoFormatAndMount *bool `json:"AutoFormatAndMount,omitempty" name:"AutoFormatAndMount"` // 挂载目录 // 注意:此字段可能返回 null,表示取不到有效值。 MountTarget *string `json:"MountTarget,omitempty" name:"MountTarget"` }
type DeleteClusterAsGroupsRequest ¶
type DeleteClusterAsGroupsRequest struct { *tchttp.BaseRequest // 集群ID,通过[DescribeClusters](https://cloud.tencent.com/document/api/457/31862)接口获取。 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群伸缩组ID的列表 AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds" list` // 是否保留伸缩组中的节点(默认值: false(不保留)) KeepInstance *bool `json:"KeepInstance,omitempty" name:"KeepInstance"` }
func NewDeleteClusterAsGroupsRequest ¶
func NewDeleteClusterAsGroupsRequest() (request *DeleteClusterAsGroupsRequest)
func (*DeleteClusterAsGroupsRequest) FromJsonString ¶
func (r *DeleteClusterAsGroupsRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE) IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
func NewDeleteClusterEndpointRequest ¶
func NewDeleteClusterEndpointRequest() (request *DeleteClusterEndpointRequest)
func (*DeleteClusterEndpointRequest) FromJsonString ¶
func (r *DeleteClusterEndpointRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDeleteClusterEndpointVipRequest ¶
func NewDeleteClusterEndpointVipRequest() (request *DeleteClusterEndpointVipRequest)
func (*DeleteClusterEndpointVipRequest) FromJsonString ¶
func (r *DeleteClusterEndpointVipRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 主机InstanceId列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例) InstanceDeleteMode *string `json:"InstanceDeleteMode,omitempty" name:"InstanceDeleteMode"` // 是否强制删除(当节点在初始化时,可以指定参数为TRUE) ForceDelete *bool `json:"ForceDelete,omitempty" name:"ForceDelete"` }
func NewDeleteClusterInstancesRequest ¶
func NewDeleteClusterInstancesRequest() (request *DeleteClusterInstancesRequest)
func (*DeleteClusterInstancesRequest) FromJsonString ¶
func (r *DeleteClusterInstancesRequest) FromJsonString(s string) error
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 { // 删除成功的实例ID列表 // 注意:此字段可能返回 null,表示取不到有效值。 SuccInstanceIds []*string `json:"SuccInstanceIds,omitempty" name:"SuccInstanceIds" list` // 删除失败的实例ID列表 // 注意:此字段可能返回 null,表示取不到有效值。 FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds" list` // 未匹配到的实例ID列表 // 注意:此字段可能返回 null,表示取不到有效值。 NotFoundInstanceIds []*string `json:"NotFoundInstanceIds,omitempty" name:"NotFoundInstanceIds" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 需要删除的节点池 Id 列表 NodePoolIds []*string `json:"NodePoolIds,omitempty" name:"NodePoolIds" list` // 删除节点池时是否保留节点池内节点(节点仍然会被移出集群,但对应的实例不会被销毁) KeepInstance *bool `json:"KeepInstance,omitempty" name:"KeepInstance"` }
func NewDeleteClusterNodePoolRequest ¶
func NewDeleteClusterNodePoolRequest() (request *DeleteClusterNodePoolRequest)
func (*DeleteClusterNodePoolRequest) FromJsonString ¶
func (r *DeleteClusterNodePoolRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例) InstanceDeleteMode *string `json:"InstanceDeleteMode,omitempty" name:"InstanceDeleteMode"` // 集群删除时资源的删除策略,目前支持CBS(默认保留CBS) ResourceDeleteOptions []*ResourceDeleteOption `json:"ResourceDeleteOptions,omitempty" name:"ResourceDeleteOptions" list` }
func NewDeleteClusterRequest ¶
func NewDeleteClusterRequest() (request *DeleteClusterRequest)
func (*DeleteClusterRequest) FromJsonString ¶
func (r *DeleteClusterRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 路由表名称。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // 下一跳地址。 GatewayIp *string `json:"GatewayIp,omitempty" name:"GatewayIp"` // 目的端CIDR。 DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` }
func NewDeleteClusterRouteRequest ¶
func NewDeleteClusterRouteRequest() (request *DeleteClusterRouteRequest)
func (*DeleteClusterRouteRequest) FromJsonString ¶
func (r *DeleteClusterRouteRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 路由表名称 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` }
func NewDeleteClusterRouteTableRequest ¶
func NewDeleteClusterRouteTableRequest() (request *DeleteClusterRouteTableRequest)
func (*DeleteClusterRouteTableRequest) FromJsonString ¶
func (r *DeleteClusterRouteTableRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 DeleteEKSClusterRequest ¶
type DeleteEKSClusterRequest struct { *tchttp.BaseRequest // 弹性集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDeleteEKSClusterRequest ¶
func NewDeleteEKSClusterRequest() (request *DeleteEKSClusterRequest)
func (*DeleteEKSClusterRequest) FromJsonString ¶
func (r *DeleteEKSClusterRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEKSClusterRequest) ToJsonString ¶
func (r *DeleteEKSClusterRequest) ToJsonString() string
type DeleteEKSClusterResponse ¶
type DeleteEKSClusterResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteEKSClusterResponse ¶
func NewDeleteEKSClusterResponse() (response *DeleteEKSClusterResponse)
func (*DeleteEKSClusterResponse) FromJsonString ¶
func (r *DeleteEKSClusterResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEKSClusterResponse) ToJsonString ¶
func (r *DeleteEKSClusterResponse) ToJsonString() string
type DeletePrometheusTemplateRequest ¶
type DeletePrometheusTemplateRequest struct { *tchttp.BaseRequest // 模板id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
func NewDeletePrometheusTemplateRequest ¶
func NewDeletePrometheusTemplateRequest() (request *DeletePrometheusTemplateRequest)
func (*DeletePrometheusTemplateRequest) FromJsonString ¶
func (r *DeletePrometheusTemplateRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePrometheusTemplateRequest) ToJsonString ¶
func (r *DeletePrometheusTemplateRequest) ToJsonString() string
type DeletePrometheusTemplateResponse ¶
type DeletePrometheusTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeletePrometheusTemplateResponse ¶
func NewDeletePrometheusTemplateResponse() (response *DeletePrometheusTemplateResponse)
func (*DeletePrometheusTemplateResponse) FromJsonString ¶
func (r *DeletePrometheusTemplateResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePrometheusTemplateResponse) ToJsonString ¶
func (r *DeletePrometheusTemplateResponse) ToJsonString() string
type DeletePrometheusTemplateSyncRequest ¶
type DeletePrometheusTemplateSyncRequest struct { *tchttp.BaseRequest // 模板id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // 取消同步的对象列表 Targets []*PrometheusTemplateSyncTarget `json:"Targets,omitempty" name:"Targets" list` }
func NewDeletePrometheusTemplateSyncRequest ¶
func NewDeletePrometheusTemplateSyncRequest() (request *DeletePrometheusTemplateSyncRequest)
func (*DeletePrometheusTemplateSyncRequest) FromJsonString ¶
func (r *DeletePrometheusTemplateSyncRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePrometheusTemplateSyncRequest) ToJsonString ¶
func (r *DeletePrometheusTemplateSyncRequest) ToJsonString() string
type DeletePrometheusTemplateSyncResponse ¶
type DeletePrometheusTemplateSyncResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeletePrometheusTemplateSyncResponse ¶
func NewDeletePrometheusTemplateSyncResponse() (response *DeletePrometheusTemplateSyncResponse)
func (*DeletePrometheusTemplateSyncResponse) FromJsonString ¶
func (r *DeletePrometheusTemplateSyncResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeletePrometheusTemplateSyncResponse) ToJsonString ¶
func (r *DeletePrometheusTemplateSyncResponse) ToJsonString() string
type DescribeAvailableClusterVersionRequest ¶
type DescribeAvailableClusterVersionRequest struct { *tchttp.BaseRequest // 集群 Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群 Id 列表 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds" list` }
func NewDescribeAvailableClusterVersionRequest ¶
func NewDescribeAvailableClusterVersionRequest() (request *DescribeAvailableClusterVersionRequest)
func (*DescribeAvailableClusterVersionRequest) FromJsonString ¶
func (r *DescribeAvailableClusterVersionRequest) FromJsonString(s string) error
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 { // 可升级的集群版本号 // 注意:此字段可能返回 null,表示取不到有效值。 Versions []*string `json:"Versions,omitempty" name:"Versions" list` // 集群信息 // 注意:此字段可能返回 null,表示取不到有效值。 Clusters []*ClusterVersion `json:"Clusters,omitempty" name:"Clusters" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterAsGroupOptionRequest ¶
func NewDescribeClusterAsGroupOptionRequest() (request *DescribeClusterAsGroupOptionRequest)
func (*DescribeClusterAsGroupOptionRequest) FromJsonString ¶
func (r *DescribeClusterAsGroupOptionRequest) FromJsonString(s string) error
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 { // 集群弹性伸缩属性 // 注意:此字段可能返回 null,表示取不到有效值。 ClusterAsGroupOption *ClusterAsGroupOption `json:"ClusterAsGroupOption,omitempty" name:"ClusterAsGroupOption"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 伸缩组ID列表,如果为空,表示拉取集群关联的所有伸缩组。 AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds" list` // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeClusterAsGroupsRequest ¶
func NewDescribeClusterAsGroupsRequest() (request *DescribeClusterAsGroupsRequest)
func (*DescribeClusterAsGroupsRequest) FromJsonString ¶
func (r *DescribeClusterAsGroupsRequest) FromJsonString(s string) error
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 { // 集群关联的伸缩组总数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 集群关联的伸缩组列表 ClusterAsGroupSet []*ClusterAsGroup `json:"ClusterAsGroupSet,omitempty" name:"ClusterAsGroupSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 DescribeClusterEndpointStatusRequest ¶
type DescribeClusterEndpointStatusRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE) IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
func NewDescribeClusterEndpointStatusRequest ¶
func NewDescribeClusterEndpointStatusRequest() (request *DescribeClusterEndpointStatusRequest)
func (*DescribeClusterEndpointStatusRequest) FromJsonString ¶
func (r *DescribeClusterEndpointStatusRequest) FromJsonString(s string) error
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 { // 查询集群访问端口状态(Created 开启成功,Creating 开启中中,NotFound 未开启) // 注意:此字段可能返回 null,表示取不到有效值。 Status *string `json:"Status,omitempty" name:"Status"` // 开启访问入口失败信息 // 注意:此字段可能返回 null,表示取不到有效值。 ErrorMsg *string `json:"ErrorMsg,omitempty" name:"ErrorMsg"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterEndpointVipStatusRequest ¶
func NewDescribeClusterEndpointVipStatusRequest() (request *DescribeClusterEndpointVipStatusRequest)
func (*DescribeClusterEndpointVipStatusRequest) FromJsonString ¶
func (r *DescribeClusterEndpointVipStatusRequest) FromJsonString(s string) error
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 { // 端口操作状态 (Creating 创建中 CreateFailed 创建失败 Created 创建完成 Deleting 删除中 DeletedFailed 删除失败 Deleted 已删除 NotFound 未发现操作 ) Status *string `json:"Status,omitempty" name:"Status"` // 操作失败的原因 // 注意:此字段可能返回 null,表示取不到有效值。 ErrorMsg *string `json:"ErrorMsg,omitempty" name:"ErrorMsg"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 需要获取的节点实例Id列表。如果为空,表示拉取集群下所有节点实例。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER。默认为WORKER类型。 InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` }
func NewDescribeClusterInstancesRequest ¶
func NewDescribeClusterInstancesRequest() (request *DescribeClusterInstancesRequest)
func (*DescribeClusterInstancesRequest) FromJsonString ¶
func (r *DescribeClusterInstancesRequest) FromJsonString(s string) error
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 { // 集群中实例总数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 集群中实例列表 InstanceSet []*Instance `json:"InstanceSet,omitempty" name:"InstanceSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterKubeconfigRequest ¶
func NewDescribeClusterKubeconfigRequest() (request *DescribeClusterKubeconfigRequest)
func (*DescribeClusterKubeconfigRequest) FromJsonString ¶
func (r *DescribeClusterKubeconfigRequest) FromJsonString(s string) error
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 { // 子账户kubeconfig文件,可用于直接访问集群kube-apiserver Kubeconfig *string `json:"Kubeconfig,omitempty" name:"Kubeconfig"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 节点池id NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` }
func NewDescribeClusterNodePoolDetailRequest ¶
func NewDescribeClusterNodePoolDetailRequest() (request *DescribeClusterNodePoolDetailRequest)
func (*DescribeClusterNodePoolDetailRequest) FromJsonString ¶
func (r *DescribeClusterNodePoolDetailRequest) FromJsonString(s string) error
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 { // 节点池详情 NodePool *NodePool `json:"NodePool,omitempty" name:"NodePool"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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(集群id) ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterNodePoolsRequest ¶
func NewDescribeClusterNodePoolsRequest() (request *DescribeClusterNodePoolsRequest)
func (*DescribeClusterNodePoolsRequest) FromJsonString ¶
func (r *DescribeClusterNodePoolsRequest) FromJsonString(s string) error
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(节点池列表) // 注意:此字段可能返回 null,表示取不到有效值。 NodePoolSet []*NodePool `json:"NodePoolSet,omitempty" name:"NodePoolSet" list` // 资源总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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
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 { // 符合条件的实例数量。 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 集群路由表对象。 RouteTableSet []*RouteTableInfo `json:"RouteTableSet,omitempty" name:"RouteTableSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 路由表名称。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // 过滤条件,当前只支持按照单个条件GatewayIP进行过滤(可选) Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribeClusterRoutesRequest ¶
func NewDescribeClusterRoutesRequest() (request *DescribeClusterRoutesRequest)
func (*DescribeClusterRoutesRequest) FromJsonString ¶
func (r *DescribeClusterRoutesRequest) FromJsonString(s string) error
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 { // 符合条件的实例数量。 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 集群路由对象。 RouteSet []*RouteInfo `json:"RouteSet,omitempty" name:"RouteSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群 ID,请填写 查询集群列表 接口中返回的 clusterId 字段 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeClusterSecurityRequest ¶
func NewDescribeClusterSecurityRequest() (request *DescribeClusterSecurityRequest)
func (*DescribeClusterSecurityRequest) FromJsonString ¶
func (r *DescribeClusterSecurityRequest) FromJsonString(s string) error
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 { // 集群的账号名称 UserName *string `json:"UserName,omitempty" name:"UserName"` // 集群的访问密码 Password *string `json:"Password,omitempty" name:"Password"` // 集群访问CA证书 CertificationAuthority *string `json:"CertificationAuthority,omitempty" name:"CertificationAuthority"` // 集群访问的地址 ClusterExternalEndpoint *string `json:"ClusterExternalEndpoint,omitempty" name:"ClusterExternalEndpoint"` // 集群访问的域名 Domain *string `json:"Domain,omitempty" name:"Domain"` // 集群Endpoint地址 PgwEndpoint *string `json:"PgwEndpoint,omitempty" name:"PgwEndpoint"` // 集群访问策略组 // 注意:此字段可能返回 null,表示取不到有效值。 SecurityPolicy []*string `json:"SecurityPolicy,omitempty" name:"SecurityPolicy" list` // 集群Kubeconfig文件 // 注意:此字段可能返回 null,表示取不到有效值。 Kubeconfig *string `json:"Kubeconfig,omitempty" name:"Kubeconfig"` // 集群JnsGw的访问地址 // 注意:此字段可能返回 null,表示取不到有效值。 JnsGwEndpoint *string `json:"JnsGwEndpoint,omitempty" name:"JnsGwEndpoint"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID列表(为空时, // 表示获取账号下所有集群) ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds" list` // 偏移量,默认0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 最大输出条数,默认20,最大为100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 过滤条件,当前只支持按照单个条件ClusterName进行过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribeClustersRequest ¶
func NewDescribeClustersRequest() (request *DescribeClustersRequest)
func (*DescribeClustersRequest) FromJsonString ¶
func (r *DescribeClustersRequest) FromJsonString(s string) error
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 { // 集群总个数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 集群信息列表 Clusters []*Cluster `json:"Clusters,omitempty" name:"Clusters" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 DescribeEKSClusterCredentialRequest ¶
type DescribeEKSClusterCredentialRequest struct { *tchttp.BaseRequest // 集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribeEKSClusterCredentialRequest ¶
func NewDescribeEKSClusterCredentialRequest() (request *DescribeEKSClusterCredentialRequest)
func (*DescribeEKSClusterCredentialRequest) FromJsonString ¶
func (r *DescribeEKSClusterCredentialRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEKSClusterCredentialRequest) ToJsonString ¶
func (r *DescribeEKSClusterCredentialRequest) ToJsonString() string
type DescribeEKSClusterCredentialResponse ¶
type DescribeEKSClusterCredentialResponse struct { *tchttp.BaseResponse Response *struct { // 集群的接入地址信息 Addresses []*IPAddress `json:"Addresses,omitempty" name:"Addresses" list` // 集群的认证信息 Credential *ClusterCredential `json:"Credential,omitempty" name:"Credential"` // 集群的公网访问信息 PublicLB *ClusterPublicLB `json:"PublicLB,omitempty" name:"PublicLB"` // 集群的内网访问信息 InternalLB *ClusterInternalLB `json:"InternalLB,omitempty" name:"InternalLB"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeEKSClusterCredentialResponse ¶
func NewDescribeEKSClusterCredentialResponse() (response *DescribeEKSClusterCredentialResponse)
func (*DescribeEKSClusterCredentialResponse) FromJsonString ¶
func (r *DescribeEKSClusterCredentialResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEKSClusterCredentialResponse) ToJsonString ¶
func (r *DescribeEKSClusterCredentialResponse) ToJsonString() string
type DescribeEKSClustersRequest ¶
type DescribeEKSClustersRequest struct { *tchttp.BaseRequest // 集群ID列表(为空时, // 表示获取账号下所有集群) ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds" list` // 偏移量,默认0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 最大输出条数,默认20 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤条件,当前只支持按照单个条件ClusterName进行过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribeEKSClustersRequest ¶
func NewDescribeEKSClustersRequest() (request *DescribeEKSClustersRequest)
func (*DescribeEKSClustersRequest) FromJsonString ¶
func (r *DescribeEKSClustersRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEKSClustersRequest) ToJsonString ¶
func (r *DescribeEKSClustersRequest) ToJsonString() string
type DescribeEKSClustersResponse ¶
type DescribeEKSClustersResponse struct { *tchttp.BaseResponse Response *struct { // 集群总个数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 集群信息列表 Clusters []*EksCluster `json:"Clusters,omitempty" name:"Clusters" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeEKSClustersResponse ¶
func NewDescribeEKSClustersResponse() (response *DescribeEKSClustersResponse)
func (*DescribeEKSClustersResponse) FromJsonString ¶
func (r *DescribeEKSClustersResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEKSClustersResponse) ToJsonString ¶
func (r *DescribeEKSClustersResponse) ToJsonString() string
type DescribeExistedInstancesRequest ¶
type DescribeExistedInstancesRequest struct { *tchttp.BaseRequest // 集群 ID,请填写查询集群列表 接口中返回的 ClusterId 字段(仅通过ClusterId获取需要过滤条件中的VPCID。节点状态比较时会使用该地域下所有集群中的节点进行比较。参数不支持同时指定InstanceIds和ClusterId。 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 按照一个或者多个实例ID查询。实例ID形如:ins-xxxxxxxx。(此参数的具体格式可参考API简介的id.N一节)。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 过滤条件,字段和详见[CVM查询实例](https://cloud.tencent.com/document/api/213/15728)如果设置了ClusterId,会附加集群的VPCID作为查询字段,在此情况下如果在Filter中指定了"vpc-id"作为过滤字段,指定的VPCID必须与集群的VPCID相同。 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 实例IP进行过滤(同时支持内网IP和外网IP) VagueIpAddress *string `json:"VagueIpAddress,omitempty" name:"VagueIpAddress"` // 实例名称进行过滤 VagueInstanceName *string `json:"VagueInstanceName,omitempty" name:"VagueInstanceName"` // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 根据多个实例IP进行过滤 IpAddresses []*string `json:"IpAddresses,omitempty" name:"IpAddresses" list` }
func NewDescribeExistedInstancesRequest ¶
func NewDescribeExistedInstancesRequest() (request *DescribeExistedInstancesRequest)
func (*DescribeExistedInstancesRequest) FromJsonString ¶
func (r *DescribeExistedInstancesRequest) FromJsonString(s string) error
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 { // 已经存在的实例信息数组。 // 注意:此字段可能返回 null,表示取不到有效值。 ExistedInstanceSet []*ExistedInstance `json:"ExistedInstanceSet,omitempty" name:"ExistedInstanceSet" list` // 符合条件的实例数量。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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
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 { // 镜像数量 // 注意:此字段可能返回 null,表示取不到有效值。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 镜像信息列表 // 注意:此字段可能返回 null,表示取不到有效值。 ImageInstanceSet []*ImageInstance `json:"ImageInstanceSet,omitempty" name:"ImageInstanceSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 DescribePrometheusAgentInstancesRequest ¶
type DescribePrometheusAgentInstancesRequest struct { *tchttp.BaseRequest // 集群id // 可以是tke, eks, edge的集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` }
func NewDescribePrometheusAgentInstancesRequest ¶
func NewDescribePrometheusAgentInstancesRequest() (request *DescribePrometheusAgentInstancesRequest)
func (*DescribePrometheusAgentInstancesRequest) FromJsonString ¶
func (r *DescribePrometheusAgentInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAgentInstancesRequest) ToJsonString ¶
func (r *DescribePrometheusAgentInstancesRequest) ToJsonString() string
type DescribePrometheusAgentInstancesResponse ¶
type DescribePrometheusAgentInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 关联该集群的实例列表 // 注意:此字段可能返回 null,表示取不到有效值。 Instances []*string `json:"Instances,omitempty" name:"Instances" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusAgentInstancesResponse ¶
func NewDescribePrometheusAgentInstancesResponse() (response *DescribePrometheusAgentInstancesResponse)
func (*DescribePrometheusAgentInstancesResponse) FromJsonString ¶
func (r *DescribePrometheusAgentInstancesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAgentInstancesResponse) ToJsonString ¶
func (r *DescribePrometheusAgentInstancesResponse) ToJsonString() string
type DescribePrometheusAgentsRequest ¶
type DescribePrometheusAgentsRequest struct { *tchttp.BaseRequest // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 用于分页 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 用于分页 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribePrometheusAgentsRequest ¶
func NewDescribePrometheusAgentsRequest() (request *DescribePrometheusAgentsRequest)
func (*DescribePrometheusAgentsRequest) FromJsonString ¶
func (r *DescribePrometheusAgentsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAgentsRequest) ToJsonString ¶
func (r *DescribePrometheusAgentsRequest) ToJsonString() string
type DescribePrometheusAgentsResponse ¶
type DescribePrometheusAgentsResponse struct { *tchttp.BaseResponse Response *struct { // 被关联集群信息 Agents []*PrometheusAgentOverview `json:"Agents,omitempty" name:"Agents" list` // 被关联集群总量 Total *uint64 `json:"Total,omitempty" name:"Total"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusAgentsResponse ¶
func NewDescribePrometheusAgentsResponse() (response *DescribePrometheusAgentsResponse)
func (*DescribePrometheusAgentsResponse) FromJsonString ¶
func (r *DescribePrometheusAgentsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAgentsResponse) ToJsonString ¶
func (r *DescribePrometheusAgentsResponse) ToJsonString() string
type DescribePrometheusAlertHistoryRequest ¶
type DescribePrometheusAlertHistoryRequest struct { *tchttp.BaseRequest // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 告警名称 RuleName *string `json:"RuleName,omitempty" name:"RuleName"` // 开始时间 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 结束时间 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // label集合 Labels *string `json:"Labels,omitempty" name:"Labels"` // 分片 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 分片 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribePrometheusAlertHistoryRequest ¶
func NewDescribePrometheusAlertHistoryRequest() (request *DescribePrometheusAlertHistoryRequest)
func (*DescribePrometheusAlertHistoryRequest) FromJsonString ¶
func (r *DescribePrometheusAlertHistoryRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAlertHistoryRequest) ToJsonString ¶
func (r *DescribePrometheusAlertHistoryRequest) ToJsonString() string
type DescribePrometheusAlertHistoryResponse ¶
type DescribePrometheusAlertHistoryResponse struct { *tchttp.BaseResponse Response *struct { // 告警历史 Items []*PrometheusAlertHistoryItem `json:"Items,omitempty" name:"Items" list` // 总数 Total *uint64 `json:"Total,omitempty" name:"Total"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusAlertHistoryResponse ¶
func NewDescribePrometheusAlertHistoryResponse() (response *DescribePrometheusAlertHistoryResponse)
func (*DescribePrometheusAlertHistoryResponse) FromJsonString ¶
func (r *DescribePrometheusAlertHistoryResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAlertHistoryResponse) ToJsonString ¶
func (r *DescribePrometheusAlertHistoryResponse) ToJsonString() string
type DescribePrometheusAlertRuleRequest ¶
type DescribePrometheusAlertRuleRequest struct { *tchttp.BaseRequest // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 分页 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 分页 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤 // 支持ID,Name Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribePrometheusAlertRuleRequest ¶
func NewDescribePrometheusAlertRuleRequest() (request *DescribePrometheusAlertRuleRequest)
func (*DescribePrometheusAlertRuleRequest) FromJsonString ¶
func (r *DescribePrometheusAlertRuleRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAlertRuleRequest) ToJsonString ¶
func (r *DescribePrometheusAlertRuleRequest) ToJsonString() string
type DescribePrometheusAlertRuleResponse ¶
type DescribePrometheusAlertRuleResponse struct { *tchttp.BaseResponse Response *struct { // 告警详情 AlertRules []*PrometheusAlertRuleDetail `json:"AlertRules,omitempty" name:"AlertRules" list` // 总数 Total *uint64 `json:"Total,omitempty" name:"Total"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusAlertRuleResponse ¶
func NewDescribePrometheusAlertRuleResponse() (response *DescribePrometheusAlertRuleResponse)
func (*DescribePrometheusAlertRuleResponse) FromJsonString ¶
func (r *DescribePrometheusAlertRuleResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusAlertRuleResponse) ToJsonString ¶
func (r *DescribePrometheusAlertRuleResponse) ToJsonString() string
type DescribePrometheusOverviewsRequest ¶
type DescribePrometheusOverviewsRequest struct { *tchttp.BaseRequest // 用于分页 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 用于分页 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤实例,目前支持: // ID: 通过实例ID来过滤 // Name: 通过实例名称来过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribePrometheusOverviewsRequest ¶
func NewDescribePrometheusOverviewsRequest() (request *DescribePrometheusOverviewsRequest)
func (*DescribePrometheusOverviewsRequest) FromJsonString ¶
func (r *DescribePrometheusOverviewsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusOverviewsRequest) ToJsonString ¶
func (r *DescribePrometheusOverviewsRequest) ToJsonString() string
type DescribePrometheusOverviewsResponse ¶
type DescribePrometheusOverviewsResponse struct { *tchttp.BaseResponse Response *struct { // 实例列表 Instances []*PrometheusInstanceOverview `json:"Instances,omitempty" name:"Instances" list` // 实例总数 // 注意:此字段可能返回 null,表示取不到有效值。 Total *uint64 `json:"Total,omitempty" name:"Total"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusOverviewsResponse ¶
func NewDescribePrometheusOverviewsResponse() (response *DescribePrometheusOverviewsResponse)
func (*DescribePrometheusOverviewsResponse) FromJsonString ¶
func (r *DescribePrometheusOverviewsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusOverviewsResponse) ToJsonString ¶
func (r *DescribePrometheusOverviewsResponse) ToJsonString() string
type DescribePrometheusTargetsRequest ¶
type DescribePrometheusTargetsRequest struct { *tchttp.BaseRequest // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 集群类型 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 过滤条件,当前支持 // Name=state // Value=up, down, unknown Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` }
func NewDescribePrometheusTargetsRequest ¶
func NewDescribePrometheusTargetsRequest() (request *DescribePrometheusTargetsRequest)
func (*DescribePrometheusTargetsRequest) FromJsonString ¶
func (r *DescribePrometheusTargetsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusTargetsRequest) ToJsonString ¶
func (r *DescribePrometheusTargetsRequest) ToJsonString() string
type DescribePrometheusTargetsResponse ¶
type DescribePrometheusTargetsResponse struct { *tchttp.BaseResponse Response *struct { // 所有Job的targets信息 Jobs []*PrometheusJobTargets `json:"Jobs,omitempty" name:"Jobs" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusTargetsResponse ¶
func NewDescribePrometheusTargetsResponse() (response *DescribePrometheusTargetsResponse)
func (*DescribePrometheusTargetsResponse) FromJsonString ¶
func (r *DescribePrometheusTargetsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusTargetsResponse) ToJsonString ¶
func (r *DescribePrometheusTargetsResponse) ToJsonString() string
type DescribePrometheusTemplateSyncRequest ¶
type DescribePrometheusTemplateSyncRequest struct { *tchttp.BaseRequest // 模板ID TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
func NewDescribePrometheusTemplateSyncRequest ¶
func NewDescribePrometheusTemplateSyncRequest() (request *DescribePrometheusTemplateSyncRequest)
func (*DescribePrometheusTemplateSyncRequest) FromJsonString ¶
func (r *DescribePrometheusTemplateSyncRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusTemplateSyncRequest) ToJsonString ¶
func (r *DescribePrometheusTemplateSyncRequest) ToJsonString() string
type DescribePrometheusTemplateSyncResponse ¶
type DescribePrometheusTemplateSyncResponse struct { *tchttp.BaseResponse Response *struct { // 同步目标详情 Targets []*PrometheusTemplateSyncTarget `json:"Targets,omitempty" name:"Targets" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusTemplateSyncResponse ¶
func NewDescribePrometheusTemplateSyncResponse() (response *DescribePrometheusTemplateSyncResponse)
func (*DescribePrometheusTemplateSyncResponse) FromJsonString ¶
func (r *DescribePrometheusTemplateSyncResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusTemplateSyncResponse) ToJsonString ¶
func (r *DescribePrometheusTemplateSyncResponse) ToJsonString() string
type DescribePrometheusTemplatesRequest ¶
type DescribePrometheusTemplatesRequest struct { *tchttp.BaseRequest // 模糊过滤条件,支持 // Level 按模板级别过滤 // Name 按名称过滤 // Describe 按描述过滤 // ID 按templateId过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` // 分页偏移 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 总数限制 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribePrometheusTemplatesRequest ¶
func NewDescribePrometheusTemplatesRequest() (request *DescribePrometheusTemplatesRequest)
func (*DescribePrometheusTemplatesRequest) FromJsonString ¶
func (r *DescribePrometheusTemplatesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusTemplatesRequest) ToJsonString ¶
func (r *DescribePrometheusTemplatesRequest) ToJsonString() string
type DescribePrometheusTemplatesResponse ¶
type DescribePrometheusTemplatesResponse struct { *tchttp.BaseResponse Response *struct { // 模板列表 Templates []*PrometheusTemplate `json:"Templates,omitempty" name:"Templates" list` // 总数 Total *uint64 `json:"Total,omitempty" name:"Total"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePrometheusTemplatesResponse ¶
func NewDescribePrometheusTemplatesResponse() (response *DescribePrometheusTemplatesResponse)
func (*DescribePrometheusTemplatesResponse) FromJsonString ¶
func (r *DescribePrometheusTemplatesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePrometheusTemplatesResponse) ToJsonString ¶
func (r *DescribePrometheusTemplatesResponse) 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
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 { // 地域的数量 // 注意:此字段可能返回 null,表示取不到有效值。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 地域列表 // 注意:此字段可能返回 null,表示取不到有效值。 RegionInstanceSet []*RegionInstance `json:"RegionInstanceSet,omitempty" name:"RegionInstanceSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 路由表CIDR RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` // 路由表绑定的VPC VpcId *string `json:"VpcId,omitempty" name:"VpcId"` }
func NewDescribeRouteTableConflictsRequest ¶
func NewDescribeRouteTableConflictsRequest() (request *DescribeRouteTableConflictsRequest)
func (*DescribeRouteTableConflictsRequest) FromJsonString ¶
func (r *DescribeRouteTableConflictsRequest) FromJsonString(s string) error
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 { // 路由表是否冲突。 HasConflict *bool `json:"HasConflict,omitempty" name:"HasConflict"` // 路由表冲突列表。 // 注意:此字段可能返回 null,表示取不到有效值。 RouteTableConflictSet []*RouteTableConflict `json:"RouteTableConflictSet,omitempty" name:"RouteTableConflictSet" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 DnsServerConf ¶
type EksCluster ¶
type EksCluster struct { // 集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群名称 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Vpc Id VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 子网列表 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` // k8s 版本号 K8SVersion *string `json:"K8SVersion,omitempty" name:"K8SVersion"` // 集群状态(running运行中,initializing 初始化中,failed异常) Status *string `json:"Status,omitempty" name:"Status"` // 集群描述信息 ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"` // 集群创建时间 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Service 子网Id ServiceSubnetId *string `json:"ServiceSubnetId,omitempty" name:"ServiceSubnetId"` // 集群的自定义dns 服务器信息 DnsServers []*DnsServerConf `json:"DnsServers,omitempty" name:"DnsServers" list` // 将来删除集群时是否要删除cbs。默认为 FALSE NeedDeleteCbs *bool `json:"NeedDeleteCbs,omitempty" name:"NeedDeleteCbs"` // 是否在用户集群内开启Dns。默认为TRUE EnableVpcCoreDNS *bool `json:"EnableVpcCoreDNS,omitempty" name:"EnableVpcCoreDNS"` // 标签描述列表。 // 注意:此字段可能返回 null,表示取不到有效值。 TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification" list` }
type EnhancedService ¶
type EnhancedService struct { // 开启云安全服务。若不指定该参数,则默认开启云安全服务。 SecurityService *RunSecurityServiceEnabled `json:"SecurityService,omitempty" name:"SecurityService"` // 开启云监控服务。若不指定该参数,则默认开启云监控服务。 MonitorService *RunMonitorServiceEnabled `json:"MonitorService,omitempty" name:"MonitorService"` }
type ExistedInstance ¶
type ExistedInstance struct { // 实例是否支持加入集群(TRUE 可以加入 FALSE 不能加入)。 // 注意:此字段可能返回 null,表示取不到有效值。 Usable *bool `json:"Usable,omitempty" name:"Usable"` // 实例不支持加入的原因。 // 注意:此字段可能返回 null,表示取不到有效值。 UnusableReason *string `json:"UnusableReason,omitempty" name:"UnusableReason"` // 实例已经所在的集群ID。 // 注意:此字段可能返回 null,表示取不到有效值。 AlreadyInCluster *string `json:"AlreadyInCluster,omitempty" name:"AlreadyInCluster"` // 实例ID形如:ins-xxxxxxxx。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 实例名称。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // 实例主网卡的内网IP列表。 // 注意:此字段可能返回 null,表示取不到有效值。 PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses" list` // 实例主网卡的公网IP列表。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses" list` // 创建时间。按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。 // 注意:此字段可能返回 null,表示取不到有效值。 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // 实例的CPU核数,单位:核。 // 注意:此字段可能返回 null,表示取不到有效值。 CPU *uint64 `json:"CPU,omitempty" name:"CPU"` // 实例内存容量,单位:GB。 // 注意:此字段可能返回 null,表示取不到有效值。 Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // 操作系统名称。 // 注意:此字段可能返回 null,表示取不到有效值。 OsName *string `json:"OsName,omitempty" name:"OsName"` // 实例机型。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // 伸缩组ID // 注意:此字段可能返回 null,表示取不到有效值。 AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` // 实例计费模式。取值范围: PREPAID:表示预付费,即包年包月 POSTPAID_BY_HOUR:表示后付费,即按量计费 CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` }
type ExistedInstancesForNode ¶
type ExistedInstancesForNode struct { // 节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD最小配置为4C8G。 NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` // 已存在实例的重装参数 ExistedInstancesPara *ExistedInstancesPara `json:"ExistedInstancesPara,omitempty" name:"ExistedInstancesPara"` // 节点高级设置,会覆盖集群级别设置的InstanceAdvancedSettings(当前只对节点自定义参数ExtraArgs生效) InstanceAdvancedSettingsOverride *InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverride,omitempty" name:"InstanceAdvancedSettingsOverride"` }
type ExistedInstancesPara ¶
type ExistedInstancesPara struct { // 集群ID InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 实例额外需要设置参数信息 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // 节点登录信息(目前仅支持使用Password或者单个KeyIds) LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // 实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` // 重装系统时,可以指定修改实例的HostName(集群为HostName模式时,此参数必传,规则名称除不支持大写字符外与[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口HostName一致) HostName *string `json:"HostName,omitempty" name:"HostName"` }
type ExtensionAddon ¶
type GetUpgradeInstanceProgressRequest ¶
type GetUpgradeInstanceProgressRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 最多获取多少个节点的进度 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 从第几个节点开始获取进度 Offset *int64 `json:"Offset,omitempty" name:"Offset"` }
func NewGetUpgradeInstanceProgressRequest ¶
func NewGetUpgradeInstanceProgressRequest() (request *GetUpgradeInstanceProgressRequest)
func (*GetUpgradeInstanceProgressRequest) FromJsonString ¶
func (r *GetUpgradeInstanceProgressRequest) FromJsonString(s string) error
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 *int64 `json:"Total,omitempty" name:"Total"` // 已升级节点总数 Done *int64 `json:"Done,omitempty" name:"Done"` // 升级任务生命周期 // process 运行中 // paused 已停止 // pauing 正在停止 // done 已完成 // timeout 已超时 // aborted 已取消 LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // 各节点升级进度详情 Instances []*InstanceUpgradeProgressItem `json:"Instances,omitempty" name:"Instances" list` // 集群当前状态 ClusterStatus *InstanceUpgradeClusterStatus `json:"ClusterStatus,omitempty" name:"ClusterStatus"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 { // 镜像别名 // 注意:此字段可能返回 null,表示取不到有效值。 Alias *string `json:"Alias,omitempty" name:"Alias"` // 操作系统名称 // 注意:此字段可能返回 null,表示取不到有效值。 OsName *string `json:"OsName,omitempty" name:"OsName"` // 镜像ID // 注意:此字段可能返回 null,表示取不到有效值。 ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值) // 注意:此字段可能返回 null,表示取不到有效值。 OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` }
type Instance ¶
type Instance struct { // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` // 实例异常(或者处于初始化中)的原因 FailedReason *string `json:"FailedReason,omitempty" name:"FailedReason"` // 实例的状态(running 运行中,initializing 初始化中,failed 异常) InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"` // 实例是否封锁状态 // 注意:此字段可能返回 null,表示取不到有效值。 DrainStatus *string `json:"DrainStatus,omitempty" name:"DrainStatus"` // 节点配置 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 添加时间 CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // 节点内网IP // 注意:此字段可能返回 null,表示取不到有效值。 LanIP *string `json:"LanIP,omitempty" name:"LanIP"` // 资源池ID // 注意:此字段可能返回 null,表示取不到有效值。 NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 自动伸缩组ID // 注意:此字段可能返回 null,表示取不到有效值。 AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` }
type InstanceAdvancedSettings ¶
type InstanceAdvancedSettings struct { // 数据盘挂载点, 默认不挂载数据盘. 已格式化的 ext3,ext4,xfs 文件系统的数据盘将直接挂载,其他文件系统或未格式化的数据盘将自动格式化为ext4 (tlinux系统格式化成xfs)并挂载,请注意备份数据! 无数据盘或有多块数据盘的云主机此设置不生效。 // 注意,注意,多盘场景请使用下方的DataDisks数据结构,设置对应的云盘类型、云盘大小、挂载路径、是否格式化等信息。 // 注意:此字段可能返回 null,表示取不到有效值。 MountTarget *string `json:"MountTarget,omitempty" name:"MountTarget"` // dockerd --graph 指定值, 默认为 /var/lib/docker // 注意:此字段可能返回 null,表示取不到有效值。 DockerGraphPath *string `json:"DockerGraphPath,omitempty" name:"DockerGraphPath"` // base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度 // 注意:此字段可能返回 null,表示取不到有效值。 UserScript *string `json:"UserScript,omitempty" name:"UserScript"` // 设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度. Unschedulable *int64 `json:"Unschedulable,omitempty" name:"Unschedulable"` // 节点Label数组 // 注意:此字段可能返回 null,表示取不到有效值。 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // 多盘数据盘挂载信息,同时请确保购买CVM的参数传递了购买多个数据盘的信息,如添加节点CreateClusterInstances API的RunInstancesPara下的DataDisks也设置了购买多个数据盘, 具体可以参考CreateClusterInstances接口的,添加集群节点(多块数据盘)样例;注意:此参数在调用接口AddExistedInstances时不起作用 // 注意:此字段可能返回 null,表示取不到有效值。 DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks" list` // 节点相关的自定义参数信息 // 注意:此字段可能返回 null,表示取不到有效值。 ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` }
type InstanceExtraArgs ¶
type InstanceExtraArgs struct { // kubelet自定义参数,参数格式为["k1=v1", "k1=v2"], 例如["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"] // 注意:此字段可能返回 null,表示取不到有效值。 Kubelet []*string `json:"Kubelet,omitempty" name:"Kubelet" list` }
type InstanceUpgradePreCheckResult ¶
type InstanceUpgradePreCheckResult struct { // 检查是否通过 CheckPass *bool `json:"CheckPass,omitempty" name:"CheckPass"` // 检查项数组 Items []*InstanceUpgradePreCheckResultItem `json:"Items,omitempty" name:"Items" list` // 本节点独立pod列表 SinglePods []*string `json:"SinglePods,omitempty" name:"SinglePods" list` }
type InstanceUpgradePreCheckResultItem ¶
type InstanceUpgradePreCheckResultItem struct { // 工作负载的命名空间 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` // 工作负载类型 WorkLoadKind *string `json:"WorkLoadKind,omitempty" name:"WorkLoadKind"` // 工作负载名称 WorkLoadName *string `json:"WorkLoadName,omitempty" name:"WorkLoadName"` // 驱逐节点前工作负载running的pod数目 Before *uint64 `json:"Before,omitempty" name:"Before"` // 驱逐节点后工作负载running的pod数目 After *uint64 `json:"After,omitempty" name:"After"` // 工作负载在本节点上的pod列表 Pods []*string `json:"Pods,omitempty" name:"Pods" list` }
type InstanceUpgradeProgressItem ¶
type InstanceUpgradeProgressItem struct { // 节点instanceID InstanceID *string `json:"InstanceID,omitempty" name:"InstanceID"` // 任务生命周期 // process 运行中 // paused 已停止 // pauing 正在停止 // done 已完成 // timeout 已超时 // aborted 已取消 // pending 还未开始 LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // 升级开始时间 // 注意:此字段可能返回 null,表示取不到有效值。 StartAt *string `json:"StartAt,omitempty" name:"StartAt"` // 升级结束时间 // 注意:此字段可能返回 null,表示取不到有效值。 EndAt *string `json:"EndAt,omitempty" name:"EndAt"` // 升级前检查结果 CheckResult *InstanceUpgradePreCheckResult `json:"CheckResult,omitempty" name:"CheckResult"` // 升级步骤详情 Detail []*TaskStepInfo `json:"Detail,omitempty" name:"Detail" list` }
type LoginSettings ¶
type LoginSettings struct { // 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。 // 注意:此字段可能返回 null,表示取不到有效值。 Password *string `json:"Password,omitempty" name:"Password"` // 密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口[DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699)获取,密钥与密码不能同时指定,同时Windows操作系统不支持指定密钥。当前仅支持购买的时候指定一个密钥。 // 注意:此字段可能返回 null,表示取不到有效值。 KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds" list` // 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为TRUE。取值范围:<br><li>TRUE:表示保持镜像的登录设置<br><li>FALSE:表示不保持镜像的登录设置<br><br>默认取值:FALSE。 // 注意:此字段可能返回 null,表示取不到有效值。 KeepImageLogin *string `json:"KeepImageLogin,omitempty" name:"KeepImageLogin"` }
type ManuallyAdded ¶
type ManuallyAdded struct { // 加入中的节点数量 Joining *int64 `json:"Joining,omitempty" name:"Joining"` // 初始化中的节点数量 Initializing *int64 `json:"Initializing,omitempty" name:"Initializing"` // 正常的节点数量 Normal *int64 `json:"Normal,omitempty" name:"Normal"` // 节点总数 Total *int64 `json:"Total,omitempty" name:"Total"` }
type ModifyClusterAsGroupAttributeRequest ¶
type ModifyClusterAsGroupAttributeRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群关联的伸缩组属性 ClusterAsGroupAttribute *ClusterAsGroupAttribute `json:"ClusterAsGroupAttribute,omitempty" name:"ClusterAsGroupAttribute"` }
func NewModifyClusterAsGroupAttributeRequest ¶
func NewModifyClusterAsGroupAttributeRequest() (request *ModifyClusterAsGroupAttributeRequest)
func (*ModifyClusterAsGroupAttributeRequest) FromJsonString ¶
func (r *ModifyClusterAsGroupAttributeRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群弹性伸缩属性 ClusterAsGroupOption *ClusterAsGroupOption `json:"ClusterAsGroupOption,omitempty" name:"ClusterAsGroupOption"` }
func NewModifyClusterAsGroupOptionAttributeRequest ¶
func NewModifyClusterAsGroupOptionAttributeRequest() (request *ModifyClusterAsGroupOptionAttributeRequest)
func (*ModifyClusterAsGroupOptionAttributeRequest) FromJsonString ¶
func (r *ModifyClusterAsGroupOptionAttributeRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 集群所属项目 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // 集群名称 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // 集群描述 ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"` }
func NewModifyClusterAttributeRequest ¶
func NewModifyClusterAttributeRequest() (request *ModifyClusterAttributeRequest)
func (*ModifyClusterAttributeRequest) FromJsonString ¶
func (r *ModifyClusterAttributeRequest) FromJsonString(s string) error
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 { // 集群所属项目 // 注意:此字段可能返回 null,表示取不到有效值。 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // 集群名称 // 注意:此字段可能返回 null,表示取不到有效值。 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // 集群描述 // 注意:此字段可能返回 null,表示取不到有效值。 ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 ModifyClusterEndpointSPRequest ¶
type ModifyClusterEndpointSPRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 安全策略放通单个IP或CIDR(例如: "192.168.1.0/24",默认为拒绝所有) SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies" list` }
func NewModifyClusterEndpointSPRequest ¶
func NewModifyClusterEndpointSPRequest() (request *ModifyClusterEndpointSPRequest)
func (*ModifyClusterEndpointSPRequest) FromJsonString ¶
func (r *ModifyClusterEndpointSPRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 节点池ID NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 名称 Name *string `json:"Name,omitempty" name:"Name"` // 最大节点数 MaxNodesNum *int64 `json:"MaxNodesNum,omitempty" name:"MaxNodesNum"` // 最小节点数 MinNodesNum *int64 `json:"MinNodesNum,omitempty" name:"MinNodesNum"` // 标签 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // 污点 Taints []*Taint `json:"Taints,omitempty" name:"Taints" list` // 是否开启伸缩 EnableAutoscale *bool `json:"EnableAutoscale,omitempty" name:"EnableAutoscale"` // 操作系统名称 OsName *string `json:"OsName,omitempty" name:"OsName"` // 镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值) OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` }
func NewModifyClusterNodePoolRequest ¶
func NewModifyClusterNodePoolRequest() (request *ModifyClusterNodePoolRequest)
func (*ModifyClusterNodePoolRequest) FromJsonString ¶
func (r *ModifyClusterNodePoolRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 ModifyNodePoolDesiredCapacityAboutAsgRequest ¶
type ModifyNodePoolDesiredCapacityAboutAsgRequest struct { *tchttp.BaseRequest // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 节点池id NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 节点池所关联的伸缩组的期望实例数 DesiredCapacity *int64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"` }
func NewModifyNodePoolDesiredCapacityAboutAsgRequest ¶
func NewModifyNodePoolDesiredCapacityAboutAsgRequest() (request *ModifyNodePoolDesiredCapacityAboutAsgRequest)
func (*ModifyNodePoolDesiredCapacityAboutAsgRequest) FromJsonString ¶
func (r *ModifyNodePoolDesiredCapacityAboutAsgRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNodePoolDesiredCapacityAboutAsgRequest) ToJsonString ¶
func (r *ModifyNodePoolDesiredCapacityAboutAsgRequest) ToJsonString() string
type ModifyNodePoolDesiredCapacityAboutAsgResponse ¶
type ModifyNodePoolDesiredCapacityAboutAsgResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyNodePoolDesiredCapacityAboutAsgResponse ¶
func NewModifyNodePoolDesiredCapacityAboutAsgResponse() (response *ModifyNodePoolDesiredCapacityAboutAsgResponse)
func (*ModifyNodePoolDesiredCapacityAboutAsgResponse) FromJsonString ¶
func (r *ModifyNodePoolDesiredCapacityAboutAsgResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyNodePoolDesiredCapacityAboutAsgResponse) ToJsonString ¶
func (r *ModifyNodePoolDesiredCapacityAboutAsgResponse) ToJsonString() string
type ModifyPrometheusTemplateRequest ¶
type ModifyPrometheusTemplateRequest struct { *tchttp.BaseRequest // 模板ID TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // 修改内容 Template *PrometheusTemplateModify `json:"Template,omitempty" name:"Template"` }
func NewModifyPrometheusTemplateRequest ¶
func NewModifyPrometheusTemplateRequest() (request *ModifyPrometheusTemplateRequest)
func (*ModifyPrometheusTemplateRequest) FromJsonString ¶
func (r *ModifyPrometheusTemplateRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyPrometheusTemplateRequest) ToJsonString ¶
func (r *ModifyPrometheusTemplateRequest) ToJsonString() string
type ModifyPrometheusTemplateResponse ¶
type ModifyPrometheusTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyPrometheusTemplateResponse ¶
func NewModifyPrometheusTemplateResponse() (response *ModifyPrometheusTemplateResponse)
func (*ModifyPrometheusTemplateResponse) FromJsonString ¶
func (r *ModifyPrometheusTemplateResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyPrometheusTemplateResponse) ToJsonString ¶
func (r *ModifyPrometheusTemplateResponse) ToJsonString() string
type NodeCountSummary ¶
type NodeCountSummary struct { // 手动管理的节点 // 注意:此字段可能返回 null,表示取不到有效值。 ManuallyAdded *ManuallyAdded `json:"ManuallyAdded,omitempty" name:"ManuallyAdded"` // 自动管理的节点 // 注意:此字段可能返回 null,表示取不到有效值。 AutoscalingAdded *AutoscalingAdded `json:"AutoscalingAdded,omitempty" name:"AutoscalingAdded"` }
type NodePool ¶
type NodePool struct { // NodePoolId 资源池id NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // Name 资源池名称 Name *string `json:"Name,omitempty" name:"Name"` // ClusterInstanceId 集群实例id ClusterInstanceId *string `json:"ClusterInstanceId,omitempty" name:"ClusterInstanceId"` // LifeState 状态,当前节点池生命周期状态包括:creating,normal,updating,deleting,deleted LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // LaunchConfigurationId 配置 LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"` // AutoscalingGroupId 分组id AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"` // Labels 标签 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // Taints 污点标记 Taints []*Taint `json:"Taints,omitempty" name:"Taints" list` // NodeCountSummary 节点列表 NodeCountSummary *NodeCountSummary `json:"NodeCountSummary,omitempty" name:"NodeCountSummary"` // 状态信息 // 注意:此字段可能返回 null,表示取不到有效值。 AutoscalingGroupStatus *string `json:"AutoscalingGroupStatus,omitempty" name:"AutoscalingGroupStatus"` // 最大节点数量 // 注意:此字段可能返回 null,表示取不到有效值。 MaxNodesNum *int64 `json:"MaxNodesNum,omitempty" name:"MaxNodesNum"` // 最小节点数量 // 注意:此字段可能返回 null,表示取不到有效值。 MinNodesNum *int64 `json:"MinNodesNum,omitempty" name:"MinNodesNum"` // 期望的节点数量 // 注意:此字段可能返回 null,表示取不到有效值。 DesiredNodesNum *int64 `json:"DesiredNodesNum,omitempty" name:"DesiredNodesNum"` // 节点池osName // 注意:此字段可能返回 null,表示取不到有效值。 NodePoolOs *string `json:"NodePoolOs,omitempty" name:"NodePoolOs"` // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值) // 注意:此字段可能返回 null,表示取不到有效值。 OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"` // 镜像id // 注意:此字段可能返回 null,表示取不到有效值。 ImageId *string `json:"ImageId,omitempty" name:"ImageId"` // 集群属于节点podCIDR大小自定义模式时,节点池需要带上pod数量属性 // 注意:此字段可能返回 null,表示取不到有效值。 DesiredPodNum *int64 `json:"DesiredPodNum,omitempty" name:"DesiredPodNum"` // 用户自定义脚本 // 注意:此字段可能返回 null,表示取不到有效值。 UserScript *string `json:"UserScript,omitempty" name:"UserScript"` }
type NodePoolOption ¶
type NodePoolOption struct { // 是否加入节点池 AddToNodePool *bool `json:"AddToNodePool,omitempty" name:"AddToNodePool"` // 节点池id NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 是否继承节点池相关配置 InheritConfigurationFromNodePool *bool `json:"InheritConfigurationFromNodePool,omitempty" name:"InheritConfigurationFromNodePool"` }
type PrometheusAgentOverview ¶
type PrometheusAgentOverview struct { // 集群类型 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // agent状态 // normal = 正常 // abnormal = 异常 Status *string `json:"Status,omitempty" name:"Status"` // 集群名称 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` }
type PrometheusAlertHistoryItem ¶
type PrometheusAlertHistoryItem struct { // 告警名称 RuleName *string `json:"RuleName,omitempty" name:"RuleName"` // 告警开始时间 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 告警内容 Content *string `json:"Content,omitempty" name:"Content"` // 告警状态 // 注意:此字段可能返回 null,表示取不到有效值。 State *string `json:"State,omitempty" name:"State"` // 触发的规则名称 // 注意:此字段可能返回 null,表示取不到有效值。 RuleItem *string `json:"RuleItem,omitempty" name:"RuleItem"` // 告警渠道的id // 注意:此字段可能返回 null,表示取不到有效值。 TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // 告警渠道的名称 // 注意:此字段可能返回 null,表示取不到有效值。 TopicName *string `json:"TopicName,omitempty" name:"TopicName"` }
type PrometheusAlertRule ¶
type PrometheusAlertRule struct { // 规则名称 Name *string `json:"Name,omitempty" name:"Name"` // prometheus语句 Rule *string `json:"Rule,omitempty" name:"Rule"` // 额外标签 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // 告警发送模板 Template *string `json:"Template,omitempty" name:"Template"` // 持续时间 For *string `json:"For,omitempty" name:"For"` // 该条规则的描述信息 // 注意:此字段可能返回 null,表示取不到有效值。 Describe *string `json:"Describe,omitempty" name:"Describe"` }
type PrometheusAlertRuleDetail ¶
type PrometheusAlertRuleDetail struct { // 规则名称 Name *string `json:"Name,omitempty" name:"Name"` // 规则列表 Rules []*PrometheusAlertRule `json:"Rules,omitempty" name:"Rules" list` // 最后修改时间 UpdatedAt *string `json:"UpdatedAt,omitempty" name:"UpdatedAt"` // 告警渠道 Notification *PrometheusNotification `json:"Notification,omitempty" name:"Notification"` // 告警 id Id *string `json:"Id,omitempty" name:"Id"` // 如果该告警来至模板下发,则TemplateId为模板id // 注意:此字段可能返回 null,表示取不到有效值。 TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // 计算周期 // 注意:此字段可能返回 null,表示取不到有效值。 Interval *string `json:"Interval,omitempty" name:"Interval"` }
type PrometheusConfigItem ¶
type PrometheusInstanceOverview ¶
type PrometheusInstanceOverview struct { // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 实例名称 Name *string `json:"Name,omitempty" name:"Name"` // 实例vpcId VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // 实例子网Id SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // 实例当前的状态 // prepare_env = 初始化环境 // install_suit = 安装组件 // running = 运行中 Status *string `json:"Status,omitempty" name:"Status"` // COS桶存储 COSBucket *string `json:"COSBucket,omitempty" name:"COSBucket"` }
type PrometheusJobTargets ¶
type PrometheusJobTargets struct { // 该Job的targets列表 Targets []*PrometheusTarget `json:"Targets,omitempty" name:"Targets" list` // job的名称 JobName *string `json:"JobName,omitempty" name:"JobName"` // targets总数 Total *uint64 `json:"Total,omitempty" name:"Total"` // 健康的target总数 Up *uint64 `json:"Up,omitempty" name:"Up"` }
type PrometheusNotification ¶
type PrometheusNotification struct { // 是否启用 Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` // 收敛时间 RepeatInterval *string `json:"RepeatInterval,omitempty" name:"RepeatInterval"` // 生效起始时间 TimeRangeStart *string `json:"TimeRangeStart,omitempty" name:"TimeRangeStart"` // 生效结束时间 TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"` // 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。 // 分别代表:短信、邮件、电话、微信 // 注意:此字段可能返回 null,表示取不到有效值。 NotifyWay []*string `json:"NotifyWay,omitempty" name:"NotifyWay" list` // 告警接收组(用户组) // 注意:此字段可能返回 null,表示取不到有效值。 ReceiverGroups []*uint64 `json:"ReceiverGroups,omitempty" name:"ReceiverGroups" list` // 电话告警顺序。 // 注:NotifyWay选择CALL,采用该参数。 // 注意:此字段可能返回 null,表示取不到有效值。 PhoneNotifyOrder []*uint64 `json:"PhoneNotifyOrder,omitempty" name:"PhoneNotifyOrder" list` // 电话告警次数。 // 注:NotifyWay选择CALL,采用该参数。 // 注意:此字段可能返回 null,表示取不到有效值。 PhoneCircleTimes *int64 `json:"PhoneCircleTimes,omitempty" name:"PhoneCircleTimes"` // 电话告警轮内间隔。单位:秒 // 注:NotifyWay选择CALL,采用该参数。 // 注意:此字段可能返回 null,表示取不到有效值。 PhoneInnerInterval *int64 `json:"PhoneInnerInterval,omitempty" name:"PhoneInnerInterval"` // 电话告警轮外间隔。单位:秒 // 注:NotifyWay选择CALL,采用该参数。 // 注意:此字段可能返回 null,表示取不到有效值。 PhoneCircleInterval *int64 `json:"PhoneCircleInterval,omitempty" name:"PhoneCircleInterval"` // 电话告警触达通知 // 注:NotifyWay选择CALL,采用该参数。 // 注意:此字段可能返回 null,表示取不到有效值。 PhoneArriveNotice *bool `json:"PhoneArriveNotice,omitempty" name:"PhoneArriveNotice"` // 通道类型,默认为amp,支持以下 // amp // webhook // 注意:此字段可能返回 null,表示取不到有效值。 Type *string `json:"Type,omitempty" name:"Type"` // 如果Type为webhook, 则该字段为必填项 // 注意:此字段可能返回 null,表示取不到有效值。 WebHook *string `json:"WebHook,omitempty" name:"WebHook"` }
type PrometheusTarget ¶
type PrometheusTarget struct { // 抓取目标的URL Url *string `json:"Url,omitempty" name:"Url"` // target当前状态,当前支持 // up = 健康 // down = 不健康 // unknown = 未知 State *string `json:"State,omitempty" name:"State"` // target的元label Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // 上一次抓取的时间 LastScrape *string `json:"LastScrape,omitempty" name:"LastScrape"` // 上一次抓取的耗时,单位是s ScrapeDuration *float64 `json:"ScrapeDuration,omitempty" name:"ScrapeDuration"` // 上一次抓取如果错误,该字段存储错误信息 Error *string `json:"Error,omitempty" name:"Error"` }
type PrometheusTemplate ¶
type PrometheusTemplate struct { // 模板名称 Name *string `json:"Name,omitempty" name:"Name"` // 模板维度,支持以下类型 // instance 实例级别 // cluster 集群级别 Level *string `json:"Level,omitempty" name:"Level"` // 模板描述 // 注意:此字段可能返回 null,表示取不到有效值。 Describe *string `json:"Describe,omitempty" name:"Describe"` // 当Level为instance时有效, // 模板中的告警配置列表 // 注意:此字段可能返回 null,表示取不到有效值。 AlertRules []*PrometheusAlertRule `json:"AlertRules,omitempty" name:"AlertRules" list` // 当Level为instance时有效, // 模板中的聚合规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 RecordRules []*PrometheusConfigItem `json:"RecordRules,omitempty" name:"RecordRules" list` // 当Level为cluster时有效, // 模板中的ServiceMonitor规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 ServiceMonitors []*PrometheusConfigItem `json:"ServiceMonitors,omitempty" name:"ServiceMonitors" list` // 当Level为cluster时有效, // 模板中的PodMonitors规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 PodMonitors []*PrometheusConfigItem `json:"PodMonitors,omitempty" name:"PodMonitors" list` // 当Level为cluster时有效, // 模板中的RawJobs规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 RawJobs []*PrometheusConfigItem `json:"RawJobs,omitempty" name:"RawJobs" list` // 模板的ID, 用于出参 // 注意:此字段可能返回 null,表示取不到有效值。 TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // 最近更新时间,用于出参 // 注意:此字段可能返回 null,表示取不到有效值。 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // 当前版本,用于出参 // 注意:此字段可能返回 null,表示取不到有效值。 Version *string `json:"Version,omitempty" name:"Version"` // 是否系统提供的默认模板,用于出参 // 注意:此字段可能返回 null,表示取不到有效值。 IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"` // 当Level为instance时有效, // 模板中的告警配置列表 // 注意:此字段可能返回 null,表示取不到有效值。 AlertDetailRules []*PrometheusAlertRuleDetail `json:"AlertDetailRules,omitempty" name:"AlertDetailRules" list` }
type PrometheusTemplateModify ¶
type PrometheusTemplateModify struct { // 修改名称 Name *string `json:"Name,omitempty" name:"Name"` // 修改描述 // 注意:此字段可能返回 null,表示取不到有效值。 Describe *string `json:"Describe,omitempty" name:"Describe"` // 修改内容,只有当模板类型是Alert时生效 // 注意:此字段可能返回 null,表示取不到有效值。 AlertRules []*PrometheusAlertRule `json:"AlertRules,omitempty" name:"AlertRules" list` // 当Level为instance时有效, // 模板中的聚合规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 RecordRules []*PrometheusConfigItem `json:"RecordRules,omitempty" name:"RecordRules" list` // 当Level为cluster时有效, // 模板中的ServiceMonitor规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 ServiceMonitors []*PrometheusConfigItem `json:"ServiceMonitors,omitempty" name:"ServiceMonitors" list` // 当Level为cluster时有效, // 模板中的PodMonitors规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 PodMonitors []*PrometheusConfigItem `json:"PodMonitors,omitempty" name:"PodMonitors" list` // 当Level为cluster时有效, // 模板中的RawJobs规则列表 // 注意:此字段可能返回 null,表示取不到有效值。 RawJobs []*PrometheusConfigItem `json:"RawJobs,omitempty" name:"RawJobs" list` // 修改内容,只有当模板类型是Alert时生效 // 注意:此字段可能返回 null,表示取不到有效值。 AlertDetailRules []*PrometheusAlertRuleDetail `json:"AlertDetailRules,omitempty" name:"AlertDetailRules" list` }
type PrometheusTemplateSyncTarget ¶
type PrometheusTemplateSyncTarget struct { // 目标所在地域 Region *string `json:"Region,omitempty" name:"Region"` // 目标实例 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 集群id,只有当采集模板的Level为cluster的时候需要 // 注意:此字段可能返回 null,表示取不到有效值。 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 最后一次同步时间, 用于出参 // 注意:此字段可能返回 null,表示取不到有效值。 SyncTime *string `json:"SyncTime,omitempty" name:"SyncTime"` // 当前使用的模板版本,用于出参 // 注意:此字段可能返回 null,表示取不到有效值。 Version *string `json:"Version,omitempty" name:"Version"` // 集群类型,只有当采集模板的Level为cluster的时候需要 // 注意:此字段可能返回 null,表示取不到有效值。 ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // 用于出参,实例名称 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` // 用于出参,集群名称 // 注意:此字段可能返回 null,表示取不到有效值。 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` }
type RegionInstance ¶
type RegionInstance struct { // 地域名称 // 注意:此字段可能返回 null,表示取不到有效值。 RegionName *string `json:"RegionName,omitempty" name:"RegionName"` // 地域ID // 注意:此字段可能返回 null,表示取不到有效值。 RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // 地域状态 // 注意:此字段可能返回 null,表示取不到有效值。 Status *string `json:"Status,omitempty" name:"Status"` // 地域特性开关(按照JSON的形式返回所有属性) // 注意:此字段可能返回 null,表示取不到有效值。 FeatureGates *string `json:"FeatureGates,omitempty" name:"FeatureGates"` // 地域简称 // 注意:此字段可能返回 null,表示取不到有效值。 Alias *string `json:"Alias,omitempty" name:"Alias"` // 地域白名单 // 注意:此字段可能返回 null,表示取不到有效值。 Remark *string `json:"Remark,omitempty" name:"Remark"` }
type RemoveNodeFromNodePoolRequest ¶
type RemoveNodeFromNodePoolRequest struct { *tchttp.BaseRequest // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 节点池id NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"` // 节点id列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` }
func NewRemoveNodeFromNodePoolRequest ¶
func NewRemoveNodeFromNodePoolRequest() (request *RemoveNodeFromNodePoolRequest)
func (*RemoveNodeFromNodePoolRequest) FromJsonString ¶
func (r *RemoveNodeFromNodePoolRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 RouteTableConflict ¶
type RouteTableConflict struct { // 路由表类型。 RouteTableType *string `json:"RouteTableType,omitempty" name:"RouteTableType"` // 路由表CIDR。 // 注意:此字段可能返回 null,表示取不到有效值。 RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` // 路由表名称。 // 注意:此字段可能返回 null,表示取不到有效值。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` // 路由表ID。 // 注意:此字段可能返回 null,表示取不到有效值。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` }
type RouteTableInfo ¶
type RunInstancesForNode ¶
type RunInstancesForNode struct { // 节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD节点最小配置为4C8G。 NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` // CVM创建透传参数,json化字符串格式,详见[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口,传入公共参数外的其他参数即可,其中ImageId会替换为TKE集群OS对应的镜像。 RunInstancesPara []*string `json:"RunInstancesPara,omitempty" name:"RunInstancesPara" list` // 节点高级设置,该参数会覆盖集群级别设置的InstanceAdvancedSettings,和上边的RunInstancesPara按照顺序一一对应(当前只对节点自定义参数ExtraArgs生效)。 InstanceAdvancedSettingsOverrides []*InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverrides,omitempty" name:"InstanceAdvancedSettingsOverrides" list` }
type RunMonitorServiceEnabled ¶
type RunMonitorServiceEnabled struct { // 是否开启[云监控](/document/product/248)服务。取值范围:<br><li>TRUE:表示开启云监控服务<br><li>FALSE:表示不开启云监控服务<br><br>默认取值:TRUE。 Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type RunSecurityServiceEnabled ¶
type RunSecurityServiceEnabled struct { // 是否开启[云安全](/document/product/296)服务。取值范围:<br><li>TRUE:表示开启云安全服务<br><li>FALSE:表示不开启云安全服务<br><br>默认取值:TRUE。 Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` }
type SetNodePoolNodeProtectionRequest ¶
type SetNodePoolNodeProtectionRequest struct {
*tchttp.BaseRequest
}
func NewSetNodePoolNodeProtectionRequest ¶
func NewSetNodePoolNodeProtectionRequest() (request *SetNodePoolNodeProtectionRequest)
func (*SetNodePoolNodeProtectionRequest) FromJsonString ¶
func (r *SetNodePoolNodeProtectionRequest) FromJsonString(s string) error
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,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 SyncPrometheusTemplateRequest ¶
type SyncPrometheusTemplateRequest struct { *tchttp.BaseRequest // 实例id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // 同步目标 Targets []*PrometheusTemplateSyncTarget `json:"Targets,omitempty" name:"Targets" list` }
func NewSyncPrometheusTemplateRequest ¶
func NewSyncPrometheusTemplateRequest() (request *SyncPrometheusTemplateRequest)
func (*SyncPrometheusTemplateRequest) FromJsonString ¶
func (r *SyncPrometheusTemplateRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SyncPrometheusTemplateRequest) ToJsonString ¶
func (r *SyncPrometheusTemplateRequest) ToJsonString() string
type SyncPrometheusTemplateResponse ¶
type SyncPrometheusTemplateResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSyncPrometheusTemplateResponse ¶
func NewSyncPrometheusTemplateResponse() (response *SyncPrometheusTemplateResponse)
func (*SyncPrometheusTemplateResponse) FromJsonString ¶
func (r *SyncPrometheusTemplateResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SyncPrometheusTemplateResponse) ToJsonString ¶
func (r *SyncPrometheusTemplateResponse) ToJsonString() string
type TagSpecification ¶
type TaskStepInfo ¶
type TaskStepInfo struct { // 步骤名称 Step *string `json:"Step,omitempty" name:"Step"` // 生命周期 // pending : 步骤未开始 // running: 步骤执行中 // success: 步骤成功完成 // failed: 步骤失败 LifeState *string `json:"LifeState,omitempty" name:"LifeState"` // 步骤开始时间 // 注意:此字段可能返回 null,表示取不到有效值。 StartAt *string `json:"StartAt,omitempty" name:"StartAt"` // 步骤结束时间 // 注意:此字段可能返回 null,表示取不到有效值。 EndAt *string `json:"EndAt,omitempty" name:"EndAt"` // 若步骤生命周期为failed,则此字段显示错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 FailedMsg *string `json:"FailedMsg,omitempty" name:"FailedMsg"` }
type UpdateClusterVersionRequest ¶
type UpdateClusterVersionRequest struct { *tchttp.BaseRequest // 集群 Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 需要升级到的版本 DstVersion *string `json:"DstVersion,omitempty" name:"DstVersion"` // 集群自定义参数 ExtraArgs *ClusterExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` // 可容忍的最大不可用pod数目 MaxNotReadyPercent *float64 `json:"MaxNotReadyPercent,omitempty" name:"MaxNotReadyPercent"` // 是否跳过预检查阶段 SkipPreCheck *bool `json:"SkipPreCheck,omitempty" name:"SkipPreCheck"` }
func NewUpdateClusterVersionRequest ¶
func NewUpdateClusterVersionRequest() (request *UpdateClusterVersionRequest)
func (*UpdateClusterVersionRequest) FromJsonString ¶
func (r *UpdateClusterVersionRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 UpdateEKSClusterRequest ¶
type UpdateEKSClusterRequest struct { *tchttp.BaseRequest // 弹性集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // 弹性集群名称 ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // 弹性集群描述信息 ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"` // 子网Id 列表 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` // 弹性容器集群公网访问LB信息 PublicLB *ClusterPublicLB `json:"PublicLB,omitempty" name:"PublicLB"` // 弹性容器集群内网访问LB信息 InternalLB *ClusterInternalLB `json:"InternalLB,omitempty" name:"InternalLB"` // Service 子网Id ServiceSubnetId *string `json:"ServiceSubnetId,omitempty" name:"ServiceSubnetId"` // 集群自定义的dns 服务器信息 DnsServers []*DnsServerConf `json:"DnsServers,omitempty" name:"DnsServers" list` // 是否清空自定义dns 服务器设置。为1 表示 是。其他表示 否。 ClearDnsServer *string `json:"ClearDnsServer,omitempty" name:"ClearDnsServer"` // 将来删除集群时是否要删除cbs。默认为 FALSE NeedDeleteCbs *bool `json:"NeedDeleteCbs,omitempty" name:"NeedDeleteCbs"` }
func NewUpdateEKSClusterRequest ¶
func NewUpdateEKSClusterRequest() (request *UpdateEKSClusterRequest)
func (*UpdateEKSClusterRequest) FromJsonString ¶
func (r *UpdateEKSClusterRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateEKSClusterRequest) ToJsonString ¶
func (r *UpdateEKSClusterRequest) ToJsonString() string
type UpdateEKSClusterResponse ¶
type UpdateEKSClusterResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateEKSClusterResponse ¶
func NewUpdateEKSClusterResponse() (response *UpdateEKSClusterResponse)
func (*UpdateEKSClusterResponse) FromJsonString ¶
func (r *UpdateEKSClusterResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateEKSClusterResponse) ToJsonString ¶
func (r *UpdateEKSClusterResponse) ToJsonString() string
type UpgradeAbleInstancesItem ¶
type UpgradeAbleInstancesItem struct { // 节点Id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // 节点的当前版本 Version *string `json:"Version,omitempty" name:"Version"` // 当前版本的最新小版本 // 注意:此字段可能返回 null,表示取不到有效值。 LatestVersion *string `json:"LatestVersion,omitempty" name:"LatestVersion"` }
type UpgradeClusterInstancesRequest ¶
type UpgradeClusterInstancesRequest struct { *tchttp.BaseRequest // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // create 表示开始一次升级任务 // pause 表示停止任务 // resume表示继续任务 // abort表示终止任务 Operation *string `json:"Operation,omitempty" name:"Operation"` // 升级类型,只有Operation是create需要设置 // reset 大版本重装升级 // hot 小版本热升级 // major 大版本原地升级 UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"` // 需要升级的节点列表 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` // 当节点重新加入集群时候所使用的参数,参考添加已有节点接口 ResetParam *UpgradeNodeResetParam `json:"ResetParam,omitempty" name:"ResetParam"` // 是否忽略节点升级前检查 SkipPreCheck *bool `json:"SkipPreCheck,omitempty" name:"SkipPreCheck"` // 最大可容忍的不可用Pod比例 MaxNotReadyPercent *float64 `json:"MaxNotReadyPercent,omitempty" name:"MaxNotReadyPercent"` }
func NewUpgradeClusterInstancesRequest ¶
func NewUpgradeClusterInstancesRequest() (request *UpgradeClusterInstancesRequest)
func (*UpgradeClusterInstancesRequest) FromJsonString ¶
func (r *UpgradeClusterInstancesRequest) FromJsonString(s string) error
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 { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 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
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 { // 实例额外需要设置参数信息 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` // 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"` // 节点登录信息(目前仅支持使用Password或者单个KeyIds) LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"` // 实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。(目前仅支持设置单个sgId) SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` }