Documentation ¶
Index ¶
- Constants
- type ApplySnapshotRequest
- type ApplySnapshotResponse
- type AttachDetail
- type AttachDisksRequest
- type AttachDisksResponse
- type AutoMountConfiguration
- type AutoSnapshotPolicy
- type BindAutoSnapshotPolicyRequest
- type BindAutoSnapshotPolicyResponse
- type Client
- func (c *Client) ApplySnapshot(request *ApplySnapshotRequest) (response *ApplySnapshotResponse, err error)
- func (c *Client) ApplySnapshotWithContext(ctx context.Context, request *ApplySnapshotRequest) (response *ApplySnapshotResponse, err error)
- func (c *Client) AttachDisks(request *AttachDisksRequest) (response *AttachDisksResponse, err error)
- func (c *Client) AttachDisksWithContext(ctx context.Context, request *AttachDisksRequest) (response *AttachDisksResponse, err error)
- func (c *Client) BindAutoSnapshotPolicy(request *BindAutoSnapshotPolicyRequest) (response *BindAutoSnapshotPolicyResponse, err error)
- func (c *Client) BindAutoSnapshotPolicyWithContext(ctx context.Context, request *BindAutoSnapshotPolicyRequest) (response *BindAutoSnapshotPolicyResponse, err error)
- func (c *Client) CreateAutoSnapshotPolicy(request *CreateAutoSnapshotPolicyRequest) (response *CreateAutoSnapshotPolicyResponse, err error)
- func (c *Client) CreateAutoSnapshotPolicyWithContext(ctx context.Context, request *CreateAutoSnapshotPolicyRequest) (response *CreateAutoSnapshotPolicyResponse, err error)
- func (c *Client) CreateDisks(request *CreateDisksRequest) (response *CreateDisksResponse, err error)
- func (c *Client) CreateDisksWithContext(ctx context.Context, request *CreateDisksRequest) (response *CreateDisksResponse, err error)
- func (c *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error)
- func (c *Client) CreateSnapshotWithContext(ctx context.Context, request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error)
- func (c *Client) DeleteAutoSnapshotPolicies(request *DeleteAutoSnapshotPoliciesRequest) (response *DeleteAutoSnapshotPoliciesResponse, err error)
- func (c *Client) DeleteAutoSnapshotPoliciesWithContext(ctx context.Context, request *DeleteAutoSnapshotPoliciesRequest) (response *DeleteAutoSnapshotPoliciesResponse, err error)
- func (c *Client) DeleteSnapshots(request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
- func (c *Client) DeleteSnapshotsWithContext(ctx context.Context, request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
- func (c *Client) DescribeAutoSnapshotPolicies(request *DescribeAutoSnapshotPoliciesRequest) (response *DescribeAutoSnapshotPoliciesResponse, err error)
- func (c *Client) DescribeAutoSnapshotPoliciesWithContext(ctx context.Context, request *DescribeAutoSnapshotPoliciesRequest) (response *DescribeAutoSnapshotPoliciesResponse, err error)
- func (c *Client) DescribeDiskAssociatedAutoSnapshotPolicy(request *DescribeDiskAssociatedAutoSnapshotPolicyRequest) (response *DescribeDiskAssociatedAutoSnapshotPolicyResponse, err error)
- func (c *Client) DescribeDiskAssociatedAutoSnapshotPolicyWithContext(ctx context.Context, request *DescribeDiskAssociatedAutoSnapshotPolicyRequest) (response *DescribeDiskAssociatedAutoSnapshotPolicyResponse, err error)
- func (c *Client) DescribeDiskConfigQuota(request *DescribeDiskConfigQuotaRequest) (response *DescribeDiskConfigQuotaResponse, err error)
- func (c *Client) DescribeDiskConfigQuotaWithContext(ctx context.Context, request *DescribeDiskConfigQuotaRequest) (response *DescribeDiskConfigQuotaResponse, err error)
- func (c *Client) DescribeDiskOperationLogs(request *DescribeDiskOperationLogsRequest) (response *DescribeDiskOperationLogsResponse, err error)
- func (c *Client) DescribeDiskOperationLogsWithContext(ctx context.Context, request *DescribeDiskOperationLogsRequest) (response *DescribeDiskOperationLogsResponse, err error)
- func (c *Client) DescribeDisks(request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
- func (c *Client) DescribeDisksWithContext(ctx context.Context, request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
- func (c *Client) DescribeInstancesDiskNum(request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
- func (c *Client) DescribeInstancesDiskNumWithContext(ctx context.Context, request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
- func (c *Client) DescribeSnapshotOperationLogs(request *DescribeSnapshotOperationLogsRequest) (response *DescribeSnapshotOperationLogsResponse, err error)
- func (c *Client) DescribeSnapshotOperationLogsWithContext(ctx context.Context, request *DescribeSnapshotOperationLogsRequest) (response *DescribeSnapshotOperationLogsResponse, err error)
- func (c *Client) DescribeSnapshotSharePermission(request *DescribeSnapshotSharePermissionRequest) (response *DescribeSnapshotSharePermissionResponse, err error)
- func (c *Client) DescribeSnapshotSharePermissionWithContext(ctx context.Context, request *DescribeSnapshotSharePermissionRequest) (response *DescribeSnapshotSharePermissionResponse, err error)
- func (c *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
- func (c *Client) DescribeSnapshotsWithContext(ctx context.Context, request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
- func (c *Client) DetachDisks(request *DetachDisksRequest) (response *DetachDisksResponse, err error)
- func (c *Client) DetachDisksWithContext(ctx context.Context, request *DetachDisksRequest) (response *DetachDisksResponse, err error)
- func (c *Client) GetSnapOverview(request *GetSnapOverviewRequest) (response *GetSnapOverviewResponse, err error)
- func (c *Client) GetSnapOverviewWithContext(ctx context.Context, request *GetSnapOverviewRequest) (response *GetSnapOverviewResponse, err error)
- func (c *Client) InquirePriceModifyDiskExtraPerformance(request *InquirePriceModifyDiskExtraPerformanceRequest) (response *InquirePriceModifyDiskExtraPerformanceResponse, err error)
- func (c *Client) InquirePriceModifyDiskExtraPerformanceWithContext(ctx context.Context, request *InquirePriceModifyDiskExtraPerformanceRequest) (response *InquirePriceModifyDiskExtraPerformanceResponse, err error)
- func (c *Client) InquiryPriceCreateDisks(request *InquiryPriceCreateDisksRequest) (response *InquiryPriceCreateDisksResponse, err error)
- func (c *Client) InquiryPriceCreateDisksWithContext(ctx context.Context, request *InquiryPriceCreateDisksRequest) (response *InquiryPriceCreateDisksResponse, err error)
- func (c *Client) InquiryPriceResizeDisk(request *InquiryPriceResizeDiskRequest) (response *InquiryPriceResizeDiskResponse, err error)
- func (c *Client) InquiryPriceResizeDiskWithContext(ctx context.Context, request *InquiryPriceResizeDiskRequest) (response *InquiryPriceResizeDiskResponse, err error)
- func (c *Client) ModifyAutoSnapshotPolicyAttribute(request *ModifyAutoSnapshotPolicyAttributeRequest) (response *ModifyAutoSnapshotPolicyAttributeResponse, err error)
- func (c *Client) ModifyAutoSnapshotPolicyAttributeWithContext(ctx context.Context, request *ModifyAutoSnapshotPolicyAttributeRequest) (response *ModifyAutoSnapshotPolicyAttributeResponse, err error)
- func (c *Client) ModifyDiskAttributes(request *ModifyDiskAttributesRequest) (response *ModifyDiskAttributesResponse, err error)
- func (c *Client) ModifyDiskAttributesWithContext(ctx context.Context, request *ModifyDiskAttributesRequest) (response *ModifyDiskAttributesResponse, err error)
- func (c *Client) ModifyDiskExtraPerformance(request *ModifyDiskExtraPerformanceRequest) (response *ModifyDiskExtraPerformanceResponse, err error)
- func (c *Client) ModifyDiskExtraPerformanceWithContext(ctx context.Context, request *ModifyDiskExtraPerformanceRequest) (response *ModifyDiskExtraPerformanceResponse, err error)
- func (c *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
- func (c *Client) ModifySnapshotAttributeWithContext(ctx context.Context, request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
- func (c *Client) ModifySnapshotsSharePermission(request *ModifySnapshotsSharePermissionRequest) (response *ModifySnapshotsSharePermissionResponse, err error)
- func (c *Client) ModifySnapshotsSharePermissionWithContext(ctx context.Context, request *ModifySnapshotsSharePermissionRequest) (response *ModifySnapshotsSharePermissionResponse, err error)
- func (c *Client) ResizeDisk(request *ResizeDiskRequest) (response *ResizeDiskResponse, err error)
- func (c *Client) ResizeDiskWithContext(ctx context.Context, request *ResizeDiskRequest) (response *ResizeDiskResponse, err error)
- func (c *Client) TerminateDisks(request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
- func (c *Client) TerminateDisksWithContext(ctx context.Context, request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
- func (c *Client) UnbindAutoSnapshotPolicy(request *UnbindAutoSnapshotPolicyRequest) (response *UnbindAutoSnapshotPolicyResponse, err error)
- func (c *Client) UnbindAutoSnapshotPolicyWithContext(ctx context.Context, request *UnbindAutoSnapshotPolicyRequest) (response *UnbindAutoSnapshotPolicyResponse, err error)
- type CreateAutoSnapshotPolicyRequest
- type CreateAutoSnapshotPolicyResponse
- type CreateDisksRequest
- type CreateDisksResponse
- type CreateSnapshotRequest
- type CreateSnapshotResponse
- type DeleteAutoSnapshotPoliciesRequest
- type DeleteAutoSnapshotPoliciesResponse
- type DeleteSnapshotsRequest
- type DeleteSnapshotsResponse
- type DescribeAutoSnapshotPoliciesRequest
- type DescribeAutoSnapshotPoliciesResponse
- type DescribeDiskAssociatedAutoSnapshotPolicyRequest
- type DescribeDiskAssociatedAutoSnapshotPolicyResponse
- type DescribeDiskConfigQuotaRequest
- type DescribeDiskConfigQuotaResponse
- type DescribeDiskOperationLogsRequest
- type DescribeDiskOperationLogsResponse
- type DescribeDisksRequest
- type DescribeDisksResponse
- type DescribeInstancesDiskNumRequest
- type DescribeInstancesDiskNumResponse
- type DescribeSnapshotOperationLogsRequest
- type DescribeSnapshotOperationLogsResponse
- type DescribeSnapshotSharePermissionRequest
- type DescribeSnapshotSharePermissionResponse
- type DescribeSnapshotsRequest
- type DescribeSnapshotsResponse
- type DetachDisksRequest
- type DetachDisksResponse
- type Disk
- type DiskChargePrepaid
- type DiskConfig
- type DiskOperationLog
- type Filter
- type GetSnapOverviewRequest
- type GetSnapOverviewResponse
- type Image
- type InquirePriceModifyDiskExtraPerformanceRequest
- type InquirePriceModifyDiskExtraPerformanceResponse
- type InquiryPriceCreateDisksRequest
- type InquiryPriceCreateDisksResponse
- type InquiryPriceResizeDiskRequest
- type InquiryPriceResizeDiskResponse
- type ModifyAutoSnapshotPolicyAttributeRequest
- type ModifyAutoSnapshotPolicyAttributeResponse
- type ModifyDiskAttributesRequest
- type ModifyDiskAttributesResponse
- type ModifyDiskExtraPerformanceRequest
- type ModifyDiskExtraPerformanceResponse
- type ModifySnapshotAttributeRequest
- type ModifySnapshotAttributeResponse
- type ModifySnapshotsSharePermissionRequest
- type ModifySnapshotsSharePermissionResponse
- type Placement
- type Policy
- type PrepayPrice
- type Price
- type ResizeDiskRequest
- type ResizeDiskResponse
- type SharePermission
- type Snapshot
- type SnapshotOperationLog
- type Tag
- type TerminateDisksRequest
- type TerminateDisksResponse
- type UnbindAutoSnapshotPolicyRequest
- type UnbindAutoSnapshotPolicyResponse
Constants ¶
const ( // Number of scheduled snapshot policies has reached the limit. AUTOSNAPSHOTPOLICYOUTOFQUOTA = "AutoSnapshotPolicyOutOfQuota" // Number of returned cloud disks has reached the limit and no more cloud disks can be returned. INSUFFICIENTREFUNDQUOTA = "InsufficientRefundQuota" // Insufficient snapshot quota. INSUFFICIENTSNAPSHOTQUOTA = "InsufficientSnapshotQuota" // Dependent component request failed. Please contact customer service. INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" // Resource query failed. INTERNALERROR_FAILQUERYRESOURCE = "InternalError.FailQueryResource" // The operation performed on the resource failed. For error message, see the "Message" field in error description. Try again later or contact customer service. INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed" // Insufficient account balance INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" // `AutoSnapshotPolicyId` entered does not exist. INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" // Cloud disk is already bound to scheduled snapshot policy. INVALIDDISK_ALREADYBOUND = "InvalidDisk.AlreadyBound" // Cloud disk is already mounted. INVALIDDISK_ATTACHED = "InvalidDisk.Attached" // The cloud disk is busy. Try again later. INVALIDDISK_BUSY = "InvalidDisk.Busy" // The cloud disk has expired. INVALIDDISK_EXPIRE = "InvalidDisk.Expire" // Non-elastic cloud disks are not supported. INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" // Cloud disk return not supported. INVALIDDISK_NOTSUPPORTREFUND = "InvalidDisk.NotSupportRefund" // The cloud disk does not have the snapshot capability. INVALIDDISK_NOTSUPPORTSNAPSHOT = "InvalidDisk.NotSupportSnapshot" // Indicates that the operation is not supported for the cloud disk. INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" // Cloud disk has already been returned and cannot be returned again. INVALIDDISK_REPEATREFUND = "InvalidDisk.RepeatRefund" // A snapshot is being created for the cloud disk. Try again later. INVALIDDISK_SNAPSHOTCREATING = "InvalidDisk.SnapshotCreating" // Invalid cloud disk type. INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError" // The ‘DiskId’ entered does not exist. INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" // The specified Filter is not supported. INVALIDFILTER = "InvalidFilter" // Cloud Virtual Machine does not support mounting cloud disk. INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" // The ‘InstanceId’ entered does not exist. INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" // Incorrect parameter. INVALIDPARAMETER = "InvalidParameter" // Currently configured cloud disk not supported in current region. INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" // The size of the cloud disk does not match the snapshot size. INVALIDPARAMETER_DISKSIZENOTMATCH = "InvalidParameter.DiskSizeNotMatch" // The project ID does not exist. INVALIDPARAMETER_PROJECTIDNOTEXIST = "InvalidParameter.ProjectIdNotExist" // You need to convert the snapshot into an image first. INVALIDPARAMETER_SHOULDCONVERTSNAPSHOTTOIMAGE = "InvalidParameter.ShouldConvertSnapshotToImage" // Invalid parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // Number of labels bound to cloud disk exceeds the limit. INVALIDPARAMETERVALUE_BINDDISKLIMITEXCEEDED = "InvalidParameterValue.BindDiskLimitExceeded" // Number of parameter values exceeds the limit. INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // Indicates that the operation is not supported for the snapshot. INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" // The ‘SnapshotId’ entered does not exist. INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" // Number of instances mounted to cloud disk exceeds the limit. LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" // Missing parameter. MISSINGPARAMETER = "MissingParameter" // The resource is busy. Try again later. RESOURCEBUSY = "ResourceBusy" // Occupied resource. RESOURCEINUSE = "ResourceInUse" // The cloud disk is being migrated. Try again later. RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating" // The cloud disk is being rolled back. Please try again later. RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" // Insufficient resources. RESOURCEINSUFFICIENT = "ResourceInsufficient" // Quota insufficient. RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota" // RESOURCEINSUFFICIENT_OVERREFUNDQUOTA = "ResourceInsufficient.OverRefundQuota" // The resource is not found. RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" // The cloud disk has been mounted to another CVM. RESOURCEUNAVAILABLE_ATTACHED = "ResourceUnavailable.Attached" // The cloud disk has expired. RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" // The non-elastic cloud disk does not support this operation. RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" // The resource does not support this operation. RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" // The cloud disk has been repossessed. RESOURCEUNAVAILABLE_REPEATREFUND = "ResourceUnavailable.RepeatRefund" // Unable to use: the snapshot is being created RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating" // Too many snapshots created on entire network. RESOURCEUNAVAILABLE_TOOMANYCREATINGSNAPSHOT = "ResourceUnavailable.TooManyCreatingSnapshot" // Incorrect cloud disk type. For example, a system disk cannot be mounted to CVM. RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError" // RESOURCEUNAVAILABLE_ZONENOTMATCH = "ResourceUnavailable.ZoneNotMatch" // Order conflict. TRADEDEALCONFLICT = "TradeDealConflict" // Unauthorized operation. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // Multi-factor authentication (MFA) has expired. Please try again. UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" // The account has not completed identity verification. Payment failed. UNAUTHORIZEDOPERATION_NOTCERTIFICATION = "UnauthorizedOperation.NotCertification" // No payment permission. UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight" // Unsupported operation UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_DETACHPOD = "UnsupportedOperation.DetachPod" // Disk is encrypted. UNSUPPORTEDOPERATION_DISKENCRYPT = "UnsupportedOperation.DiskEncrypt" // Instance mounted on cloud disk not shut down. UNSUPPORTEDOPERATION_INSTANCENOTSTOPPED = "UnsupportedOperation.InstanceNotStopped" // The snapshot is shared with others. Please cancel the sharing first. UNSUPPORTEDOPERATION_SNAPHASSHARED = "UnsupportedOperation.SnapHasShared" // A custom snapshot was created for this snapshot. First delete the corresponding image. UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = "UnsupportedOperation.SnapshotHasBindedImage" // The resource does not support this operation in this status. UNSUPPORTEDOPERATION_STATEERROR = "UnsupportedOperation.StateError" // The cloud disk and the instance are not in the same availability zone. ZONENOTMATCH = "ZoneNotMatch" )
const APIVersion = "2017-03-12"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplySnapshotRequest ¶
type ApplySnapshotRequest struct { *tchttp.BaseRequest // Snapshot ID, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1). SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // ID of the original cloud disk corresponding to the snapshot, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1). DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Specifies whether to shut down a CVM automatically before a rollback AutoStopInstance *bool `json:"AutoStopInstance,omitempty" name:"AutoStopInstance"` // Specifies whether to start up a CVM automatically after a rollback AutoStartInstance *bool `json:"AutoStartInstance,omitempty" name:"AutoStartInstance"` }
func NewApplySnapshotRequest ¶
func NewApplySnapshotRequest() (request *ApplySnapshotRequest)
func (*ApplySnapshotRequest) FromJsonString ¶
func (r *ApplySnapshotRequest) 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 (*ApplySnapshotRequest) ToJsonString ¶
func (r *ApplySnapshotRequest) ToJsonString() string
type ApplySnapshotResponse ¶
type ApplySnapshotResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewApplySnapshotResponse ¶
func NewApplySnapshotResponse() (response *ApplySnapshotResponse)
func (*ApplySnapshotResponse) FromJsonString ¶
func (r *ApplySnapshotResponse) 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 (*ApplySnapshotResponse) ToJsonString ¶
func (r *ApplySnapshotResponse) ToJsonString() string
type AttachDetail ¶
type AttachDetail struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The number of instances mounted to data disk. AttachedDiskCount *uint64 `json:"AttachedDiskCount,omitempty" name:"AttachedDiskCount"` // The maximum number of instances that can be mounted to data disk. MaxAttachCount *uint64 `json:"MaxAttachCount,omitempty" name:"MaxAttachCount"` }
type AttachDisksRequest ¶
type AttachDisksRequest struct { *tchttp.BaseRequest // ID of the CVM instance on which the cloud disk will be mounted. It can be queried via the API [DescribeInstances](https://intl.cloud.tencent.com/document/product/213/15728?from_cn_redirect=1). InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // ID of the elastic cloud disk to be mounted, which can be queried through the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1). A maximum of 10 elastic cloud disks can be mounted in a single request. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Optional parameter. If this is not passed only the mount operation is executed. If `True` is passed, the cloud disk will be configured to be terminated when the server it is mounted to is terminated. This is only valid for pay-as-you-go cloud disks. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" name:"DeleteWithInstance"` // (Optional) Specifies the cloud disk mounting method. It’s only valid for BM models. Valid values: <br><li>PF<br><li>VF AttachMode *string `json:"AttachMode,omitempty" name:"AttachMode"` }
func NewAttachDisksRequest ¶
func NewAttachDisksRequest() (request *AttachDisksRequest)
func (*AttachDisksRequest) FromJsonString ¶
func (r *AttachDisksRequest) 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 (*AttachDisksRequest) ToJsonString ¶
func (r *AttachDisksRequest) ToJsonString() string
type AttachDisksResponse ¶
type AttachDisksResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachDisksResponse ¶
func NewAttachDisksResponse() (response *AttachDisksResponse)
func (*AttachDisksResponse) FromJsonString ¶
func (r *AttachDisksResponse) 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 (*AttachDisksResponse) ToJsonString ¶
func (r *AttachDisksResponse) ToJsonString() string
type AutoMountConfiguration ¶
type AutoMountConfiguration struct { // ID of the instance to which the cloud disk is attached. InstanceId []*string `json:"InstanceId,omitempty" name:"InstanceId"` // Path to the mount point in the CVM MountPoint []*string `json:"MountPoint,omitempty" name:"MountPoint"` // File system type. Supported: ext4 and xfs. FileSystemType *string `json:"FileSystemType,omitempty" name:"FileSystemType"` }
type AutoSnapshotPolicy ¶
type AutoSnapshotPolicy struct { // Scheduled snapshot policy ID. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" name:"AutoSnapshotPolicyId"` // Scheduled snapshot policy name. AutoSnapshotPolicyName *string `json:"AutoSnapshotPolicyName,omitempty" name:"AutoSnapshotPolicyName"` // Scheduled snapshot policy state. Value range:<br><li>NORMAL: Normal<br><li>ISOLATED: Isolated. AutoSnapshotPolicyState *string `json:"AutoSnapshotPolicyState,omitempty" name:"AutoSnapshotPolicyState"` // Whether scheduled snapshot policy is activated. IsActivated *bool `json:"IsActivated,omitempty" name:"IsActivated"` // Whether the snapshot created by this scheduled snapshot policy is retained permanently. IsPermanent *bool `json:"IsPermanent,omitempty" name:"IsPermanent"` // Number of days the snapshot created by this scheduled snapshot policy is retained. RetentionDays *uint64 `json:"RetentionDays,omitempty" name:"RetentionDays"` // The time the scheduled snapshot policy was created. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // The time the scheduled snapshot will be triggered again. NextTriggerTime *string `json:"NextTriggerTime,omitempty" name:"NextTriggerTime"` // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitempty" name:"Policy"` // The list of cloud disk IDs that the current scheduled snapshot policy is bound to. DiskIdSet []*string `json:"DiskIdSet,omitempty" name:"DiskIdSet"` }
type BindAutoSnapshotPolicyRequest ¶
type BindAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // ID of scheduled snapshot policy to be bound. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" name:"AutoSnapshotPolicyId"` // List of cloud disk IDs to be bound. Maximum of 80 cloud disks can be bound per request. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
func NewBindAutoSnapshotPolicyRequest ¶
func NewBindAutoSnapshotPolicyRequest() (request *BindAutoSnapshotPolicyRequest)
func (*BindAutoSnapshotPolicyRequest) FromJsonString ¶
func (r *BindAutoSnapshotPolicyRequest) 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 (*BindAutoSnapshotPolicyRequest) ToJsonString ¶
func (r *BindAutoSnapshotPolicyRequest) ToJsonString() string
type BindAutoSnapshotPolicyResponse ¶
type BindAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewBindAutoSnapshotPolicyResponse ¶
func NewBindAutoSnapshotPolicyResponse() (response *BindAutoSnapshotPolicyResponse)
func (*BindAutoSnapshotPolicyResponse) FromJsonString ¶
func (r *BindAutoSnapshotPolicyResponse) 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 (*BindAutoSnapshotPolicyResponse) ToJsonString ¶
func (r *BindAutoSnapshotPolicyResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) ApplySnapshot ¶
func (c *Client) ApplySnapshot(request *ApplySnapshotRequest) (response *ApplySnapshotResponse, err error)
ApplySnapshot This API (ApplySnapshot) is used to roll back a snapshot to the original cloud disk.
* The snapshot can only be rolled back to the original cloud disk. For data disk snapshots, if you need to copy the snapshot data to other cloud disks, use the API [CreateDisks](https://intl.cloud.tencent.com/document/product/362/16312?from_cn_redirect=1) to create an elastic cloud disk and then copy the snapshot data to the created cloud disk.
* The snapshot for rollback must be in NORMAL status. The snapshot status can be queried in the SnapshotState field in the output parameters through the API [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1).
* For elastic cloud disks, the cloud disk must be in UNMOUNTED status. The cloud disk status can be queried in the Attached field returned by the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1). For non-elastic cloud disks purchased together with instances, the instance must be in SHUTDOWN status. The instance status can be queried through the API [DescribeInstancesStatus](https://intl.cloud.tencent.com/document/product/213/15738?from_cn_redirect=1).
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_SNAPSHOTCREATING = "InvalidDisk.SnapshotCreating" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETER_DISKSIZENOTMATCH = "InvalidParameter.DiskSizeNotMatch" INVALIDPARAMETER_SHOULDCONVERTSNAPSHOTTOIMAGE = "InvalidParameter.ShouldConvertSnapshotToImage" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating"
func (*Client) ApplySnapshotWithContext ¶
func (c *Client) ApplySnapshotWithContext(ctx context.Context, request *ApplySnapshotRequest) (response *ApplySnapshotResponse, err error)
ApplySnapshot This API (ApplySnapshot) is used to roll back a snapshot to the original cloud disk.
* The snapshot can only be rolled back to the original cloud disk. For data disk snapshots, if you need to copy the snapshot data to other cloud disks, use the API [CreateDisks](https://intl.cloud.tencent.com/document/product/362/16312?from_cn_redirect=1) to create an elastic cloud disk and then copy the snapshot data to the created cloud disk.
* The snapshot for rollback must be in NORMAL status. The snapshot status can be queried in the SnapshotState field in the output parameters through the API [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1).
* For elastic cloud disks, the cloud disk must be in UNMOUNTED status. The cloud disk status can be queried in the Attached field returned by the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1). For non-elastic cloud disks purchased together with instances, the instance must be in SHUTDOWN status. The instance status can be queried through the API [DescribeInstancesStatus](https://intl.cloud.tencent.com/document/product/213/15738?from_cn_redirect=1).
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_SNAPSHOTCREATING = "InvalidDisk.SnapshotCreating" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETER_DISKSIZENOTMATCH = "InvalidParameter.DiskSizeNotMatch" INVALIDPARAMETER_SHOULDCONVERTSNAPSHOTTOIMAGE = "InvalidParameter.ShouldConvertSnapshotToImage" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating"
func (*Client) AttachDisks ¶
func (c *Client) AttachDisks(request *AttachDisksRequest) (response *AttachDisksResponse, err error)
AttachDisks This API is used to mount one or more cloud disks.
* Batch operation is supported. You can mount multiple cloud disks to one CVM in a single request. If any of these cloud disks cannot be mounted, the operation fails and a specific error code returns.
* This is an async API. A successful request indicates that the mounting is initiated. You can call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API to query the status of cloud disks. If the status changes from `ATTACHING` to `ATTACHED`, the mounting is successful.
error code that may be returned:
INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed" INVALIDDISK_ATTACHED = "InvalidDisk.Attached" INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_ATTACHED = "ResourceUnavailable.Attached" RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError" RESOURCEUNAVAILABLE_ZONENOTMATCH = "ResourceUnavailable.ZoneNotMatch" ZONENOTMATCH = "ZoneNotMatch"
func (*Client) AttachDisksWithContext ¶
func (c *Client) AttachDisksWithContext(ctx context.Context, request *AttachDisksRequest) (response *AttachDisksResponse, err error)
AttachDisks This API is used to mount one or more cloud disks.
* Batch operation is supported. You can mount multiple cloud disks to one CVM in a single request. If any of these cloud disks cannot be mounted, the operation fails and a specific error code returns.
* This is an async API. A successful request indicates that the mounting is initiated. You can call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API to query the status of cloud disks. If the status changes from `ATTACHING` to `ATTACHED`, the mounting is successful.
error code that may be returned:
INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed" INVALIDDISK_ATTACHED = "InvalidDisk.Attached" INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_ATTACHED = "ResourceUnavailable.Attached" RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError" RESOURCEUNAVAILABLE_ZONENOTMATCH = "ResourceUnavailable.ZoneNotMatch" ZONENOTMATCH = "ZoneNotMatch"
func (*Client) BindAutoSnapshotPolicy ¶
func (c *Client) BindAutoSnapshotPolicy(request *BindAutoSnapshotPolicyRequest) (response *BindAutoSnapshotPolicyResponse, err error)
BindAutoSnapshotPolicy This API (BindAutoSnapshotPolicy) is used to bind the cloud disk to the specified scheduled snapshot policy.
* For the scheduled snapshot policy limit of each region, see [Scheduled Snapshots](https://intl.cloud.tencent.com/document/product/362/8191?from_cn_redirect=1).
* When a cloud disk that is bound to a scheduled snapshot policy is in the unused state (that is, an elastic cloud disk has not been mounted or the server of an inelastic disk is powered off) scheduled snapshots are not created.
error code that may be returned:
INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDDISK_ALREADYBOUND = "InvalidDisk.AlreadyBound" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_BINDDISKLIMITEXCEEDED = "InvalidParameterValue.BindDiskLimitExceeded" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
func (*Client) BindAutoSnapshotPolicyWithContext ¶
func (c *Client) BindAutoSnapshotPolicyWithContext(ctx context.Context, request *BindAutoSnapshotPolicyRequest) (response *BindAutoSnapshotPolicyResponse, err error)
BindAutoSnapshotPolicy This API (BindAutoSnapshotPolicy) is used to bind the cloud disk to the specified scheduled snapshot policy.
* For the scheduled snapshot policy limit of each region, see [Scheduled Snapshots](https://intl.cloud.tencent.com/document/product/362/8191?from_cn_redirect=1).
* When a cloud disk that is bound to a scheduled snapshot policy is in the unused state (that is, an elastic cloud disk has not been mounted or the server of an inelastic disk is powered off) scheduled snapshots are not created.
error code that may be returned:
INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDDISK_ALREADYBOUND = "InvalidDisk.AlreadyBound" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_BINDDISKLIMITEXCEEDED = "InvalidParameterValue.BindDiskLimitExceeded" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
func (*Client) CreateAutoSnapshotPolicy ¶
func (c *Client) CreateAutoSnapshotPolicy(request *CreateAutoSnapshotPolicyRequest) (response *CreateAutoSnapshotPolicyResponse, err error)
CreateAutoSnapshotPolicy This API (CreateAutoSnapshotPolicy) is used to create a scheduled snapshot policy.
* For the limits on the number of scheduled snapshot policies that can be created in each region, see [Scheduled Snapshots](https://intl.cloud.tencent.com/document/product/362/8191?from_cn_redirect=1).
* The quantity and capacity of the snapshots that can be created in each region are limited. For more information, see the **Snapshots** page on the Tencent Cloud Console. If the number of snapshots exceeds the quota, the creation of the scheduled snapshots will fail.
error code that may be returned:
AUTOSNAPSHOTPOLICYOUTOFQUOTA = "AutoSnapshotPolicyOutOfQuota" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) CreateAutoSnapshotPolicyWithContext ¶
func (c *Client) CreateAutoSnapshotPolicyWithContext(ctx context.Context, request *CreateAutoSnapshotPolicyRequest) (response *CreateAutoSnapshotPolicyResponse, err error)
CreateAutoSnapshotPolicy This API (CreateAutoSnapshotPolicy) is used to create a scheduled snapshot policy.
* For the limits on the number of scheduled snapshot policies that can be created in each region, see [Scheduled Snapshots](https://intl.cloud.tencent.com/document/product/362/8191?from_cn_redirect=1).
* The quantity and capacity of the snapshots that can be created in each region are limited. For more information, see the **Snapshots** page on the Tencent Cloud Console. If the number of snapshots exceeds the quota, the creation of the scheduled snapshots will fail.
error code that may be returned:
AUTOSNAPSHOTPOLICYOUTOFQUOTA = "AutoSnapshotPolicyOutOfQuota" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) CreateDisks ¶
func (c *Client) CreateDisks(request *CreateDisksRequest) (response *CreateDisksResponse, err error)
CreateDisks This API is used to create one or more cloud disks.
* This API supports creating a cloud disk with a data disk snapshot so that the snapshot data can be copied to the purchased cloud disk.
* This API is an async API. A cloud disk ID list will be returned when a request is made successfully, but it does not mean that the creation has been completed. You can call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API to query cloud disks by `DiskId`. If a new cloud disk can be found and its state is 'UNATTACHED' or 'ATTACHED', it means that the cloud disk has been created successfully.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETER_PROJECTIDNOTEXIST = "InvalidParameter.ProjectIdNotExist" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT = "ResourceInsufficient" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOTCERTIFICATION = "UnauthorizedOperation.NotCertification" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight"
func (*Client) CreateDisksWithContext ¶
func (c *Client) CreateDisksWithContext(ctx context.Context, request *CreateDisksRequest) (response *CreateDisksResponse, err error)
CreateDisks This API is used to create one or more cloud disks.
* This API supports creating a cloud disk with a data disk snapshot so that the snapshot data can be copied to the purchased cloud disk.
* This API is an async API. A cloud disk ID list will be returned when a request is made successfully, but it does not mean that the creation has been completed. You can call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API to query cloud disks by `DiskId`. If a new cloud disk can be found and its state is 'UNATTACHED' or 'ATTACHED', it means that the cloud disk has been created successfully.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETER_PROJECTIDNOTEXIST = "InvalidParameter.ProjectIdNotExist" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT = "ResourceInsufficient" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOTCERTIFICATION = "UnauthorizedOperation.NotCertification" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight"
func (*Client) CreateSnapshot ¶
func (c *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error)
CreateSnapshot This API (CreateSnapshot) is used to create a snapshot of a specified cloud disk.
* Snapshots can only be created for cloud disks with the snapshot capability. To check whether a cloud disk has the snapshot capability, see the SnapshotAbility field returned by the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
* For the number of snapshots that can be created, please see [Product Usage Restriction](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1).
error code that may be returned:
INSUFFICIENTSNAPSHOTQUOTA = "InsufficientSnapshotQuota" INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTSNAPSHOT = "InvalidDisk.NotSupportSnapshot" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_SNAPSHOTCREATING = "InvalidDisk.SnapshotCreating" INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating" RESOURCEUNAVAILABLE_TOOMANYCREATINGSNAPSHOT = "ResourceUnavailable.TooManyCreatingSnapshot" UNSUPPORTEDOPERATION_DISKENCRYPT = "UnsupportedOperation.DiskEncrypt"
func (*Client) CreateSnapshotWithContext ¶
func (c *Client) CreateSnapshotWithContext(ctx context.Context, request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error)
CreateSnapshot This API (CreateSnapshot) is used to create a snapshot of a specified cloud disk.
* Snapshots can only be created for cloud disks with the snapshot capability. To check whether a cloud disk has the snapshot capability, see the SnapshotAbility field returned by the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
* For the number of snapshots that can be created, please see [Product Usage Restriction](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1).
error code that may be returned:
INSUFFICIENTSNAPSHOTQUOTA = "InsufficientSnapshotQuota" INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTSNAPSHOT = "InvalidDisk.NotSupportSnapshot" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_SNAPSHOTCREATING = "InvalidDisk.SnapshotCreating" INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating" RESOURCEUNAVAILABLE_TOOMANYCREATINGSNAPSHOT = "ResourceUnavailable.TooManyCreatingSnapshot" UNSUPPORTEDOPERATION_DISKENCRYPT = "UnsupportedOperation.DiskEncrypt"
func (*Client) DeleteAutoSnapshotPolicies ¶
func (c *Client) DeleteAutoSnapshotPolicies(request *DeleteAutoSnapshotPoliciesRequest) (response *DeleteAutoSnapshotPoliciesResponse, err error)
DeleteAutoSnapshotPolicies This API (DeleteAutoSnapshotPolicies) is used to delete scheduled snapshot policies.
* Batch operations are supported. If one of the scheduled snapshot policies in a batch cannot be deleted, the operation is not performed and a specific error code is returned.
error code that may be returned:
INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) DeleteAutoSnapshotPoliciesWithContext ¶
func (c *Client) DeleteAutoSnapshotPoliciesWithContext(ctx context.Context, request *DeleteAutoSnapshotPoliciesRequest) (response *DeleteAutoSnapshotPoliciesResponse, err error)
DeleteAutoSnapshotPolicies This API (DeleteAutoSnapshotPolicies) is used to delete scheduled snapshot policies.
* Batch operations are supported. If one of the scheduled snapshot policies in a batch cannot be deleted, the operation is not performed and a specific error code is returned.
error code that may be returned:
INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) DeleteSnapshots ¶
func (c *Client) DeleteSnapshots(request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
DeleteSnapshots This API is used to delete snapshots.
* Only snapshots in the `NORMAL` state can be deleted. To query the state of a snapshot, you can call the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API and check the `SnapshotState` field in the response.
* Batch operations are supported. If there is any snapshot that cannot be deleted, the operation will not be performed and a specific error code will be returned.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNSUPPORTEDOPERATION_SNAPHASSHARED = "UnsupportedOperation.SnapHasShared" UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = "UnsupportedOperation.SnapshotHasBindedImage"
func (*Client) DeleteSnapshotsWithContext ¶
func (c *Client) DeleteSnapshotsWithContext(ctx context.Context, request *DeleteSnapshotsRequest) (response *DeleteSnapshotsResponse, err error)
DeleteSnapshots This API is used to delete snapshots.
* Only snapshots in the `NORMAL` state can be deleted. To query the state of a snapshot, you can call the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API and check the `SnapshotState` field in the response.
* Batch operations are supported. If there is any snapshot that cannot be deleted, the operation will not be performed and a specific error code will be returned.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNSUPPORTEDOPERATION_SNAPHASSHARED = "UnsupportedOperation.SnapHasShared" UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = "UnsupportedOperation.SnapshotHasBindedImage"
func (*Client) DescribeAutoSnapshotPolicies ¶
func (c *Client) DescribeAutoSnapshotPolicies(request *DescribeAutoSnapshotPoliciesRequest) (response *DescribeAutoSnapshotPoliciesResponse, err error)
DescribeAutoSnapshotPolicies This API (DescribeAutoSnapshotPolicies) is used to query scheduled snapshot policies.
* You can query the detailed information of scheduled snapshot policies by ID, name, or status. Insert `AND` between different values. For details on filtering information, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit`; the default is 20) of the scheduled snapshot policy lists are returned to the current user.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeAutoSnapshotPoliciesWithContext ¶
func (c *Client) DescribeAutoSnapshotPoliciesWithContext(ctx context.Context, request *DescribeAutoSnapshotPoliciesRequest) (response *DescribeAutoSnapshotPoliciesResponse, err error)
DescribeAutoSnapshotPolicies This API (DescribeAutoSnapshotPolicies) is used to query scheduled snapshot policies.
* You can query the detailed information of scheduled snapshot policies by ID, name, or status. Insert `AND` between different values. For details on filtering information, see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit`; the default is 20) of the scheduled snapshot policy lists are returned to the current user.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDiskAssociatedAutoSnapshotPolicy ¶
func (c *Client) DescribeDiskAssociatedAutoSnapshotPolicy(request *DescribeDiskAssociatedAutoSnapshotPolicyRequest) (response *DescribeDiskAssociatedAutoSnapshotPolicyResponse, err error)
DescribeDiskAssociatedAutoSnapshotPolicy This API (DescribeDiskAssociatedAutoSnapshotPolicy) is used to query the scheduled snapshot policy bound to a cloud disk.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDiskAssociatedAutoSnapshotPolicyWithContext ¶
func (c *Client) DescribeDiskAssociatedAutoSnapshotPolicyWithContext(ctx context.Context, request *DescribeDiskAssociatedAutoSnapshotPolicyRequest) (response *DescribeDiskAssociatedAutoSnapshotPolicyResponse, err error)
DescribeDiskAssociatedAutoSnapshotPolicy This API (DescribeDiskAssociatedAutoSnapshotPolicy) is used to query the scheduled snapshot policy bound to a cloud disk.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDiskConfigQuota ¶
func (c *Client) DescribeDiskConfigQuota(request *DescribeDiskConfigQuotaRequest) (response *DescribeDiskConfigQuotaResponse, err error)
DescribeDiskConfigQuota This API (DescribeDiskConfigQuota) is used to query the cloud disk quota.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDiskConfigQuotaWithContext ¶
func (c *Client) DescribeDiskConfigQuotaWithContext(ctx context.Context, request *DescribeDiskConfigQuotaRequest) (response *DescribeDiskConfigQuotaResponse, err error)
DescribeDiskConfigQuota This API (DescribeDiskConfigQuota) is used to query the cloud disk quota.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDiskOperationLogs ¶
func (c *Client) DescribeDiskOperationLogs(request *DescribeDiskOperationLogsRequest) (response *DescribeDiskOperationLogsResponse, err error)
DescribeDiskOperationLogs This API (DescribeDiskOperationLogs) is used to query a list of cloud disk operation logs.
This can be filtered according to the cloud disk ID. The format of cloud disk IDs is as follows: disk-a1kmcp13.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDiskOperationLogsWithContext ¶
func (c *Client) DescribeDiskOperationLogsWithContext(ctx context.Context, request *DescribeDiskOperationLogsRequest) (response *DescribeDiskOperationLogsResponse, err error)
DescribeDiskOperationLogs This API (DescribeDiskOperationLogs) is used to query a list of cloud disk operation logs.
This can be filtered according to the cloud disk ID. The format of cloud disk IDs is as follows: disk-a1kmcp13.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDisks ¶
func (c *Client) DescribeDisks(request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
DescribeDisks This API (DescribeDisks) is used to query the list of cloud disks.
* The details of the cloud disk can be queried based on the ID, type or status of the cloud disk. The relationship between different conditions is AND. For more information about filtering, please see the `Filter`.
* If the parameter is empty, a certain number (specified by `Limit`; the default is 20) of cloud disk lists are returned to the current user.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeDisksWithContext ¶
func (c *Client) DescribeDisksWithContext(ctx context.Context, request *DescribeDisksRequest) (response *DescribeDisksResponse, err error)
DescribeDisks This API (DescribeDisks) is used to query the list of cloud disks.
* The details of the cloud disk can be queried based on the ID, type or status of the cloud disk. The relationship between different conditions is AND. For more information about filtering, please see the `Filter`.
* If the parameter is empty, a certain number (specified by `Limit`; the default is 20) of cloud disk lists are returned to the current user.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeInstancesDiskNum ¶
func (c *Client) DescribeInstancesDiskNum(request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
DescribeInstancesDiskNum This API (DescribeInstancesDiskNum) is used to query the number of cloud disks mounted in the instance.
* Batch operations are supported. If multiple CVM instance IDs are specified, the returned results will list the number of cloud disks mounted on each CVM.
error code that may be returned:
INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeInstancesDiskNumWithContext ¶
func (c *Client) DescribeInstancesDiskNumWithContext(ctx context.Context, request *DescribeInstancesDiskNumRequest) (response *DescribeInstancesDiskNumResponse, err error)
DescribeInstancesDiskNum This API (DescribeInstancesDiskNum) is used to query the number of cloud disks mounted in the instance.
* Batch operations are supported. If multiple CVM instance IDs are specified, the returned results will list the number of cloud disks mounted on each CVM.
error code that may be returned:
INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeSnapshotOperationLogs ¶
func (c *Client) DescribeSnapshotOperationLogs(request *DescribeSnapshotOperationLogsRequest) (response *DescribeSnapshotOperationLogsResponse, err error)
DescribeSnapshotOperationLogs This API (DescribeSnapshotOperationLogs) is used to query a list of snapshot operation logs.
You can filter according to the snapshot ID. The snapshot ID format is as follows: snap-a1kmcp13.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeSnapshotOperationLogsWithContext ¶
func (c *Client) DescribeSnapshotOperationLogsWithContext(ctx context.Context, request *DescribeSnapshotOperationLogsRequest) (response *DescribeSnapshotOperationLogsResponse, err error)
DescribeSnapshotOperationLogs This API (DescribeSnapshotOperationLogs) is used to query a list of snapshot operation logs.
You can filter according to the snapshot ID. The snapshot ID format is as follows: snap-a1kmcp13.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeSnapshotSharePermission ¶
func (c *Client) DescribeSnapshotSharePermission(request *DescribeSnapshotSharePermissionRequest) (response *DescribeSnapshotSharePermissionResponse, err error)
DescribeSnapshotSharePermission This API is used to query the sharing information of snapshots.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeSnapshotSharePermissionWithContext ¶
func (c *Client) DescribeSnapshotSharePermissionWithContext(ctx context.Context, request *DescribeSnapshotSharePermissionRequest) (response *DescribeSnapshotSharePermissionResponse, err error)
DescribeSnapshotSharePermission This API is used to query the sharing information of snapshots.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeSnapshots ¶
func (c *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
DescribeSnapshots This API (DescribeSnapshots) is used to query the details of snapshots.
* Filter the results by the snapshot ID, the ID of cloud disk, for which the snapshot is created, and the type of cloud disk, for which the snapshot is created. The relationship between different conditions is AND. For more information about filtering, please see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit`; the default is 20) of snapshot lists are returned to the current user.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DescribeSnapshotsWithContext ¶
func (c *Client) DescribeSnapshotsWithContext(ctx context.Context, request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error)
DescribeSnapshots This API (DescribeSnapshots) is used to query the details of snapshots.
* Filter the results by the snapshot ID, the ID of cloud disk, for which the snapshot is created, and the type of cloud disk, for which the snapshot is created. The relationship between different conditions is AND. For more information about filtering, please see `Filter`.
* If the parameter is empty, a certain number (specified by `Limit`; the default is 20) of snapshot lists are returned to the current user.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) DetachDisks ¶
func (c *Client) DetachDisks(request *DetachDisksRequest) (response *DetachDisksResponse, err error)
DetachDisks This API is used to unmount one or more cloud disks.
* Batch operation is supported. You can unmount multiple cloud disks from the same CVM in a single request. If any of these cloud disks cannot be unmounted, the operation fails and a specific error code returns.
* This is an async API. A successful request does not mean that the cloud disks have been unmounted successfully. You can call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API to query the status of cloud disks. When the status changes from `ATTACHED` to `UNATTACHED`, the unmounting is successful.
error code that may be returned:
INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed" INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNSUPPORTEDOPERATION_DETACHPOD = "UnsupportedOperation.DetachPod"
func (*Client) DetachDisksWithContext ¶
func (c *Client) DetachDisksWithContext(ctx context.Context, request *DetachDisksRequest) (response *DetachDisksResponse, err error)
DetachDisks This API is used to unmount one or more cloud disks.
* Batch operation is supported. You can unmount multiple cloud disks from the same CVM in a single request. If any of these cloud disks cannot be unmounted, the operation fails and a specific error code returns.
* This is an async API. A successful request does not mean that the cloud disks have been unmounted successfully. You can call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API to query the status of cloud disks. When the status changes from `ATTACHED` to `UNATTACHED`, the unmounting is successful.
error code that may be returned:
INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed" INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" UNSUPPORTEDOPERATION_DETACHPOD = "UnsupportedOperation.DetachPod"
func (*Client) GetSnapOverview ¶
func (c *Client) GetSnapOverview(request *GetSnapOverviewRequest) (response *GetSnapOverviewResponse, err error)
GetSnapOverview This API is used to get snapshot overview information.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) GetSnapOverviewWithContext ¶
func (c *Client) GetSnapOverviewWithContext(ctx context.Context, request *GetSnapOverviewRequest) (response *GetSnapOverviewResponse, err error)
GetSnapOverview This API is used to get snapshot overview information.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) InquirePriceModifyDiskExtraPerformance ¶
func (c *Client) InquirePriceModifyDiskExtraPerformance(request *InquirePriceModifyDiskExtraPerformanceRequest) (response *InquirePriceModifyDiskExtraPerformanceResponse, err error)
InquirePriceModifyDiskExtraPerformance This API is used to query the price for adjusting the cloud disk’s extra performance.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire"
func (*Client) InquirePriceModifyDiskExtraPerformanceWithContext ¶
func (c *Client) InquirePriceModifyDiskExtraPerformanceWithContext(ctx context.Context, request *InquirePriceModifyDiskExtraPerformanceRequest) (response *InquirePriceModifyDiskExtraPerformanceResponse, err error)
InquirePriceModifyDiskExtraPerformance This API is used to query the price for adjusting the cloud disk’s extra performance.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire"
func (*Client) InquiryPriceCreateDisks ¶
func (c *Client) InquiryPriceCreateDisks(request *InquiryPriceCreateDisksRequest) (response *InquiryPriceCreateDisksResponse, err error)
InquiryPriceCreateDisks This API (InquiryPriceCreateDisks) is used to inquire the price for cloud disk creation.
* It supports inquiring the price for the creation of multiple cloud disks. The total price for the creation is returned.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) InquiryPriceCreateDisksWithContext ¶
func (c *Client) InquiryPriceCreateDisksWithContext(ctx context.Context, request *InquiryPriceCreateDisksRequest) (response *InquiryPriceCreateDisksResponse, err error)
InquiryPriceCreateDisks This API (InquiryPriceCreateDisks) is used to inquire the price for cloud disk creation.
* It supports inquiring the price for the creation of multiple cloud disks. The total price for the creation is returned.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) InquiryPriceResizeDisk ¶
func (c *Client) InquiryPriceResizeDisk(request *InquiryPriceResizeDiskRequest) (response *InquiryPriceResizeDiskResponse, err error)
InquiryPriceResizeDisk This API is used to query the price for expanding cloud disks.
error code that may be returned:
INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire"
func (*Client) InquiryPriceResizeDiskWithContext ¶
func (c *Client) InquiryPriceResizeDiskWithContext(ctx context.Context, request *InquiryPriceResizeDiskRequest) (response *InquiryPriceResizeDiskResponse, err error)
InquiryPriceResizeDisk This API is used to query the price for expanding cloud disks.
error code that may be returned:
INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire"
func (*Client) ModifyAutoSnapshotPolicyAttribute ¶
func (c *Client) ModifyAutoSnapshotPolicyAttribute(request *ModifyAutoSnapshotPolicyAttributeRequest) (response *ModifyAutoSnapshotPolicyAttributeResponse, err error)
ModifyAutoSnapshotPolicyAttribute This API (ModifyAutoSnapshotPolicyAttribute) is used to modify the attributes of an automatic snapshot policy.
* You can use this API to modify the attributes of a scheduled snapshot policy, including the execution policy, name, and activation.
* When modifying the number of days for retention, you must ensure that there is no clash with the permanent retention attribute. Otherwise, the entire operation will fail and a specific error code will be returned.
error code that may be returned:
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" UNSUPPORTEDOPERATION_STATEERROR = "UnsupportedOperation.StateError"
func (*Client) ModifyAutoSnapshotPolicyAttributeWithContext ¶
func (c *Client) ModifyAutoSnapshotPolicyAttributeWithContext(ctx context.Context, request *ModifyAutoSnapshotPolicyAttributeRequest) (response *ModifyAutoSnapshotPolicyAttributeResponse, err error)
ModifyAutoSnapshotPolicyAttribute This API (ModifyAutoSnapshotPolicyAttribute) is used to modify the attributes of an automatic snapshot policy.
* You can use this API to modify the attributes of a scheduled snapshot policy, including the execution policy, name, and activation.
* When modifying the number of days for retention, you must ensure that there is no clash with the permanent retention attribute. Otherwise, the entire operation will fail and a specific error code will be returned.
error code that may be returned:
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" UNSUPPORTEDOPERATION_STATEERROR = "UnsupportedOperation.StateError"
func (*Client) ModifyDiskAttributes ¶
func (c *Client) ModifyDiskAttributes(request *ModifyDiskAttributesRequest) (response *ModifyDiskAttributesResponse, err error)
ModifyDiskAttributes * Only the project ID of elastic cloud disk can be modified. The project ID of the cloud disk created with the CVM is linked with the CVM. The project ID can be can be queried in the Portable field in the output parameters through the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
* "Cloud disk name" is only used by users for their management. Tencent Cloud does not use the name as the basis for ticket submission or cloud disk management.
* Batch operations are supported. If multiple cloud disk IDs are specified, all the specified cloud disks must have the same attribute. If there is a cloud disk that does not allow this operation, the operation is not performed and a specific error code is returned.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
func (*Client) ModifyDiskAttributesWithContext ¶
func (c *Client) ModifyDiskAttributesWithContext(ctx context.Context, request *ModifyDiskAttributesRequest) (response *ModifyDiskAttributesResponse, err error)
ModifyDiskAttributes * Only the project ID of elastic cloud disk can be modified. The project ID of the cloud disk created with the CVM is linked with the CVM. The project ID can be can be queried in the Portable field in the output parameters through the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1).
* "Cloud disk name" is only used by users for their management. Tencent Cloud does not use the name as the basis for ticket submission or cloud disk management.
* Batch operations are supported. If multiple cloud disk IDs are specified, all the specified cloud disks must have the same attribute. If there is a cloud disk that does not allow this operation, the operation is not performed and a specific error code is returned.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
func (*Client) ModifyDiskExtraPerformance ¶
func (c *Client) ModifyDiskExtraPerformance(request *ModifyDiskExtraPerformanceRequest) (response *ModifyDiskExtraPerformanceResponse, err error)
ModifyDiskExtraPerformance This API is used to adjust the cloud disk’s extra performance.
* Currently, only Tremendous SSD (CLOUD_TSSD) and Enhanced SSD (CLOUD_HSSD) support extra performance adjustment.
error code that may be returned:
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDiskExtraPerformanceWithContext ¶
func (c *Client) ModifyDiskExtraPerformanceWithContext(ctx context.Context, request *ModifyDiskExtraPerformanceRequest) (response *ModifyDiskExtraPerformanceResponse, err error)
ModifyDiskExtraPerformance This API is used to adjust the cloud disk’s extra performance.
* Currently, only Tremendous SSD (CLOUD_TSSD) and Enhanced SSD (CLOUD_HSSD) support extra performance adjustment.
error code that may be returned:
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter" RESOURCEINSUFFICIENT = "ResourceInsufficient" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifySnapshotAttribute ¶
func (c *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
ModifySnapshotAttribute This API (ModifySnapshotAttribute) is used to modify the attributes of a specified snapshot.
* Currently, you can only modify snapshot name and change non-permanent snapshots into permanent snapshots.
* "Snapshot name" is only used by users for their management. Tencent Cloud does not use the name as the basis for ticket submission or snapshot management.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter"
func (*Client) ModifySnapshotAttributeWithContext ¶
func (c *Client) ModifySnapshotAttributeWithContext(ctx context.Context, request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error)
ModifySnapshotAttribute This API (ModifySnapshotAttribute) is used to modify the attributes of a specified snapshot.
* Currently, you can only modify snapshot name and change non-permanent snapshots into permanent snapshots.
* "Snapshot name" is only used by users for their management. Tencent Cloud does not use the name as the basis for ticket submission or snapshot management.
error code that may be returned:
INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter"
func (*Client) ModifySnapshotsSharePermission ¶
func (c *Client) ModifySnapshotsSharePermission(request *ModifySnapshotsSharePermissionRequest) (response *ModifySnapshotsSharePermissionResponse, err error)
ModifySnapshotsSharePermission This API is used to modify snapshot sharing information.
After snapshots are shared, the accounts they are shared to can use the snapshot to create cloud disks.
* Each snapshot can be shared to at most 50 accounts.
* You can use a shared snapshot to create cloud disks, but you cannot change its name or description.
* Snapshots can only be shared with accounts in the same region.
* Only data disk snapshots can be shared.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota"
func (*Client) ModifySnapshotsSharePermissionWithContext ¶
func (c *Client) ModifySnapshotsSharePermissionWithContext(ctx context.Context, request *ModifySnapshotsSharePermissionRequest) (response *ModifySnapshotsSharePermissionResponse, err error)
ModifySnapshotsSharePermission This API is used to modify snapshot sharing information.
After snapshots are shared, the accounts they are shared to can use the snapshot to create cloud disks.
* Each snapshot can be shared to at most 50 accounts.
* You can use a shared snapshot to create cloud disks, but you cannot change its name or description.
* Snapshots can only be shared with accounts in the same region.
* Only data disk snapshots can be shared.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota"
func (*Client) ResizeDisk ¶
func (c *Client) ResizeDisk(request *ResizeDiskRequest) (response *ResizeDiskResponse, err error)
ResizeDisk This API is used to expand the capacity of a cloud disk.
* This API supports only the expansion of elastic cloud disks. To query the type of a cloud disk, you can call the [DescribeDisks](https://intl.cloud.tencent.comhttps://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1?from_cn_redirect=1) API and check the `Portable` field in the response. To expand non-elastic cloud disks, you can call the [ResizeInstanceDisks](https://intl.cloud.tencent.com/document/product/213/15731?from_cn_redirect=1) API.
* This is an async API. A successful return of this API does not mean that the cloud disk has been expanded successfully. You can call the [DescribeDisks](https://intl.cloud.tencent.comhttps://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1?from_cn_redirect=1) API to query the status of a cloud disk. `EXPANDING` indicates that the expansion is in process.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight" UNSUPPORTEDOPERATION_INSTANCENOTSTOPPED = "UnsupportedOperation.InstanceNotStopped"
func (*Client) ResizeDiskWithContext ¶
func (c *Client) ResizeDiskWithContext(ctx context.Context, request *ResizeDiskRequest) (response *ResizeDiskResponse, err error)
ResizeDisk This API is used to expand the capacity of a cloud disk.
* This API supports only the expansion of elastic cloud disks. To query the type of a cloud disk, you can call the [DescribeDisks](https://intl.cloud.tencent.comhttps://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1?from_cn_redirect=1) API and check the `Portable` field in the response. To expand non-elastic cloud disks, you can call the [ResizeInstanceDisks](https://intl.cloud.tencent.com/document/product/213/15731?from_cn_redirect=1) API.
* This is an async API. A successful return of this API does not mean that the cloud disk has been expanded successfully. You can call the [DescribeDisks](https://intl.cloud.tencent.comhttps://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1?from_cn_redirect=1) API to query the status of a cloud disk. `EXPANDING` indicates that the expansion is in process.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight" UNSUPPORTEDOPERATION_INSTANCENOTSTOPPED = "UnsupportedOperation.InstanceNotStopped"
func (*Client) TerminateDisks ¶
func (c *Client) TerminateDisks(request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
TerminateDisks This API is used to return cloud disks.
* You can use this API to return cloud disks you no longer need.
* This API can be used to return pay-as-you-go cloud disks billed on hourly basis.
* Batch operations are supported. The maximum number of cloud disks in each request is 50. If there is any specified cloud disk that cannot be returned, an error code will be returned.
error code that may be returned:
INSUFFICIENTREFUNDQUOTA = "InsufficientRefundQuota" INTERNALERROR_FAILQUERYRESOURCE = "InternalError.FailQueryResource" INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTSUPPORTREFUND = "InvalidDisk.NotSupportRefund" INVALIDDISK_REPEATREFUND = "InvalidDisk.RepeatRefund" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT_OVERREFUNDQUOTA = "ResourceInsufficient.OverRefundQuota" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_REPEATREFUND = "ResourceUnavailable.RepeatRefund" TRADEDEALCONFLICT = "TradeDealConflict"
func (*Client) TerminateDisksWithContext ¶
func (c *Client) TerminateDisksWithContext(ctx context.Context, request *TerminateDisksRequest) (response *TerminateDisksResponse, err error)
TerminateDisks This API is used to return cloud disks.
* You can use this API to return cloud disks you no longer need.
* This API can be used to return pay-as-you-go cloud disks billed on hourly basis.
* Batch operations are supported. The maximum number of cloud disks in each request is 50. If there is any specified cloud disk that cannot be returned, an error code will be returned.
error code that may be returned:
INSUFFICIENTREFUNDQUOTA = "InsufficientRefundQuota" INTERNALERROR_FAILQUERYRESOURCE = "InternalError.FailQueryResource" INVALIDDISK_EXPIRE = "InvalidDisk.Expire" INVALIDDISK_NOTSUPPORTREFUND = "InvalidDisk.NotSupportRefund" INVALIDDISK_REPEATREFUND = "InvalidDisk.RepeatRefund" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT_OVERREFUNDQUOTA = "ResourceInsufficient.OverRefundQuota" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_REPEATREFUND = "ResourceUnavailable.RepeatRefund" TRADEDEALCONFLICT = "TradeDealConflict"
func (*Client) UnbindAutoSnapshotPolicy ¶
func (c *Client) UnbindAutoSnapshotPolicy(request *UnbindAutoSnapshotPolicyRequest) (response *UnbindAutoSnapshotPolicyResponse, err error)
UnbindAutoSnapshotPolicy This API (UnbindAutoSnapshotPolicy) is used to unbind the cloud disk from the specified scheduled snapshot policy.
* Batch operations are supported. Multiple cloud disks can be unbound from a snapshot policy at one time.
* If the passed-in cloud disks are not bound to the current scheduled snapshot policy, they will be skipped. Only cloud disks that are bound to the current scheduled snapshot policy are processed.
error code that may be returned:
INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
func (*Client) UnbindAutoSnapshotPolicyWithContext ¶
func (c *Client) UnbindAutoSnapshotPolicyWithContext(ctx context.Context, request *UnbindAutoSnapshotPolicyRequest) (response *UnbindAutoSnapshotPolicyResponse, err error)
UnbindAutoSnapshotPolicy This API (UnbindAutoSnapshotPolicy) is used to unbind the cloud disk from the specified scheduled snapshot policy.
* Batch operations are supported. Multiple cloud disks can be unbound from a snapshot policy at one time.
* If the passed-in cloud disks are not bound to the current scheduled snapshot policy, they will be skipped. Only cloud disks that are bound to the current scheduled snapshot policy are processed.
error code that may be returned:
INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter"
type CreateAutoSnapshotPolicyRequest ¶
type CreateAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitempty" name:"Policy"` // The name of the scheduled snapshot policy to be created. If it is left empty, the default is 'Not named'. The maximum length cannot exceed 60 bytes. AutoSnapshotPolicyName *string `json:"AutoSnapshotPolicyName,omitempty" name:"AutoSnapshotPolicyName"` // Whether or not the scheduled snapshot policy is activated. FALSE: Not activated. TRUE: Activated. The default value is TRUE. IsActivated *bool `json:"IsActivated,omitempty" name:"IsActivated"` // Whether the snapshot created by this scheduled snapshot policy is retained permanently. FALSE: Not retained permanently. TRUE: Retained permanently. The default value is FALSE. IsPermanent *bool `json:"IsPermanent,omitempty" name:"IsPermanent"` // The number of days that a snapshot created by this scheduled snapshot policy is retained. The default value is 7. If this parameter is specified, the IsPermanent input parameter can not be TRUE, otherwise a conflict will occur. RetentionDays *uint64 `json:"RetentionDays,omitempty" name:"RetentionDays"` // Whether to create an execution policy for the scheduled snapshot. TRUE: Only the time of the initial backup needs to be obtained, and no scheduled snapshot policy is actually created. FALSE: Create. The default value is FALSE. DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` }
func NewCreateAutoSnapshotPolicyRequest ¶
func NewCreateAutoSnapshotPolicyRequest() (request *CreateAutoSnapshotPolicyRequest)
func (*CreateAutoSnapshotPolicyRequest) FromJsonString ¶
func (r *CreateAutoSnapshotPolicyRequest) 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 (*CreateAutoSnapshotPolicyRequest) ToJsonString ¶
func (r *CreateAutoSnapshotPolicyRequest) ToJsonString() string
type CreateAutoSnapshotPolicyResponse ¶
type CreateAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The ID of the newly created scheduled snapshot policy. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" name:"AutoSnapshotPolicyId"` // The time that initial backup will start. NextTriggerTime *string `json:"NextTriggerTime,omitempty" name:"NextTriggerTime"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateAutoSnapshotPolicyResponse ¶
func NewCreateAutoSnapshotPolicyResponse() (response *CreateAutoSnapshotPolicyResponse)
func (*CreateAutoSnapshotPolicyResponse) FromJsonString ¶
func (r *CreateAutoSnapshotPolicyResponse) 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 (*CreateAutoSnapshotPolicyResponse) ToJsonString ¶
func (r *CreateAutoSnapshotPolicyResponse) ToJsonString() string
type CreateDisksRequest ¶
type CreateDisksRequest struct { *tchttp.BaseRequest // The location of the instance. The availability zone and the project that the instance belongs to can be specified using this parameter. If the project is not specified, it will be created under the default project. Placement *Placement `json:"Placement,omitempty" name:"Placement"` // Cloud disk billing method. POSTPAID_BY_HOUR: pay as you go by hour<br><li>CDCPAID: Billed together with the bound dedicated cluster<br>For information about the pricing of each method, see the cloud disk [Pricing Overview](https://intl.cloud.tencent.com/document/product/362/2413?from_cn_redirect=1). DiskChargeType *string `json:"DiskChargeType,omitempty" name:"DiskChargeType"` // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD cloud disk<br><li>CLOUD_PREMIUM: Premium Cloud Storage<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: Tremendous SSD DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // The displayed name of the cloud disk. If it is left empty, the default is 'Not named'. The maximum length cannot exceed 60 bytes. DiskName *string `json:"DiskName,omitempty" name:"DiskName"` // Cloud disk binding tag. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Snapshot ID. If this parameter is specified, the cloud disk is created based on the snapshot. The snapshot type must be a data disk snapshot. The snapshot can be queried in the DiskUsage field in the output parameter through the API [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1). SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // If the number of cloud disks to be created is left empty, the default is 1. There is a limit to the maximum number of cloud disks that can be created for a single request. For more information, please see [CBS Use Limits](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1). DiskCount *uint64 `json:"DiskCount,omitempty" name:"DiskCount"` // Extra performance purchased for a cloud disk.<br>This optional parameter is only valid for Tremendous SSD (CLOUD_TSSD) and Enhanced SSD (CLOUD_HSSD). ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitempty" name:"ThroughputPerformance"` // Cloud hard disk size (in GB). <br><li> If `SnapshotId` is passed, `DiskSize` cannot be passed. In this case, the size of the cloud disk is the size of the snapshot. <br><li>To pass `SnapshotId` and `DiskSize` at the same time, the size of the disk must be larger than or equal to the size of the snapshot. <br><li>For information about the size range of cloud disks, see cloud disk [Product Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` Shareable *bool `json:"Shareable,omitempty" name:"Shareable"` // A string to ensure the idempotency of the request, which is generated by the client. Each request shall have a unique string with a maximum of 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be ensured. ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` // This parameter is used to create an encrypted cloud disk. Its value is always ENCRYPT. Encrypt *string `json:"Encrypt,omitempty" name:"Encrypt"` // Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter. <br>This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk. DiskChargePrepaid *DiskChargePrepaid `json:"DiskChargePrepaid,omitempty" name:"DiskChargePrepaid"` // Whether to delete the associated non-permanent snapshots when a cloud disk is terminated. Valid values: `0` (do not delete); `1` (delete). Default value: `0`. To find out whether a snapshot is permanent, you can call the `DescribeSnapshots` API and check the `IsPermanent` field (`true`: permanent; `false`: non-permanent) in its response. DeleteSnapshot *int64 `json:"DeleteSnapshot,omitempty" name:"DeleteSnapshot"` // When a cloud disk is created, automatically initialize it and attach it to the specified mount point AutoMountConfiguration *AutoMountConfiguration `json:"AutoMountConfiguration,omitempty" name:"AutoMountConfiguration"` }
func NewCreateDisksRequest ¶
func NewCreateDisksRequest() (request *CreateDisksRequest)
func (*CreateDisksRequest) FromJsonString ¶
func (r *CreateDisksRequest) 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 (*CreateDisksRequest) ToJsonString ¶
func (r *CreateDisksRequest) ToJsonString() string
type CreateDisksResponse ¶
type CreateDisksResponse struct { *tchttp.BaseResponse Response *struct { // List of created cloud disk IDs. DiskIdSet []*string `json:"DiskIdSet,omitempty" name:"DiskIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDisksResponse ¶
func NewCreateDisksResponse() (response *CreateDisksResponse)
func (*CreateDisksResponse) FromJsonString ¶
func (r *CreateDisksResponse) 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 (*CreateDisksResponse) ToJsonString ¶
func (r *CreateDisksResponse) ToJsonString() string
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct { *tchttp.BaseRequest // ID of the cloud disk, for which a snapshot needs to be created. It can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1). DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Snapshot name. If it is left empty, the new snapshot name is "Not named" by default. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` // Expiration time of the snapshot. The snapshot will be automatically deleted upon expiration. Deadline *string `json:"Deadline,omitempty" name:"Deadline"` }
func NewCreateSnapshotRequest ¶
func NewCreateSnapshotRequest() (request *CreateSnapshotRequest)
func (*CreateSnapshotRequest) FromJsonString ¶
func (r *CreateSnapshotRequest) 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 (*CreateSnapshotRequest) ToJsonString ¶
func (r *CreateSnapshotRequest) ToJsonString() string
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct { *tchttp.BaseResponse Response *struct { // ID of the new snapshot. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateSnapshotResponse ¶
func NewCreateSnapshotResponse() (response *CreateSnapshotResponse)
func (*CreateSnapshotResponse) FromJsonString ¶
func (r *CreateSnapshotResponse) 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 (*CreateSnapshotResponse) ToJsonString ¶
func (r *CreateSnapshotResponse) ToJsonString() string
type DeleteAutoSnapshotPoliciesRequest ¶
type DeleteAutoSnapshotPoliciesRequest struct { *tchttp.BaseRequest // List of scheduled snapshot policy IDs to be deleted. AutoSnapshotPolicyIds []*string `json:"AutoSnapshotPolicyIds,omitempty" name:"AutoSnapshotPolicyIds"` }
func NewDeleteAutoSnapshotPoliciesRequest ¶
func NewDeleteAutoSnapshotPoliciesRequest() (request *DeleteAutoSnapshotPoliciesRequest)
func (*DeleteAutoSnapshotPoliciesRequest) FromJsonString ¶
func (r *DeleteAutoSnapshotPoliciesRequest) 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 (*DeleteAutoSnapshotPoliciesRequest) ToJsonString ¶
func (r *DeleteAutoSnapshotPoliciesRequest) ToJsonString() string
type DeleteAutoSnapshotPoliciesResponse ¶
type DeleteAutoSnapshotPoliciesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteAutoSnapshotPoliciesResponse ¶
func NewDeleteAutoSnapshotPoliciesResponse() (response *DeleteAutoSnapshotPoliciesResponse)
func (*DeleteAutoSnapshotPoliciesResponse) FromJsonString ¶
func (r *DeleteAutoSnapshotPoliciesResponse) 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 (*DeleteAutoSnapshotPoliciesResponse) ToJsonString ¶
func (r *DeleteAutoSnapshotPoliciesResponse) ToJsonString() string
type DeleteSnapshotsRequest ¶
type DeleteSnapshotsRequest struct { *tchttp.BaseRequest // List of IDs of snapshots to be deleted, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1). SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` // Whether to forcibly delete the image associated with the snapshot DeleteBindImages *bool `json:"DeleteBindImages,omitempty" name:"DeleteBindImages"` }
func NewDeleteSnapshotsRequest ¶
func NewDeleteSnapshotsRequest() (request *DeleteSnapshotsRequest)
func (*DeleteSnapshotsRequest) FromJsonString ¶
func (r *DeleteSnapshotsRequest) 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 (*DeleteSnapshotsRequest) ToJsonString ¶
func (r *DeleteSnapshotsRequest) ToJsonString() string
type DeleteSnapshotsResponse ¶
type DeleteSnapshotsResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteSnapshotsResponse ¶
func NewDeleteSnapshotsResponse() (response *DeleteSnapshotsResponse)
func (*DeleteSnapshotsResponse) FromJsonString ¶
func (r *DeleteSnapshotsResponse) 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 (*DeleteSnapshotsResponse) ToJsonString ¶
func (r *DeleteSnapshotsResponse) ToJsonString() string
type DescribeAutoSnapshotPoliciesRequest ¶
type DescribeAutoSnapshotPoliciesRequest struct { *tchttp.BaseRequest // List of scheduled snapshot policy IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. AutoSnapshotPolicyIds []*string `json:"AutoSnapshotPolicyIds,omitempty" name:"AutoSnapshotPolicyIds"` // Filter conditions. Specification of both the `AutoSnapshotPolicyIds` and `Filters` parameters is not supported.<br><li>auto-snapshot-policy-id - Array of String - Required or not: No - (Filter condition) Filters according to the scheduled snapshot policy ID. The format of the scheduled snapshot policy ID is as follows: `asp-11112222`. <br><li>auto-snapshot-policy-state - Array of String - Required or not: No - (Filter condition) Filters according to the status of the scheduled snapshot policy. The format of the scheduled snapshot policy ID is as follows: `asp-11112222`. (NORMAL: normal | ISOLATED: isolated)<br><li>auto-snapshot-policy-name - Array of String - Required or not: No - (Filter condition) Filters according to the name of the scheduled snapshot policy. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Outputs the ordering of the scheduled snapshot lists. Value range: <br><li>ASC: Ascending order <br><li>DESC: Descending order. Order *string `json:"Order,omitempty" name:"Order"` // The sorting filter applied to the scheduled snapshot list. Value range: <Sort by creation time of scheduled snapshot. By default, this is sorted by creation time. OrderField *string `json:"OrderField,omitempty" name:"OrderField"` }
func NewDescribeAutoSnapshotPoliciesRequest ¶
func NewDescribeAutoSnapshotPoliciesRequest() (request *DescribeAutoSnapshotPoliciesRequest)
func (*DescribeAutoSnapshotPoliciesRequest) FromJsonString ¶
func (r *DescribeAutoSnapshotPoliciesRequest) 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 (*DescribeAutoSnapshotPoliciesRequest) ToJsonString ¶
func (r *DescribeAutoSnapshotPoliciesRequest) ToJsonString() string
type DescribeAutoSnapshotPoliciesResponse ¶
type DescribeAutoSnapshotPoliciesResponse struct { *tchttp.BaseResponse Response *struct { // The quantity of valid scheduled snapshot policies. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of scheduled snapshot policies. AutoSnapshotPolicySet []*AutoSnapshotPolicy `json:"AutoSnapshotPolicySet,omitempty" name:"AutoSnapshotPolicySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAutoSnapshotPoliciesResponse ¶
func NewDescribeAutoSnapshotPoliciesResponse() (response *DescribeAutoSnapshotPoliciesResponse)
func (*DescribeAutoSnapshotPoliciesResponse) FromJsonString ¶
func (r *DescribeAutoSnapshotPoliciesResponse) 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 (*DescribeAutoSnapshotPoliciesResponse) ToJsonString ¶
func (r *DescribeAutoSnapshotPoliciesResponse) ToJsonString() string
type DescribeDiskAssociatedAutoSnapshotPolicyRequest ¶
type DescribeDiskAssociatedAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // The ID of the queried cloud disk. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` }
func NewDescribeDiskAssociatedAutoSnapshotPolicyRequest ¶
func NewDescribeDiskAssociatedAutoSnapshotPolicyRequest() (request *DescribeDiskAssociatedAutoSnapshotPolicyRequest)
func (*DescribeDiskAssociatedAutoSnapshotPolicyRequest) FromJsonString ¶
func (r *DescribeDiskAssociatedAutoSnapshotPolicyRequest) 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 (*DescribeDiskAssociatedAutoSnapshotPolicyRequest) ToJsonString ¶
func (r *DescribeDiskAssociatedAutoSnapshotPolicyRequest) ToJsonString() string
type DescribeDiskAssociatedAutoSnapshotPolicyResponse ¶
type DescribeDiskAssociatedAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The quantity of scheduled snapshots binded to cloud disk. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of scheduled snapshots bound to cloud disk. AutoSnapshotPolicySet []*AutoSnapshotPolicy `json:"AutoSnapshotPolicySet,omitempty" name:"AutoSnapshotPolicySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDiskAssociatedAutoSnapshotPolicyResponse ¶
func NewDescribeDiskAssociatedAutoSnapshotPolicyResponse() (response *DescribeDiskAssociatedAutoSnapshotPolicyResponse)
func (*DescribeDiskAssociatedAutoSnapshotPolicyResponse) FromJsonString ¶
func (r *DescribeDiskAssociatedAutoSnapshotPolicyResponse) 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 (*DescribeDiskAssociatedAutoSnapshotPolicyResponse) ToJsonString ¶
func (r *DescribeDiskAssociatedAutoSnapshotPolicyResponse) ToJsonString() string
type DescribeDiskConfigQuotaRequest ¶
type DescribeDiskConfigQuotaRequest struct { *tchttp.BaseRequest // Inquiry type. Value range: INQUIRY_CBS_CONFIG: query the configuration list of cloud disks <br><li>INQUIRY_CVM_CONFIG: query the configuration list of cloud disks and instances. InquiryType *string `json:"InquiryType,omitempty" name:"InquiryType"` // Query configuration under one or more [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo). Zones []*string `json:"Zones,omitempty" name:"Zones"` // Billing mode. Value range: <br><li>POSTPAID_BY_HOUR: postpaid. DiskChargeType *string `json:"DiskChargeType,omitempty" name:"DiskChargeType"` // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD cloud disk<br><li>CLOUD_PREMIUM: Premium Cloud Storage<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD DiskTypes []*string `json:"DiskTypes,omitempty" name:"DiskTypes"` // The system disk or data disk. Value range: <br><li>SYSTEM_DISK: System disk <br><li>DATA_DISK: Data disk. DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"` // Filter by the instance model series, such as S1, I1 and M1. For more information, please see [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) InstanceFamilies []*string `json:"InstanceFamilies,omitempty" name:"InstanceFamilies"` // Instance CPU cores. CPU *uint64 `json:"CPU,omitempty" name:"CPU"` // Instance memory size. Memory *uint64 `json:"Memory,omitempty" name:"Memory"` }
func NewDescribeDiskConfigQuotaRequest ¶
func NewDescribeDiskConfigQuotaRequest() (request *DescribeDiskConfigQuotaRequest)
func (*DescribeDiskConfigQuotaRequest) FromJsonString ¶
func (r *DescribeDiskConfigQuotaRequest) 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 (*DescribeDiskConfigQuotaRequest) ToJsonString ¶
func (r *DescribeDiskConfigQuotaRequest) ToJsonString() string
type DescribeDiskConfigQuotaResponse ¶
type DescribeDiskConfigQuotaResponse struct { *tchttp.BaseResponse Response *struct { // List of cloud disk configurations. DiskConfigSet []*DiskConfig `json:"DiskConfigSet,omitempty" name:"DiskConfigSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDiskConfigQuotaResponse ¶
func NewDescribeDiskConfigQuotaResponse() (response *DescribeDiskConfigQuotaResponse)
func (*DescribeDiskConfigQuotaResponse) FromJsonString ¶
func (r *DescribeDiskConfigQuotaResponse) 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 (*DescribeDiskConfigQuotaResponse) ToJsonString ¶
func (r *DescribeDiskConfigQuotaResponse) ToJsonString() string
type DescribeDiskOperationLogsRequest ¶
type DescribeDiskOperationLogsRequest struct { *tchttp.BaseRequest // Filter conditions. The following conditions are supported: // <li>disk-id - Array of String - Required or not: Yes - Filter by cloud disk ID, with maximum of 10 cloud disk IDs able to be specified per request. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // The start time of the operation logs to be queried, for example: '2019-11-22 00:00:00" BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // The end time of the operation logs to be queried, for example: '2019-11-22 23:59:59" EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeDiskOperationLogsRequest ¶
func NewDescribeDiskOperationLogsRequest() (request *DescribeDiskOperationLogsRequest)
func (*DescribeDiskOperationLogsRequest) FromJsonString ¶
func (r *DescribeDiskOperationLogsRequest) 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 (*DescribeDiskOperationLogsRequest) ToJsonString ¶
func (r *DescribeDiskOperationLogsRequest) ToJsonString() string
type DescribeDiskOperationLogsResponse ¶
type DescribeDiskOperationLogsResponse struct { *tchttp.BaseResponse Response *struct { // List of cloud disk operation logs. DiskOperationLogSet []*DiskOperationLog `json:"DiskOperationLogSet,omitempty" name:"DiskOperationLogSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDiskOperationLogsResponse ¶
func NewDescribeDiskOperationLogsResponse() (response *DescribeDiskOperationLogsResponse)
func (*DescribeDiskOperationLogsResponse) FromJsonString ¶
func (r *DescribeDiskOperationLogsResponse) 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 (*DescribeDiskOperationLogsResponse) ToJsonString ¶
func (r *DescribeDiskOperationLogsResponse) ToJsonString() string
type DescribeDisksRequest ¶
type DescribeDisksRequest struct { *tchttp.BaseRequest // Query by one or more cloud disk IDs, such as `disk-11112222`. For the format of this parameter, please see the ids.N section of the API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). This parameter does not support specifying both `DiskIds` and `Filters`. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Filters. You cannot specify `DiskIds` and `Filters` at the same time. <br><li>disk-usage - Array of String - Optional - Filters by cloud disk type. (SYSTEM_DISK: system disk | DATA_DISK: data disk) <br><li>disk-charge-type - Array of String - Optional - Filters by cloud disk billing method. (POSTPAID_BY_HOUR: pay-as-you-go) <br><li>portable - Array of String- Optional - Filters by whether the cloud disk is elastic or not. (TRUE: elastic | FALSE: non-elastic) <br><li>project-id - Array of Integer - Optional - Filters by the ID of the project to which a cloud disk belongs. <br><li>disk-id - Array of String - Optional - Filters by cloud disk ID, such as `disk-11112222`. <br><li>disk-name - Array of String - Optional - Filters by cloud disk name. <br><li>disk-type - Array of String - Optional - Filters by cloud disk media type (CLOUD_BASIC: HDD cloud disk | CLOUD_PREMIUM: Premium Cloud Storage | CLOUD_SSD: SSD cloud disk.) <br><li>disk-state - Array of String - Optional - Filters by cloud disk state. (UNATTACHED: not mounted | ATTACHING: being mounted | ATTACHED: mounted | DETACHING: being unmounted | EXPANDING: being expanded | ROLLBACKING: being rolled back | TORECYCLE: to be repossessed.) <br><li>instance-id - Array of String - Optional - Filters by the ID of the CVM instance on which a cloud disk is mounted. You can use this parameter to query the cloud disks mounted on specific CVMs. <br><li>zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) <br><li>instance-ip-address - Array of String - Optional - Filters by the private or public IP of the CVM on which a cloud disk is mounted. <br><li>instance-name - Array of String - Optional - Filters by the name of the instance on which a cloud disk is mounted. <br><li>tag-key - Array of String - Optional - Filters by tag key. <br><li>tag-value - Array of String - Optional - Filters by tag value. <br><li>tag:tag-key - Array of String - Optional - Filters by tag key-value pair. Please replace `tag-key` with a specific tag key. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Outputs the ordering of the cloud disk list. Value range: <br><li>ASC: Ascending order <br><li>DESC: Descending order. Order *string `json:"Order,omitempty" name:"Order"` // The field by which the cloud disk list is sorted. Value range: <br><li>CREATE_TIME: sorted by the creation time of cloud disks <br><li>DEADLINE: sorted by the expiration time of cloud disks<br>By default, the cloud disk list is sorted by the creation time of cloud disks. OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // Whether the ID of the periodic snapshot policy bound to the cloud disk needs to be returned in the cloud disk details. TRUE: return; FALSE: do not return. ReturnBindAutoSnapshotPolicy *bool `json:"ReturnBindAutoSnapshotPolicy,omitempty" name:"ReturnBindAutoSnapshotPolicy"` }
func NewDescribeDisksRequest ¶
func NewDescribeDisksRequest() (request *DescribeDisksRequest)
func (*DescribeDisksRequest) FromJsonString ¶
func (r *DescribeDisksRequest) 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 (*DescribeDisksRequest) ToJsonString ¶
func (r *DescribeDisksRequest) ToJsonString() string
type DescribeDisksResponse ¶
type DescribeDisksResponse struct { *tchttp.BaseResponse Response *struct { // The quantity of cloud disks meeting the conditions. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of cloud disk details. DiskSet []*Disk `json:"DiskSet,omitempty" name:"DiskSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDisksResponse ¶
func NewDescribeDisksResponse() (response *DescribeDisksResponse)
func (*DescribeDisksResponse) FromJsonString ¶
func (r *DescribeDisksResponse) 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 (*DescribeDisksResponse) ToJsonString ¶
func (r *DescribeDisksResponse) ToJsonString() string
type DescribeInstancesDiskNumRequest ¶
type DescribeInstancesDiskNumRequest struct { *tchttp.BaseRequest // ID of the CVM instance can be queried via the API [DescribeInstances](https://intl.cloud.tencent.com/document/product/213/15728?from_cn_redirect=1). InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` }
func NewDescribeInstancesDiskNumRequest ¶
func NewDescribeInstancesDiskNumRequest() (request *DescribeInstancesDiskNumRequest)
func (*DescribeInstancesDiskNumRequest) FromJsonString ¶
func (r *DescribeInstancesDiskNumRequest) 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 (*DescribeInstancesDiskNumRequest) ToJsonString ¶
func (r *DescribeInstancesDiskNumRequest) ToJsonString() string
type DescribeInstancesDiskNumResponse ¶
type DescribeInstancesDiskNumResponse struct { *tchttp.BaseResponse Response *struct { // The quantity of mounted and mountable elastic cloud disks for each cloud virtual machine AttachDetail []*AttachDetail `json:"AttachDetail,omitempty" name:"AttachDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeInstancesDiskNumResponse ¶
func NewDescribeInstancesDiskNumResponse() (response *DescribeInstancesDiskNumResponse)
func (*DescribeInstancesDiskNumResponse) FromJsonString ¶
func (r *DescribeInstancesDiskNumResponse) 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 (*DescribeInstancesDiskNumResponse) ToJsonString ¶
func (r *DescribeInstancesDiskNumResponse) ToJsonString() string
type DescribeSnapshotOperationLogsRequest ¶
type DescribeSnapshotOperationLogsRequest struct { *tchttp.BaseRequest // Filter conditions. The following conditions are supported: // <li>snapshot-id - Array of String - Required or not: Yes - Filter by snapshot ID, with maximum of 10 snapshot IDs able to be specified per request. Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // The start time of the operation logs to be queried, for example: '2019-11-22 00:00:00" BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // The end time of the operation logs to be queried, for example: '2019-11-22 23:59:59" EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeSnapshotOperationLogsRequest ¶
func NewDescribeSnapshotOperationLogsRequest() (request *DescribeSnapshotOperationLogsRequest)
func (*DescribeSnapshotOperationLogsRequest) FromJsonString ¶
func (r *DescribeSnapshotOperationLogsRequest) 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 (*DescribeSnapshotOperationLogsRequest) ToJsonString ¶
func (r *DescribeSnapshotOperationLogsRequest) ToJsonString() string
type DescribeSnapshotOperationLogsResponse ¶
type DescribeSnapshotOperationLogsResponse struct { *tchttp.BaseResponse Response *struct { // List of snapshot operation logs. SnapshotOperationLogSet []*SnapshotOperationLog `json:"SnapshotOperationLogSet,omitempty" name:"SnapshotOperationLogSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSnapshotOperationLogsResponse ¶
func NewDescribeSnapshotOperationLogsResponse() (response *DescribeSnapshotOperationLogsResponse)
func (*DescribeSnapshotOperationLogsResponse) FromJsonString ¶
func (r *DescribeSnapshotOperationLogsResponse) 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 (*DescribeSnapshotOperationLogsResponse) ToJsonString ¶
func (r *DescribeSnapshotOperationLogsResponse) ToJsonString() string
type DescribeSnapshotSharePermissionRequest ¶
type DescribeSnapshotSharePermissionRequest struct { string `json:"SnapshotId,omitempty" name:"SnapshotId"` }SnapshotId *
func NewDescribeSnapshotSharePermissionRequest ¶
func NewDescribeSnapshotSharePermissionRequest() (request *DescribeSnapshotSharePermissionRequest)
func (*DescribeSnapshotSharePermissionRequest) FromJsonString ¶
func (r *DescribeSnapshotSharePermissionRequest) 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 (*DescribeSnapshotSharePermissionRequest) ToJsonString ¶
func (r *DescribeSnapshotSharePermissionRequest) ToJsonString() string
type DescribeSnapshotSharePermissionResponse ¶
type DescribeSnapshotSharePermissionResponse struct { // The set of snapshot sharing information SharePermissionSet []*SharePermission `json:"SharePermissionSet,omitempty" name:"SharePermissionSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSnapshotSharePermissionResponse ¶
func NewDescribeSnapshotSharePermissionResponse() (response *DescribeSnapshotSharePermissionResponse)
func (*DescribeSnapshotSharePermissionResponse) FromJsonString ¶
func (r *DescribeSnapshotSharePermissionResponse) 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 (*DescribeSnapshotSharePermissionResponse) ToJsonString ¶
func (r *DescribeSnapshotSharePermissionResponse) ToJsonString() string
type DescribeSnapshotsRequest ¶
type DescribeSnapshotsRequest struct { *tchttp.BaseRequest // List of snapshot IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` // Filters. It cannot be specified together with `SnapshotIds`.<br><li>snapshot-id - Array of String - Optional - Filters by snapshot ID, such as `snap-11112222`.<br><li>snapshot-name - Array of String - Optional - Filters by snapshot name. <br><li>snapshot-state - Array of String - Optional - Filters by snapshot state (NORMAL: normal | CREATING: creating | ROLLBACKING: rolling back). <br><li>disk-usage - Array of String - Optional - Filters by the type of the cloud disk from which a snapshot is created (SYSTEM_DISK: system disk | DATA_DISK: data disk).<br><li>project-id - Array of String - Optional - Filters by the ID of the project to which a cloud disk belongs. <br><li>disk-id - Array of String - Optional - Filters by the ID of the cloud disk from which a snapshot is created.<br><li>zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo).<br><li>encrypt - Array of String - Optional - Filters by whether a snapshot is created from an encrypted cloud disk. (TRUE: a snapshot of an encrypted cloud disk | FALSE: not a snapshot of an encrypted cloud disk.) // <li>snapshot-type- Array of String - Optional - Filters by the snapshot type specified in `snapshot-type`. // (SHARED_SNAPSHOT: a shared snapshot | PRIVATE_SNAPSHOT: a private snapshot.) Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Outputs the ordering of the cloud disk list. Value range: <br><li>ASC: Ascending order <br><li>DESC: Descending order. Order *string `json:"Order,omitempty" name:"Order"` // The field by which the snapshot list is sorted. Value range: <br><li>CREATE_TIME: sorted by the creation time of the snapshots <br>By default, the snapshot list is sorted by the creation time of snapshots. OrderField *string `json:"OrderField,omitempty" name:"OrderField"` }
func NewDescribeSnapshotsRequest ¶
func NewDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest)
func (*DescribeSnapshotsRequest) FromJsonString ¶
func (r *DescribeSnapshotsRequest) 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 (*DescribeSnapshotsRequest) ToJsonString ¶
func (r *DescribeSnapshotsRequest) ToJsonString() string
type DescribeSnapshotsResponse ¶
type DescribeSnapshotsResponse struct { *tchttp.BaseResponse Response *struct { // Number of snapshots. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of snapshot details. SnapshotSet []*Snapshot `json:"SnapshotSet,omitempty" name:"SnapshotSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeSnapshotsResponse ¶
func NewDescribeSnapshotsResponse() (response *DescribeSnapshotsResponse)
func (*DescribeSnapshotsResponse) FromJsonString ¶
func (r *DescribeSnapshotsResponse) 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 (*DescribeSnapshotsResponse) ToJsonString ¶
func (r *DescribeSnapshotsResponse) ToJsonString() string
type DetachDisksRequest ¶
type DetachDisksRequest struct { *tchttp.BaseRequest // IDs of the cloud disks to be unmounted, which can be queried via the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API. Up to 10 elastic cloud disks can be unmounted in a single request. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // Indicates the CVM from which you want to unmount the disks. This parameter is only available for shared cloud disks. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDetachDisksRequest ¶
func NewDetachDisksRequest() (request *DetachDisksRequest)
func (*DetachDisksRequest) FromJsonString ¶
func (r *DetachDisksRequest) 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 (*DetachDisksRequest) ToJsonString ¶
func (r *DetachDisksRequest) ToJsonString() string
type DetachDisksResponse ¶
type DetachDisksResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachDisksResponse ¶
func NewDetachDisksResponse() (response *DetachDisksResponse)
func (*DetachDisksResponse) FromJsonString ¶
func (r *DetachDisksResponse) 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 (*DetachDisksResponse) ToJsonString ¶
func (r *DetachDisksResponse) ToJsonString() string
type Disk ¶
type Disk struct { // Whether the cloud disk terminates along with the instance mounted to it. <br><li>true: Cloud disk will also be terminated when instance terminates, so only hourly postpaid cloud disk are supported.<br><li>false: Cloud disk does not terminate when instance terminates. // Note: This field may return null, indicating that no valid value was found. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" name:"DeleteWithInstance"` // Auto renewal flag. Supported values:<br><li>NOTIFY_AND_AUTO_RENEW: Notify expiry and renew automatically<br><li>NOTIFY_AND_MANUAL_RENEW: Notify expiry but not renew automatically<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: Neither notify expiry nor renew automatically. // Note: This field may return null, indicating that no valid value was found. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD cloud disk<br><li>CLOUD_PREMIUM: Premium Cloud Storage<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: Tremendous SSD DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // The state of the cloud disk. Value range: <br><li>UNATTACHED: Not mounted <br><li>ATTACHING: Mounting <br><li>ATTACHED: Mounted <br><li>DETACHING: Un-mounting <br><li>EXPANDING: Expanding <br><li>ROLLBACKING: Rolling back <br><li>TORECYCE: Pending recycling. <br><li>DUMPING: Copying the hard drive. DiskState *string `json:"DiskState,omitempty" name:"DiskState"` // The total number of snapshots of the cloud disk. SnapshotCount *int64 `json:"SnapshotCount,omitempty" name:"SnapshotCount"` // Cloud disk already mounted to CVM, and both CVM and cloud disk use monthly subscription.<br><li>true: CVM has auto-renewal flag set up, but cloud disk does not.<br><li>false: Cloud disk auto-renewal flag set up normally. // Note: This field may return null, indicating that no valid value was found. AutoRenewFlagError *bool `json:"AutoRenewFlagError,omitempty" name:"AutoRenewFlagError"` // Whether the cloud disk is in the status of snapshot rollback. Value range: <br><li>false: No <br><li>true: Yes Rollbacking *bool `json:"Rollbacking,omitempty" name:"Rollbacking"` // For non-shareable cloud disks, this parameter is null. For shareable cloud disks, this parameters indicates this cloud disk's Instance IDs currently mounted to the CVM. InstanceIdList []*string `json:"InstanceIdList,omitempty" name:"InstanceIdList"` // Whether the cloud disk is encrypted. Value range: <br><li>false: Not encrypted <br><li>true: Encrypted. Encrypt *bool `json:"Encrypt,omitempty" name:"Encrypt"` // Cloud disk name. DiskName *string `json:"DiskName,omitempty" name:"DiskName"` // Specifies whether to create a snapshot when the cloud disk is terminated due to overdue payment or expiration. `true`: create snapshot; `false`: do not create snapshot. BackupDisk *bool `json:"BackupDisk,omitempty" name:"BackupDisk"` // The tag bound to the cloud disk. The value Null is used when no tag is bound to the cloud disk. // Note: This field may return null, indicating that no valid value was found. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // ID of the CVM to which the cloud disk is mounted. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Cloud disk mount method. Valid values: <br><li>PF: mount as a PF (Physical Function)<br><li>VF: mount as a VF (Virtual Function) // Note: this field may return `null`, indicating that no valid value is obtained. AttachMode *string `json:"AttachMode,omitempty" name:"AttachMode"` // ID of the periodic snapshot associated to the cloud disk. This parameter is returned only if the value of parameter ReturnBindAutoSnapshotPolicy is TRUE when the API DescribeDisks is called. // Note: This field may return null, indicating that no valid value was found. AutoSnapshotPolicyIds []*string `json:"AutoSnapshotPolicyIds,omitempty" name:"AutoSnapshotPolicyIds"` // Extra performance for a cloud disk, in MB/sec. // Note: this field may return `null`, indicating that no valid values can be obtained. ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitempty" name:"ThroughputPerformance"` // Whether cloud disk is in process of type change. Value range: <br><li>false: Cloud disk not in process of type change. <br><li>true: Cloud disk type change has been launched, and migration is in process. // Note: This field may return null, indicating that no valid value was found. Migrating *bool `json:"Migrating,omitempty" name:"Migrating"` // Cloud disk ID. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // The total capacity of the snapshots of the cloud disk. Unit: MB. SnapshotSize *uint64 `json:"SnapshotSize,omitempty" name:"SnapshotSize"` // Location of the cloud disk. Placement *Placement `json:"Placement,omitempty" name:"Placement"` // Determines whether or not prepaid cloud disk supports active return. <br><li>true: Active return supported.<br><li>false: Active return not supported. // Note: This field may return null, indicating that no valid value was found. IsReturnable *bool `json:"IsReturnable,omitempty" name:"IsReturnable"` // Expiration time of the cloud disk. DeadlineTime *string `json:"DeadlineTime,omitempty" name:"DeadlineTime"` // Whether the cloud disk is mounted to the CVM. Value range: <br><li>false: Unmounted <br><li>true: Mounted. Attached *bool `json:"Attached,omitempty" name:"Attached"` // Cloud disk size (in GB). DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` // Migration progress of cloud disk type change, from 0 to 100. // Note: This field may return null, indicating that no valid value was found. MigratePercent *uint64 `json:"MigratePercent,omitempty" name:"MigratePercent"` // Cloud disk type. Value range:<br><li>SYSTEM_DISK: System disk <br><li>DATA_DISK: Data disk. DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"` // Billing method. Value range: <br><li>PREPAID: Prepaid, that is, monthly subscription<br><li>POSTPAID_BY_HOUR: Postpaid, that is, pay as you go. DiskChargeType *string `json:"DiskChargeType,omitempty" name:"DiskChargeType"` // Whether it is an elastic cloud disk. false: Non-elastic cloud disk; true: Elastic cloud disk. Portable *bool `json:"Portable,omitempty" name:"Portable"` // Whether the cloud disk has the capability to create snapshots. Value range: <br><li>false: Cannot create snapshots. true: Can create snapshots. SnapshotAbility *bool `json:"SnapshotAbility,omitempty" name:"SnapshotAbility"` // This field is only applicable when the instance is already mounted to the cloud disk, and both the instance and the cloud disk use monthly subscription. <br><li>true: Expiration time of cloud disk is earlier than that of the instance.<br><li>false:Expiration time of cloud disk is later than that of the instance. // Note: This field may return null, indicating that no valid value was found. DeadlineError *bool `json:"DeadlineError,omitempty" name:"DeadlineError"` // Rollback progress of a cloud disk snapshot. RollbackPercent *uint64 `json:"RollbackPercent,omitempty" name:"RollbackPercent"` // Number of days from current time until disk expiration (only applicable for prepaid disks). // Note: This field may return null, indicating that no valid value was found. DifferDaysOfDeadline *int64 `json:"DifferDaysOfDeadline,omitempty" name:"DifferDaysOfDeadline"` // In circumstances where the prepaid cloud disk does not support active return, this parameter indicates the reason that return is not supported. Value range: <br><li>1: The cloud disk has already been returned. <br><li>2: The cloud disk has already expired. <br><li>3: The cloud disk does not support return. <br><li> 8: The limit on the number of returns is exceeded. // Note: This field may return null, indicating that no valid value was found. ReturnFailCode *int64 `json:"ReturnFailCode,omitempty" name:"ReturnFailCode"` Shareable *bool `json:"Shareable,omitempty" name:"Shareable"` // Creation time of the cloud disk. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }
type DiskChargePrepaid ¶
type DiskChargePrepaid struct { // The purchased usage period of a cloud disk (in months). Value range: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Period *uint64 `json:"Period,omitempty" name:"Period"` // Auto Renewal flag. Value range: <br><li>NOTIFY_AND_AUTO_RENEW: Notify expiry and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: Notify expiry but do not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: Neither notify expiry nor renew automatically <br><br>Default value range: NOTIFY_AND_MANUAL_RENEW: Notify expiry but do not renew automatically. RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` // This parameter is used when you align the expiration time of the cloud disk with that of the mounted server. It is the current expiration time of the server. In this case, the Period passed represents the renewal period of the server, and the cloud disk will be automatically renewed in alignment with the expiration time of the renewed server. Example value: 2018-03-30 20:15:03. CurInstanceDeadline *string `json:"CurInstanceDeadline,omitempty" name:"CurInstanceDeadline"` }
type DiskConfig ¶
type DiskConfig struct { // Whether the configuration is available. Available *bool `json:"Available,omitempty" name:"Available"` // Type of cloud disk medium. Value range: <br><li>CLOUD_BASIC: Ordinary cloud disk <br><li>CLOUD_PREMIUM: Premium cloud storage <br><li>CLOUD_SSD: SSD cloud disk. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Cloud disk type. Value range: <br><li>SYSTEM_DISK: System disk <br><li>DATA_DISK: Data disk. DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"` // Billing method. Value range: <br><li>PREPAID: Prepaid, that is, monthly subscription<br><li>POSTPAID_BY_HOUR: Postpaid, that is, pay as you go. DiskChargeType *string `json:"DiskChargeType,omitempty" name:"DiskChargeType"` // The maximum configurable cloud disk size (in GB). MaxDiskSize *uint64 `json:"MaxDiskSize,omitempty" name:"MaxDiskSize"` // The minimum configurable cloud disk size (in GB). MinDiskSize *uint64 `json:"MinDiskSize,omitempty" name:"MinDiskSize"` // The [Availability Region](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) of the cloud drive. Zone *string `json:"Zone,omitempty" name:"Zone"` // Instance model. // Note: This field may return null, indicating that no valid value was found. DeviceClass *string `json:"DeviceClass,omitempty" name:"DeviceClass"` // Instance model series. For more information, please see [Instance Models](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1) // Note: This field may return null, indicating that no valid value was found. InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"` }
type DiskOperationLog ¶
type DiskOperationLog struct { // UIN of operator. Operator *string `json:"Operator,omitempty" name:"Operator"` // Operation type. Value range: // CBS_OPERATION_ATTACH: Mount cloud disk // CBS_OPERATION_DETACH: Unmount cloud disk // CBS_OPERATION_RENEW: Renew // CBS_OPERATION_EXPAND: Expand // CBS_OPERATION_CREATE: Create // CBS_OPERATION_ISOLATE: Isolate // CBS_OPERATION_MODIFY: Modify cloud disk attributes // ASP_OPERATION_BIND: Associate scheduled snapshot policy // ASP_OPERATION_UNBIND: Cancel associated scheduled snapshot policy Operation *string `json:"Operation,omitempty" name:"Operation"` // Cloud disk ID of operation. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Status of operation. Value range: // SUCCESS: Operation successful // FAILED: Operation failed // PROCESSING: Operation in process OperationState *string `json:"OperationState,omitempty" name:"OperationState"` // Start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
type GetSnapOverviewRequest ¶
type GetSnapOverviewRequest struct {
*tchttp.BaseRequest
}
func NewGetSnapOverviewRequest ¶
func NewGetSnapOverviewRequest() (request *GetSnapOverviewRequest)
func (*GetSnapOverviewRequest) FromJsonString ¶
func (r *GetSnapOverviewRequest) 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 (*GetSnapOverviewRequest) ToJsonString ¶
func (r *GetSnapOverviewRequest) ToJsonString() string
type GetSnapOverviewResponse ¶
type GetSnapOverviewResponse struct { *tchttp.BaseResponse Response *struct { // The total snapshot size of the user TotalSize *float64 `json:"TotalSize,omitempty" name:"TotalSize"` // The total billed snapshot size of the user RealTradeSize *float64 `json:"RealTradeSize,omitempty" name:"RealTradeSize"` // Free tier of snapshot FreeQuota *float64 `json:"FreeQuota,omitempty" name:"FreeQuota"` // Total number of snapshots TotalNums *int64 `json:"TotalNums,omitempty" name:"TotalNums"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGetSnapOverviewResponse ¶
func NewGetSnapOverviewResponse() (response *GetSnapOverviewResponse)
func (*GetSnapOverviewResponse) FromJsonString ¶
func (r *GetSnapOverviewResponse) 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 (*GetSnapOverviewResponse) ToJsonString ¶
func (r *GetSnapOverviewResponse) ToJsonString() string
type InquirePriceModifyDiskExtraPerformanceRequest ¶
type InquirePriceModifyDiskExtraPerformanceRequest struct { *tchttp.BaseRequest // Cloud disk ID, which can be queried via the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // The extra throughput to purchase, in MB/s ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitempty" name:"ThroughputPerformance"` }
func NewInquirePriceModifyDiskExtraPerformanceRequest ¶
func NewInquirePriceModifyDiskExtraPerformanceRequest() (request *InquirePriceModifyDiskExtraPerformanceRequest)
func (*InquirePriceModifyDiskExtraPerformanceRequest) FromJsonString ¶
func (r *InquirePriceModifyDiskExtraPerformanceRequest) 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 (*InquirePriceModifyDiskExtraPerformanceRequest) ToJsonString ¶
func (r *InquirePriceModifyDiskExtraPerformanceRequest) ToJsonString() string
type InquirePriceModifyDiskExtraPerformanceResponse ¶
type InquirePriceModifyDiskExtraPerformanceResponse struct { *tchttp.BaseResponse Response *struct { // Price for purchasing the extra performance DiskPrice *Price `json:"DiskPrice,omitempty" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewInquirePriceModifyDiskExtraPerformanceResponse ¶
func NewInquirePriceModifyDiskExtraPerformanceResponse() (response *InquirePriceModifyDiskExtraPerformanceResponse)
func (*InquirePriceModifyDiskExtraPerformanceResponse) FromJsonString ¶
func (r *InquirePriceModifyDiskExtraPerformanceResponse) 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 (*InquirePriceModifyDiskExtraPerformanceResponse) ToJsonString ¶
func (r *InquirePriceModifyDiskExtraPerformanceResponse) ToJsonString() string
type InquiryPriceCreateDisksRequest ¶
type InquiryPriceCreateDisksRequest struct { *tchttp.BaseRequest // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD cloud disk<br><li>CLOUD_PREMIUM: Premium Cloud Storage<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: Tremendous SSD. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Cloud disk size (in GB). For the value range of the cloud disk sizes, see cloud disk [Product Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` // Cloud disk billing method. <br><li>POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis DiskChargeType *string `json:"DiskChargeType,omitempty" name:"DiskChargeType"` // Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter. <br>This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk. DiskChargePrepaid *DiskChargePrepaid `json:"DiskChargePrepaid,omitempty" name:"DiskChargePrepaid"` // Quantity of cloud disks purchased. If left empty, default is 1. DiskCount *uint64 `json:"DiskCount,omitempty" name:"DiskCount"` // ID of project the cloud disk belongs to. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Extra performance (in MB/sec) purchased for a cloud disk.<br>This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and Tremendous SSD (CLOUD_TSSD). ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitempty" name:"ThroughputPerformance"` }
func NewInquiryPriceCreateDisksRequest ¶
func NewInquiryPriceCreateDisksRequest() (request *InquiryPriceCreateDisksRequest)
func (*InquiryPriceCreateDisksRequest) FromJsonString ¶
func (r *InquiryPriceCreateDisksRequest) 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 (*InquiryPriceCreateDisksRequest) ToJsonString ¶
func (r *InquiryPriceCreateDisksRequest) ToJsonString() string
type InquiryPriceCreateDisksResponse ¶
type InquiryPriceCreateDisksResponse struct { *tchttp.BaseResponse Response *struct { // Describes the price of purchasing new cloud disk. DiskPrice *Price `json:"DiskPrice,omitempty" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewInquiryPriceCreateDisksResponse ¶
func NewInquiryPriceCreateDisksResponse() (response *InquiryPriceCreateDisksResponse)
func (*InquiryPriceCreateDisksResponse) FromJsonString ¶
func (r *InquiryPriceCreateDisksResponse) 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 (*InquiryPriceCreateDisksResponse) ToJsonString ¶
func (r *InquiryPriceCreateDisksResponse) ToJsonString() string
type InquiryPriceResizeDiskRequest ¶
type InquiryPriceResizeDiskRequest struct { *tchttp.BaseRequest // ID of the cloud disk, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1). DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Cloud disk size after scale out (in GB). This cannot be smaller than the current size of the cloud disk. For the value range of the cloud disk sizes, see cloud disk [Product Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` // ID of project the cloud disk belongs to. If selected, it can only be used for authentication. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewInquiryPriceResizeDiskRequest ¶
func NewInquiryPriceResizeDiskRequest() (request *InquiryPriceResizeDiskRequest)
func (*InquiryPriceResizeDiskRequest) FromJsonString ¶
func (r *InquiryPriceResizeDiskRequest) 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 (*InquiryPriceResizeDiskRequest) ToJsonString ¶
func (r *InquiryPriceResizeDiskRequest) ToJsonString() string
type InquiryPriceResizeDiskResponse ¶
type InquiryPriceResizeDiskResponse struct { *tchttp.BaseResponse Response *struct { // Describes the price of expanding the cloud disk. DiskPrice *PrepayPrice `json:"DiskPrice,omitempty" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewInquiryPriceResizeDiskResponse ¶
func NewInquiryPriceResizeDiskResponse() (response *InquiryPriceResizeDiskResponse)
func (*InquiryPriceResizeDiskResponse) FromJsonString ¶
func (r *InquiryPriceResizeDiskResponse) 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 (*InquiryPriceResizeDiskResponse) ToJsonString ¶
func (r *InquiryPriceResizeDiskResponse) ToJsonString() string
type ModifyAutoSnapshotPolicyAttributeRequest ¶
type ModifyAutoSnapshotPolicyAttributeRequest struct { *tchttp.BaseRequest // Scheduled snapshot policy ID. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" name:"AutoSnapshotPolicyId"` // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitempty" name:"Policy"` // The name of the scheduled snapshot policy to be created. If it is left empty, the default is 'Not named'. The maximum length cannot exceed 60 bytes. AutoSnapshotPolicyName *string `json:"AutoSnapshotPolicyName,omitempty" name:"AutoSnapshotPolicyName"` // Whether or not the scheduled snapshot policy is activated. FALSE: Not activated. TRUE: Activated. The default value is TRUE. IsActivated *bool `json:"IsActivated,omitempty" name:"IsActivated"` // Whether the snapshot created by this scheduled snapshot policy is retained permanently. FALSE: Not retained permanently. TRUE: Retained permanently. The default value is FALSE. IsPermanent *bool `json:"IsPermanent,omitempty" name:"IsPermanent"` // The number of days for which snapshots created by this policy are retained. This parameter cannot clash with `IsPermanent`, which is, if the scheduled snapshot policy is configured to retain permanently, `RetentionDays` must be 0. RetentionDays *uint64 `json:"RetentionDays,omitempty" name:"RetentionDays"` }
func NewModifyAutoSnapshotPolicyAttributeRequest ¶
func NewModifyAutoSnapshotPolicyAttributeRequest() (request *ModifyAutoSnapshotPolicyAttributeRequest)
func (*ModifyAutoSnapshotPolicyAttributeRequest) FromJsonString ¶
func (r *ModifyAutoSnapshotPolicyAttributeRequest) 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 (*ModifyAutoSnapshotPolicyAttributeRequest) ToJsonString ¶
func (r *ModifyAutoSnapshotPolicyAttributeRequest) ToJsonString() string
type ModifyAutoSnapshotPolicyAttributeResponse ¶
type ModifyAutoSnapshotPolicyAttributeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyAutoSnapshotPolicyAttributeResponse ¶
func NewModifyAutoSnapshotPolicyAttributeResponse() (response *ModifyAutoSnapshotPolicyAttributeResponse)
func (*ModifyAutoSnapshotPolicyAttributeResponse) FromJsonString ¶
func (r *ModifyAutoSnapshotPolicyAttributeResponse) 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 (*ModifyAutoSnapshotPolicyAttributeResponse) ToJsonString ¶
func (r *ModifyAutoSnapshotPolicyAttributeResponse) ToJsonString() string
type ModifyDiskAttributesRequest ¶
type ModifyDiskAttributesRequest struct { *tchttp.BaseRequest // IDs of one or more cloud disks to be operated. If multiple cloud disk IDs are selected, it only supports modifying all cloud disks with the same attributes. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // The new project ID of the cloud disk. Only the project ID of elastic cloud disk can be modified. The available projects and their IDs can be queried via the API [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Name of new cloud disk. DiskName *string `json:"DiskName,omitempty" name:"DiskName"` // Whether it is an elastic cloud disk. FALSE: non-elastic cloud disk; TRUE: elastic cloud disk. You can only modify non-elastic cloud disks to elastic cloud disks. Portable *bool `json:"Portable,omitempty" name:"Portable"` // Whether the cloud disk is terminated with the CVM after it has been successfully mounted. `TRUE` indicates that it is terminated with the CVM. `FALSE` indicates that it is not terminated with the CVM. This is only supported for cloud disks and data disks that are pay-as-you-go. DeleteWithInstance *bool `json:"DeleteWithInstance,omitempty" name:"DeleteWithInstance"` // When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type. Value range: <br><li>CLOUD_PREMIUM: Premium cloud storage. <br><li>CLOUD_SSD: SSD cloud disk. <br>Currently, batch operations are not supported for changing type. That is, when `DiskType` is passed, only one cloud disk can be passed through `DiskIds`. <br>When the cloud disk type is changed, the changing of other attributes is not supported concurrently. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` }
func NewModifyDiskAttributesRequest ¶
func NewModifyDiskAttributesRequest() (request *ModifyDiskAttributesRequest)
func (*ModifyDiskAttributesRequest) FromJsonString ¶
func (r *ModifyDiskAttributesRequest) 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 (*ModifyDiskAttributesRequest) ToJsonString ¶
func (r *ModifyDiskAttributesRequest) ToJsonString() string
type ModifyDiskAttributesResponse ¶
type ModifyDiskAttributesResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDiskAttributesResponse ¶
func NewModifyDiskAttributesResponse() (response *ModifyDiskAttributesResponse)
func (*ModifyDiskAttributesResponse) FromJsonString ¶
func (r *ModifyDiskAttributesResponse) 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 (*ModifyDiskAttributesResponse) ToJsonString ¶
func (r *ModifyDiskAttributesResponse) ToJsonString() string
type ModifyDiskExtraPerformanceRequest ¶
type ModifyDiskExtraPerformanceRequest struct { *tchttp.BaseRequest // ID of the cloud disk to create a snapshot, which can be obtained via the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // The extra throughput to purchase, in MB/s ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitempty" name:"ThroughputPerformance"` }
func NewModifyDiskExtraPerformanceRequest ¶
func NewModifyDiskExtraPerformanceRequest() (request *ModifyDiskExtraPerformanceRequest)
func (*ModifyDiskExtraPerformanceRequest) FromJsonString ¶
func (r *ModifyDiskExtraPerformanceRequest) 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 (*ModifyDiskExtraPerformanceRequest) ToJsonString ¶
func (r *ModifyDiskExtraPerformanceRequest) ToJsonString() string
type ModifyDiskExtraPerformanceResponse ¶
type ModifyDiskExtraPerformanceResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDiskExtraPerformanceResponse ¶
func NewModifyDiskExtraPerformanceResponse() (response *ModifyDiskExtraPerformanceResponse)
func (*ModifyDiskExtraPerformanceResponse) FromJsonString ¶
func (r *ModifyDiskExtraPerformanceResponse) 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 (*ModifyDiskExtraPerformanceResponse) ToJsonString ¶
func (r *ModifyDiskExtraPerformanceResponse) ToJsonString() string
type ModifySnapshotAttributeRequest ¶
type ModifySnapshotAttributeRequest struct { *tchttp.BaseRequest // Snapshot ID, which can be queried via [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1). SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // Name of new snapshot. Maximum length is 60 bytes. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` // Snapshot retention mode. Valid values: `FALSE`: non-permanent retention; `TRUE`: permanent retention. IsPermanent *bool `json:"IsPermanent,omitempty" name:"IsPermanent"` // Expiration time of the snapshot. Setting this parameter will set the snapshot retention mode to `FALSE` (non-permanent retention) and the snapshot will be automatically deleted upon expiration. Deadline *string `json:"Deadline,omitempty" name:"Deadline"` }
func NewModifySnapshotAttributeRequest ¶
func NewModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeRequest)
func (*ModifySnapshotAttributeRequest) FromJsonString ¶
func (r *ModifySnapshotAttributeRequest) 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 (*ModifySnapshotAttributeRequest) ToJsonString ¶
func (r *ModifySnapshotAttributeRequest) ToJsonString() string
type ModifySnapshotAttributeResponse ¶
type ModifySnapshotAttributeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifySnapshotAttributeResponse ¶
func NewModifySnapshotAttributeResponse() (response *ModifySnapshotAttributeResponse)
func (*ModifySnapshotAttributeResponse) FromJsonString ¶
func (r *ModifySnapshotAttributeResponse) 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 (*ModifySnapshotAttributeResponse) ToJsonString ¶
func (r *ModifySnapshotAttributeResponse) ToJsonString() string
type ModifySnapshotsSharePermissionRequest ¶
type ModifySnapshotsSharePermissionRequest struct { string `json:"AccountIds,omitempty" name:"AccountIds"` Permission *string `json:"Permission,omitempty" name:"Permission"` SnapshotIds []*string `json:"SnapshotIds,omitempty" name:"SnapshotIds"` }AccountIds []*
func NewModifySnapshotsSharePermissionRequest ¶
func NewModifySnapshotsSharePermissionRequest() (request *ModifySnapshotsSharePermissionRequest)
func (*ModifySnapshotsSharePermissionRequest) FromJsonString ¶
func (r *ModifySnapshotsSharePermissionRequest) 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 (*ModifySnapshotsSharePermissionRequest) ToJsonString ¶
func (r *ModifySnapshotsSharePermissionRequest) ToJsonString() string
type ModifySnapshotsSharePermissionResponse ¶
type ModifySnapshotsSharePermissionResponse struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifySnapshotsSharePermissionResponse ¶
func NewModifySnapshotsSharePermissionResponse() (response *ModifySnapshotsSharePermissionResponse)
func (*ModifySnapshotsSharePermissionResponse) FromJsonString ¶
func (r *ModifySnapshotsSharePermissionResponse) 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 (*ModifySnapshotsSharePermissionResponse) ToJsonString ¶
func (r *ModifySnapshotsSharePermissionResponse) ToJsonString() string
type Placement ¶
type Placement struct { // The ID of the [Availability Zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo) to which the cloud disk belongs. This parameter can be obtained from the Zone field in the returned values of [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1). Zone *string `json:"Zone,omitempty" name:"Zone"` // Cage ID. When it is an input parameter, the specified CageID resource is operated, and it can be left blank. When it is an output parameter, it is the ID of the cage the resource belongs to, and it can be left blank. // Note: This field may return null, indicating that no valid value was found. CageId *string `json:"CageId,omitempty" name:"CageId"` // ID of the project to which the instance belongs. This parameter can be obtained from the projectId field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Dedicated cluster name. When it is an input parameter, it is ignored. When it is an output parameter, it is the name of the dedicated cluster the cloud disk belongs to, and it can be left blank. // Note: This field may return null, indicating that no valid value was found. CdcName *string `json:"CdcName,omitempty" name:"CdcName"` // ID of dedicated cluster which the instance belongs to. When it is an input parameter, the specified CdcId dedicated cluster resource is operated, and it can be left blank. When it is an output parameter, it is the ID of the dedicated cluster which the resource belongs to, and it can be left blank. // Note: This field may return null, indicating that no valid value was found. CdcId *string `json:"CdcId,omitempty" name:"CdcId"` // Dedicated cluster ID DedicatedClusterId *string `json:"DedicatedClusterId,omitempty" name:"DedicatedClusterId"` }
type Policy ¶
type Policy struct { // Specifies the days of the week, from Monday to Sunday, on which a scheduled snapshot will be triggered. Value range: [0, 6]. 0 indicates triggering on Sunday, 1-6 indicate triggering on Monday-Saturday. DayOfWeek []*uint64 `json:"DayOfWeek,omitempty" name:"DayOfWeek"` // Specifies the time that that the scheduled snapshot policy will be triggered. The unit is hour. The value range is [0-23]. 00:00-23:00 is a total of 24 time points that can be selected. 1 indicates 01:00, and so on. Hour []*uint64 `json:"Hour,omitempty" name:"Hour"` }
type PrepayPrice ¶
type PrepayPrice struct { // Original payment of a monthly-subscribed cloud disk or a snapshot, in USD. OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Discounted price of a monthly-subscribed cloud disk or a snapshot, in USD. DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` // Original payment of a monthly-subscribed cloud disk or a snapshot, in USD, with six decimal places. OriginalPriceHigh *string `json:"OriginalPriceHigh,omitempty" name:"OriginalPriceHigh"` // Discounted price of a monthly-subscribed cloud disk or a snapshot, in USD, with six decimal places. DiscountPriceHigh *string `json:"DiscountPriceHigh,omitempty" name:"DiscountPriceHigh"` // Original unit price of a pay-as-you-go cloud disk, in USD. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPrice *float64 `json:"UnitPrice,omitempty" name:"UnitPrice"` // Billing unit for pay-as-you-go cloud disks. Valid value: <br><li>HOUR: billed hourly. // Note: this field may return `null`, indicating that no valid values can be obtained. ChargeUnit *string `json:"ChargeUnit,omitempty" name:"ChargeUnit"` // Discount unit price of a pay-as-you-go cloud disk, in USD. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPriceDiscount *float64 `json:"UnitPriceDiscount,omitempty" name:"UnitPriceDiscount"` // Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPriceHigh *string `json:"UnitPriceHigh,omitempty" name:"UnitPriceHigh"` // Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPriceDiscountHigh *string `json:"UnitPriceDiscountHigh,omitempty" name:"UnitPriceDiscountHigh"` }
type Price ¶
type Price struct { // Original price of a monthly-subscribed cloud disk, in USD. // Note: this field may return `null`, indicating that no valid values can be obtained. OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` // Discounted price of a monthly-subscribed cloud disk, in USD. // Note: this field may return `null`, indicating that no valid values can be obtained. DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` // Original unit price of a pay-as-you-go cloud disk, in USD. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPrice *float64 `json:"UnitPrice,omitempty" name:"UnitPrice"` // Billing unit of a postpaid cloud disk. Value range: <br><li>HOUR: Billed by hour. // Note: This field may return null, indicating that no valid value was found. ChargeUnit *string `json:"ChargeUnit,omitempty" name:"ChargeUnit"` // Discount unit price of a pay-as-you-go cloud disk, in USD. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPriceDiscount *float64 `json:"UnitPriceDiscount,omitempty" name:"UnitPriceDiscount"` // Original payment of a monthly-subscribed cloud disk, in USD, with six decimal places. // Note: this field may return `null`, indicating that no valid values can be obtained. OriginalPriceHigh *string `json:"OriginalPriceHigh,omitempty" name:"OriginalPriceHigh"` // Discounted payment price of a monthly-subscribed cloud disk, in USD, with six decimal places. // Note: this field may return `null`, indicating that no valid values can be obtained. DiscountPriceHigh *string `json:"DiscountPriceHigh,omitempty" name:"DiscountPriceHigh"` // Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPriceHigh *string `json:"UnitPriceHigh,omitempty" name:"UnitPriceHigh"` // Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places. // Note: this field may return `null`, indicating that no valid values can be obtained. UnitPriceDiscountHigh *string `json:"UnitPriceDiscountHigh,omitempty" name:"UnitPriceDiscountHigh"` }
type ResizeDiskRequest ¶
type ResizeDiskRequest struct { *tchttp.BaseRequest // ID of the cloud disk, which can be queried via the API [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1). DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Cloud disk size after scale out (in GB). This must be larger than the current size of the cloud disk. For the value range of the cloud disk sizes, see cloud disk [Product Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` }
func NewResizeDiskRequest ¶
func NewResizeDiskRequest() (request *ResizeDiskRequest)
func (*ResizeDiskRequest) FromJsonString ¶
func (r *ResizeDiskRequest) 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 (*ResizeDiskRequest) ToJsonString ¶
func (r *ResizeDiskRequest) ToJsonString() string
type ResizeDiskResponse ¶
type ResizeDiskResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewResizeDiskResponse ¶
func NewResizeDiskResponse() (response *ResizeDiskResponse)
func (*ResizeDiskResponse) FromJsonString ¶
func (r *ResizeDiskResponse) 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 (*ResizeDiskResponse) ToJsonString ¶
func (r *ResizeDiskResponse) ToJsonString() string
type SharePermission ¶
type Snapshot ¶
type Snapshot struct { // Snapshot ID. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // Location of the snapshot. Placement *Placement `json:"Placement,omitempty" name:"Placement"` // The type of the cloud disk used to create the snapshot. Value range: <br><li>SYSTEM_DISK: System disk <br><li>DATA_DISK: Data disk. DiskUsage *string `json:"DiskUsage,omitempty" name:"DiskUsage"` // ID of the cloud disk used to create this snapshot. DiskId *string `json:"DiskId,omitempty" name:"DiskId"` // Size of the cloud disk used to create this snapshot (in GB). DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` // Snapshot status. Valid values: <br><li>NORMAL: normal <br><li>CREATING: creating<br><li>ROLLBACKING: rolling back<br><li>COPYING_FROM_REMOTE: cross-region replicating<li>CHECKING_COPIED: verifying the cross-region replicated data<br><li>TORECYCLE: to be repossessed. SnapshotState *string `json:"SnapshotState,omitempty" name:"SnapshotState"` // Snapshot name, the user-defined snapshot alias. Call [ModifySnapshotAttribute](https://intl.cloud.tencent.com/document/product/362/15650?from_cn_redirect=1) to modify this field. SnapshotName *string `json:"SnapshotName,omitempty" name:"SnapshotName"` // The progress percentage for snapshot creation. This field is always 100 after the snapshot is created successfully. Percent *uint64 `json:"Percent,omitempty" name:"Percent"` // Creation time of the snapshot. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // The expiration time of the snapshot. If the snapshot is permanently retained, this field is blank. DeadlineTime *string `json:"DeadlineTime,omitempty" name:"DeadlineTime"` // Whether the snapshot is created from an encrypted disk. Value range: <br><li>true: Yes <br><li>false: No. Encrypt *bool `json:"Encrypt,omitempty" name:"Encrypt"` // Whether it is a permanent snapshot. Value range: <br><li>true: Permanent snapshot <br><li>false: Non-permanent snapshot. IsPermanent *bool `json:"IsPermanent,omitempty" name:"IsPermanent"` // The destination region to which the snapshot is being replicated. Default value is [ ]. CopyingToRegions []*string `json:"CopyingToRegions,omitempty" name:"CopyingToRegions"` // Whether the snapshot is replicated across regions. Value range: <br><li>true: Indicates that the snapshot is replicated across regions. <br><li>false: Indicates that the snapshot belongs to the local region. CopyFromRemote *bool `json:"CopyFromRemote,omitempty" name:"CopyFromRemote"` // List of images associated with snapshot. Images []*Image `json:"Images,omitempty" name:"Images"` // Number of images associated with snapshot. ImageCount *uint64 `json:"ImageCount,omitempty" name:"ImageCount"` // Snapshot type. This value can currently be either PRIVATE_SNAPSHOT or SHARED_SNAPSHOT. SnapshotType *string `json:"SnapshotType,omitempty" name:"SnapshotType"` ShareReference *uint64 `json:"ShareReference,omitempty" name:"ShareReference"` TimeStartShare *string `json:"TimeStartShare,omitempty" name:"TimeStartShare"` }
type SnapshotOperationLog ¶
type SnapshotOperationLog struct { // UIN of operator. // Note: This field may return null, indicating that no valid value was found. Operator *string `json:"Operator,omitempty" name:"Operator"` // Operation type. Value range: // SNAP_OPERATION_DELETE: Delete snapshot // SNAP_OPERATION_ROLLBACK: Roll back snapshot // SNAP_OPERATION_MODIFY: Modify snapshot attributes // SNAP_OPERATION_CREATE: Create snapshot // SNAP_OPERATION_COPY: Cross-region replication of snapshot // ASP_OPERATION_CREATE_SNAP: Create snapshot with scheduled snapshot policy // ASP_OPERATION_DELETE_SNAP: Delete snapshot from scheduled snapshot policy Operation *string `json:"Operation,omitempty" name:"Operation"` // ID of snapshot being operated. SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"` // Status of operation. Value range: // SUCCESS: Operation successful // FAILED: Operation failed // PROCESSING: Operation in process OperationState *string `json:"OperationState,omitempty" name:"OperationState"` // Start time StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
type TerminateDisksRequest ¶
type TerminateDisksRequest struct { *tchttp.BaseRequest // List of cloud disk IDs required to be returned. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` }
func NewTerminateDisksRequest ¶
func NewTerminateDisksRequest() (request *TerminateDisksRequest)
func (*TerminateDisksRequest) FromJsonString ¶
func (r *TerminateDisksRequest) 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 (*TerminateDisksRequest) ToJsonString ¶
func (r *TerminateDisksRequest) ToJsonString() string
type TerminateDisksResponse ¶
type TerminateDisksResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewTerminateDisksResponse ¶
func NewTerminateDisksResponse() (response *TerminateDisksResponse)
func (*TerminateDisksResponse) FromJsonString ¶
func (r *TerminateDisksResponse) 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 (*TerminateDisksResponse) ToJsonString ¶
func (r *TerminateDisksResponse) ToJsonString() string
type UnbindAutoSnapshotPolicyRequest ¶
type UnbindAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // List of cloud disk IDs scheduled snapshot policy to be unbound from. DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` // ID of scheduled snapshot policy to be unbound. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitempty" name:"AutoSnapshotPolicyId"` }
func NewUnbindAutoSnapshotPolicyRequest ¶
func NewUnbindAutoSnapshotPolicyRequest() (request *UnbindAutoSnapshotPolicyRequest)
func (*UnbindAutoSnapshotPolicyRequest) FromJsonString ¶
func (r *UnbindAutoSnapshotPolicyRequest) 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 (*UnbindAutoSnapshotPolicyRequest) ToJsonString ¶
func (r *UnbindAutoSnapshotPolicyRequest) ToJsonString() string
type UnbindAutoSnapshotPolicyResponse ¶
type UnbindAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUnbindAutoSnapshotPolicyResponse ¶
func NewUnbindAutoSnapshotPolicyResponse() (response *UnbindAutoSnapshotPolicyResponse)
func (*UnbindAutoSnapshotPolicyResponse) FromJsonString ¶
func (r *UnbindAutoSnapshotPolicyResponse) 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 (*UnbindAutoSnapshotPolicyResponse) ToJsonString ¶
func (r *UnbindAutoSnapshotPolicyResponse) ToJsonString() string