Documentation ¶
Index ¶
- Constants
- type AddExistedInstancesRequest
- type AddExistedInstancesResponse
- type Client
- func (c *Client) AddExistedInstances(request *AddExistedInstancesRequest) (response *AddExistedInstancesResponse, 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) CreateClusterRoute(request *CreateClusterRouteRequest) (response *CreateClusterRouteResponse, err error)
- func (c *Client) CreateClusterRouteTable(request *CreateClusterRouteTableRequest) (response *CreateClusterRouteTableResponse, 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) DeleteClusterRoute(request *DeleteClusterRouteRequest) (response *DeleteClusterRouteResponse, err error)
- func (c *Client) DeleteClusterRouteTable(request *DeleteClusterRouteTableRequest) (response *DeleteClusterRouteTableResponse, 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) 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) DescribeExistedInstances(request *DescribeExistedInstancesRequest) (response *DescribeExistedInstancesResponse, err error)
- func (c *Client) DescribeRouteTableConflicts(request *DescribeRouteTableConflictsRequest) (response *DescribeRouteTableConflictsResponse, err error)
- func (c *Client) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error)
- type Cluster
- type ClusterAdvancedSettings
- type ClusterBasicSettings
- type ClusterCIDRSettings
- type ClusterNetworkSettings
- type CreateClusterAsGroupRequest
- type CreateClusterAsGroupResponse
- type CreateClusterEndpointRequest
- type CreateClusterEndpointResponse
- type CreateClusterEndpointVipRequest
- type CreateClusterEndpointVipResponse
- type CreateClusterInstancesRequest
- type CreateClusterInstancesResponse
- type CreateClusterRequest
- type CreateClusterResponse
- type CreateClusterRouteRequest
- type CreateClusterRouteResponse
- type CreateClusterRouteTableRequest
- type CreateClusterRouteTableResponse
- type DataDisk
- type DeleteClusterAsGroupsRequest
- type DeleteClusterAsGroupsResponse
- type DeleteClusterEndpointRequest
- type DeleteClusterEndpointResponse
- type DeleteClusterEndpointVipRequest
- type DeleteClusterEndpointVipResponse
- type DeleteClusterInstancesRequest
- type DeleteClusterInstancesResponse
- type DeleteClusterRequest
- type DeleteClusterResponse
- type DeleteClusterRouteRequest
- type DeleteClusterRouteResponse
- type DeleteClusterRouteTableRequest
- type DeleteClusterRouteTableResponse
- type DescribeClusterEndpointStatusRequest
- type DescribeClusterEndpointStatusResponse
- type DescribeClusterEndpointVipStatusRequest
- type DescribeClusterEndpointVipStatusResponse
- type DescribeClusterInstancesRequest
- type DescribeClusterInstancesResponse
- type DescribeClusterRouteTablesRequest
- type DescribeClusterRouteTablesResponse
- type DescribeClusterRoutesRequest
- type DescribeClusterRoutesResponse
- type DescribeClusterSecurityRequest
- type DescribeClusterSecurityResponse
- type DescribeClustersRequest
- type DescribeClustersResponse
- type DescribeExistedInstancesRequest
- type DescribeExistedInstancesResponse
- type DescribeRouteTableConflictsRequest
- type DescribeRouteTableConflictsResponse
- type EnhancedService
- type ExistedInstance
- type ExistedInstancesForNode
- type ExistedInstancesPara
- type Filter
- type Instance
- type InstanceAdvancedSettings
- type Label
- type LoginSettings
- type ModifyClusterEndpointSPRequest
- type ModifyClusterEndpointSPResponse
- type RouteInfo
- type RouteTableConflict
- type RouteTableInfo
- type RunInstancesForNode
- type RunMonitorServiceEnabled
- type RunSecurityServiceEnabled
- type Tag
- type TagSpecification
Constants ¶
View Source
const APIVersion = "2018-05-25"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` // 实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。(目前仅支持设置单个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"` }
func NewAddExistedInstancesRequest ¶
func NewAddExistedInstancesRequest() (request *AddExistedInstancesRequest)
func (*AddExistedInstancesRequest) FromJsonString ¶
func (r *AddExistedInstancesRequest) FromJsonString(s string) error
func (*AddExistedInstancesRequest) ToJsonString ¶
func (r *AddExistedInstancesRequest) ToJsonString() string
type AddExistedInstancesResponse ¶
type AddExistedInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 失败的节点ID FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds" list` // 成功的节点ID SuccInstanceIds []*string `json:"SuccInstanceIds,omitempty" name:"SuccInstanceIds" list` // 超时未返回出来节点的ID(可能失败,也可能成功) TimeoutInstanceIds []*string `json:"TimeoutInstanceIds,omitempty" name:"TimeoutInstanceIds" 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
func (*AddExistedInstancesResponse) ToJsonString ¶
func (r *AddExistedInstancesResponse) 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) AddExistedInstances ¶
func (c *Client) AddExistedInstances(request *AddExistedInstancesRequest) (response *AddExistedInstancesResponse, 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) 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) 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) 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) 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) 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) DescribeExistedInstances ¶
func (c *Client) DescribeExistedInstances(request *DescribeExistedInstancesRequest) (response *DescribeExistedInstancesResponse, err error)
查询已经存在的节点,判断是否可以加入集群
func (*Client) DescribeRouteTableConflicts ¶
func (c *Client) DescribeRouteTableConflicts(request *DescribeRouteTableConflictsRequest) (response *DescribeRouteTableConflictsResponse, err error)
查询路由表冲突列表
func (*Client) ModifyClusterEndpointSP ¶
func (c *Client) ModifyClusterEndpointSP(request *ModifyClusterEndpointSPRequest) (response *ModifyClusterEndpointSPResponse, err error)
修改托管集群外网端口的安全策略(老的方式,仅支持托管集群外网端口)
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"` }
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"` }
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"` }
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 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
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
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
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
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
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
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化字符串格式,详见[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口。 RunInstancePara *string `json:"RunInstancePara,omitempty" name:"RunInstancePara"` // 实例额外需要设置参数信息 InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"` }
func NewCreateClusterInstancesRequest ¶
func NewCreateClusterInstancesRequest() (request *CreateClusterInstancesRequest)
func (*CreateClusterInstancesRequest) FromJsonString ¶
func (r *CreateClusterInstancesRequest) FromJsonString(s string) error
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
func (*CreateClusterInstancesResponse) ToJsonString ¶
func (r *CreateClusterInstancesResponse) 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` }
func NewCreateClusterRequest ¶
func NewCreateClusterRequest() (request *CreateClusterRequest)
func (*CreateClusterRequest) FromJsonString ¶
func (r *CreateClusterRequest) FromJsonString(s string) error
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
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
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
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
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
func (*CreateClusterRouteTableResponse) ToJsonString ¶
func (r *CreateClusterRouteTableResponse) ToJsonString() string
type DataDisk ¶
type DataDisk struct { // 云盘类型 DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // 文件系统 FileSystem *string `json:"FileSystem,omitempty" name:"FileSystem"` // 云盘大小(G) DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // 是否自动化格式盘并挂载 AutuFormatAndMount *bool `json:"AutuFormatAndMount,omitempty" name:"AutuFormatAndMount"` // 挂载目录 MountTarget []*string `json:"MountTarget,omitempty" name:"MountTarget" list` // 云盘ID DiskId []*string `json:"DiskId,omitempty" name:"DiskId" list` }
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
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
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
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
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
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
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
func (*DeleteClusterInstancesRequest) ToJsonString ¶
func (r *DeleteClusterInstancesRequest) ToJsonString() string
type DeleteClusterInstancesResponse ¶
type DeleteClusterInstancesResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 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
func (*DeleteClusterInstancesResponse) ToJsonString ¶
func (r *DeleteClusterInstancesResponse) 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"` }
func NewDeleteClusterRequest ¶
func NewDeleteClusterRequest() (request *DeleteClusterRequest)
func (*DeleteClusterRequest) FromJsonString ¶
func (r *DeleteClusterRequest) FromJsonString(s string) error
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
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
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
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
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
func (*DeleteClusterRouteTableResponse) ToJsonString ¶
func (r *DeleteClusterRouteTableResponse) 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
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"` // 唯一请求 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
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
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
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
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
func (*DescribeClusterInstancesResponse) ToJsonString ¶
func (r *DescribeClusterInstancesResponse) 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
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
func (*DescribeClusterRouteTablesResponse) ToJsonString ¶
func (r *DescribeClusterRouteTablesResponse) ToJsonString() string
type DescribeClusterRoutesRequest ¶
type DescribeClusterRoutesRequest struct { *tchttp.BaseRequest // 路由表名称。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` }
func NewDescribeClusterRoutesRequest ¶
func NewDescribeClusterRoutesRequest() (request *DescribeClusterRoutesRequest)
func (*DescribeClusterRoutesRequest) FromJsonString ¶
func (r *DescribeClusterRoutesRequest) FromJsonString(s string) error
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
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
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"` // 集群访问策略组 SecurityPolicy []*string `json:"SecurityPolicy,omitempty" name:"SecurityPolicy" list` // 唯一请求 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
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
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
func (*DescribeClustersResponse) ToJsonString ¶
func (r *DescribeClustersResponse) 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"` }
func NewDescribeExistedInstancesRequest ¶
func NewDescribeExistedInstancesRequest() (request *DescribeExistedInstancesRequest)
func (*DescribeExistedInstancesRequest) FromJsonString ¶
func (r *DescribeExistedInstancesRequest) FromJsonString(s string) error
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
func (*DescribeExistedInstancesResponse) ToJsonString ¶
func (r *DescribeExistedInstancesResponse) 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
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
func (*DescribeRouteTableConflictsResponse) ToJsonString ¶
func (r *DescribeRouteTableConflictsResponse) ToJsonString() string
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"` // 实例计费模式。取值范围: // PREPAID:表示预付费,即包年包月 // POSTPAID_BY_HOUR:表示后付费,即按量计费 // CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` // 实例的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"` }
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"` }
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 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"` }
type InstanceAdvancedSettings ¶
type InstanceAdvancedSettings struct { // 数据盘挂载点, 默认不挂载数据盘. 已格式化的 ext3,ext4,xfs 文件系统的数据盘将直接挂载,其他文件系统或未格式化的数据盘将自动格式化为ext4 并挂载,请注意备份数据! 无数据盘或有多块数据盘的云主机此设置不生效。 MountTarget *string `json:"MountTarget,omitempty" name:"MountTarget"` // dockerd --graph 指定值, 默认为 /var/lib/docker DockerGraphPath *string `json:"DockerGraphPath,omitempty" name:"DockerGraphPath"` // base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度 UserScript *string `json:"UserScript,omitempty" name:"UserScript"` // 设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度. Unschedulable *int64 `json:"Unschedulable,omitempty" name:"Unschedulable"` // 节点Label数组 Labels []*Label `json:"Labels,omitempty" name:"Labels" list` // 数据盘相关信息 DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks" list` }
type LoginSettings ¶
type LoginSettings struct { // 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到16位,至少包括两项[a-z,A-Z]、[0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到16位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) ` ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? /]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。 // 注意:此字段可能返回 null,表示取不到有效值。 Password *string `json:"Password,omitempty" name:"Password"` // 密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口DescribeKeyPairs获取,密钥与密码不能同时指定,同时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 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
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
func (*ModifyClusterEndpointSPResponse) ToJsonString ¶
func (r *ModifyClusterEndpointSPResponse) ToJsonString() string
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` }
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 TagSpecification ¶
Click to show internal directories.
Click to hide internal directories.