Documentation
¶
Index ¶
- Constants
- type AddClusterStorageOptionRequest
- type AddClusterStorageOptionRequestParams
- type AddClusterStorageOptionResponse
- type AddClusterStorageOptionResponseParams
- type AddNodesRequest
- type AddNodesRequestParams
- type AddNodesResponse
- type AddNodesResponseParams
- type AddQueueRequest
- type AddQueueRequestParams
- type AddQueueResponse
- type AddQueueResponseParams
- type BindAutoScalingGroupRequest
- type BindAutoScalingGroupRequestParams
- type BindAutoScalingGroupResponse
- type BindAutoScalingGroupResponseParams
- type CFSOption
- type CFSOptionOverview
- type Client
- func (c *Client) AddClusterStorageOption(request *AddClusterStorageOptionRequest) (response *AddClusterStorageOptionResponse, err error)
- func (c *Client) AddClusterStorageOptionWithContext(ctx context.Context, request *AddClusterStorageOptionRequest) (response *AddClusterStorageOptionResponse, err error)
- func (c *Client) AddNodes(request *AddNodesRequest) (response *AddNodesResponse, err error)
- func (c *Client) AddNodesWithContext(ctx context.Context, request *AddNodesRequest) (response *AddNodesResponse, err error)
- func (c *Client) AddQueue(request *AddQueueRequest) (response *AddQueueResponse, err error)
- func (c *Client) AddQueueWithContext(ctx context.Context, request *AddQueueRequest) (response *AddQueueResponse, err error)
- func (c *Client) BindAutoScalingGroup(request *BindAutoScalingGroupRequest) (response *BindAutoScalingGroupResponse, err error)
- func (c *Client) BindAutoScalingGroupWithContext(ctx context.Context, request *BindAutoScalingGroupRequest) (response *BindAutoScalingGroupResponse, err error)
- func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)
- func (c *Client) CreateClusterWithContext(ctx context.Context, request *CreateClusterRequest) (response *CreateClusterResponse, err error)
- func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)
- func (c *Client) DeleteClusterStorageOption(request *DeleteClusterStorageOptionRequest) (response *DeleteClusterStorageOptionResponse, err error)
- func (c *Client) DeleteClusterStorageOptionWithContext(ctx context.Context, request *DeleteClusterStorageOptionRequest) (response *DeleteClusterStorageOptionResponse, err error)
- func (c *Client) DeleteClusterWithContext(ctx context.Context, request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)
- func (c *Client) DeleteNodes(request *DeleteNodesRequest) (response *DeleteNodesResponse, err error)
- func (c *Client) DeleteNodesWithContext(ctx context.Context, request *DeleteNodesRequest) (response *DeleteNodesResponse, err error)
- func (c *Client) DeleteQueue(request *DeleteQueueRequest) (response *DeleteQueueResponse, err error)
- func (c *Client) DeleteQueueWithContext(ctx context.Context, request *DeleteQueueRequest) (response *DeleteQueueResponse, err error)
- func (c *Client) DescribeAutoScalingConfiguration(request *DescribeAutoScalingConfigurationRequest) (response *DescribeAutoScalingConfigurationResponse, err error)
- func (c *Client) DescribeAutoScalingConfigurationWithContext(ctx context.Context, request *DescribeAutoScalingConfigurationRequest) (response *DescribeAutoScalingConfigurationResponse, err error)
- func (c *Client) DescribeClusterActivities(request *DescribeClusterActivitiesRequest) (response *DescribeClusterActivitiesResponse, err error)
- func (c *Client) DescribeClusterActivitiesWithContext(ctx context.Context, request *DescribeClusterActivitiesRequest) (response *DescribeClusterActivitiesResponse, err error)
- func (c *Client) DescribeClusterStorageOption(request *DescribeClusterStorageOptionRequest) (response *DescribeClusterStorageOptionResponse, err error)
- func (c *Client) DescribeClusterStorageOptionWithContext(ctx context.Context, request *DescribeClusterStorageOptionRequest) (response *DescribeClusterStorageOptionResponse, err error)
- func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
- func (c *Client) DescribeClustersWithContext(ctx context.Context, request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
- func (c *Client) DescribeNodes(request *DescribeNodesRequest) (response *DescribeNodesResponse, err error)
- func (c *Client) DescribeNodesWithContext(ctx context.Context, request *DescribeNodesRequest) (response *DescribeNodesResponse, err error)
- func (c *Client) DescribeQueues(request *DescribeQueuesRequest) (response *DescribeQueuesResponse, err error)
- func (c *Client) DescribeQueuesWithContext(ctx context.Context, request *DescribeQueuesRequest) (response *DescribeQueuesResponse, err error)
- func (c *Client) SetAutoScalingConfiguration(request *SetAutoScalingConfigurationRequest) (response *SetAutoScalingConfigurationResponse, err error)
- func (c *Client) SetAutoScalingConfigurationWithContext(ctx context.Context, request *SetAutoScalingConfigurationRequest) (response *SetAutoScalingConfigurationResponse, err error)
- type ClusterActivity
- type ClusterOverview
- type ComputeNode
- type ComputeNodeOverview
- type CreateClusterRequest
- type CreateClusterRequestParams
- type CreateClusterResponse
- type CreateClusterResponseParams
- type DataDisk
- type DeleteClusterRequest
- type DeleteClusterRequestParams
- type DeleteClusterResponse
- type DeleteClusterResponseParams
- type DeleteClusterStorageOptionRequest
- type DeleteClusterStorageOptionRequestParams
- type DeleteClusterStorageOptionResponse
- type DeleteClusterStorageOptionResponseParams
- type DeleteNodesRequest
- type DeleteNodesRequestParams
- type DeleteNodesResponse
- type DeleteNodesResponseParams
- type DeleteQueueRequest
- type DeleteQueueRequestParams
- type DeleteQueueResponse
- type DeleteQueueResponseParams
- type DescribeAutoScalingConfigurationRequest
- type DescribeAutoScalingConfigurationRequestParams
- type DescribeAutoScalingConfigurationResponse
- type DescribeAutoScalingConfigurationResponseParams
- type DescribeClusterActivitiesRequest
- type DescribeClusterActivitiesRequestParams
- type DescribeClusterActivitiesResponse
- type DescribeClusterActivitiesResponseParams
- type DescribeClusterStorageOptionRequest
- type DescribeClusterStorageOptionRequestParams
- type DescribeClusterStorageOptionResponse
- type DescribeClusterStorageOptionResponseParams
- type DescribeClustersRequest
- type DescribeClustersRequestParams
- type DescribeClustersResponse
- type DescribeClustersResponseParams
- type DescribeNodesRequest
- type DescribeNodesRequestParams
- type DescribeNodesResponse
- type DescribeNodesResponseParams
- type DescribeQueuesRequest
- type DescribeQueuesRequestParams
- type DescribeQueuesResponse
- type DescribeQueuesResponseParams
- type ExpansionNodeConfig
- type ExpansionNodeConfigOverview
- type Filter
- type GooseFSOption
- type GooseFSOptionOverview
- type InstanceChargePrepaid
- type InternetAccessible
- type LoginNode
- type LoginNodeOverview
- type LoginSettings
- type ManagerNode
- type ManagerNodeOverview
- type NodeActivity
- type NodeOverview
- type Placement
- type QueueConfig
- type QueueConfigOverview
- type QueueOverview
- type SetAutoScalingConfigurationRequest
- type SetAutoScalingConfigurationRequestParams
- type SetAutoScalingConfigurationResponse
- type SetAutoScalingConfigurationResponseParams
- type StorageOption
- type StorageOptionOverview
- type SystemDisk
- type Tag
- type VirtualPrivateCloud
Constants ¶
const ( // CAM签名/鉴权错误。 AUTHFAILURE = "AuthFailure" // DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。 DRYRUNOPERATION = "DryRunOperation" // 操作失败。 FAILEDOPERATION = "FailedOperation" // 内部错误。 INTERNALERROR = "InternalError" // CAM服务调用失败。 INTERNALERROR_CALLCAM = "InternalError.CallCAM" // cvm调用失败。 INTERNALERROR_CALLCVM = "InternalError.CallCvm" // 参数错误。 INVALIDPARAMETER = "InvalidParameter" // 参数格式有误。 INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" // 不支持指定过滤器的键。 INVALIDPARAMETERVALUE_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameterValue.InvalidFilterNotSupportedName" // 参数值数量超过限制。 INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // 不支持该参数值。 INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" // 字段不支持此值。 INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = "InvalidParameterValue.ParametersNotSupported" // 参数值过大。 INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge" // 参数长度过长。 INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // 无效参数值。参数值太短。 INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" // 参数值过小。 INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" // 参数值重复。不支持此操作。 INVALIDPARAMETERVALUE_VALUEDUPLICATED = "InvalidParameterValue.ValueDuplicated" // 超过配额限制。 LIMITEXCEEDED = "LimitExceeded" // 队列数量达到上限。 LIMITEXCEEDED_QUEUENUMLIMIT = "LimitExceeded.QueueNumLimit" // 缺少参数错误。 MISSINGPARAMETER = "MissingParameter" // 操作被拒绝。 OPERATIONDENIED = "OperationDenied" // 请求的次数超过了频率限制。 REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // 资源被占用。 RESOURCEINUSE = "ResourceInUse" // 资源不足。 RESOURCEINSUFFICIENT = "ResourceInsufficient" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" // 无法找到弹性伸缩组ID。 RESOURCENOTFOUND_AUTOSCALINGGROUPID = "ResourceNotFound.AutoScalingGroupId" // 集群不存在。 RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" // 无法找到镜像ID。 RESOURCENOTFOUND_IMAGEID = "ResourceNotFound.ImageId" // 无法找到ID对应的弹性伸缩启动配置。 RESOURCENOTFOUND_LAUNCHCONFIGURATIONID = "ResourceNotFound.LaunchConfigurationId" // 无法找到ID对应节点。 RESOURCENOTFOUND_NODEID = "ResourceNotFound.NodeId" // 无法找到指定队列。 RESOURCENOTFOUND_QUEUE = "ResourceNotFound.Queue" // 未授权操作。 UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // 未知参数错误。 UNKNOWNPARAMETER = "UnknownParameter" // 操作不支持。 UNSUPPORTEDOPERATION = "UnsupportedOperation" // 该伸缩组已绑定集群,请更换伸缩组。 UNSUPPORTEDOPERATION_AUTOSCALINGGROUPALREADYBINDED = "UnsupportedOperation.AutoScalingGroupAlreadyBinded" // 弹性伸缩类型不支持此操作。 UNSUPPORTEDOPERATION_AUTOSCALINGTYPE = "UnsupportedOperation.AutoScalingType" // 该集群当前状态不支持该操作。 UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport" // 类型节点不支持当前操作。 UNSUPPORTEDOPERATION_INVALIDNODEROLE = "UnsupportedOperation.InvalidNodeRole" // 节点状态不支持此操作。 UNSUPPORTEDOPERATION_NODESTATUSNOTSUPPORT = "UnsupportedOperation.NodeStatusNotSupport" // 参数值过大,不支持此操作。 UNSUPPORTEDOPERATION_PARAMETERTOOLARGE = "UnsupportedOperation.ParameterTooLarge" // 参数值过小,不支持此操作。 UNSUPPORTEDOPERATION_PARAMETERTOOSMALL = "UnsupportedOperation.ParameterTooSmall" // 队列内存在节点,不支持此操作。 UNSUPPORTEDOPERATION_QUEUENOTEMPTY = "UnsupportedOperation.QueueNotEmpty" // vpc冲突,不支持当前操作。 UNSUPPORTEDOPERATION_VPCIDCONFLICT = "UnsupportedOperation.VpcIdConflict" )
const APIVersion = "2022-04-01"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddClusterStorageOptionRequest ¶ added in v1.0.563
type AddClusterStorageOptionRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 集群存储选项。 StorageOption *StorageOption `json:"StorageOption,omitnil,omitempty" name:"StorageOption"` }
func NewAddClusterStorageOptionRequest ¶ added in v1.0.563
func NewAddClusterStorageOptionRequest() (request *AddClusterStorageOptionRequest)
func (*AddClusterStorageOptionRequest) FromJsonString ¶ added in v1.0.563
func (r *AddClusterStorageOptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddClusterStorageOptionRequest) ToJsonString ¶ added in v1.0.563
func (r *AddClusterStorageOptionRequest) ToJsonString() string
type AddClusterStorageOptionRequestParams ¶ added in v1.0.563
type AddClusterStorageOptionRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 集群存储选项。 StorageOption *StorageOption `json:"StorageOption,omitnil,omitempty" name:"StorageOption"` }
Predefined struct for user
type AddClusterStorageOptionResponse ¶ added in v1.0.563
type AddClusterStorageOptionResponse struct { *tchttp.BaseResponse Response *AddClusterStorageOptionResponseParams `json:"Response"` }
func NewAddClusterStorageOptionResponse ¶ added in v1.0.563
func NewAddClusterStorageOptionResponse() (response *AddClusterStorageOptionResponse)
func (*AddClusterStorageOptionResponse) FromJsonString ¶ added in v1.0.563
func (r *AddClusterStorageOptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddClusterStorageOptionResponse) ToJsonString ¶ added in v1.0.563
func (r *AddClusterStorageOptionResponse) ToJsonString() string
type AddClusterStorageOptionResponseParams ¶ added in v1.0.563
type AddClusterStorageOptionResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type AddNodesRequest ¶
type AddNodesRequest struct { *tchttp.BaseRequest // 集群中实例所在的位置。 Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"` // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 私有网络相关信息配置。 VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitnil,omitempty" name:"VirtualPrivateCloud"` // 添加节点数量。 Count *int64 `json:"Count,omitnil,omitempty" name:"Count"` // 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像和特定自定义镜像。 ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 SystemDisk []*SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 节点显示名称。 // 不指定节点显示名称则默认显示‘未命名’。 // 最多支持60个字符。 InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"` // 集群登录设置。 LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"` // 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"` // 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。<li>SGE默认队列为:all.q。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` // 添加节点角色。默认值:Compute<br><li>Compute:计算节点。<br><li>Login:登录节点。 NodeRole *string `json:"NodeRole,omitnil,omitempty" name:"NodeRole"` // 是否只预检此次请求。 // true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId. // false(默认):发送正常请求,通过检查后直接创建实例 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` // 添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。<li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。 NodeType *string `json:"NodeType,omitnil,omitempty" name:"NodeType"` }
func NewAddNodesRequest ¶
func NewAddNodesRequest() (request *AddNodesRequest)
func (*AddNodesRequest) FromJsonString ¶
func (r *AddNodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddNodesRequest) ToJsonString ¶
func (r *AddNodesRequest) ToJsonString() string
type AddNodesRequestParams ¶ added in v1.0.426
type AddNodesRequestParams struct { // 集群中实例所在的位置。 Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"` // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 私有网络相关信息配置。 VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitnil,omitempty" name:"VirtualPrivateCloud"` // 添加节点数量。 Count *int64 `json:"Count,omitnil,omitempty" name:"Count"` // 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像和特定自定义镜像。 ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 节点机型。不同实例机型指定了不同的资源规格。<br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 SystemDisk []*SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 节点显示名称。 // 不指定节点显示名称则默认显示‘未命名’。 // 最多支持60个字符。 InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"` // 集群登录设置。 LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"` // 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"` // 队列名称。不指定则为默认队列。<li>SLURM默认队列为:compute。<li>SGE默认队列为:all.q。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` // 添加节点角色。默认值:Compute<br><li>Compute:计算节点。<br><li>Login:登录节点。 NodeRole *string `json:"NodeRole,omitnil,omitempty" name:"NodeRole"` // 是否只预检此次请求。 // true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId. // false(默认):发送正常请求,通过检查后直接创建实例 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` // 添加节点类型。默认取值:STATIC。<li>STATIC:静态节点,不会参与弹性伸缩流程。<li>DYNAMIC:弹性节点,会被弹性缩容的节点。管控节点和登录节点不支持此参数。 NodeType *string `json:"NodeType,omitnil,omitempty" name:"NodeType"` }
Predefined struct for user
type AddNodesResponse ¶
type AddNodesResponse struct { *tchttp.BaseResponse Response *AddNodesResponseParams `json:"Response"` }
func NewAddNodesResponse ¶
func NewAddNodesResponse() (response *AddNodesResponse)
func (*AddNodesResponse) FromJsonString ¶
func (r *AddNodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddNodesResponse) ToJsonString ¶
func (r *AddNodesResponse) ToJsonString() string
type AddNodesResponseParams ¶ added in v1.0.426
type AddNodesResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type AddQueueRequest ¶ added in v1.0.603
type AddQueueRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 队列名称。<br><li>最多支持32个字符。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` }
func NewAddQueueRequest ¶ added in v1.0.603
func NewAddQueueRequest() (request *AddQueueRequest)
func (*AddQueueRequest) FromJsonString ¶ added in v1.0.603
func (r *AddQueueRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddQueueRequest) ToJsonString ¶ added in v1.0.603
func (r *AddQueueRequest) ToJsonString() string
type AddQueueRequestParams ¶ added in v1.0.603
type AddQueueRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 队列名称。<br><li>最多支持32个字符。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` }
Predefined struct for user
type AddQueueResponse ¶ added in v1.0.603
type AddQueueResponse struct { *tchttp.BaseResponse Response *AddQueueResponseParams `json:"Response"` }
func NewAddQueueResponse ¶ added in v1.0.603
func NewAddQueueResponse() (response *AddQueueResponse)
func (*AddQueueResponse) FromJsonString ¶ added in v1.0.603
func (r *AddQueueResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddQueueResponse) ToJsonString ¶ added in v1.0.603
func (r *AddQueueResponse) ToJsonString() string
type AddQueueResponseParams ¶ added in v1.0.603
type AddQueueResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type BindAutoScalingGroupRequest ¶
type BindAutoScalingGroupRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 弹性伸缩启动配置ID。 LaunchConfigurationId *string `json:"LaunchConfigurationId,omitnil,omitempty" name:"LaunchConfigurationId"` // 弹性伸缩组ID。 AutoScalingGroupId *string `json:"AutoScalingGroupId,omitnil,omitempty" name:"AutoScalingGroupId"` // 队列名称。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` // 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。 ExpansionBusyTime *int64 `json:"ExpansionBusyTime,omitnil,omitempty" name:"ExpansionBusyTime"` // 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。 ShrinkIdleTime *int64 `json:"ShrinkIdleTime,omitnil,omitempty" name:"ShrinkIdleTime"` // 是否开启自动扩容,默认值true。 EnableAutoExpansion *bool `json:"EnableAutoExpansion,omitnil,omitempty" name:"EnableAutoExpansion"` // 是否开启自动缩容,默认值true。 EnableAutoShrink *bool `json:"EnableAutoShrink,omitnil,omitempty" name:"EnableAutoShrink"` // 是否只预检此次请求。 // true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId。 // false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` }
func NewBindAutoScalingGroupRequest ¶
func NewBindAutoScalingGroupRequest() (request *BindAutoScalingGroupRequest)
func (*BindAutoScalingGroupRequest) FromJsonString ¶
func (r *BindAutoScalingGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BindAutoScalingGroupRequest) ToJsonString ¶
func (r *BindAutoScalingGroupRequest) ToJsonString() string
type BindAutoScalingGroupRequestParams ¶ added in v1.0.426
type BindAutoScalingGroupRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 弹性伸缩启动配置ID。 LaunchConfigurationId *string `json:"LaunchConfigurationId,omitnil,omitempty" name:"LaunchConfigurationId"` // 弹性伸缩组ID。 AutoScalingGroupId *string `json:"AutoScalingGroupId,omitnil,omitempty" name:"AutoScalingGroupId"` // 队列名称。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` // 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。 ExpansionBusyTime *int64 `json:"ExpansionBusyTime,omitnil,omitempty" name:"ExpansionBusyTime"` // 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。 ShrinkIdleTime *int64 `json:"ShrinkIdleTime,omitnil,omitempty" name:"ShrinkIdleTime"` // 是否开启自动扩容,默认值true。 EnableAutoExpansion *bool `json:"EnableAutoExpansion,omitnil,omitempty" name:"EnableAutoExpansion"` // 是否开启自动缩容,默认值true。 EnableAutoShrink *bool `json:"EnableAutoShrink,omitnil,omitempty" name:"EnableAutoShrink"` // 是否只预检此次请求。 // true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId。 // false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` }
Predefined struct for user
type BindAutoScalingGroupResponse ¶
type BindAutoScalingGroupResponse struct { *tchttp.BaseResponse Response *BindAutoScalingGroupResponseParams `json:"Response"` }
func NewBindAutoScalingGroupResponse ¶
func NewBindAutoScalingGroupResponse() (response *BindAutoScalingGroupResponse)
func (*BindAutoScalingGroupResponse) FromJsonString ¶
func (r *BindAutoScalingGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BindAutoScalingGroupResponse) ToJsonString ¶
func (r *BindAutoScalingGroupResponse) ToJsonString() string
type BindAutoScalingGroupResponseParams ¶ added in v1.0.426
type BindAutoScalingGroupResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CFSOption ¶
type CFSOption struct { // 文件系统本地挂载路径。 LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` // 文件系统远程挂载ip及路径。 RemotePath *string `json:"RemotePath,omitnil,omitempty" name:"RemotePath"` // 文件系统协议类型,默认值NFS 3.0。 // <li>NFS 3.0。 // <li>NFS 4.0。 // <li>TURBO。 Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"` // 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。 StorageType *string `json:"StorageType,omitnil,omitempty" name:"StorageType"` }
type CFSOptionOverview ¶ added in v1.0.576
type CFSOptionOverview struct { // 文件系统本地挂载路径。 LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` // 文件系统远程挂载ip及路径。 RemotePath *string `json:"RemotePath,omitnil,omitempty" name:"RemotePath"` // 文件系统协议类型。 // <li>NFS 3.0。 // <li>NFS 4.0。 // <li>TURBO。 Protocol *string `json:"Protocol,omitnil,omitempty" name:"Protocol"` // 文件系统存储类型,默认值SD;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。 StorageType *string `json:"StorageType,omitnil,omitempty" name:"StorageType"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddClusterStorageOption ¶ added in v1.0.563
func (c *Client) AddClusterStorageOption(request *AddClusterStorageOptionRequest) (response *AddClusterStorageOptionResponse, err error)
AddClusterStorageOption 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
func (*Client) AddClusterStorageOptionWithContext ¶ added in v1.0.563
func (c *Client) AddClusterStorageOptionWithContext(ctx context.Context, request *AddClusterStorageOptionRequest) (response *AddClusterStorageOptionResponse, err error)
AddClusterStorageOption 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
func (*Client) AddNodes ¶
func (c *Client) AddNodes(request *AddNodesRequest) (response *AddNodesResponse, err error)
AddNodes 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
可能返回的错误码:
DRYRUNOPERATION = "DryRunOperation" INTERNALERROR_CALLCVM = "InternalError.CallCvm" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_QUEUE = "ResourceNotFound.Queue" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) AddNodesWithContext ¶
func (c *Client) AddNodesWithContext(ctx context.Context, request *AddNodesRequest) (response *AddNodesResponse, err error)
AddNodes 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
可能返回的错误码:
DRYRUNOPERATION = "DryRunOperation" INTERNALERROR_CALLCVM = "InternalError.CallCvm" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_QUEUE = "ResourceNotFound.Queue" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) AddQueue ¶ added in v1.0.603
func (c *Client) AddQueue(request *AddQueueRequest) (response *AddQueueResponse, err error)
AddQueue 本接口(AddQueue)用于添加队列到指定集群。
* 本接口为目前只支持SchedulerType为SLURM的集群。
* 单个集群中队列数量上限为10个。
可能返回的错误码:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" INVALIDPARAMETERVALUE_VALUEDUPLICATED = "InvalidParameterValue.ValueDuplicated" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_QUEUENUMLIMIT = "LimitExceeded.QueueNumLimit" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) AddQueueWithContext ¶ added in v1.0.603
func (c *Client) AddQueueWithContext(ctx context.Context, request *AddQueueRequest) (response *AddQueueResponse, err error)
AddQueue 本接口(AddQueue)用于添加队列到指定集群。
* 本接口为目前只支持SchedulerType为SLURM的集群。
* 单个集群中队列数量上限为10个。
可能返回的错误码:
AUTHFAILURE = "AuthFailure" FAILEDOPERATION = "FailedOperation" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" INVALIDPARAMETERVALUE_VALUEDUPLICATED = "InvalidParameterValue.ValueDuplicated" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_QUEUENUMLIMIT = "LimitExceeded.QueueNumLimit" OPERATIONDENIED = "OperationDenied" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) BindAutoScalingGroup ¶
func (c *Client) BindAutoScalingGroup(request *BindAutoScalingGroupRequest) (response *BindAutoScalingGroupResponse, err error)
BindAutoScalingGroup 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" RESOURCENOTFOUND_AUTOSCALINGGROUPID = "ResourceNotFound.AutoScalingGroupId" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_LAUNCHCONFIGURATIONID = "ResourceNotFound.LaunchConfigurationId" UNSUPPORTEDOPERATION_AUTOSCALINGGROUPALREADYBINDED = "UnsupportedOperation.AutoScalingGroupAlreadyBinded" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) BindAutoScalingGroupWithContext ¶
func (c *Client) BindAutoScalingGroupWithContext(ctx context.Context, request *BindAutoScalingGroupRequest) (response *BindAutoScalingGroupResponse, err error)
BindAutoScalingGroup 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" RESOURCENOTFOUND_AUTOSCALINGGROUPID = "ResourceNotFound.AutoScalingGroupId" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_LAUNCHCONFIGURATIONID = "ResourceNotFound.LaunchConfigurationId" UNSUPPORTEDOPERATION_AUTOSCALINGGROUPALREADYBINDED = "UnsupportedOperation.AutoScalingGroupAlreadyBinded" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)
CreateCluster 本接口 (CreateCluster) 用于创建并启动集群。
* 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
可能返回的错误码:
INTERNALERROR_CALLCVM = "InternalError.CallCvm" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = "InvalidParameterValue.ParametersNotSupported" INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" RESOURCENOTFOUND_IMAGEID = "ResourceNotFound.ImageId" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateClusterWithContext ¶
func (c *Client) CreateClusterWithContext(ctx context.Context, request *CreateClusterRequest) (response *CreateClusterResponse, err error)
CreateCluster 本接口 (CreateCluster) 用于创建并启动集群。
* 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
可能返回的错误码:
INTERNALERROR_CALLCVM = "InternalError.CallCvm" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = "InvalidParameterValue.ParametersNotSupported" INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" RESOURCENOTFOUND_IMAGEID = "ResourceNotFound.ImageId" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteCluster ¶
func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)
DeleteCluster 本接口(DeleteCluster)用于删除一个指定的集群。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DeleteClusterStorageOption ¶ added in v1.0.563
func (c *Client) DeleteClusterStorageOption(request *DeleteClusterStorageOptionRequest) (response *DeleteClusterStorageOptionResponse, err error)
DeleteClusterStorageOption 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DeleteClusterStorageOptionWithContext ¶ added in v1.0.563
func (c *Client) DeleteClusterStorageOptionWithContext(ctx context.Context, request *DeleteClusterStorageOptionRequest) (response *DeleteClusterStorageOptionResponse, err error)
DeleteClusterStorageOption 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DeleteClusterWithContext ¶
func (c *Client) DeleteClusterWithContext(ctx context.Context, request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)
DeleteCluster 本接口(DeleteCluster)用于删除一个指定的集群。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DeleteNodes ¶
func (c *Client) DeleteNodes(request *DeleteNodesRequest) (response *DeleteNodesResponse, err error)
DeleteNodes 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_NODEID = "ResourceNotFound.NodeId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport" UNSUPPORTEDOPERATION_INVALIDNODEROLE = "UnsupportedOperation.InvalidNodeRole" UNSUPPORTEDOPERATION_NODESTATUSNOTSUPPORT = "UnsupportedOperation.NodeStatusNotSupport"
func (*Client) DeleteNodesWithContext ¶
func (c *Client) DeleteNodesWithContext(ctx context.Context, request *DeleteNodesRequest) (response *DeleteNodesResponse, err error)
DeleteNodes 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_NODEID = "ResourceNotFound.NodeId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport" UNSUPPORTEDOPERATION_INVALIDNODEROLE = "UnsupportedOperation.InvalidNodeRole" UNSUPPORTEDOPERATION_NODESTATUSNOTSUPPORT = "UnsupportedOperation.NodeStatusNotSupport"
func (*Client) DeleteQueue ¶ added in v1.0.603
func (c *Client) DeleteQueue(request *DeleteQueueRequest) (response *DeleteQueueResponse, err error)
DeleteQueue 本接口(DeleteQueue)用于从指定集群删除队列。
* 本接口为目前只支持SchedulerType为SLURM的集群。
* 删除队列时,需要保证队列内不存在节点。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = "InvalidParameterValue.ParametersNotSupported" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" INVALIDPARAMETERVALUE_VALUEDUPLICATED = "InvalidParameterValue.ValueDuplicated" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_QUEUE = "ResourceNotFound.Queue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport" UNSUPPORTEDOPERATION_QUEUENOTEMPTY = "UnsupportedOperation.QueueNotEmpty"
func (*Client) DeleteQueueWithContext ¶ added in v1.0.603
func (c *Client) DeleteQueueWithContext(ctx context.Context, request *DeleteQueueRequest) (response *DeleteQueueResponse, err error)
DeleteQueue 本接口(DeleteQueue)用于从指定集群删除队列。
* 本接口为目前只支持SchedulerType为SLURM的集群。
* 删除队列时,需要保证队列内不存在节点。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NOTSUPPORTED = "InvalidParameterValue.NotSupported" INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = "InvalidParameterValue.ParametersNotSupported" INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" INVALIDPARAMETERVALUE_VALUEDUPLICATED = "InvalidParameterValue.ValueDuplicated" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_QUEUE = "ResourceNotFound.Queue" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport" UNSUPPORTEDOPERATION_QUEUENOTEMPTY = "UnsupportedOperation.QueueNotEmpty"
func (*Client) DescribeAutoScalingConfiguration ¶ added in v1.0.577
func (c *Client) DescribeAutoScalingConfiguration(request *DescribeAutoScalingConfigurationRequest) (response *DescribeAutoScalingConfigurationResponse, err error)
DescribeAutoScalingConfiguration 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_AUTOSCALINGTYPE = "UnsupportedOperation.AutoScalingType" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DescribeAutoScalingConfigurationWithContext ¶ added in v1.0.577
func (c *Client) DescribeAutoScalingConfigurationWithContext(ctx context.Context, request *DescribeAutoScalingConfigurationRequest) (response *DescribeAutoScalingConfigurationResponse, err error)
DescribeAutoScalingConfiguration 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_AUTOSCALINGTYPE = "UnsupportedOperation.AutoScalingType" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DescribeClusterActivities ¶ added in v1.0.538
func (c *Client) DescribeClusterActivities(request *DescribeClusterActivitiesRequest) (response *DescribeClusterActivitiesResponse, err error)
DescribeClusterActivities 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed"
func (*Client) DescribeClusterActivitiesWithContext ¶ added in v1.0.538
func (c *Client) DescribeClusterActivitiesWithContext(ctx context.Context, request *DescribeClusterActivitiesRequest) (response *DescribeClusterActivitiesResponse, err error)
DescribeClusterActivities 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed"
func (*Client) DescribeClusterStorageOption ¶ added in v1.0.563
func (c *Client) DescribeClusterStorageOption(request *DescribeClusterStorageOptionRequest) (response *DescribeClusterStorageOptionResponse, err error)
DescribeClusterStorageOption 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
可能返回的错误码:
RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DescribeClusterStorageOptionWithContext ¶ added in v1.0.563
func (c *Client) DescribeClusterStorageOptionWithContext(ctx context.Context, request *DescribeClusterStorageOptionRequest) (response *DescribeClusterStorageOptionResponse, err error)
DescribeClusterStorageOption 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
可能返回的错误码:
RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport"
func (*Client) DescribeClusters ¶
func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
DescribeClusters 本接口(DescribeClusters)用于查询集群列表。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed"
func (*Client) DescribeClustersWithContext ¶
func (c *Client) DescribeClustersWithContext(ctx context.Context, request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)
DescribeClusters 本接口(DescribeClusters)用于查询集群列表。
可能返回的错误码:
INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed"
func (*Client) DescribeNodes ¶ added in v1.0.603
func (c *Client) DescribeNodes(request *DescribeNodesRequest) (response *DescribeNodesResponse, err error)
DescribeNodes 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
可能返回的错误码:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameterValue.InvalidFilterNotSupportedName" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_PARAMETERTOOLARGE = "UnsupportedOperation.ParameterTooLarge" UNSUPPORTEDOPERATION_PARAMETERTOOSMALL = "UnsupportedOperation.ParameterTooSmall"
func (*Client) DescribeNodesWithContext ¶ added in v1.0.603
func (c *Client) DescribeNodesWithContext(ctx context.Context, request *DescribeNodesRequest) (response *DescribeNodesResponse, err error)
DescribeNodes 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
可能返回的错误码:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_INVALIDFILTERNOTSUPPORTEDNAME = "InvalidParameterValue.InvalidFilterNotSupportedName" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_TOOLARGE = "InvalidParameterValue.TooLarge" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_PARAMETERTOOLARGE = "UnsupportedOperation.ParameterTooLarge" UNSUPPORTEDOPERATION_PARAMETERTOOSMALL = "UnsupportedOperation.ParameterTooSmall"
func (*Client) DescribeQueues ¶ added in v1.0.603
func (c *Client) DescribeQueues(request *DescribeQueuesRequest) (response *DescribeQueuesResponse, err error)
DescribeQueues 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = "InvalidParameterValue.ParametersNotSupported" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_PARAMETERTOOLARGE = "UnsupportedOperation.ParameterTooLarge" UNSUPPORTEDOPERATION_PARAMETERTOOSMALL = "UnsupportedOperation.ParameterTooSmall"
func (*Client) DescribeQueuesWithContext ¶ added in v1.0.603
func (c *Client) DescribeQueuesWithContext(ctx context.Context, request *DescribeQueuesRequest) (response *DescribeQueuesResponse, err error)
DescribeQueues 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_PARAMETERSNOTSUPPORTED = "InvalidParameterValue.ParametersNotSupported" INVALIDPARAMETERVALUE_TOOSHORT = "InvalidParameterValue.TooShort" LIMITEXCEEDED = "LimitExceeded" MISSINGPARAMETER = "MissingParameter" REQUESTLIMITEXCEEDED = "RequestLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION_PARAMETERTOOLARGE = "UnsupportedOperation.ParameterTooLarge" UNSUPPORTEDOPERATION_PARAMETERTOOSMALL = "UnsupportedOperation.ParameterTooSmall"
func (*Client) SetAutoScalingConfiguration ¶ added in v1.0.519
func (c *Client) SetAutoScalingConfiguration(request *SetAutoScalingConfigurationRequest) (response *SetAutoScalingConfigurationResponse, err error)
SetAutoScalingConfiguration 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
可能返回的错误码:
INTERNALERROR_CALLCAM = "InternalError.CallCAM" INTERNALERROR_CALLCVM = "InternalError.CallCvm" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_IMAGEID = "ResourceNotFound.ImageId" RESOURCENOTFOUND_QUEUE = "ResourceNotFound.Queue" UNSUPPORTEDOPERATION_AUTOSCALINGTYPE = "UnsupportedOperation.AutoScalingType" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport" UNSUPPORTEDOPERATION_VPCIDCONFLICT = "UnsupportedOperation.VpcIdConflict"
func (*Client) SetAutoScalingConfigurationWithContext ¶ added in v1.0.519
func (c *Client) SetAutoScalingConfigurationWithContext(ctx context.Context, request *SetAutoScalingConfigurationRequest) (response *SetAutoScalingConfigurationResponse, err error)
SetAutoScalingConfiguration 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
可能返回的错误码:
INTERNALERROR_CALLCAM = "InternalError.CallCAM" INTERNALERROR_CALLCVM = "InternalError.CallCvm" INVALIDPARAMETER_MALFORMED = "InvalidParameter.Malformed" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_TOOSMALL = "InvalidParameterValue.TooSmall" RESOURCENOTFOUND_CLUSTERID = "ResourceNotFound.ClusterId" RESOURCENOTFOUND_IMAGEID = "ResourceNotFound.ImageId" RESOURCENOTFOUND_QUEUE = "ResourceNotFound.Queue" UNSUPPORTEDOPERATION_AUTOSCALINGTYPE = "UnsupportedOperation.AutoScalingType" UNSUPPORTEDOPERATION_CLUSTERSTATUSNOTSUPPORT = "UnsupportedOperation.ClusterStatusNotSupport" UNSUPPORTEDOPERATION_VPCIDCONFLICT = "UnsupportedOperation.VpcIdConflict"
type ClusterActivity ¶ added in v1.0.538
type ClusterActivity struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 集群活动ID。 ActivityId *string `json:"ActivityId,omitnil,omitempty" name:"ActivityId"` // 集群活动类型。取值范围:<br><li>CreateAndAddNodes:创建实例并添加进集群<br><li>RemoveNodesFromCluster:从集群移除实例<br><li>TerminateNodes:销毁实例<br><li>MountStorageOption:增加挂载选项并进行挂载<br><li>UmountStorageOption:删除集群挂载存储选项并解挂载 ActivityType *string `json:"ActivityType,omitnil,omitempty" name:"ActivityType"` // 集群活动状态。取值范围:<br><li>PENDING:等待运行<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>PARTIALLY_SUCCESSFUL:活动部分成功<br><li>FAILED:活动失败 ActivityStatus *string `json:"ActivityStatus,omitnil,omitempty" name:"ActivityStatus"` // 集群活动状态码。 // 注意:此字段可能返回 null,表示取不到有效值。 ActivityStatusCode *string `json:"ActivityStatusCode,omitnil,omitempty" name:"ActivityStatusCode"` // 集群活动结果详情。 // 注意:此字段可能返回 null,表示取不到有效值。 ResultDetail *string `json:"ResultDetail,omitnil,omitempty" name:"ResultDetail"` // 集群活动起因。 Cause *string `json:"Cause,omitnil,omitempty" name:"Cause"` // 集群活动描述。 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 集群活动相关节点活动集合。 RelatedNodeActivitySet []*NodeActivity `json:"RelatedNodeActivitySet,omitnil,omitempty" name:"RelatedNodeActivitySet"` // 集群活动开始时间。 // 注意:此字段可能返回 null,表示取不到有效值。 StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 集群活动结束时间。 // 注意:此字段可能返回 null,表示取不到有效值。 EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` }
type ClusterOverview ¶
type ClusterOverview struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 集群状态。取值范围:<br><li>PENDING:创建中<br><li>INITING:初始化中<br><li>INIT_FAILED:初始化失败<br><li>RUNNING:运行中<br><li>TERMINATING:销毁中 ClusterStatus *string `json:"ClusterStatus,omitnil,omitempty" name:"ClusterStatus"` // 集群名称。 ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"` // 集群位置信息。 Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"` // 集群创建时间。 CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` // 集群调度器。 SchedulerType *string `json:"SchedulerType,omitnil,omitempty" name:"SchedulerType"` // 计算节点数量。 ComputeNodeCount *int64 `json:"ComputeNodeCount,omitnil,omitempty" name:"ComputeNodeCount"` // 计算节点概览。 ComputeNodeSet []*ComputeNodeOverview `json:"ComputeNodeSet,omitnil,omitempty" name:"ComputeNodeSet"` // 管控节点数量。 ManagerNodeCount *int64 `json:"ManagerNodeCount,omitnil,omitempty" name:"ManagerNodeCount"` // 管控节点概览。 ManagerNodeSet []*ManagerNodeOverview `json:"ManagerNodeSet,omitnil,omitempty" name:"ManagerNodeSet"` // 登录节点概览。 LoginNodeSet []*LoginNodeOverview `json:"LoginNodeSet,omitnil,omitempty" name:"LoginNodeSet"` // 登录节点数量。 LoginNodeCount *int64 `json:"LoginNodeCount,omitnil,omitempty" name:"LoginNodeCount"` // 集群所属私有网络ID。 VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"` }
type ComputeNode ¶
type ComputeNode struct { // 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 节点机型。不同实例机型指定了不同的资源规格。 // <br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 SystemDisk *SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 节点显示名称。<br><li> // 不指定节点显示名称则默认显示‘未命名’。 // 最多支持60个字符。 InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"` }
type ComputeNodeOverview ¶
type ComputeNodeOverview struct { // 计算节点ID。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeId *string `json:"NodeId,omitnil,omitempty" name:"NodeId"` }
type CreateClusterRequest ¶
type CreateClusterRequest struct { *tchttp.BaseRequest // 集群中实例所在的位置。 Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"` // 指定管理节点。 ManagerNode *ManagerNode `json:"ManagerNode,omitnil,omitempty" name:"ManagerNode"` // 指定管理节点的数量。默认取值:1。取值范围:1~2。 ManagerNodeCount *int64 `json:"ManagerNodeCount,omitnil,omitempty" name:"ManagerNodeCount"` // 指定计算节点。 ComputeNode *ComputeNode `json:"ComputeNode,omitnil,omitempty" name:"ComputeNode"` // 指定计算节点的数量。默认取值:0。 ComputeNodeCount *int64 `json:"ComputeNodeCount,omitnil,omitempty" name:"ComputeNodeCount"` // 调度器类型。默认取值:SLURM。<br><li>SGE:SGE调度器。<br><li>SLURM:SLURM调度器。 SchedulerType *string `json:"SchedulerType,omitnil,omitempty" name:"SchedulerType"` // 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。 ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 私有网络相关信息配置。 VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitnil,omitempty" name:"VirtualPrivateCloud"` // 集群登录设置。 LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"` // 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"` // 是否只预检此次请求。 // true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId. // false(默认):发送正常请求,通过检查后直接创建实例 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` // 域名字服务类型。默认取值:NIS。 // <li>NIS:NIS域名字服务。 AccountType *string `json:"AccountType,omitnil,omitempty" name:"AccountType"` // 集群显示名称。 ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"` // 集群存储选项 StorageOption *StorageOption `json:"StorageOption,omitnil,omitempty" name:"StorageOption"` // 指定登录节点。 LoginNode *LoginNode `json:"LoginNode,omitnil,omitempty" name:"LoginNode"` // 指定登录节点的数量。默认取值:0。取值范围:0~10。 LoginNodeCount *int64 `json:"LoginNodeCount,omitnil,omitempty" name:"LoginNodeCount"` // 创建集群时同时绑定的标签对说明。 Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"` // 弹性伸缩类型。<br><li>AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。<br><li>THPC_AS:集群自动扩缩容由THPC产品内部实现。 AutoScalingType *string `json:"AutoScalingType,omitnil,omitempty" name:"AutoScalingType"` }
func NewCreateClusterRequest ¶
func NewCreateClusterRequest() (request *CreateClusterRequest)
func (*CreateClusterRequest) FromJsonString ¶
func (r *CreateClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterRequest) ToJsonString ¶
func (r *CreateClusterRequest) ToJsonString() string
type CreateClusterRequestParams ¶ added in v1.0.426
type CreateClusterRequestParams struct { // 集群中实例所在的位置。 Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"` // 指定管理节点。 ManagerNode *ManagerNode `json:"ManagerNode,omitnil,omitempty" name:"ManagerNode"` // 指定管理节点的数量。默认取值:1。取值范围:1~2。 ManagerNodeCount *int64 `json:"ManagerNodeCount,omitnil,omitempty" name:"ManagerNodeCount"` // 指定计算节点。 ComputeNode *ComputeNode `json:"ComputeNode,omitnil,omitempty" name:"ComputeNode"` // 指定计算节点的数量。默认取值:0。 ComputeNodeCount *int64 `json:"ComputeNodeCount,omitnil,omitempty" name:"ComputeNodeCount"` // 调度器类型。默认取值:SLURM。<br><li>SGE:SGE调度器。<br><li>SLURM:SLURM调度器。 SchedulerType *string `json:"SchedulerType,omitnil,omitempty" name:"SchedulerType"` // 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前支持部分公有镜像和自定义镜像。 ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 私有网络相关信息配置。 VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitnil,omitempty" name:"VirtualPrivateCloud"` // 集群登录设置。 LoginSettings *LoginSettings `json:"LoginSettings,omitnil,omitempty" name:"LoginSettings"` // 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 ClientToken *string `json:"ClientToken,omitnil,omitempty" name:"ClientToken"` // 是否只预检此次请求。 // true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId. // false(默认):发送正常请求,通过检查后直接创建实例 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` // 域名字服务类型。默认取值:NIS。 // <li>NIS:NIS域名字服务。 AccountType *string `json:"AccountType,omitnil,omitempty" name:"AccountType"` // 集群显示名称。 ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"` // 集群存储选项 StorageOption *StorageOption `json:"StorageOption,omitnil,omitempty" name:"StorageOption"` // 指定登录节点。 LoginNode *LoginNode `json:"LoginNode,omitnil,omitempty" name:"LoginNode"` // 指定登录节点的数量。默认取值:0。取值范围:0~10。 LoginNodeCount *int64 `json:"LoginNodeCount,omitnil,omitempty" name:"LoginNodeCount"` // 创建集群时同时绑定的标签对说明。 Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"` // 弹性伸缩类型。<br><li>AS:集群自动扩缩容由[弹性伸缩](https://cloud.tencent.com/document/product/377/3154)产品实现。<br><li>THPC_AS:集群自动扩缩容由THPC产品内部实现。 AutoScalingType *string `json:"AutoScalingType,omitnil,omitempty" name:"AutoScalingType"` }
Predefined struct for user
type CreateClusterResponse ¶
type CreateClusterResponse struct { *tchttp.BaseResponse Response *CreateClusterResponseParams `json:"Response"` }
func NewCreateClusterResponse ¶
func NewCreateClusterResponse() (response *CreateClusterResponse)
func (*CreateClusterResponse) FromJsonString ¶
func (r *CreateClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterResponse) ToJsonString ¶
func (r *CreateClusterResponse) ToJsonString() string
type CreateClusterResponseParams ¶ added in v1.0.426
type CreateClusterResponseParams struct { // 集群ID。 // 注意:此字段可能返回 null,表示取不到有效值。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DataDisk ¶
type DataDisk struct { // 数据盘大小,单位:GB。最小调整步长为10G,不同数据盘类型取值范围不同,具体限制详见:[存储概述](https://cloud.tencent.com/document/product/213/4952)。默认值为0,表示不购买数据盘。更多限制详见产品文档。 DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"` // 数据盘类型。数据盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>LOCAL_NVME:本地NVME硬盘,与InstanceType强相关,不支持指定<br><li>LOCAL_PRO:本地HDD硬盘,与InstanceType强相关,不支持指定<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><li>CLOUD_HSSD:增强型SSD云硬盘<br><li>CLOUD_TSSD:极速型SSD云硬盘<br><br>默认取值:LOCAL_BASIC。 DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"` }
type DeleteClusterRequest ¶
type DeleteClusterRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` }
func NewDeleteClusterRequest ¶
func NewDeleteClusterRequest() (request *DeleteClusterRequest)
func (*DeleteClusterRequest) FromJsonString ¶
func (r *DeleteClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterRequest) ToJsonString ¶
func (r *DeleteClusterRequest) ToJsonString() string
type DeleteClusterRequestParams ¶ added in v1.0.426
type DeleteClusterRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` }
Predefined struct for user
type DeleteClusterResponse ¶
type DeleteClusterResponse struct { *tchttp.BaseResponse Response *DeleteClusterResponseParams `json:"Response"` }
func NewDeleteClusterResponse ¶
func NewDeleteClusterResponse() (response *DeleteClusterResponse)
func (*DeleteClusterResponse) FromJsonString ¶
func (r *DeleteClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterResponse) ToJsonString ¶
func (r *DeleteClusterResponse) ToJsonString() string
type DeleteClusterResponseParams ¶ added in v1.0.426
type DeleteClusterResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteClusterStorageOptionRequest ¶ added in v1.0.563
type DeleteClusterStorageOptionRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 本地挂载路径。 LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` }
func NewDeleteClusterStorageOptionRequest ¶ added in v1.0.563
func NewDeleteClusterStorageOptionRequest() (request *DeleteClusterStorageOptionRequest)
func (*DeleteClusterStorageOptionRequest) FromJsonString ¶ added in v1.0.563
func (r *DeleteClusterStorageOptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterStorageOptionRequest) ToJsonString ¶ added in v1.0.563
func (r *DeleteClusterStorageOptionRequest) ToJsonString() string
type DeleteClusterStorageOptionRequestParams ¶ added in v1.0.563
type DeleteClusterStorageOptionRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 本地挂载路径。 LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` }
Predefined struct for user
type DeleteClusterStorageOptionResponse ¶ added in v1.0.563
type DeleteClusterStorageOptionResponse struct { *tchttp.BaseResponse Response *DeleteClusterStorageOptionResponseParams `json:"Response"` }
func NewDeleteClusterStorageOptionResponse ¶ added in v1.0.563
func NewDeleteClusterStorageOptionResponse() (response *DeleteClusterStorageOptionResponse)
func (*DeleteClusterStorageOptionResponse) FromJsonString ¶ added in v1.0.563
func (r *DeleteClusterStorageOptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClusterStorageOptionResponse) ToJsonString ¶ added in v1.0.563
func (r *DeleteClusterStorageOptionResponse) ToJsonString() string
type DeleteClusterStorageOptionResponseParams ¶ added in v1.0.563
type DeleteClusterStorageOptionResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteNodesRequest ¶
type DeleteNodesRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点ID。 NodeIds []*string `json:"NodeIds,omitnil,omitempty" name:"NodeIds"` }
func NewDeleteNodesRequest ¶
func NewDeleteNodesRequest() (request *DeleteNodesRequest)
func (*DeleteNodesRequest) FromJsonString ¶
func (r *DeleteNodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNodesRequest) ToJsonString ¶
func (r *DeleteNodesRequest) ToJsonString() string
type DeleteNodesRequestParams ¶ added in v1.0.426
type DeleteNodesRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 节点ID。 NodeIds []*string `json:"NodeIds,omitnil,omitempty" name:"NodeIds"` }
Predefined struct for user
type DeleteNodesResponse ¶
type DeleteNodesResponse struct { *tchttp.BaseResponse Response *DeleteNodesResponseParams `json:"Response"` }
func NewDeleteNodesResponse ¶
func NewDeleteNodesResponse() (response *DeleteNodesResponse)
func (*DeleteNodesResponse) FromJsonString ¶
func (r *DeleteNodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNodesResponse) ToJsonString ¶
func (r *DeleteNodesResponse) ToJsonString() string
type DeleteNodesResponseParams ¶ added in v1.0.426
type DeleteNodesResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteQueueRequest ¶ added in v1.0.603
type DeleteQueueRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 队列名称。<br><li>最多支持32个字符。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` }
func NewDeleteQueueRequest ¶ added in v1.0.603
func NewDeleteQueueRequest() (request *DeleteQueueRequest)
func (*DeleteQueueRequest) FromJsonString ¶ added in v1.0.603
func (r *DeleteQueueRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteQueueRequest) ToJsonString ¶ added in v1.0.603
func (r *DeleteQueueRequest) ToJsonString() string
type DeleteQueueRequestParams ¶ added in v1.0.603
type DeleteQueueRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 队列名称。<br><li>最多支持32个字符。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` }
Predefined struct for user
type DeleteQueueResponse ¶ added in v1.0.603
type DeleteQueueResponse struct { *tchttp.BaseResponse Response *DeleteQueueResponseParams `json:"Response"` }
func NewDeleteQueueResponse ¶ added in v1.0.603
func NewDeleteQueueResponse() (response *DeleteQueueResponse)
func (*DeleteQueueResponse) FromJsonString ¶ added in v1.0.603
func (r *DeleteQueueResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteQueueResponse) ToJsonString ¶ added in v1.0.603
func (r *DeleteQueueResponse) ToJsonString() string
type DeleteQueueResponseParams ¶ added in v1.0.603
type DeleteQueueResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeAutoScalingConfigurationRequest ¶ added in v1.0.577
type DescribeAutoScalingConfigurationRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` }
func NewDescribeAutoScalingConfigurationRequest ¶ added in v1.0.577
func NewDescribeAutoScalingConfigurationRequest() (request *DescribeAutoScalingConfigurationRequest)
func (*DescribeAutoScalingConfigurationRequest) FromJsonString ¶ added in v1.0.577
func (r *DescribeAutoScalingConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingConfigurationRequest) ToJsonString ¶ added in v1.0.577
func (r *DescribeAutoScalingConfigurationRequest) ToJsonString() string
type DescribeAutoScalingConfigurationRequestParams ¶ added in v1.0.577
type DescribeAutoScalingConfigurationRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` }
Predefined struct for user
type DescribeAutoScalingConfigurationResponse ¶ added in v1.0.577
type DescribeAutoScalingConfigurationResponse struct { *tchttp.BaseResponse Response *DescribeAutoScalingConfigurationResponseParams `json:"Response"` }
func NewDescribeAutoScalingConfigurationResponse ¶ added in v1.0.577
func NewDescribeAutoScalingConfigurationResponse() (response *DescribeAutoScalingConfigurationResponse)
func (*DescribeAutoScalingConfigurationResponse) FromJsonString ¶ added in v1.0.577
func (r *DescribeAutoScalingConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScalingConfigurationResponse) ToJsonString ¶ added in v1.0.577
func (r *DescribeAutoScalingConfigurationResponse) ToJsonString() string
type DescribeAutoScalingConfigurationResponseParams ¶ added in v1.0.577
type DescribeAutoScalingConfigurationResponseParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。 ExpansionBusyTime *int64 `json:"ExpansionBusyTime,omitnil,omitempty" name:"ExpansionBusyTime"` // 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。 ShrinkIdleTime *int64 `json:"ShrinkIdleTime,omitnil,omitempty" name:"ShrinkIdleTime"` // 扩容队列配置概览列表。 QueueConfigs []*QueueConfigOverview `json:"QueueConfigs,omitnil,omitempty" name:"QueueConfigs"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeClusterActivitiesRequest ¶ added in v1.0.538
type DescribeClusterActivitiesRequest struct { *tchttp.BaseRequest // 集群ID。通过该参数指定需要查询活动历史记录的集群。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
func NewDescribeClusterActivitiesRequest ¶ added in v1.0.538
func NewDescribeClusterActivitiesRequest() (request *DescribeClusterActivitiesRequest)
func (*DescribeClusterActivitiesRequest) FromJsonString ¶ added in v1.0.538
func (r *DescribeClusterActivitiesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterActivitiesRequest) ToJsonString ¶ added in v1.0.538
func (r *DescribeClusterActivitiesRequest) ToJsonString() string
type DescribeClusterActivitiesRequestParams ¶ added in v1.0.538
type DescribeClusterActivitiesRequestParams struct { // 集群ID。通过该参数指定需要查询活动历史记录的集群。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeClusterActivitiesResponse ¶ added in v1.0.538
type DescribeClusterActivitiesResponse struct { *tchttp.BaseResponse Response *DescribeClusterActivitiesResponseParams `json:"Response"` }
func NewDescribeClusterActivitiesResponse ¶ added in v1.0.538
func NewDescribeClusterActivitiesResponse() (response *DescribeClusterActivitiesResponse)
func (*DescribeClusterActivitiesResponse) FromJsonString ¶ added in v1.0.538
func (r *DescribeClusterActivitiesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterActivitiesResponse) ToJsonString ¶ added in v1.0.538
func (r *DescribeClusterActivitiesResponse) ToJsonString() string
type DescribeClusterActivitiesResponseParams ¶ added in v1.0.538
type DescribeClusterActivitiesResponseParams struct { // 集群活动历史记录列表。 ClusterActivitySet []*ClusterActivity `json:"ClusterActivitySet,omitnil,omitempty" name:"ClusterActivitySet"` // 集群活动历史记录数量。 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeClusterStorageOptionRequest ¶ added in v1.0.563
type DescribeClusterStorageOptionRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` }
func NewDescribeClusterStorageOptionRequest ¶ added in v1.0.563
func NewDescribeClusterStorageOptionRequest() (request *DescribeClusterStorageOptionRequest)
func (*DescribeClusterStorageOptionRequest) FromJsonString ¶ added in v1.0.563
func (r *DescribeClusterStorageOptionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterStorageOptionRequest) ToJsonString ¶ added in v1.0.563
func (r *DescribeClusterStorageOptionRequest) ToJsonString() string
type DescribeClusterStorageOptionRequestParams ¶ added in v1.0.563
type DescribeClusterStorageOptionRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` }
Predefined struct for user
type DescribeClusterStorageOptionResponse ¶ added in v1.0.563
type DescribeClusterStorageOptionResponse struct { *tchttp.BaseResponse Response *DescribeClusterStorageOptionResponseParams `json:"Response"` }
func NewDescribeClusterStorageOptionResponse ¶ added in v1.0.563
func NewDescribeClusterStorageOptionResponse() (response *DescribeClusterStorageOptionResponse)
func (*DescribeClusterStorageOptionResponse) FromJsonString ¶ added in v1.0.563
func (r *DescribeClusterStorageOptionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterStorageOptionResponse) ToJsonString ¶ added in v1.0.563
func (r *DescribeClusterStorageOptionResponse) ToJsonString() string
type DescribeClusterStorageOptionResponseParams ¶ added in v1.0.563
type DescribeClusterStorageOptionResponseParams struct { // 集群存储选项信息概览。 StorageOption *StorageOptionOverview `json:"StorageOption,omitnil,omitempty" name:"StorageOption"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeClustersRequest ¶
type DescribeClustersRequest struct { *tchttp.BaseRequest // 集群ID列表。通过该参数可以指定需要查询信息的集群列表。<br>如果您不指定该参数,则返回Limit数量以内的集群信息。 ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
func NewDescribeClustersRequest ¶
func NewDescribeClustersRequest() (request *DescribeClustersRequest)
func (*DescribeClustersRequest) FromJsonString ¶
func (r *DescribeClustersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClustersRequest) ToJsonString ¶
func (r *DescribeClustersRequest) ToJsonString() string
type DescribeClustersRequestParams ¶ added in v1.0.426
type DescribeClustersRequestParams struct { // 集群ID列表。通过该参数可以指定需要查询信息的集群列表。<br>如果您不指定该参数,则返回Limit数量以内的集群信息。 ClusterIds []*string `json:"ClusterIds,omitnil,omitempty" name:"ClusterIds"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeClustersResponse ¶
type DescribeClustersResponse struct { *tchttp.BaseResponse Response *DescribeClustersResponseParams `json:"Response"` }
func NewDescribeClustersResponse ¶
func NewDescribeClustersResponse() (response *DescribeClustersResponse)
func (*DescribeClustersResponse) FromJsonString ¶
func (r *DescribeClustersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClustersResponse) ToJsonString ¶
func (r *DescribeClustersResponse) ToJsonString() string
type DescribeClustersResponseParams ¶ added in v1.0.426
type DescribeClustersResponseParams struct { // 集群概览信息列表。 ClusterSet []*ClusterOverview `json:"ClusterSet,omitnil,omitempty" name:"ClusterSet"` // 集群数量。 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeNodesRequest ¶ added in v1.0.603
type DescribeNodesRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // <li><strong>queue-name</strong></li> <p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-role</strong></li> <p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-type</strong></li> <p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
func NewDescribeNodesRequest ¶ added in v1.0.603
func NewDescribeNodesRequest() (request *DescribeNodesRequest)
func (*DescribeNodesRequest) FromJsonString ¶ added in v1.0.603
func (r *DescribeNodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNodesRequest) ToJsonString ¶ added in v1.0.603
func (r *DescribeNodesRequest) ToJsonString() string
type DescribeNodesRequestParams ¶ added in v1.0.603
type DescribeNodesRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // <li><strong>queue-name</strong></li> <p style="padding-left: 30px;">按照【<strong>队列名称</strong>】进行过滤。队列名称形如:compute。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-role</strong></li> <p style="padding-left: 30px;">按照【<strong>节点角色</strong>】进行过滤。节点角色形如:Manager。(Manager:管控节点。Compute:计算节点。Login:登录节点。ManagerBackup:备用管控节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;"><li><strong>node-type</strong></li> <p style="padding-left: 30px;">按照【<strong>节点类型</strong>】进行过滤。节点类型形如:STATIC。(STATIC:静态节点。DYNAMIC:弹性节点。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeNodesResponse ¶ added in v1.0.603
type DescribeNodesResponse struct { *tchttp.BaseResponse Response *DescribeNodesResponseParams `json:"Response"` }
func NewDescribeNodesResponse ¶ added in v1.0.603
func NewDescribeNodesResponse() (response *DescribeNodesResponse)
func (*DescribeNodesResponse) FromJsonString ¶ added in v1.0.603
func (r *DescribeNodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeNodesResponse) ToJsonString ¶ added in v1.0.603
func (r *DescribeNodesResponse) ToJsonString() string
type DescribeNodesResponseParams ¶ added in v1.0.603
type DescribeNodesResponseParams struct { // 节点概览信息列表。 NodeSet []*NodeOverview `json:"NodeSet,omitnil,omitempty" name:"NodeSet"` // 符合条件的节点数量。 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeQueuesRequest ¶ added in v1.0.603
type DescribeQueuesRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
func NewDescribeQueuesRequest ¶ added in v1.0.603
func NewDescribeQueuesRequest() (request *DescribeQueuesRequest)
func (*DescribeQueuesRequest) FromJsonString ¶ added in v1.0.603
func (r *DescribeQueuesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeQueuesRequest) ToJsonString ¶ added in v1.0.603
func (r *DescribeQueuesRequest) ToJsonString() string
type DescribeQueuesRequestParams ¶ added in v1.0.603
type DescribeQueuesRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` }
Predefined struct for user
type DescribeQueuesResponse ¶ added in v1.0.603
type DescribeQueuesResponse struct { *tchttp.BaseResponse Response *DescribeQueuesResponseParams `json:"Response"` }
func NewDescribeQueuesResponse ¶ added in v1.0.603
func NewDescribeQueuesResponse() (response *DescribeQueuesResponse)
func (*DescribeQueuesResponse) FromJsonString ¶ added in v1.0.603
func (r *DescribeQueuesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeQueuesResponse) ToJsonString ¶ added in v1.0.603
func (r *DescribeQueuesResponse) ToJsonString() string
type DescribeQueuesResponseParams ¶ added in v1.0.603
type DescribeQueuesResponseParams struct { // 队列概览信息列表。 QueueSet []*QueueOverview `json:"QueueSet,omitnil,omitempty" name:"QueueSet"` // 符合条件的节点数量。 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ExpansionNodeConfig ¶ added in v1.0.519
type ExpansionNodeConfig struct { // 扩容实例所在的位置。 Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"` // 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 节点机型。不同实例机型指定了不同的资源规格。 // <br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 私有网络相关信息配置。 VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitnil,omitempty" name:"VirtualPrivateCloud"` }
type ExpansionNodeConfigOverview ¶ added in v1.0.577
type ExpansionNodeConfigOverview struct { // 节点机型。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 扩容实例所在的位置。 // 注意:此字段可能返回 null,表示取不到有效值。 Placement *Placement `json:"Placement,omitnil,omitempty" name:"Placement"` // 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 私有网络相关信息配置。 // 注意:此字段可能返回 null,表示取不到有效值。 VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitnil,omitempty" name:"VirtualPrivateCloud"` // 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。 // 注意:此字段可能返回 null,表示取不到有效值。 ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 公网带宽相关信息设置。 // 注意:此字段可能返回 null,表示取不到有效值。 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 节点系统盘配置信息。 // 注意:此字段可能返回 null,表示取不到有效值。 SystemDisk *SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 节点数据盘配置信息。 // 注意:此字段可能返回 null,表示取不到有效值。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` }
type GooseFSOption ¶
type GooseFSOptionOverview ¶ added in v1.0.576
type GooseFSOptionOverview struct { // 文件系统本地挂载路径。 LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` // 文件系统远程挂载路径。 RemotePath *string `json:"RemotePath,omitnil,omitempty" name:"RemotePath"` // 文件系统master的ip和端口。 Masters []*string `json:"Masters,omitnil,omitempty" name:"Masters"` }
type InstanceChargePrepaid ¶
type InstanceChargePrepaid struct { // 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。 Period *int64 `json:"Period,omitnil,omitempty" name:"Period"` // 自动续费标识。取值范围: // NOTIFY_AND_AUTO_RENEW:通知过期且自动续费 // NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费 // DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费 // // 默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"` }
type InternetAccessible ¶
type InternetAccessible struct { // 网络计费类型。取值范围: // BANDWIDTH_PREPAID:预付费按带宽结算 // TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费 // BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费 // BANDWIDTH_PACKAGE:带宽包用户 // 默认取值:非带宽包用户默认与子机付费类型保持一致。 InternetChargeType *string `json:"InternetChargeType,omitnil,omitempty" name:"InternetChargeType"` // 公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见购买网络带宽。 InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitnil,omitempty" name:"InternetMaxBandwidthOut"` }
type LoginNode ¶
type LoginNode struct { // 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br>默认值:POSTPAID_BY_HOUR。 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 节点机型。不同实例机型指定了不同的资源规格。 // <br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 SystemDisk []*SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 InternetAccessible []*InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 节点显示名称。<br><li> // 不指定节点显示名称则默认显示‘未命名’。 // 最多支持60个字符。 InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"` }
type LoginNodeOverview ¶
type LoginNodeOverview struct { // 登录节点ID。 NodeId *string `json:"NodeId,omitnil,omitempty" name:"NodeId"` }
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>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。 Password *string `json:"Password,omitnil,omitempty" name:"Password"` }
type ManagerNode ¶
type ManagerNode struct { // 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br>默认值:POSTPAID_BY_HOUR。 InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"` // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。 InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"` // 节点机型。不同实例机型指定了不同的资源规格。 // <br><li>对于付费模式为PREPAID或POSTPAID\_BY\_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。 InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` // 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 SystemDisk *SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 节点显示名称。<br><li> // 不指定节点显示名称则默认显示‘未命名’。 // </li><li>购买多个节点,如果指定模式串`{R:x}`,表示生成数字[`[x, x+n-1]`,其中`n`表示购买节点的数量,例如`server_{R:3}`,购买1个时,节点显示名称为`server_3`;购买2个时,节点显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。 // 购买多个节点,如果不指定模式串,则在节点显示名称添加后缀`1、2...n`,其中`n`表示购买节点的数量,例如`server_`,购买2个时,节点显示名称分别为`server_1`,`server_2`。</li><li> // 最多支持60个字符(包含模式串)。 InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"` }
type ManagerNodeOverview ¶
type ManagerNodeOverview struct { // 管控节点ID。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeId *string `json:"NodeId,omitnil,omitempty" name:"NodeId"` }
type NodeActivity ¶ added in v1.0.538
type NodeActivity struct { // 节点活动所在的实例ID。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeInstanceId *string `json:"NodeInstanceId,omitnil,omitempty" name:"NodeInstanceId"` // 节点活动状态。取值范围:<br><li>RUNNING:运行中<br><li>SUCCESSFUL:活动成功<br><li>FAILED:活动失败 NodeActivityStatus *string `json:"NodeActivityStatus,omitnil,omitempty" name:"NodeActivityStatus"` // 节点活动状态码。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeActivityStatusCode *string `json:"NodeActivityStatusCode,omitnil,omitempty" name:"NodeActivityStatusCode"` // 节点活动状态原因。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeActivityStatusReason *string `json:"NodeActivityStatusReason,omitnil,omitempty" name:"NodeActivityStatusReason"` }
type NodeOverview ¶ added in v1.0.603
type NodeOverview struct { // 节点实例ID。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"` // 节点所在可用区信息。 // 注意:此字段可能返回 null,表示取不到有效值。 Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"` // 节点状态。<br><li>SUBMITTED:已完成提交。<br><li>CREATING:创建中。<br><li>CREATED:完成创建。<br><li>INITING:初始化中。<br><li>INIT_FAILED:初始化失败。<br><li>RUNNING:运行中。<br><li>DELETING:销毁中。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeState *string `json:"NodeState,omitnil,omitempty" name:"NodeState"` // 镜像ID。 // 注意:此字段可能返回 null,表示取不到有效值。 ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 节点所属队列名称。 // 注意:此字段可能返回 null,表示取不到有效值。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` // 节点角色。<br><li>Manager:管控节点。<br><li>Compute:计算节点。<br><li>Login:登录节点。<br><li>ManagerBackup:备用管控节点。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeRole *string `json:"NodeRole,omitnil,omitempty" name:"NodeRole"` // 节点类型。<br><li>STATIC:静态节点。<br><li>DYNAMIC:弹性节点。 // 注意:此字段可能返回 null,表示取不到有效值。 NodeType *string `json:"NodeType,omitnil,omitempty" name:"NodeType"` }
type Placement ¶
type Placement struct { // 实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。 Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"` }
type QueueConfig ¶ added in v1.0.519
type QueueConfig struct { // 队列名称。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` // 队列中弹性节点数量最小值。取值范围0~200。 MinSize *uint64 `json:"MinSize,omitnil,omitempty" name:"MinSize"` // 队列中弹性节点数量最大值。取值范围0~200。 MaxSize *uint64 `json:"MaxSize,omitnil,omitempty" name:"MaxSize"` // 是否开启自动扩容。 EnableAutoExpansion *bool `json:"EnableAutoExpansion,omitnil,omitempty" name:"EnableAutoExpansion"` // 是否开启自动缩容。 EnableAutoShrink *bool `json:"EnableAutoShrink,omitnil,omitempty" name:"EnableAutoShrink"` // 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜和特定自定义镜像。 ImageId *string `json:"ImageId,omitnil,omitempty" name:"ImageId"` // 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 SystemDisk *SystemDisk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"` // 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。 DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"` // 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"` // 扩容节点配置信息。 ExpansionNodeConfigs []*ExpansionNodeConfig `json:"ExpansionNodeConfigs,omitnil,omitempty" name:"ExpansionNodeConfigs"` }
type QueueConfigOverview ¶ added in v1.0.577
type QueueConfigOverview struct { // 队列名称。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` // 队列中弹性节点数量最小值。取值范围0~200。 MinSize *int64 `json:"MinSize,omitnil,omitempty" name:"MinSize"` // 队列中弹性节点数量最大值。取值范围0~200。 MaxSize *int64 `json:"MaxSize,omitnil,omitempty" name:"MaxSize"` // 是否开启自动扩容。 EnableAutoExpansion *bool `json:"EnableAutoExpansion,omitnil,omitempty" name:"EnableAutoExpansion"` // 是否开启自动缩容。 EnableAutoShrink *bool `json:"EnableAutoShrink,omitnil,omitempty" name:"EnableAutoShrink"` // 扩容节点配置信息。 ExpansionNodeConfigs []*ExpansionNodeConfigOverview `json:"ExpansionNodeConfigs,omitnil,omitempty" name:"ExpansionNodeConfigs"` }
type QueueOverview ¶ added in v1.0.603
type QueueOverview struct { // 队列名称。 // 注意:此字段可能返回 null,表示取不到有效值。 QueueName *string `json:"QueueName,omitnil,omitempty" name:"QueueName"` }
type SetAutoScalingConfigurationRequest ¶ added in v1.0.519
type SetAutoScalingConfigurationRequest struct { *tchttp.BaseRequest // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。 ExpansionBusyTime *int64 `json:"ExpansionBusyTime,omitnil,omitempty" name:"ExpansionBusyTime"` // 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。 ShrinkIdleTime *int64 `json:"ShrinkIdleTime,omitnil,omitempty" name:"ShrinkIdleTime"` // 扩容队列配置列表。 QueueConfigs []*QueueConfig `json:"QueueConfigs,omitnil,omitempty" name:"QueueConfigs"` // 是否只预检此次请求。 // true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId。 // false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` }
func NewSetAutoScalingConfigurationRequest ¶ added in v1.0.519
func NewSetAutoScalingConfigurationRequest() (request *SetAutoScalingConfigurationRequest)
func (*SetAutoScalingConfigurationRequest) FromJsonString ¶ added in v1.0.519
func (r *SetAutoScalingConfigurationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetAutoScalingConfigurationRequest) ToJsonString ¶ added in v1.0.519
func (r *SetAutoScalingConfigurationRequest) ToJsonString() string
type SetAutoScalingConfigurationRequestParams ¶ added in v1.0.519
type SetAutoScalingConfigurationRequestParams struct { // 集群ID。 ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"` // 任务连续等待时间,队列的任务处于连续等待的时间。单位秒。默认值120。 ExpansionBusyTime *int64 `json:"ExpansionBusyTime,omitnil,omitempty" name:"ExpansionBusyTime"` // 节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。单位秒。默认值300。 ShrinkIdleTime *int64 `json:"ShrinkIdleTime,omitnil,omitempty" name:"ShrinkIdleTime"` // 扩容队列配置列表。 QueueConfigs []*QueueConfig `json:"QueueConfigs,omitnil,omitempty" name:"QueueConfigs"` // 是否只预检此次请求。 // true:发送检查请求,不会绑定弹性伸缩组。检查项包括是否填写了必需参数,请求格式,业务限制。 // 如果检查不通过,则返回对应错误码; // 如果检查通过,则返回RequestId。 // false(默认):发送正常请求,通过检查后直接绑定弹性伸缩组。 DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` }
Predefined struct for user
type SetAutoScalingConfigurationResponse ¶ added in v1.0.519
type SetAutoScalingConfigurationResponse struct { *tchttp.BaseResponse Response *SetAutoScalingConfigurationResponseParams `json:"Response"` }
func NewSetAutoScalingConfigurationResponse ¶ added in v1.0.519
func NewSetAutoScalingConfigurationResponse() (response *SetAutoScalingConfigurationResponse)
func (*SetAutoScalingConfigurationResponse) FromJsonString ¶ added in v1.0.519
func (r *SetAutoScalingConfigurationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetAutoScalingConfigurationResponse) ToJsonString ¶ added in v1.0.519
func (r *SetAutoScalingConfigurationResponse) ToJsonString() string
type SetAutoScalingConfigurationResponseParams ¶ added in v1.0.519
type SetAutoScalingConfigurationResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type StorageOption ¶
type StorageOption struct { // 集群挂载CFS文件系统选项。 CFSOptions []*CFSOption `json:"CFSOptions,omitnil,omitempty" name:"CFSOptions"` // 集群挂载GooseFS文件系统选项。 GooseFSOptions []*GooseFSOption `json:"GooseFSOptions,omitnil,omitempty" name:"GooseFSOptions"` }
type StorageOptionOverview ¶ added in v1.0.576
type StorageOptionOverview struct { // CFS存储选项概览信息列表。 CFSOptions []*CFSOptionOverview `json:"CFSOptions,omitnil,omitempty" name:"CFSOptions"` // GooseFS存储选项概览信息列表。 GooseFSOptions []*GooseFSOptionOverview `json:"GooseFSOptions,omitnil,omitempty" name:"GooseFSOptions"` }
type SystemDisk ¶
type SystemDisk struct { // 系统盘类型。系统盘类型限制详见存储概述。取值范围: // LOCAL_BASIC:本地硬盘 // LOCAL_SSD:本地SSD硬盘 // CLOUD_BASIC:普通云硬盘 // CLOUD_SSD:SSD云硬盘 // CLOUD_PREMIUM:高性能云硬盘 // // 默认取值:当前有库存的硬盘类型。 DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"` // 系统盘大小,单位:GB。默认值为 50 DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"` }
type VirtualPrivateCloud ¶
type VirtualPrivateCloud struct { // 私有网络ID,形如`vpc-xxx`。有效的VpcId可通过登录[控制台](https://console.cloud.tencent.com/vpc/vpc?rid=1)查询;也可以调用接口 [DescribeVpcEx](/document/api/215/1372) ,从接口返回中的`unVpcId`字段获取。若在创建子机时VpcId与SubnetId同时传入`DEFAULT`,则强制使用默认vpc网络。 VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"` // 私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](/document/api/215/15784) ,从接口返回中的`unSubnetId`字段获取。若在创建子机时SubnetId与VpcId同时传入`DEFAULT`,则强制使用默认vpc网络。 SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"` }