Documentation ¶
Index ¶
- Constants
- type AdvancedRetentionPolicy
- type ApplyDiskBackupRequest
- type ApplyDiskBackupRequestParams
- type ApplyDiskBackupResponse
- type ApplyDiskBackupResponseParams
- type ApplySnapshotRequest
- type ApplySnapshotRequestParams
- type ApplySnapshotResponse
- type ApplySnapshotResponseParams
- type AttachDetail
- type AttachDisksRequest
- type AttachDisksRequestParams
- type AttachDisksResponse
- type AttachDisksResponseParams
- type AutoMountConfiguration
- type AutoSnapshotPolicy
- type BindAutoSnapshotPolicyRequest
- type BindAutoSnapshotPolicyRequestParams
- type BindAutoSnapshotPolicyResponse
- type BindAutoSnapshotPolicyResponseParams
- type Client
- func (c *Client) ApplyDiskBackup(request *ApplyDiskBackupRequest) (response *ApplyDiskBackupResponse, err error)
- func (c *Client) ApplyDiskBackupWithContext(ctx context.Context, request *ApplyDiskBackupRequest) (response *ApplyDiskBackupResponse, err error)
- 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) CopySnapshotCrossRegions(request *CopySnapshotCrossRegionsRequest) (response *CopySnapshotCrossRegionsResponse, err error)
- func (c *Client) CopySnapshotCrossRegionsWithContext(ctx context.Context, request *CopySnapshotCrossRegionsRequest) (response *CopySnapshotCrossRegionsResponse, 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) CreateDiskBackup(request *CreateDiskBackupRequest) (response *CreateDiskBackupResponse, err error)
- func (c *Client) CreateDiskBackupWithContext(ctx context.Context, request *CreateDiskBackupRequest) (response *CreateDiskBackupResponse, 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) DeleteDiskBackups(request *DeleteDiskBackupsRequest) (response *DeleteDiskBackupsResponse, err error)
- func (c *Client) DeleteDiskBackupsWithContext(ctx context.Context, request *DeleteDiskBackupsRequest) (response *DeleteDiskBackupsResponse, 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) DescribeDiskBackups(request *DescribeDiskBackupsRequest) (response *DescribeDiskBackupsResponse, err error)
- func (c *Client) DescribeDiskBackupsWithContext(ctx context.Context, request *DescribeDiskBackupsRequest) (response *DescribeDiskBackupsResponse, 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) InitializeDisks(request *InitializeDisksRequest) (response *InitializeDisksResponse, err error)
- func (c *Client) InitializeDisksWithContext(ctx context.Context, request *InitializeDisksRequest) (response *InitializeDisksResponse, err error)
- func (c *Client) InquirePriceModifyDiskBackupQuota(request *InquirePriceModifyDiskBackupQuotaRequest) (response *InquirePriceModifyDiskBackupQuotaResponse, err error)
- func (c *Client) InquirePriceModifyDiskBackupQuotaWithContext(ctx context.Context, request *InquirePriceModifyDiskBackupQuotaRequest) (response *InquirePriceModifyDiskBackupQuotaResponse, 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) ModifyDiskBackupQuota(request *ModifyDiskBackupQuotaRequest) (response *ModifyDiskBackupQuotaResponse, err error)
- func (c *Client) ModifyDiskBackupQuotaWithContext(ctx context.Context, request *ModifyDiskBackupQuotaRequest) (response *ModifyDiskBackupQuotaResponse, 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 CopySnapshotCrossRegionsRequest
- type CopySnapshotCrossRegionsRequestParams
- type CopySnapshotCrossRegionsResponse
- type CopySnapshotCrossRegionsResponseParams
- type CreateAutoSnapshotPolicyRequest
- type CreateAutoSnapshotPolicyRequestParams
- type CreateAutoSnapshotPolicyResponse
- type CreateAutoSnapshotPolicyResponseParams
- type CreateDiskBackupRequest
- type CreateDiskBackupRequestParams
- type CreateDiskBackupResponse
- type CreateDiskBackupResponseParams
- type CreateDisksRequest
- type CreateDisksRequestParams
- type CreateDisksResponse
- type CreateDisksResponseParams
- type CreateSnapshotRequest
- type CreateSnapshotRequestParams
- type CreateSnapshotResponse
- type CreateSnapshotResponseParams
- type DeleteAutoSnapshotPoliciesRequest
- type DeleteAutoSnapshotPoliciesRequestParams
- type DeleteAutoSnapshotPoliciesResponse
- type DeleteAutoSnapshotPoliciesResponseParams
- type DeleteDiskBackupsRequest
- type DeleteDiskBackupsRequestParams
- type DeleteDiskBackupsResponse
- type DeleteDiskBackupsResponseParams
- type DeleteSnapshotsRequest
- type DeleteSnapshotsRequestParams
- type DeleteSnapshotsResponse
- type DeleteSnapshotsResponseParams
- type DescribeAutoSnapshotPoliciesRequest
- type DescribeAutoSnapshotPoliciesRequestParams
- type DescribeAutoSnapshotPoliciesResponse
- type DescribeAutoSnapshotPoliciesResponseParams
- type DescribeDiskAssociatedAutoSnapshotPolicyRequest
- type DescribeDiskAssociatedAutoSnapshotPolicyRequestParams
- type DescribeDiskAssociatedAutoSnapshotPolicyResponse
- type DescribeDiskAssociatedAutoSnapshotPolicyResponseParams
- type DescribeDiskBackupsRequest
- type DescribeDiskBackupsRequestParams
- type DescribeDiskBackupsResponse
- type DescribeDiskBackupsResponseParams
- type DescribeDiskConfigQuotaRequest
- type DescribeDiskConfigQuotaRequestParams
- type DescribeDiskConfigQuotaResponse
- type DescribeDiskConfigQuotaResponseParams
- type DescribeDiskOperationLogsRequest
- type DescribeDiskOperationLogsRequestParams
- type DescribeDiskOperationLogsResponse
- type DescribeDiskOperationLogsResponseParams
- type DescribeDisksRequest
- type DescribeDisksRequestParams
- type DescribeDisksResponse
- type DescribeDisksResponseParams
- type DescribeInstancesDiskNumRequest
- type DescribeInstancesDiskNumRequestParams
- type DescribeInstancesDiskNumResponse
- type DescribeInstancesDiskNumResponseParams
- type DescribeSnapshotOperationLogsRequest
- type DescribeSnapshotOperationLogsRequestParams
- type DescribeSnapshotOperationLogsResponse
- type DescribeSnapshotOperationLogsResponseParams
- type DescribeSnapshotSharePermissionRequest
- type DescribeSnapshotSharePermissionRequestParams
- type DescribeSnapshotSharePermissionResponse
- type DescribeSnapshotSharePermissionResponseParams
- type DescribeSnapshotsRequest
- type DescribeSnapshotsRequestParams
- type DescribeSnapshotsResponse
- type DescribeSnapshotsResponseParams
- type DetachDisksRequest
- type DetachDisksRequestParams
- type DetachDisksResponse
- type DetachDisksResponseParams
- type DetailPrice
- type Disk
- type DiskBackup
- type DiskChargePrepaid
- type DiskConfig
- type DiskOperationLog
- type Filter
- type GetSnapOverviewRequest
- type GetSnapOverviewRequestParams
- type GetSnapOverviewResponse
- type GetSnapOverviewResponseParams
- type Image
- type InitializeDisksRequest
- type InitializeDisksRequestParams
- type InitializeDisksResponse
- type InitializeDisksResponseParams
- type InquirePriceModifyDiskBackupQuotaRequest
- type InquirePriceModifyDiskBackupQuotaRequestParams
- type InquirePriceModifyDiskBackupQuotaResponse
- type InquirePriceModifyDiskBackupQuotaResponseParams
- type InquirePriceModifyDiskExtraPerformanceRequest
- type InquirePriceModifyDiskExtraPerformanceRequestParams
- type InquirePriceModifyDiskExtraPerformanceResponse
- type InquirePriceModifyDiskExtraPerformanceResponseParams
- type InquiryPriceCreateDisksRequest
- type InquiryPriceCreateDisksRequestParams
- type InquiryPriceCreateDisksResponse
- type InquiryPriceCreateDisksResponseParams
- type InquiryPriceResizeDiskRequest
- type InquiryPriceResizeDiskRequestParams
- type InquiryPriceResizeDiskResponse
- type InquiryPriceResizeDiskResponseParams
- type ModifyAutoSnapshotPolicyAttributeRequest
- type ModifyAutoSnapshotPolicyAttributeRequestParams
- type ModifyAutoSnapshotPolicyAttributeResponse
- type ModifyAutoSnapshotPolicyAttributeResponseParams
- type ModifyDiskAttributesRequest
- type ModifyDiskAttributesRequestParams
- type ModifyDiskAttributesResponse
- type ModifyDiskAttributesResponseParams
- type ModifyDiskBackupQuotaRequest
- type ModifyDiskBackupQuotaRequestParams
- type ModifyDiskBackupQuotaResponse
- type ModifyDiskBackupQuotaResponseParams
- type ModifyDiskExtraPerformanceRequest
- type ModifyDiskExtraPerformanceRequestParams
- type ModifyDiskExtraPerformanceResponse
- type ModifyDiskExtraPerformanceResponseParams
- type ModifySnapshotAttributeRequest
- type ModifySnapshotAttributeRequestParams
- type ModifySnapshotAttributeResponse
- type ModifySnapshotAttributeResponseParams
- type ModifySnapshotsSharePermissionRequest
- type ModifySnapshotsSharePermissionRequestParams
- type ModifySnapshotsSharePermissionResponse
- type ModifySnapshotsSharePermissionResponseParams
- type Placement
- type Policy
- type PrepayPrice
- type Price
- type ResizeDiskRequest
- type ResizeDiskRequestParams
- type ResizeDiskResponse
- type ResizeDiskResponseParams
- type SharePermission
- type Snapshot
- type SnapshotCopyResult
- type SnapshotOperationLog
- type Tag
- type TerminateDisksRequest
- type TerminateDisksRequestParams
- type TerminateDisksResponse
- type TerminateDisksResponseParams
- type UnbindAutoSnapshotPolicyRequest
- type UnbindAutoSnapshotPolicyRequestParams
- type UnbindAutoSnapshotPolicyResponse
- type UnbindAutoSnapshotPolicyResponseParams
Constants ¶
const ( // Error with CAM signature/authentication. AUTHFAILURE = "AuthFailure" // Number of returned cloud disks has reached the limit and no more cloud disks can be returned. INSUFFICIENTREFUNDQUOTA = "InsufficientRefundQuota" // Insufficient snapshot quota. INSUFFICIENTSNAPSHOTQUOTA = "InsufficientSnapshotQuota" // Internal error. INTERNALERROR = "InternalError" // 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" // 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" // The cloud disk does not support snapshot. INVALIDDISK_NOTSUPPORTSNAPSHOT = "InvalidDisk.NotSupportSnapshot" // Indicates that the operation is not supported for the cloud disk. INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" // 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" // The number of scheduled snapshot policies has reached the upper limit. LIMITEXCEEDED_AUTOSNAPSHOTPOLICYOUTOFQUOTA = "LimitExceeded.AutoSnapshotPolicyOutOfQuota" // 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" // The resource is in use. RESOURCEINUSE = "ResourceInUse" // The specified snapshot is being replicated to the destination region. RESOURCEINUSE_COPYSNAPSHOTCONFLICT = "ResourceInUse.CopySnapshotConflict" // 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" // The number of returned cloud disks has reached the limit and no more cloud disks can be returned. RESOURCEINSUFFICIENT_OVERREFUNDQUOTA = "ResourceInsufficient.OverRefundQuota" // The resource does not exist. RESOURCENOTFOUND = "ResourceNotFound" // The resource is not found. RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" // The resource is unavailable. RESOURCEUNAVAILABLE = "ResourceUnavailable" // The cloud disk has been mounted to another CVM. RESOURCEUNAVAILABLE_ATTACHED = "ResourceUnavailable.Attached" // The snapshot chain of the cloud disk is too long, so snapshot creation is refused. RESOURCEUNAVAILABLE_DISKSNAPSHOTCHAINTOOLARGE = "ResourceUnavailable.DiskSnapshotChainTooLarge" // The cloud disk has expired. RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" // The non-elastic cloud disk does not support this operation. RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" // Cloud disks cannot be returned. RESOURCEUNAVAILABLE_NOTSUPPORTREFUND = "ResourceUnavailable.NotSupportRefund" // 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 are being created in the 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" // The operation is unauthorized. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // Multi-factor authentication (MFA) has expired. Please try again. UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired" // Payment failed as the account has not completed identity verification. UNAUTHORIZEDOPERATION_NOTCERTIFICATION = "UnauthorizedOperation.NotCertification" // No payment permission. UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight" // The authorization role does not exist. UNAUTHORIZEDOPERATION_ROLENOTEXISTS = "UnauthorizedOperation.RoleNotExists" // Unsupported operation UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_DETACHPOD = "UnsupportedOperation.DetachPod" // The 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 snapshot does not support cross-region replication. UNSUPPORTEDOPERATION_SNAPSHOTNOTSUPPORTCOPY = "UnsupportedOperation.SnapshotNotSupportCopy" // The resource does not support this operation in this status. UNSUPPORTEDOPERATION_STATEERROR = "UnsupportedOperation.StateError" )
const APIVersion = "2017-03-12"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedRetentionPolicy ¶
type AdvancedRetentionPolicy struct { // Retains one latest snapshot each day within `Days` days. Value range: [0, 100]. // Note: This field may return null, indicating that no valid values can be obtained. Days *uint64 `json:"Days,omitnil" name:"Days"` // Retains one latest snapshot each week within `Weeks` weeks. Value range: [0, 100]. // Note: This field may return null, indicating that no valid values can be obtained. Weeks *uint64 `json:"Weeks,omitnil" name:"Weeks"` // Retains one latest snapshot each month within `Months` months. Value range: [0, 100]. // Note: This field may return null, indicating that no valid values can be obtained. Months *uint64 `json:"Months,omitnil" name:"Months"` // Retains one latest snapshot each year within `Years` years. Value range: [0, 100]. // Note: This field may return null, indicating that no valid values can be obtained. Years *uint64 `json:"Years,omitnil" name:"Years"` }
type ApplyDiskBackupRequest ¶
type ApplyDiskBackupRequest struct { *tchttp.BaseRequest // ID of the cloud disk backup point, which can be queried through the `DescribeDiskBackups` API. DiskBackupId *string `json:"DiskBackupId,omitnil" name:"DiskBackupId"` // ID of the original cloud disk of the backup point, which can be queried through the `DescribeDisks` API. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` }
func NewApplyDiskBackupRequest ¶
func NewApplyDiskBackupRequest() (request *ApplyDiskBackupRequest)
func (*ApplyDiskBackupRequest) FromJsonString ¶
func (r *ApplyDiskBackupRequest) 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 (*ApplyDiskBackupRequest) ToJsonString ¶
func (r *ApplyDiskBackupRequest) ToJsonString() string
type ApplyDiskBackupRequestParams ¶
type ApplyDiskBackupRequestParams struct { // ID of the cloud disk backup point, which can be queried through the `DescribeDiskBackups` API. DiskBackupId *string `json:"DiskBackupId,omitnil" name:"DiskBackupId"` // ID of the original cloud disk of the backup point, which can be queried through the `DescribeDisks` API. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` }
Predefined struct for user
type ApplyDiskBackupResponse ¶
type ApplyDiskBackupResponse struct { *tchttp.BaseResponse Response *ApplyDiskBackupResponseParams `json:"Response"` }
func NewApplyDiskBackupResponse ¶
func NewApplyDiskBackupResponse() (response *ApplyDiskBackupResponse)
func (*ApplyDiskBackupResponse) FromJsonString ¶
func (r *ApplyDiskBackupResponse) 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 (*ApplyDiskBackupResponse) ToJsonString ¶
func (r *ApplyDiskBackupResponse) ToJsonString() string
type ApplyDiskBackupResponseParams ¶
type ApplyDiskBackupResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" 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,omitnil" name:"DiskId"` // Specifies whether to shut down a CVM automatically before a rollback AutoStopInstance *bool `json:"AutoStopInstance,omitnil" name:"AutoStopInstance"` // Specifies whether to start up a CVM automatically after a rollback AutoStartInstance *bool `json:"AutoStartInstance,omitnil" 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 ApplySnapshotRequestParams ¶
type ApplySnapshotRequestParams struct { // 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,omitnil" 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,omitnil" name:"DiskId"` // Specifies whether to shut down a CVM automatically before a rollback AutoStopInstance *bool `json:"AutoStopInstance,omitnil" name:"AutoStopInstance"` // Specifies whether to start up a CVM automatically after a rollback AutoStartInstance *bool `json:"AutoStartInstance,omitnil" name:"AutoStartInstance"` }
Predefined struct for user
type ApplySnapshotResponse ¶
type ApplySnapshotResponse struct { *tchttp.BaseResponse Response *ApplySnapshotResponseParams `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 ApplySnapshotResponseParams ¶
type ApplySnapshotResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AttachDetail ¶
type AttachDetail struct { // Instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The number of instances mounted to data disk. AttachedDiskCount *uint64 `json:"AttachedDiskCount,omitnil" name:"AttachedDiskCount"` // The maximum number of instances that can be mounted to data disk. MaxAttachCount *uint64 `json:"MaxAttachCount,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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 AttachDisksRequestParams ¶
type AttachDisksRequestParams struct { // 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"AttachMode"` }
Predefined struct for user
type AttachDisksResponse ¶
type AttachDisksResponse struct { *tchttp.BaseResponse Response *AttachDisksResponseParams `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 AttachDisksResponseParams ¶
type AttachDisksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AutoMountConfiguration ¶
type AutoMountConfiguration struct { // ID of the instance to which the cloud disk is attached. InstanceId []*string `json:"InstanceId,omitnil" name:"InstanceId"` // Mount point in the instance. MountPoint []*string `json:"MountPoint,omitnil" name:"MountPoint"` // File system type. Valid values: `ext4`, `xfs`. FileSystemType *string `json:"FileSystemType,omitnil" name:"FileSystemType"` }
type AutoSnapshotPolicy ¶
type AutoSnapshotPolicy struct { // The list of cloud disk IDs that the current scheduled snapshot policy is bound to. DiskIdSet []*string `json:"DiskIdSet,omitnil" name:"DiskIdSet"` // Whether scheduled snapshot policy is activated. IsActivated *bool `json:"IsActivated,omitnil" name:"IsActivated"` // Scheduled snapshot policy state. Value range:<br><li>NORMAL: Normal<br><li>ISOLATED: Isolated. AutoSnapshotPolicyState *string `json:"AutoSnapshotPolicyState,omitnil" name:"AutoSnapshotPolicyState"` // Whether it is to replicate a snapshot across accounts. `1`: yes, `0`: no. // Note: This field may return null, indicating that no valid values can be obtained. IsCopyToRemote *uint64 `json:"IsCopyToRemote,omitnil" name:"IsCopyToRemote"` // Whether the snapshot created by this scheduled snapshot policy is retained permanently. IsPermanent *bool `json:"IsPermanent,omitnil" name:"IsPermanent"` // The time the scheduled snapshot will be triggered again. NextTriggerTime *string `json:"NextTriggerTime,omitnil" name:"NextTriggerTime"` // Scheduled snapshot policy name. AutoSnapshotPolicyName *string `json:"AutoSnapshotPolicyName,omitnil" name:"AutoSnapshotPolicyName"` // Scheduled snapshot policy ID. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" name:"AutoSnapshotPolicyId"` // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitnil" name:"Policy"` // The time the scheduled snapshot policy was created. CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Number of days the snapshot created by this scheduled snapshot policy is retained. RetentionDays *uint64 `json:"RetentionDays,omitnil" name:"RetentionDays"` // ID of the replication target account // Note: This field may return null, indicating that no valid values can be obtained. CopyToAccountUin *string `json:"CopyToAccountUin,omitnil" name:"CopyToAccountUin"` // List of IDs of the instances associated with the scheduled snapshot policy. // Note: This field may return null, indicating that no valid values can be obtained. InstanceIdSet []*string `json:"InstanceIdSet,omitnil" name:"InstanceIdSet"` // The number of months for which the snapshots created by this scheduled snapshot policy can be retained. // Note: This field may return null, indicating that no valid values can be obtained. RetentionMonths *uint64 `json:"RetentionMonths,omitnil" name:"RetentionMonths"` // The maximum number of snapshots created by this scheduled snapshot policy that can be retained. // Note: This field may return null, indicating that no valid values can be obtained. RetentionAmount *uint64 `json:"RetentionAmount,omitnil" name:"RetentionAmount"` // Retention policy for scheduled snapshots. // Note: This field may return null, indicating that no valid values can be obtained. AdvancedRetentionPolicy *AdvancedRetentionPolicy `json:"AdvancedRetentionPolicy,omitnil" name:"AdvancedRetentionPolicy"` // Source account ID of the copied snapshot policy // Note: This field may return null, indicating that no valid values can be obtained. CopyFromAccountUin *string `json:"CopyFromAccountUin,omitnil" name:"CopyFromAccountUin"` // Tag. // Note: This field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` }
type BindAutoSnapshotPolicyRequest ¶
type BindAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // ID of scheduled snapshot policy to be bound. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" name:"AutoSnapshotPolicyId"` // List of cloud disk IDs to be bound. Maximum of 80 cloud disks can be bound per request. DiskIds []*string `json:"DiskIds,omitnil" 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 BindAutoSnapshotPolicyRequestParams ¶
type BindAutoSnapshotPolicyRequestParams struct { // ID of scheduled snapshot policy to be bound. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" name:"AutoSnapshotPolicyId"` // List of cloud disk IDs to be bound. Maximum of 80 cloud disks can be bound per request. DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` }
Predefined struct for user
type BindAutoSnapshotPolicyResponse ¶
type BindAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *BindAutoSnapshotPolicyResponseParams `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 BindAutoSnapshotPolicyResponseParams ¶
type BindAutoSnapshotPolicyResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) ApplyDiskBackup ¶
func (c *Client) ApplyDiskBackup(request *ApplyDiskBackupRequest) (response *ApplyDiskBackupResponse, err error)
ApplyDiskBackup This API is used to roll back a backup point to the original cloud disk.
* Only rollback to the original cloud disk is supported. For a data disk backup point, if you want to copy the backup point data to another cloud disk, use the `CreateSnapshot` API to convert the backup point into a snapshot, use the `CreateDisks` API to create an elastic cloud disk, and then copy the snapshot data to it.
* Only backup points in `NORMAL` status can be rolled back. To query the status of a backup point, call the `DescribeDiskBackups` API and see the `BackupState` field in the response.
* For an elastic cloud disk, it must be in unattached status. To query the status of the cloud disk, call the `DescribeDisks` API and see the `Attached` field in the response. For a non-elastic cloud disk purchased together with an instance, the instance must be in shutdown status, which can be queried through the `DescribeInstancesStatus` API.
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
func (*Client) ApplyDiskBackupWithContext ¶
func (c *Client) ApplyDiskBackupWithContext(ctx context.Context, request *ApplyDiskBackupRequest) (response *ApplyDiskBackupResponse, err error)
ApplyDiskBackup This API is used to roll back a backup point to the original cloud disk.
* Only rollback to the original cloud disk is supported. For a data disk backup point, if you want to copy the backup point data to another cloud disk, use the `CreateSnapshot` API to convert the backup point into a snapshot, use the `CreateDisks` API to create an elastic cloud disk, and then copy the snapshot data to it.
* Only backup points in `NORMAL` status can be rolled back. To query the status of a backup point, call the `DescribeDiskBackups` API and see the `BackupState` field in the response.
* For an elastic cloud disk, it must be in unattached status. To query the status of the cloud disk, call the `DescribeDisks` API and see the `Attached` field in the response. For a non-elastic cloud disk purchased together with an instance, the instance must be in shutdown status, which can be queried through the `DescribeInstancesStatus` API.
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
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" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
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" UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
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_COMPONENTERROR = "InternalError.ComponentError" 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" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_ATTACHED = "ResourceUnavailable.Attached" RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError" RESOURCEUNAVAILABLE_ZONENOTMATCH = "ResourceUnavailable.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_COMPONENTERROR = "InternalError.ComponentError" 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" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_ATTACHED = "ResourceUnavailable.Attached" RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError" RESOURCEUNAVAILABLE_ZONENOTMATCH = "ResourceUnavailable.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) CopySnapshotCrossRegions ¶
func (c *Client) CopySnapshotCrossRegions(request *CopySnapshotCrossRegionsRequest) (response *CopySnapshotCrossRegionsResponse, err error)
CopySnapshotCrossRegions This API is used to replicate a snapshot to another region.
* This is an async API. A new snapshot ID is issued when the cross-region replication task is generated. It does not mean that the snapshot has been replicated successfully. You can all the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API in the destination region to check for this snapshot. If the snapshot status is `NORMAL`, the snapshot is replicated successfully.
* The snapshot cross-region replication service will be commercialized in the Q3 of 2022. We will notify users about the commercialization in advance. Please check your messages in the Message Center.
error code that may be returned:
INSUFFICIENTSNAPSHOTQUOTA = "InsufficientSnapshotQuota" INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_COPYSNAPSHOTCONFLICT = "ResourceInUse.CopySnapshotConflict" UNSUPPORTEDOPERATION_SNAPSHOTNOTSUPPORTCOPY = "UnsupportedOperation.SnapshotNotSupportCopy"
func (*Client) CopySnapshotCrossRegionsWithContext ¶
func (c *Client) CopySnapshotCrossRegionsWithContext(ctx context.Context, request *CopySnapshotCrossRegionsRequest) (response *CopySnapshotCrossRegionsResponse, err error)
CopySnapshotCrossRegions This API is used to replicate a snapshot to another region.
* This is an async API. A new snapshot ID is issued when the cross-region replication task is generated. It does not mean that the snapshot has been replicated successfully. You can all the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API in the destination region to check for this snapshot. If the snapshot status is `NORMAL`, the snapshot is replicated successfully.
* The snapshot cross-region replication service will be commercialized in the Q3 of 2022. We will notify users about the commercialization in advance. Please check your messages in the Message Center.
error code that may be returned:
INSUFFICIENTSNAPSHOTQUOTA = "InsufficientSnapshotQuota" INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE_COPYSNAPSHOTCONFLICT = "ResourceInUse.CopySnapshotConflict" UNSUPPORTEDOPERATION_SNAPSHOTNOTSUPPORTCOPY = "UnsupportedOperation.SnapshotNotSupportCopy"
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:
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_AUTOSNAPSHOTPOLICYOUTOFQUOTA = "LimitExceeded.AutoSnapshotPolicyOutOfQuota" 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:
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" LIMITEXCEEDED_AUTOSNAPSHOTPOLICYOUTOFQUOTA = "LimitExceeded.AutoSnapshotPolicyOutOfQuota" MISSINGPARAMETER = "MissingParameter"
func (*Client) CreateDiskBackup ¶
func (c *Client) CreateDiskBackup(request *CreateDiskBackupRequest) (response *CreateDiskBackupResponse, err error)
CreateDiskBackup This API is used to create a backup point for a cloud disk.
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating"
func (*Client) CreateDiskBackupWithContext ¶
func (c *Client) CreateDiskBackupWithContext(ctx context.Context, request *CreateDiskBackupRequest) (response *CreateDiskBackupResponse, err error)
CreateDiskBackup This API is used to create a backup point for a cloud disk.
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter" RESOURCEINUSE = "ResourceInUse" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating"
func (*Client) CreateDisks ¶
func (c *Client) CreateDisks(request *CreateDisksRequest) (response *CreateDisksResponse, err error)
CreateDisks This API is used to create 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 async. 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 status is `UNATTACHED` or `ATTACHED`, 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" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT = "ResourceInsufficient" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOTCERTIFICATION = "UnauthorizedOperation.NotCertification" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight" UNAUTHORIZEDOPERATION_ROLENOTEXISTS = "UnauthorizedOperation.RoleNotExists"
func (*Client) CreateDisksWithContext ¶
func (c *Client) CreateDisksWithContext(ctx context.Context, request *CreateDisksRequest) (response *CreateDisksResponse, err error)
CreateDisks This API is used to create 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 async. 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 status is `UNATTACHED` or `ATTACHED`, 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" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT = "ResourceInsufficient" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_NOTCERTIFICATION = "UnauthorizedOperation.NotCertification" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight" UNAUTHORIZEDOPERATION_ROLENOTEXISTS = "UnauthorizedOperation.RoleNotExists"
func (*Client) CreateSnapshot ¶
func (c *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error)
CreateSnapshot This API is used to create a snapshot for the specified cloud disk.
* You can only create snapshots for cloud disks with the snapshot capability. To check whether a cloud disk is snapshot-enabled, call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API and see the `SnapshotAbility` field in the response.
* For the maximum number of snapshots that can be created, see [Use Limits](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1).
* Currently, you can convert backup points into general snapshots. After the conversion, snapshot usage fees may be charged, backup points will not be retained, and the occupied backup point quota will be released.
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" INVALIDPARAMETER_PROJECTIDNOTEXIST = "InvalidParameter.ProjectIdNotExist" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_DISKSNAPSHOTCHAINTOOLARGE = "ResourceUnavailable.DiskSnapshotChainTooLarge" 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 is used to create a snapshot for the specified cloud disk.
* You can only create snapshots for cloud disks with the snapshot capability. To check whether a cloud disk is snapshot-enabled, call the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API and see the `SnapshotAbility` field in the response.
* For the maximum number of snapshots that can be created, see [Use Limits](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1).
* Currently, you can convert backup points into general snapshots. After the conversion, snapshot usage fees may be charged, backup points will not be retained, and the occupied backup point quota will be released.
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" INVALIDPARAMETER_PROJECTIDNOTEXIST = "InvalidParameter.ProjectIdNotExist" LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking" RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_DISKSNAPSHOTCHAINTOOLARGE = "ResourceUnavailable.DiskSnapshotChainTooLarge" 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:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" 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:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter"
func (*Client) DeleteDiskBackups ¶
func (c *Client) DeleteDiskBackups(request *DeleteDiskBackupsRequest) (response *DeleteDiskBackupsResponse, err error)
DeleteDiskBackups This API is used to delete the backup points of the specified cloud disk in batches.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
func (*Client) DeleteDiskBackupsWithContext ¶
func (c *Client) DeleteDiskBackupsWithContext(ctx context.Context, request *DeleteDiskBackupsRequest) (response *DeleteDiskBackupsResponse, err error)
DeleteDiskBackups This API is used to delete the backup points of the specified cloud disk in batches.
error code that may be returned:
INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
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 = "UnsupportedOperation" 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 = "UnsupportedOperation" UNSUPPORTEDOPERATION_SNAPHASSHARED = "UnsupportedOperation.SnapHasShared" UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = "UnsupportedOperation.SnapshotHasBindedImage"
func (*Client) DescribeAutoSnapshotPolicies ¶
func (c *Client) DescribeAutoSnapshotPolicies(request *DescribeAutoSnapshotPoliciesRequest) (response *DescribeAutoSnapshotPoliciesResponse, err error)
DescribeAutoSnapshotPolicies This API is used to query scheduled snapshot policies.
* You can filter scheduled snapshot policies by ID, name, state, etc. The relationship between different filters is logical `AND`. For details on filters, see `Filter`.
* If no parameter is specified, a certain number of scheduled snapshot policies under the current account will be returned. The number is specified by `Limit` and is 20 by default.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAutoSnapshotPoliciesWithContext ¶
func (c *Client) DescribeAutoSnapshotPoliciesWithContext(ctx context.Context, request *DescribeAutoSnapshotPoliciesRequest) (response *DescribeAutoSnapshotPoliciesResponse, err error)
DescribeAutoSnapshotPolicies This API is used to query scheduled snapshot policies.
* You can filter scheduled snapshot policies by ID, name, state, etc. The relationship between different filters is logical `AND`. For details on filters, see `Filter`.
* If no parameter is specified, a certain number of scheduled snapshot policies under the current account will be returned. The number is specified by `Limit` and is 20 by default.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDiskBackups ¶
func (c *Client) DescribeDiskBackups(request *DescribeDiskBackupsRequest) (response *DescribeDiskBackupsResponse, err error)
DescribeDiskBackups This API is used to query the details of backup points.
You can filter results by backup point ID. You can also look for certain backup points by specifying the ID or type of the cloud disk for which the backup points are created. The relationship between different filters is logical `AND`. For more information on filters, see `Filter`.
If the parameter is empty, a certain number (as specified by `Limit` and 20 by default) of backup points will be returned.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeDiskBackupsWithContext ¶
func (c *Client) DescribeDiskBackupsWithContext(ctx context.Context, request *DescribeDiskBackupsRequest) (response *DescribeDiskBackupsResponse, err error)
DescribeDiskBackups This API is used to query the details of backup points.
You can filter results by backup point ID. You can also look for certain backup points by specifying the ID or type of the cloud disk for which the backup points are created. The relationship between different filters is logical `AND`. For more information on filters, see `Filter`.
If the parameter is empty, a certain number (as specified by `Limit` and 20 by default) of backup points will be returned.
error code that may be returned:
INVALIDFILTER = "InvalidFilter" INVALIDPARAMETER = "InvalidParameter"
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDiskOperationLogs ¶
func (c *Client) DescribeDiskOperationLogs(request *DescribeDiskOperationLogsRequest) (response *DescribeDiskOperationLogsResponse, err error)
DescribeDiskOperationLogs 接口已废弃,切换至云审计接口。见https://tapd.woa.com/pro/prong/stories/view/1010114221880719007
This API has been disused. Use the CloudAudit API instead, For more information, visit https://tapd.woa.com/pro/prong/stories/view/1010114221880719007.
This API is used to query the operation logs of a cloud disk. It will be disused soon. Use [LookUpEvents](https://intl.cloud.tencent.com/document/product/629/12359?from_cn_redirect=1) instead.
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 接口已废弃,切换至云审计接口。见https://tapd.woa.com/pro/prong/stories/view/1010114221880719007
This API has been disused. Use the CloudAudit API instead, For more information, visit https://tapd.woa.com/pro/prong/stories/view/1010114221880719007.
This API is used to query the operation logs of a cloud disk. It will be disused soon. Use [LookUpEvents](https://intl.cloud.tencent.com/document/product/629/12359?from_cn_redirect=1) instead.
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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 接口已废弃,切换至云审计接口。见https://tapd.woa.com/pro/prong/stories/view/1010114221880719007
This API has been disused. Use the CloudAudit API instead, For more information, visit https://tapd.woa.com/pro/prong/stories/view/1010114221880719007.
This API is used to query the operation logs of a snapshot. It will be disused soon. Use [LookUpEvents](https://intl.cloud.tencent.com/document/product/629/12359?from_cn_redirect=1) instead.
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 接口已废弃,切换至云审计接口。见https://tapd.woa.com/pro/prong/stories/view/1010114221880719007
This API has been disused. Use the CloudAudit API instead, For more information, visit https://tapd.woa.com/pro/prong/stories/view/1010114221880719007.
This API is used to query the operation logs of a snapshot. It will be disused soon. Use [LookUpEvents](https://intl.cloud.tencent.com/document/product/629/12359?from_cn_redirect=1) instead.
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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_COMPONENTERROR = "InternalError.ComponentError" 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 = "UnsupportedOperation" 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_COMPONENTERROR = "InternalError.ComponentError" 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 = "UnsupportedOperation" 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) InitializeDisks ¶
func (c *Client) InitializeDisks(request *InitializeDisksRequest) (response *InitializeDisksResponse, err error)
InitializeDisks This API is used to reinitialize the cloud disks. Note the following when reinitializing the cloud disks:
1. For a cloud disk created from a snapshot, it is rolled back to the state of the snapshot;
2. For a cloud disk created from the scratch, all data are cleared. Please check and back up the necessary data before the reinitialization;
3. Currently, you can only re-initialize a cloud disk when it’s not attached to a resource and not shared by others;
4. For a cloud disk created from a snapshot, if the snapshot has been deleted, it cannot be reinitialized.
error code that may be returned:
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEBUSY = "ResourceBusy"
func (*Client) InitializeDisksWithContext ¶
func (c *Client) InitializeDisksWithContext(ctx context.Context, request *InitializeDisksRequest) (response *InitializeDisksResponse, err error)
InitializeDisks This API is used to reinitialize the cloud disks. Note the following when reinitializing the cloud disks:
1. For a cloud disk created from a snapshot, it is rolled back to the state of the snapshot;
2. For a cloud disk created from the scratch, all data are cleared. Please check and back up the necessary data before the reinitialization;
3. Currently, you can only re-initialize a cloud disk when it’s not attached to a resource and not shared by others;
4. For a cloud disk created from a snapshot, if the snapshot has been deleted, it cannot be reinitialized.
error code that may be returned:
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" RESOURCEBUSY = "ResourceBusy"
func (*Client) InquirePriceModifyDiskBackupQuota ¶
func (c *Client) InquirePriceModifyDiskBackupQuota(request *InquirePriceModifyDiskBackupQuotaRequest) (response *InquirePriceModifyDiskBackupQuotaResponse, err error)
InquirePriceModifyDiskBackupQuota This API is used to query the price of a cloud disk after its backup point quota is modified.
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter"
func (*Client) InquirePriceModifyDiskBackupQuotaWithContext ¶
func (c *Client) InquirePriceModifyDiskBackupQuotaWithContext(ctx context.Context, request *InquirePriceModifyDiskBackupQuotaRequest) (response *InquirePriceModifyDiskBackupQuotaResponse, err error)
InquirePriceModifyDiskBackupQuota This API is used to query the price of a cloud disk after its backup point quota is modified.
error code that may be returned:
INVALIDDISK_BUSY = "InvalidDisk.Busy" INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETER = "InvalidParameter"
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" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
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" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
func (*Client) InquiryPriceCreateDisks ¶
func (c *Client) InquiryPriceCreateDisks(request *InquiryPriceCreateDisksRequest) (response *InquiryPriceCreateDisksResponse, err error)
InquiryPriceCreateDisks This API is used to query the price of creating cloud disks.
* You can query the price of creating multiple cloud disks in a single request. In this case, the price returned will be the total price.
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 is used to query the price of creating cloud disks.
* You can query the price of creating multiple cloud disks in a single request. In this case, the price returned will be the total price.
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" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating" 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" INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
func (*Client) ModifyDiskBackupQuota ¶
func (c *Client) ModifyDiskBackupQuota(request *ModifyDiskBackupQuotaRequest) (response *ModifyDiskBackupQuotaResponse, err error)
ModifyDiskBackupQuota This API is used to modify the cloud disk backup point quota.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETER = "InvalidParameter" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight"
func (*Client) ModifyDiskBackupQuotaWithContext ¶
func (c *Client) ModifyDiskBackupQuotaWithContext(ctx context.Context, request *ModifyDiskBackupQuotaRequest) (response *ModifyDiskBackupQuotaResponse, err error)
ModifyDiskBackupQuota This API is used to modify the cloud disk backup point quota.
error code that may be returned:
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError" INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance" INVALIDPARAMETER = "InvalidParameter" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" TRADEDEALCONFLICT = "TradeDealConflict" UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight"
func (*Client) ModifyDiskExtraPerformance ¶
func (c *Client) ModifyDiskExtraPerformance(request *ModifyDiskExtraPerformanceRequest) (response *ModifyDiskExtraPerformanceResponse, err error)
ModifyDiskExtraPerformance This API is used to adjust extra performance for Enhanced SSD (CLOUD_HSSD) and ulTra SSD.
*This API only supports adjust extra performance for Enhanced SSD and ulTra SSD.
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 extra performance for Enhanced SSD (CLOUD_HSSD) and ulTra SSD.
*This API only supports adjust extra performance for Enhanced SSD and ulTra SSD.
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" UNSUPPORTEDOPERATION_SNAPHASSHARED = "UnsupportedOperation.SnapHasShared" UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = "UnsupportedOperation.SnapshotHasBindedImage"
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" UNSUPPORTEDOPERATION_SNAPHASSHARED = "UnsupportedOperation.SnapHasShared" UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = "UnsupportedOperation.SnapshotHasBindedImage"
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 cloud disks.
*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" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" 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 cloud disks.
*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" RESOURCEINSUFFICIENT = "ResourceInsufficient" RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" 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" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT_OVERREFUNDQUOTA = "ResourceInsufficient.OverRefundQuota" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" RESOURCEUNAVAILABLE_NOTSUPPORTREFUND = "ResourceUnavailable.NotSupportRefund" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_REPEATREFUND = "ResourceUnavailable.RepeatRefund" TRADEDEALCONFLICT = "TradeDealConflict" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEBUSY = "ResourceBusy" RESOURCEINSUFFICIENT_OVERREFUNDQUOTA = "ResourceInsufficient.OverRefundQuota" RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire" RESOURCEUNAVAILABLE_NOTSUPPORTREFUND = "ResourceUnavailable.NotSupportRefund" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported" RESOURCEUNAVAILABLE_REPEATREFUND = "ResourceUnavailable.RepeatRefund" TRADEDEALCONFLICT = "TradeDealConflict" UNSUPPORTEDOPERATION = "UnsupportedOperation"
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:
INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
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:
INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound" INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
type CopySnapshotCrossRegionsRequest ¶
type CopySnapshotCrossRegionsRequest struct { *tchttp.BaseRequest // Destination regions of the replication task. You can query the value of regions by calling [DescribeRegions](https://intl.cloud.tencent.com/document/product/213/9456?from_cn_redirect=1) API. Note that you can only specify regions that support snapshots. DestinationRegions []*string `json:"DestinationRegions,omitnil" name:"DestinationRegions"` // Snapshot ID, which can be queried via the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API. SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` // Name of the snapshot replica. If it’s not specified, it defaults to “Copied [source snapshot ID from [region name]” SnapshotName *string `json:"SnapshotName,omitnil" name:"SnapshotName"` }
func NewCopySnapshotCrossRegionsRequest ¶
func NewCopySnapshotCrossRegionsRequest() (request *CopySnapshotCrossRegionsRequest)
func (*CopySnapshotCrossRegionsRequest) FromJsonString ¶
func (r *CopySnapshotCrossRegionsRequest) 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 (*CopySnapshotCrossRegionsRequest) ToJsonString ¶
func (r *CopySnapshotCrossRegionsRequest) ToJsonString() string
type CopySnapshotCrossRegionsRequestParams ¶
type CopySnapshotCrossRegionsRequestParams struct { // Destination regions of the replication task. You can query the value of regions by calling [DescribeRegions](https://intl.cloud.tencent.com/document/product/213/9456?from_cn_redirect=1) API. Note that you can only specify regions that support snapshots. DestinationRegions []*string `json:"DestinationRegions,omitnil" name:"DestinationRegions"` // Snapshot ID, which can be queried via the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API. SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` // Name of the snapshot replica. If it’s not specified, it defaults to “Copied [source snapshot ID from [region name]” SnapshotName *string `json:"SnapshotName,omitnil" name:"SnapshotName"` }
Predefined struct for user
type CopySnapshotCrossRegionsResponse ¶
type CopySnapshotCrossRegionsResponse struct { *tchttp.BaseResponse Response *CopySnapshotCrossRegionsResponseParams `json:"Response"` }
func NewCopySnapshotCrossRegionsResponse ¶
func NewCopySnapshotCrossRegionsResponse() (response *CopySnapshotCrossRegionsResponse)
func (*CopySnapshotCrossRegionsResponse) FromJsonString ¶
func (r *CopySnapshotCrossRegionsResponse) 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 (*CopySnapshotCrossRegionsResponse) ToJsonString ¶
func (r *CopySnapshotCrossRegionsResponse) ToJsonString() string
type CopySnapshotCrossRegionsResponseParams ¶
type CopySnapshotCrossRegionsResponseParams struct { // Result of the cross-region replication task. The ID of the new snapshot replica is returned if the request succeeds. Otherwise `Error` is returned. SnapshotCopyResultSet []*SnapshotCopyResult `json:"SnapshotCopyResultSet,omitnil" name:"SnapshotCopyResultSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateAutoSnapshotPolicyRequest ¶
type CreateAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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 CreateAutoSnapshotPolicyRequestParams ¶
type CreateAutoSnapshotPolicyRequestParams struct { // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"DryRun"` }
Predefined struct for user
type CreateAutoSnapshotPolicyResponse ¶
type CreateAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *CreateAutoSnapshotPolicyResponseParams `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 CreateAutoSnapshotPolicyResponseParams ¶
type CreateAutoSnapshotPolicyResponseParams struct { // The ID of the newly created scheduled snapshot policy. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" name:"AutoSnapshotPolicyId"` // The time that initial backup will start. NextTriggerTime *string `json:"NextTriggerTime,omitnil" name:"NextTriggerTime"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateDiskBackupRequest ¶
type CreateDiskBackupRequest struct { *tchttp.BaseRequest // Name of the cloud disk for which to create a backup point. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Name of the cloud disk backup point, which can contain up to 100 characters. DiskBackupName *string `json:"DiskBackupName,omitnil" name:"DiskBackupName"` }
func NewCreateDiskBackupRequest ¶
func NewCreateDiskBackupRequest() (request *CreateDiskBackupRequest)
func (*CreateDiskBackupRequest) FromJsonString ¶
func (r *CreateDiskBackupRequest) 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 (*CreateDiskBackupRequest) ToJsonString ¶
func (r *CreateDiskBackupRequest) ToJsonString() string
type CreateDiskBackupRequestParams ¶
type CreateDiskBackupRequestParams struct { // Name of the cloud disk for which to create a backup point. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Name of the cloud disk backup point, which can contain up to 100 characters. DiskBackupName *string `json:"DiskBackupName,omitnil" name:"DiskBackupName"` }
Predefined struct for user
type CreateDiskBackupResponse ¶
type CreateDiskBackupResponse struct { *tchttp.BaseResponse Response *CreateDiskBackupResponseParams `json:"Response"` }
func NewCreateDiskBackupResponse ¶
func NewCreateDiskBackupResponse() (response *CreateDiskBackupResponse)
func (*CreateDiskBackupResponse) FromJsonString ¶
func (r *CreateDiskBackupResponse) 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 (*CreateDiskBackupResponse) ToJsonString ¶
func (r *CreateDiskBackupResponse) ToJsonString() string
type CreateDiskBackupResponseParams ¶
type CreateDiskBackupResponseParams struct { // ID of the cloud disk backup point. DiskBackupId *string `json:"DiskBackupId,omitnil" name:"DiskBackupId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateDisksRequest ¶
type CreateDisksRequest struct { *tchttp.BaseRequest // Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone and project. If no project is specified, the default project will be used. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Cloud disk billing mode. POSTPAID_BY_HOUR: Pay-as-you-go by hour<br><li>CDCPAID: Billed together with the bound dedicated cluster<br>For more information on the pricing in each mode, see [Pricing Overview](https://intl.cloud.tencent.com/document/product/362/2413?from_cn_redirect=1). DiskChargeType *string `json:"DiskChargeType,omitnil" name:"DiskChargeType"` // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD Cloud Storage<br><li>CLOUD_PREMIUM: Premium Cloud Disk<br><li>CLOUD_BSSD: Balanced SSD<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: ulTra SSD. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // Cloud disk name. If it is not specified, "Unnamed" will be used by default. The maximum length is 60 bytes. DiskName *string `json:"DiskName,omitnil" name:"DiskName"` // Tags bound to the cloud disk. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Snapshot ID. If this parameter is specified, the cloud disk will be created based on the snapshot. The snapshot must be a data disk snapshot. To query the type of a snapshot, call the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API and see the `DiskUsage` field in the response. SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` // Number of cloud disks to be created. If it is not specified, `1` will be used by default. There is an upper limit on the maximum number of cloud disks that can be created in a single request. For more information, see [Use Limits](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1). DiskCount *uint64 `json:"DiskCount,omitnil" name:"DiskCount"` // Extra performance purchased for a cloud disk.<br>This optional parameter is only valid for ulTra SSD (CLOUD_TSSD) and Enhanced SSD (CLOUD_HSSD). ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" name:"ThroughputPerformance"` // Cloud disk size in GB. <br><li>`DiskSize` is not required if `SnapshotId` is specified. In this case, the size of the cloud disk will be equal to that of the snapshot. <br><li>If you specify both `SnapshotId` and `DiskSize`, the specified disk size cannot be smaller than the snapshot size. <br><li>For the value range of cloud disk size, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` Shareable *bool `json:"Shareable,omitnil" name:"Shareable"` // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // This parameter is used to create encrypted cloud disks. It is fixed at `ENCRYPT`. Encrypt *string `json:"Encrypt,omitnil" 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,omitnil" name:"DiskChargePrepaid"` // Whether to delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk. `0`: No (default value). `1`: Yes. To check whether a snapshot is permanently reserved, see the `IsPermanent` field returned by the `DescribeSnapshots` API. DeleteSnapshot *int64 `json:"DeleteSnapshot,omitnil" name:"DeleteSnapshot"` // Specifies whether to automatically attach and initialize the newly created data disk. AutoMountConfiguration *AutoMountConfiguration `json:"AutoMountConfiguration,omitnil" name:"AutoMountConfiguration"` // Specifies the cloud disk backup point quota. DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` // Specifies whether to enable disk bursting. BurstPerformance *bool `json:"BurstPerformance,omitnil" name:"BurstPerformance"` }
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 CreateDisksRequestParams ¶
type CreateDisksRequestParams struct { // Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone and project. If no project is specified, the default project will be used. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Cloud disk billing mode. POSTPAID_BY_HOUR: Pay-as-you-go by hour<br><li>CDCPAID: Billed together with the bound dedicated cluster<br>For more information on the pricing in each mode, see [Pricing Overview](https://intl.cloud.tencent.com/document/product/362/2413?from_cn_redirect=1). DiskChargeType *string `json:"DiskChargeType,omitnil" name:"DiskChargeType"` // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD Cloud Storage<br><li>CLOUD_PREMIUM: Premium Cloud Disk<br><li>CLOUD_BSSD: Balanced SSD<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: ulTra SSD. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // Cloud disk name. If it is not specified, "Unnamed" will be used by default. The maximum length is 60 bytes. DiskName *string `json:"DiskName,omitnil" name:"DiskName"` // Tags bound to the cloud disk. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Snapshot ID. If this parameter is specified, the cloud disk will be created based on the snapshot. The snapshot must be a data disk snapshot. To query the type of a snapshot, call the [DescribeSnapshots](https://intl.cloud.tencent.com/document/product/362/15647?from_cn_redirect=1) API and see the `DiskUsage` field in the response. SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` // Number of cloud disks to be created. If it is not specified, `1` will be used by default. There is an upper limit on the maximum number of cloud disks that can be created in a single request. For more information, see [Use Limits](https://intl.cloud.tencent.com/doc/product/362/5145?from_cn_redirect=1). DiskCount *uint64 `json:"DiskCount,omitnil" name:"DiskCount"` // Extra performance purchased for a cloud disk.<br>This optional parameter is only valid for ulTra SSD (CLOUD_TSSD) and Enhanced SSD (CLOUD_HSSD). ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" name:"ThroughputPerformance"` // Cloud disk size in GB. <br><li>`DiskSize` is not required if `SnapshotId` is specified. In this case, the size of the cloud disk will be equal to that of the snapshot. <br><li>If you specify both `SnapshotId` and `DiskSize`, the specified disk size cannot be smaller than the snapshot size. <br><li>For the value range of cloud disk size, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` Shareable *bool `json:"Shareable,omitnil" name:"Shareable"` // A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // This parameter is used to create encrypted cloud disks. It is fixed at `ENCRYPT`. Encrypt *string `json:"Encrypt,omitnil" 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,omitnil" name:"DiskChargePrepaid"` // Whether to delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk. `0`: No (default value). `1`: Yes. To check whether a snapshot is permanently reserved, see the `IsPermanent` field returned by the `DescribeSnapshots` API. DeleteSnapshot *int64 `json:"DeleteSnapshot,omitnil" name:"DeleteSnapshot"` // Specifies whether to automatically attach and initialize the newly created data disk. AutoMountConfiguration *AutoMountConfiguration `json:"AutoMountConfiguration,omitnil" name:"AutoMountConfiguration"` // Specifies the cloud disk backup point quota. DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` // Specifies whether to enable disk bursting. BurstPerformance *bool `json:"BurstPerformance,omitnil" name:"BurstPerformance"` }
Predefined struct for user
type CreateDisksResponse ¶
type CreateDisksResponse struct { *tchttp.BaseResponse Response *CreateDisksResponseParams `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 CreateDisksResponseParams ¶
type CreateDisksResponseParams struct { // ID list of the created cloud disks. Note: This field may return null, indicating that no valid values can be obtained. DiskIdSet []*string `json:"DiskIdSet,omitnil" name:"DiskIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateSnapshotRequest ¶
type CreateSnapshotRequest struct { *tchttp.BaseRequest // ID of the cloud disk for which to create a snapshot, which can be queried through the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Snapshot name. If it is not specified, "Unnamed" will be used by default. SnapshotName *string `json:"SnapshotName,omitnil" name:"SnapshotName"` // Expiration time of the snapshot. It must be in UTC ISO-8601 format, eg. 2022-01-08T09:47:55+00:00. The snapshot will be automatically deleted when it expires. Deadline *string `json:"Deadline,omitnil" name:"Deadline"` // ID of the cloud disk backup point. When this parameter is specified, the snapshot will be created from the backup point. DiskBackupId *string `json:"DiskBackupId,omitnil" name:"DiskBackupId"` // Tags bound to the snapshot. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` }
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 CreateSnapshotRequestParams ¶
type CreateSnapshotRequestParams struct { // ID of the cloud disk for which to create a snapshot, which can be queried through the [DescribeDisks](https://intl.cloud.tencent.com/document/product/362/16315?from_cn_redirect=1) API. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Snapshot name. If it is not specified, "Unnamed" will be used by default. SnapshotName *string `json:"SnapshotName,omitnil" name:"SnapshotName"` // Expiration time of the snapshot. It must be in UTC ISO-8601 format, eg. 2022-01-08T09:47:55+00:00. The snapshot will be automatically deleted when it expires. Deadline *string `json:"Deadline,omitnil" name:"Deadline"` // ID of the cloud disk backup point. When this parameter is specified, the snapshot will be created from the backup point. DiskBackupId *string `json:"DiskBackupId,omitnil" name:"DiskBackupId"` // Tags bound to the snapshot. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` }
Predefined struct for user
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct { *tchttp.BaseResponse Response *CreateSnapshotResponseParams `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 CreateSnapshotResponseParams ¶
type CreateSnapshotResponseParams struct { // ID of the created snapshot <br/>Note: This field may return null, indicating that no valid values can be obtained. SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteAutoSnapshotPoliciesRequest ¶
type DeleteAutoSnapshotPoliciesRequest struct { *tchttp.BaseRequest // List of scheduled snapshot policy IDs to be deleted. AutoSnapshotPolicyIds []*string `json:"AutoSnapshotPolicyIds,omitnil" 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 DeleteAutoSnapshotPoliciesRequestParams ¶
type DeleteAutoSnapshotPoliciesRequestParams struct { // List of scheduled snapshot policy IDs to be deleted. AutoSnapshotPolicyIds []*string `json:"AutoSnapshotPolicyIds,omitnil" name:"AutoSnapshotPolicyIds"` }
Predefined struct for user
type DeleteAutoSnapshotPoliciesResponse ¶
type DeleteAutoSnapshotPoliciesResponse struct { *tchttp.BaseResponse Response *DeleteAutoSnapshotPoliciesResponseParams `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 DeleteAutoSnapshotPoliciesResponseParams ¶
type DeleteAutoSnapshotPoliciesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteDiskBackupsRequest ¶
type DeleteDiskBackupsRequest struct { *tchttp.BaseRequest // ID of the cloud disk backup point to be deleted. DiskBackupIds []*string `json:"DiskBackupIds,omitnil" name:"DiskBackupIds"` }
func NewDeleteDiskBackupsRequest ¶
func NewDeleteDiskBackupsRequest() (request *DeleteDiskBackupsRequest)
func (*DeleteDiskBackupsRequest) FromJsonString ¶
func (r *DeleteDiskBackupsRequest) 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 (*DeleteDiskBackupsRequest) ToJsonString ¶
func (r *DeleteDiskBackupsRequest) ToJsonString() string
type DeleteDiskBackupsRequestParams ¶
type DeleteDiskBackupsRequestParams struct { // ID of the cloud disk backup point to be deleted. DiskBackupIds []*string `json:"DiskBackupIds,omitnil" name:"DiskBackupIds"` }
Predefined struct for user
type DeleteDiskBackupsResponse ¶
type DeleteDiskBackupsResponse struct { *tchttp.BaseResponse Response *DeleteDiskBackupsResponseParams `json:"Response"` }
func NewDeleteDiskBackupsResponse ¶
func NewDeleteDiskBackupsResponse() (response *DeleteDiskBackupsResponse)
func (*DeleteDiskBackupsResponse) FromJsonString ¶
func (r *DeleteDiskBackupsResponse) 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 (*DeleteDiskBackupsResponse) ToJsonString ¶
func (r *DeleteDiskBackupsResponse) ToJsonString() string
type DeleteDiskBackupsResponseParams ¶
type DeleteDiskBackupsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" name:"SnapshotIds"` // Whether to forcibly delete the image associated with the snapshot DeleteBindImages *bool `json:"DeleteBindImages,omitnil" 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 DeleteSnapshotsRequestParams ¶
type DeleteSnapshotsRequestParams struct { // 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,omitnil" name:"SnapshotIds"` // Whether to forcibly delete the image associated with the snapshot DeleteBindImages *bool `json:"DeleteBindImages,omitnil" name:"DeleteBindImages"` }
Predefined struct for user
type DeleteSnapshotsResponse ¶
type DeleteSnapshotsResponse struct { *tchttp.BaseResponse Response *DeleteSnapshotsResponseParams `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 DeleteSnapshotsResponseParams ¶
type DeleteSnapshotsResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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 DescribeAutoSnapshotPoliciesRequestParams ¶
type DescribeAutoSnapshotPoliciesRequestParams struct { // List of scheduled snapshot policy IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. AutoSnapshotPolicyIds []*string `json:"AutoSnapshotPolicyIds,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"OrderField"` }
Predefined struct for user
type DescribeAutoSnapshotPoliciesResponse ¶
type DescribeAutoSnapshotPoliciesResponse struct { *tchttp.BaseResponse Response *DescribeAutoSnapshotPoliciesResponseParams `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 DescribeAutoSnapshotPoliciesResponseParams ¶
type DescribeAutoSnapshotPoliciesResponseParams struct { // The quantity of valid scheduled snapshot policies. TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of scheduled snapshot policies. AutoSnapshotPolicySet []*AutoSnapshotPolicy `json:"AutoSnapshotPolicySet,omitnil" name:"AutoSnapshotPolicySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDiskAssociatedAutoSnapshotPolicyRequest ¶
type DescribeDiskAssociatedAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // The ID of the queried cloud disk. DiskId *string `json:"DiskId,omitnil" 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 DescribeDiskAssociatedAutoSnapshotPolicyRequestParams ¶
type DescribeDiskAssociatedAutoSnapshotPolicyRequestParams struct { // The ID of the queried cloud disk. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` }
Predefined struct for user
type DescribeDiskAssociatedAutoSnapshotPolicyResponse ¶
type DescribeDiskAssociatedAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *DescribeDiskAssociatedAutoSnapshotPolicyResponseParams `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 DescribeDiskAssociatedAutoSnapshotPolicyResponseParams ¶
type DescribeDiskAssociatedAutoSnapshotPolicyResponseParams struct { // The quantity of scheduled snapshots binded to cloud disk. TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of scheduled snapshots bound to cloud disk. AutoSnapshotPolicySet []*AutoSnapshotPolicy `json:"AutoSnapshotPolicySet,omitnil" name:"AutoSnapshotPolicySet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDiskBackupsRequest ¶
type DescribeDiskBackupsRequest struct { *tchttp.BaseRequest // List of IDs of the backup points to be queried. `DiskBackupIds` and `Filters` cannot be specified at the same time. DiskBackupIds []*string `json:"DiskBackupIds,omitnil" name:"DiskBackupIds"` // Filter. `DiskBackupIds` and `Filters` cannot be specified at the same time. Valid values: <br><li>disk-backup-id - Array of String - Required: No - (Filter) Filter by backup point ID in the format of `dbp-11112222`. // <br><li>disk-id - Array of String - Required: No - (Filter) Filter by ID of the cloud disk for which backup points are created. // <br><li>disk-usage - Array of String - Required: No - (Filter) Filter by type of the cloud disk for which backup points are created. (SYSTEM_DISK: System disk | DATA_DISK: Data disk) Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section of the API [Overview](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section of the API [Overview](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Sorting order of cloud disk backup points. Valid values:<br><li>ASC: Ascending<br><li>DESC: Descending Order *string `json:"Order,omitnil" name:"Order"` // The field by which cloud disk backup points are sorted. Valid values:<br><li>CREATE_TIME: Sort by creation time<br>Backup points are sorted by creation time by default. OrderField *string `json:"OrderField,omitnil" name:"OrderField"` }
func NewDescribeDiskBackupsRequest ¶
func NewDescribeDiskBackupsRequest() (request *DescribeDiskBackupsRequest)
func (*DescribeDiskBackupsRequest) FromJsonString ¶
func (r *DescribeDiskBackupsRequest) 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 (*DescribeDiskBackupsRequest) ToJsonString ¶
func (r *DescribeDiskBackupsRequest) ToJsonString() string
type DescribeDiskBackupsRequestParams ¶
type DescribeDiskBackupsRequestParams struct { // List of IDs of the backup points to be queried. `DiskBackupIds` and `Filters` cannot be specified at the same time. DiskBackupIds []*string `json:"DiskBackupIds,omitnil" name:"DiskBackupIds"` // Filter. `DiskBackupIds` and `Filters` cannot be specified at the same time. Valid values: <br><li>disk-backup-id - Array of String - Required: No - (Filter) Filter by backup point ID in the format of `dbp-11112222`. // <br><li>disk-id - Array of String - Required: No - (Filter) Filter by ID of the cloud disk for which backup points are created. // <br><li>disk-usage - Array of String - Required: No - (Filter) Filter by type of the cloud disk for which backup points are created. (SYSTEM_DISK: System disk | DATA_DISK: Data disk) Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // Offset. Default value: 0. For more information on `Offset`, see the relevant section of the API [Overview](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant section of the API [Overview](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Sorting order of cloud disk backup points. Valid values:<br><li>ASC: Ascending<br><li>DESC: Descending Order *string `json:"Order,omitnil" name:"Order"` // The field by which cloud disk backup points are sorted. Valid values:<br><li>CREATE_TIME: Sort by creation time<br>Backup points are sorted by creation time by default. OrderField *string `json:"OrderField,omitnil" name:"OrderField"` }
Predefined struct for user
type DescribeDiskBackupsResponse ¶
type DescribeDiskBackupsResponse struct { *tchttp.BaseResponse Response *DescribeDiskBackupsResponseParams `json:"Response"` }
func NewDescribeDiskBackupsResponse ¶
func NewDescribeDiskBackupsResponse() (response *DescribeDiskBackupsResponse)
func (*DescribeDiskBackupsResponse) FromJsonString ¶
func (r *DescribeDiskBackupsResponse) 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 (*DescribeDiskBackupsResponse) ToJsonString ¶
func (r *DescribeDiskBackupsResponse) ToJsonString() string
type DescribeDiskBackupsResponseParams ¶
type DescribeDiskBackupsResponseParams struct { // Number of eligible cloud disk backup points. TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of details of cloud disk backup points. DiskBackupSet []*DiskBackup `json:"DiskBackupSet,omitnil" name:"DiskBackupSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" 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,omitnil" name:"Zones"` // Billing mode. Value range: <br><li>POSTPAID_BY_HOUR: postpaid. DiskChargeType *string `json:"DiskChargeType,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"InstanceFamilies"` // Instance CPU cores. CPU *uint64 `json:"CPU,omitnil" name:"CPU"` // Instance memory size. Memory *uint64 `json:"Memory,omitnil" 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 DescribeDiskConfigQuotaRequestParams ¶
type DescribeDiskConfigQuotaRequestParams struct { // 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,omitnil" 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,omitnil" name:"Zones"` // Billing mode. Value range: <br><li>POSTPAID_BY_HOUR: postpaid. DiskChargeType *string `json:"DiskChargeType,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"InstanceFamilies"` // Instance CPU cores. CPU *uint64 `json:"CPU,omitnil" name:"CPU"` // Instance memory size. Memory *uint64 `json:"Memory,omitnil" name:"Memory"` }
Predefined struct for user
type DescribeDiskConfigQuotaResponse ¶
type DescribeDiskConfigQuotaResponse struct { *tchttp.BaseResponse Response *DescribeDiskConfigQuotaResponseParams `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 DescribeDiskConfigQuotaResponseParams ¶
type DescribeDiskConfigQuotaResponseParams struct { // List of cloud disk configurations. DiskConfigSet []*DiskConfig `json:"DiskConfigSet,omitnil" name:"DiskConfigSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" name:"Filters"` // The start time of the operation logs to be queried, for example: '2019-11-22 00:00:00" BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The end time of the operation logs to be queried, for example: '2019-11-22 23:59:59" EndTime *string `json:"EndTime,omitnil" 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 DescribeDiskOperationLogsRequestParams ¶
type DescribeDiskOperationLogsRequestParams struct { // 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,omitnil" name:"Filters"` // The start time of the operation logs to be queried, for example: '2019-11-22 00:00:00" BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The end time of the operation logs to be queried, for example: '2019-11-22 23:59:59" EndTime *string `json:"EndTime,omitnil" name:"EndTime"` }
Predefined struct for user
type DescribeDiskOperationLogsResponse ¶
type DescribeDiskOperationLogsResponse struct { *tchttp.BaseResponse Response *DescribeDiskOperationLogsResponseParams `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 DescribeDiskOperationLogsResponseParams ¶
type DescribeDiskOperationLogsResponseParams struct { // List of cloud disk operation logs. DiskOperationLogSet []*DiskOperationLog `json:"DiskOperationLogSet,omitnil" name:"DiskOperationLogSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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 DescribeDisksRequestParams ¶
type DescribeDisksRequestParams struct { // 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"ReturnBindAutoSnapshotPolicy"` }
Predefined struct for user
type DescribeDisksResponse ¶
type DescribeDisksResponse struct { *tchttp.BaseResponse Response *DescribeDisksResponseParams `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 DescribeDisksResponseParams ¶
type DescribeDisksResponseParams struct { // The quantity of cloud disks meeting the conditions. TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of cloud disk details. DiskSet []*Disk `json:"DiskSet,omitnil" name:"DiskSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" 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 DescribeInstancesDiskNumRequestParams ¶
type DescribeInstancesDiskNumRequestParams struct { // 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,omitnil" name:"InstanceIds"` }
Predefined struct for user
type DescribeInstancesDiskNumResponse ¶
type DescribeInstancesDiskNumResponse struct { *tchttp.BaseResponse Response *DescribeInstancesDiskNumResponseParams `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 DescribeInstancesDiskNumResponseParams ¶
type DescribeInstancesDiskNumResponseParams struct { // The quantity of mounted and mountable elastic cloud disks for each cloud virtual machine AttachDetail []*AttachDetail `json:"AttachDetail,omitnil" name:"AttachDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" name:"Filters"` // The start time of the operation logs to be queried, for example: '2019-11-22 00:00:00" BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The end time of the operation logs to be queried, for example: '2019-11-22 23:59:59" EndTime *string `json:"EndTime,omitnil" 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 DescribeSnapshotOperationLogsRequestParams ¶
type DescribeSnapshotOperationLogsRequestParams struct { // 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,omitnil" name:"Filters"` // The start time of the operation logs to be queried, for example: '2019-11-22 00:00:00" BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The end time of the operation logs to be queried, for example: '2019-11-22 23:59:59" EndTime *string `json:"EndTime,omitnil" name:"EndTime"` }
Predefined struct for user
type DescribeSnapshotOperationLogsResponse ¶
type DescribeSnapshotOperationLogsResponse struct { *tchttp.BaseResponse Response *DescribeSnapshotOperationLogsResponseParams `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 DescribeSnapshotOperationLogsResponseParams ¶
type DescribeSnapshotOperationLogsResponseParams struct { // List of snapshot operation logs. SnapshotOperationLogSet []*SnapshotOperationLog `json:"SnapshotOperationLogSet,omitnil" name:"SnapshotOperationLogSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeSnapshotSharePermissionRequest ¶
type DescribeSnapshotSharePermissionRequest struct { string `json:"SnapshotId,omitnil" 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 DescribeSnapshotSharePermissionRequestParams ¶
type DescribeSnapshotSharePermissionRequestParams struct { string `json:"SnapshotId,omitnil" name:"SnapshotId"` }SnapshotId *
Predefined struct for user
type DescribeSnapshotSharePermissionResponse ¶
type DescribeSnapshotSharePermissionResponse struct {}
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 DescribeSnapshotSharePermissionResponseParams ¶
type DescribeSnapshotSharePermissionResponseParams struct { SharePermission `json:"SharePermissionSet,omitnil" name:"SharePermissionSet"` RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }SharePermissionSet []*
Predefined struct for user
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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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 DescribeSnapshotsRequestParams ¶
type DescribeSnapshotsRequestParams struct { // List of snapshot IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. SnapshotIds []*string `json:"SnapshotIds,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"OrderField"` }
Predefined struct for user
type DescribeSnapshotsResponse ¶
type DescribeSnapshotsResponse struct { *tchttp.BaseResponse Response *DescribeSnapshotsResponseParams `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 DescribeSnapshotsResponseParams ¶
type DescribeSnapshotsResponseParams struct { // Number of snapshots. TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of snapshot details. SnapshotSet []*Snapshot `json:"SnapshotSet,omitnil" name:"SnapshotSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" 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,omitnil" 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 DetachDisksRequestParams ¶
type DetachDisksRequestParams struct { // 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,omitnil" 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,omitnil" name:"InstanceId"` }
Predefined struct for user
type DetachDisksResponse ¶
type DetachDisksResponse struct { *tchttp.BaseResponse Response *DetachDisksResponseParams `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 DetachDisksResponseParams ¶
type DetachDisksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DetailPrice ¶
type DetailPrice struct { // Name of the billable item. // Note: This field may return null, indicating that no valid values can be obtained. PriceTitle *string `json:"PriceTitle,omitnil" name:"PriceTitle"` // Name of the billable item displayed in the console. PriceName *string `json:"PriceName,omitnil" name:"PriceName"` // 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,omitnil" 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,omitnil" 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,omitnil" name:"UnitPrice"` // 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,omitnil" name:"UnitPriceDiscount"` // Billing unit for pay-as-you-go cloud disks. Valid value: `HOUR` (billed hourly). // Note: This field may return null, indicating that no valid values can be obtained. ChargeUnit *string `json:"ChargeUnit,omitnil" name:"ChargeUnit"` // Original highly-precise price of a monthly subscribed cloud disk, in USD. // Note: This field may return null, indicating that no valid values can be obtained. OriginalPriceHigh *string `json:"OriginalPriceHigh,omitnil" name:"OriginalPriceHigh"` // Discounted highly-precise price of a monthly subscribed cloud disk, in USD. // Note: This field may return null, indicating that no valid values can be obtained. DiscountPriceHigh *string `json:"DiscountPriceHigh,omitnil" name:"DiscountPriceHigh"` // Original highly-precise 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. UnitPriceHigh *string `json:"UnitPriceHigh,omitnil" name:"UnitPriceHigh"` // Discounted highly-precise 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. UnitPriceDiscountHigh *string `json:"UnitPriceDiscountHigh,omitnil" name:"UnitPriceDiscountHigh"` }
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,omitnil" 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,omitnil" name:"RenewFlag"` // Cloud disk types. Valid values: <br><li>CLOUD_BASIC: HDD cloud disk <br><li>CLOUD_PREMIUM: Premium Cloud Disk <br><li>CLOUD_BSSD: General Purpose SSD <br><li>CLOUD_SSD: SSD <br><li>CLOUD_HSSD: Enhanced SSD <br><li>CLOUD_TSSD: Tremendous SSD DiskType *string `json:"DiskType,omitnil" 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,omitnil" name:"DiskState"` // The total number of snapshots of the cloud disk. SnapshotCount *int64 `json:"SnapshotCount,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"InstanceIdList"` // Whether the cloud disk is encrypted. Value range: <br><li>false: Not encrypted <br><li>true: Encrypted. Encrypt *bool `json:"Encrypt,omitnil" name:"Encrypt"` // Cloud disk name. DiskName *string `json:"DiskName,omitnil" 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,omitnil" 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,omitnil" name:"Tags"` // ID of the CVM to which the cloud disk is mounted. InstanceId *string `json:"InstanceId,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"Migrating"` // Cloud disk ID. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // The total capacity of the snapshots of the cloud disk. Unit: MB. SnapshotSize *uint64 `json:"SnapshotSize,omitnil" name:"SnapshotSize"` // Location of the cloud disk. Placement *Placement `json:"Placement,omitnil" 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,omitnil" name:"IsReturnable"` // Expiration time of the cloud disk. DeadlineTime *string `json:"DeadlineTime,omitnil" 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,omitnil" name:"Attached"` // Cloud disk size (in GB). DiskSize *uint64 `json:"DiskSize,omitnil" 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,omitnil" name:"MigratePercent"` // Cloud disk type. Value range:<br><li>SYSTEM_DISK: System disk <br><li>DATA_DISK: Data disk. DiskUsage *string `json:"DiskUsage,omitnil" 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,omitnil" name:"DiskChargeType"` // Whether it is an elastic cloud disk. false: Non-elastic cloud disk; true: Elastic cloud disk. Portable *bool `json:"Portable,omitnil" 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,omitnil" 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,omitnil" name:"DeadlineError"` // Rollback progress of a cloud disk snapshot. RollbackPercent *uint64 `json:"RollbackPercent,omitnil" 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,omitnil" 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,omitnil" name:"ReturnFailCode"` Shareable *bool `json:"Shareable,omitnil" name:"Shareable"` // Creation time of the cloud disk. CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk. `0`: No (default). `1`: Yes. To check whether a snapshot is permanently reserved, refer to the `IsPermanent` field returned by the `DescribeSnapshots` API. DeleteSnapshot *int64 `json:"DeleteSnapshot,omitnil" name:"DeleteSnapshot"` // Quota of cloud disk backup points, i.e., the maximum number of backup points that a cloud disk can have. DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` // Number of used cloud disk backups. DiskBackupCount *uint64 `json:"DiskBackupCount,omitnil" name:"DiskBackupCount"` // Type of the instance mounted to the cloud disk. Valid values: <br><li>CVM<br><li>EKS InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` // ID of the last instance to which the cloud disk is attached // Note: This field may return null, indicating that no valid values can be obtained. LastAttachInsId *string `json:"LastAttachInsId,omitnil" name:"LastAttachInsId"` // Error message for the last operation of the cloud disk // Note: This field may return null, indicating that no valid values can be obtained. ErrorPrompt *string `json:"ErrorPrompt,omitnil" name:"ErrorPrompt"` // Whether the cloud disk has enabled disk bursting. Note: This field may return null, indicating that no valid values can be obtained. BurstPerformance *bool `json:"BurstPerformance,omitnil" name:"BurstPerformance"` }
type DiskBackup ¶
type DiskBackup struct { // Cloud disk backup point ID. DiskBackupId *string `json:"DiskBackupId,omitnil" name:"DiskBackupId"` // ID of the cloud disk with which the backup point is associated. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Cloud disk size in GB. DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // Cloud disk type. Valid values:<br><li>SYSTEM_DISK: System disk <br><li>DATA_DISK: Data disk DiskUsage *string `json:"DiskUsage,omitnil" name:"DiskUsage"` // Backup point name. DiskBackupName *string `json:"DiskBackupName,omitnil" name:"DiskBackupName"` // Cloud disk backup point status. Valid values:<br><li>NORMAL: Normal<br><li>CREATING: Creating<br><li>ROLLBACKING: Rolling back DiskBackupState *string `json:"DiskBackupState,omitnil" name:"DiskBackupState"` // Cloud disk creation progress in percentage. Percent *uint64 `json:"Percent,omitnil" name:"Percent"` // Creation time of the cloud disk backup point. CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Whether the cloud disk is encrypted. Valid values: <br><li>false: Not encrypted <br><li>true: Encrypted Encrypt *bool `json:"Encrypt,omitnil" name:"Encrypt"` }
type DiskChargePrepaid ¶
type DiskChargePrepaid struct { // Subscription period of the cloud disk in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Period *uint64 `json:"Period,omitnil" name:"Period"` // Auto-renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: Notify upon expiration and renew automatically <br><li>NOTIFY_AND_MANUAL_RENEW: Notify upon expiration but do not renew automatically <br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: Neither notify upon expiration nor renew automatically <br><br>Default value: NOTIFY_AND_MANUAL_RENEW. RenewFlag *string `json:"RenewFlag,omitnil" name:"RenewFlag"` // You can specify this parameter when you need to ensure that a cloud disk and the CVM instance to which it is attached have the same expiration time. This parameter represents the current expiration time of the instance. In this case, if you specify `Period`, `Period` will represent how long you want to renew the instance, and the cloud disk will be renewed based on the new expiration time of the instance. For example, the value of this parameter can be `2018-03-30 20:15:03`. CurInstanceDeadline *string `json:"CurInstanceDeadline,omitnil" name:"CurInstanceDeadline"` }
type DiskConfig ¶
type DiskConfig struct { // Whether the configuration is available. Available *bool `json:"Available,omitnil" name:"Available"` // 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,omitnil" name:"DiskChargeType"` // 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,omitnil" name:"Zone"` // 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,omitnil" name:"InstanceFamily"` // 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,omitnil" name:"DiskType"` // Minimum increment of cloud disk size adjustment in GB. // Note: This field might return null, indicating that no valid values can be obtained. StepSize *uint64 `json:"StepSize,omitnil" name:"StepSize"` // Additional performance range. // Note: This field might return null, indicating that no valid values can be obtained. ExtraPerformanceRange []*int64 `json:"ExtraPerformanceRange,omitnil" name:"ExtraPerformanceRange"` // Instance model. // Note: This field may return null, indicating that no valid value was found. DeviceClass *string `json:"DeviceClass,omitnil" name:"DeviceClass"` // Cloud disk type. Value range: <br><li>SYSTEM_DISK: System disk <br><li>DATA_DISK: Data disk. DiskUsage *string `json:"DiskUsage,omitnil" name:"DiskUsage"` // The minimum configurable cloud disk size (in GB). MinDiskSize *uint64 `json:"MinDiskSize,omitnil" name:"MinDiskSize"` // The maximum configurable cloud disk size (in GB). MaxDiskSize *uint64 `json:"MaxDiskSize,omitnil" name:"MaxDiskSize"` // Price of a monthly subscribed or pay-as-you-go cloud disk. // Note: This field may return null, indicating that no valid values can be obtained. Price *Price `json:"Price,omitnil" name:"Price"` }
type DiskOperationLog ¶
type DiskOperationLog struct { // UIN of operator. Operator *string `json:"Operator,omitnil" 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,omitnil" name:"Operation"` // Cloud disk ID of operation. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Status of operation. Value range: // SUCCESS: Operation successful // FAILED: Operation failed // PROCESSING: Operation in process OperationState *string `json:"OperationState,omitnil" name:"OperationState"` // Start time StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // End time EndTime *string `json:"EndTime,omitnil" 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 GetSnapOverviewRequestParams ¶
type GetSnapOverviewRequestParams struct { }
Predefined struct for user
type GetSnapOverviewResponse ¶
type GetSnapOverviewResponse struct { *tchttp.BaseResponse Response *GetSnapOverviewResponseParams `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 GetSnapOverviewResponseParams ¶
type GetSnapOverviewResponseParams struct { // The total snapshot size of the user TotalSize *float64 `json:"TotalSize,omitnil" name:"TotalSize"` // The total billed snapshot size of the user RealTradeSize *float64 `json:"RealTradeSize,omitnil" name:"RealTradeSize"` // Free tier of snapshot FreeQuota *float64 `json:"FreeQuota,omitnil" name:"FreeQuota"` // Total number of snapshots TotalNums *int64 `json:"TotalNums,omitnil" name:"TotalNums"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InitializeDisksRequest ¶
type InitializeDisksRequest struct { *tchttp.BaseRequest // ID list of the cloud disks to be reinitialized. Up to 20 disks can be reinitialized at a time. DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` }
func NewInitializeDisksRequest ¶
func NewInitializeDisksRequest() (request *InitializeDisksRequest)
func (*InitializeDisksRequest) FromJsonString ¶
func (r *InitializeDisksRequest) 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 (*InitializeDisksRequest) ToJsonString ¶
func (r *InitializeDisksRequest) ToJsonString() string
type InitializeDisksRequestParams ¶
type InitializeDisksRequestParams struct { // ID list of the cloud disks to be reinitialized. Up to 20 disks can be reinitialized at a time. DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` }
Predefined struct for user
type InitializeDisksResponse ¶
type InitializeDisksResponse struct { *tchttp.BaseResponse Response *InitializeDisksResponseParams `json:"Response"` }
func NewInitializeDisksResponse ¶
func NewInitializeDisksResponse() (response *InitializeDisksResponse)
func (*InitializeDisksResponse) FromJsonString ¶
func (r *InitializeDisksResponse) 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 (*InitializeDisksResponse) ToJsonString ¶
func (r *InitializeDisksResponse) ToJsonString() string
type InitializeDisksResponseParams ¶
type InitializeDisksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InquirePriceModifyDiskBackupQuotaRequest ¶
type InquirePriceModifyDiskBackupQuotaRequest struct { *tchttp.BaseRequest // Cloud disk ID, which can be queried through the `DescribeDisks` API. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Cloud disk backup point quota after the modification, i.e., the number of backup points that a cloud disk can have. DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` }
func NewInquirePriceModifyDiskBackupQuotaRequest ¶
func NewInquirePriceModifyDiskBackupQuotaRequest() (request *InquirePriceModifyDiskBackupQuotaRequest)
func (*InquirePriceModifyDiskBackupQuotaRequest) FromJsonString ¶
func (r *InquirePriceModifyDiskBackupQuotaRequest) 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 (*InquirePriceModifyDiskBackupQuotaRequest) ToJsonString ¶
func (r *InquirePriceModifyDiskBackupQuotaRequest) ToJsonString() string
type InquirePriceModifyDiskBackupQuotaRequestParams ¶
type InquirePriceModifyDiskBackupQuotaRequestParams struct { // Cloud disk ID, which can be queried through the `DescribeDisks` API. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Cloud disk backup point quota after the modification, i.e., the number of backup points that a cloud disk can have. DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` }
Predefined struct for user
type InquirePriceModifyDiskBackupQuotaResponse ¶
type InquirePriceModifyDiskBackupQuotaResponse struct { *tchttp.BaseResponse Response *InquirePriceModifyDiskBackupQuotaResponseParams `json:"Response"` }
func NewInquirePriceModifyDiskBackupQuotaResponse ¶
func NewInquirePriceModifyDiskBackupQuotaResponse() (response *InquirePriceModifyDiskBackupQuotaResponse)
func (*InquirePriceModifyDiskBackupQuotaResponse) FromJsonString ¶
func (r *InquirePriceModifyDiskBackupQuotaResponse) 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 (*InquirePriceModifyDiskBackupQuotaResponse) ToJsonString ¶
func (r *InquirePriceModifyDiskBackupQuotaResponse) ToJsonString() string
type InquirePriceModifyDiskBackupQuotaResponseParams ¶
type InquirePriceModifyDiskBackupQuotaResponseParams struct { // Price of the cloud disk after its backup point quota is modified. DiskPrice *Price `json:"DiskPrice,omitnil" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" name:"DiskId"` // The extra throughput to purchase, in MB/s ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" 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 InquirePriceModifyDiskExtraPerformanceRequestParams ¶
type InquirePriceModifyDiskExtraPerformanceRequestParams struct { // 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,omitnil" name:"DiskId"` // The extra throughput to purchase, in MB/s ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" name:"ThroughputPerformance"` }
Predefined struct for user
type InquirePriceModifyDiskExtraPerformanceResponse ¶
type InquirePriceModifyDiskExtraPerformanceResponse struct { *tchttp.BaseResponse Response *InquirePriceModifyDiskExtraPerformanceResponseParams `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 InquirePriceModifyDiskExtraPerformanceResponseParams ¶
type InquirePriceModifyDiskExtraPerformanceResponseParams struct { // Price for purchasing the extra performance DiskPrice *Price `json:"DiskPrice,omitnil" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InquiryPriceCreateDisksRequest ¶
type InquiryPriceCreateDisksRequest struct { *tchttp.BaseRequest // Cloud disk billing mode. <br><li>POSTPAID_BY_HOUR: Hourly pay-as-you-go. DiskChargeType *string `json:"DiskChargeType,omitnil" name:"DiskChargeType"` // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD Cloud Storage<br><li>CLOUD_PREMIUM: Premium Cloud Disk<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: ulTra SSD. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // Cloud disk size in GB. For the value range, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // ID of the project to which the cloud disk belongs. ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // Number of cloud disks to be purchased. If it is not specified, `1` will be used by default. DiskCount *uint64 `json:"DiskCount,omitnil" name:"DiskCount"` // Extra performance in MB/s purchased for a cloud disk.<br>This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and ulTra SSD (CLOUD_TSSD). ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" name:"ThroughputPerformance"` // 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,omitnil" name:"DiskChargePrepaid"` // Specifies the cloud disk backup point quota. DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` }
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 InquiryPriceCreateDisksRequestParams ¶
type InquiryPriceCreateDisksRequestParams struct { // Cloud disk billing mode. <br><li>POSTPAID_BY_HOUR: Hourly pay-as-you-go. DiskChargeType *string `json:"DiskChargeType,omitnil" name:"DiskChargeType"` // Cloud disk media type. Valid values: <br><li>CLOUD_BASIC: HDD Cloud Storage<br><li>CLOUD_PREMIUM: Premium Cloud Disk<br><li>CLOUD_SSD: SSD<br><li>CLOUD_HSSD: Enhanced SSD<br><li>CLOUD_TSSD: ulTra SSD. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // Cloud disk size in GB. For the value range, see [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // ID of the project to which the cloud disk belongs. ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // Number of cloud disks to be purchased. If it is not specified, `1` will be used by default. DiskCount *uint64 `json:"DiskCount,omitnil" name:"DiskCount"` // Extra performance in MB/s purchased for a cloud disk.<br>This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and ulTra SSD (CLOUD_TSSD). ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" name:"ThroughputPerformance"` // 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,omitnil" name:"DiskChargePrepaid"` // Specifies the cloud disk backup point quota. DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` }
Predefined struct for user
type InquiryPriceCreateDisksResponse ¶
type InquiryPriceCreateDisksResponse struct { *tchttp.BaseResponse Response *InquiryPriceCreateDisksResponseParams `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 InquiryPriceCreateDisksResponseParams ¶
type InquiryPriceCreateDisksResponseParams struct { // Describes the price of newly purchased cloud disks. DiskPrice *Price `json:"DiskPrice,omitnil" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" 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,omitnil" name:"DiskSize"` // ID of project the cloud disk belongs to. If selected, it can only be used for authentication. ProjectId *uint64 `json:"ProjectId,omitnil" 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 InquiryPriceResizeDiskRequestParams ¶
type InquiryPriceResizeDiskRequestParams struct { // 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,omitnil" 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,omitnil" name:"DiskSize"` // ID of project the cloud disk belongs to. If selected, it can only be used for authentication. ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` }
Predefined struct for user
type InquiryPriceResizeDiskResponse ¶
type InquiryPriceResizeDiskResponse struct { *tchttp.BaseResponse Response *InquiryPriceResizeDiskResponseParams `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 InquiryPriceResizeDiskResponseParams ¶
type InquiryPriceResizeDiskResponseParams struct { // Describes the price of expanding the cloud disk. DiskPrice *PrepayPrice `json:"DiskPrice,omitnil" name:"DiskPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyAutoSnapshotPolicyAttributeRequest ¶
type ModifyAutoSnapshotPolicyAttributeRequest struct { *tchttp.BaseRequest // Scheduled snapshot policy ID. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" name:"AutoSnapshotPolicyId"` // Whether or not the scheduled snapshot policy is activated. FALSE: Not activated. TRUE: Activated. The default value is TRUE. IsActivated *bool `json:"IsActivated,omitnil" 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,omitnil" name:"IsPermanent"` // 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,omitnil" name:"AutoSnapshotPolicyName"` // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitnil" name:"Policy"` // Number of days to retain the snapshots created according to this scheduled snapshot policy. If this parameter is specified, `IsPermanent` cannot be specified as `TRUE`; otherwise, they will conflict with each other. RetentionDays *uint64 `json:"RetentionDays,omitnil" 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 ModifyAutoSnapshotPolicyAttributeRequestParams ¶
type ModifyAutoSnapshotPolicyAttributeRequestParams struct { // Scheduled snapshot policy ID. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" name:"AutoSnapshotPolicyId"` // Whether or not the scheduled snapshot policy is activated. FALSE: Not activated. TRUE: Activated. The default value is TRUE. IsActivated *bool `json:"IsActivated,omitnil" 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,omitnil" name:"IsPermanent"` // 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,omitnil" name:"AutoSnapshotPolicyName"` // The policy for executing the scheduled snapshot. Policy []*Policy `json:"Policy,omitnil" name:"Policy"` // Number of days to retain the snapshots created according to this scheduled snapshot policy. If this parameter is specified, `IsPermanent` cannot be specified as `TRUE`; otherwise, they will conflict with each other. RetentionDays *uint64 `json:"RetentionDays,omitnil" name:"RetentionDays"` }
Predefined struct for user
type ModifyAutoSnapshotPolicyAttributeResponse ¶
type ModifyAutoSnapshotPolicyAttributeResponse struct { *tchttp.BaseResponse Response *ModifyAutoSnapshotPolicyAttributeResponseParams `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 ModifyAutoSnapshotPolicyAttributeResponseParams ¶
type ModifyAutoSnapshotPolicyAttributeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" name:"DiskIds"` // Name of new cloud disk. DiskName *string `json:"DiskName,omitnil" 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,omitnil" name:"Portable"` // 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,omitnil" name:"ProjectId"` // 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,omitnil" 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,omitnil" name:"DiskType"` // Enable/disable disk bursting. BurstPerformanceOperation *string `json:"BurstPerformanceOperation,omitnil" name:"BurstPerformanceOperation"` }
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 ModifyDiskAttributesRequestParams ¶
type ModifyDiskAttributesRequestParams struct { // 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,omitnil" name:"DiskIds"` // Name of new cloud disk. DiskName *string `json:"DiskName,omitnil" 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,omitnil" name:"Portable"` // 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,omitnil" name:"ProjectId"` // 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,omitnil" 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,omitnil" name:"DiskType"` // Enable/disable disk bursting. BurstPerformanceOperation *string `json:"BurstPerformanceOperation,omitnil" name:"BurstPerformanceOperation"` }
Predefined struct for user
type ModifyDiskAttributesResponse ¶
type ModifyDiskAttributesResponse struct { *tchttp.BaseResponse Response *ModifyDiskAttributesResponseParams `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 ModifyDiskAttributesResponseParams ¶
type ModifyDiskAttributesResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyDiskBackupQuotaRequest ¶
type ModifyDiskBackupQuotaRequest struct { *tchttp.BaseRequest // Cloud disk ID. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Cloud disk backup point quota after the adjustment DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` }
func NewModifyDiskBackupQuotaRequest ¶
func NewModifyDiskBackupQuotaRequest() (request *ModifyDiskBackupQuotaRequest)
func (*ModifyDiskBackupQuotaRequest) FromJsonString ¶
func (r *ModifyDiskBackupQuotaRequest) 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 (*ModifyDiskBackupQuotaRequest) ToJsonString ¶
func (r *ModifyDiskBackupQuotaRequest) ToJsonString() string
type ModifyDiskBackupQuotaRequestParams ¶
type ModifyDiskBackupQuotaRequestParams struct { // Cloud disk ID. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // Cloud disk backup point quota after the adjustment DiskBackupQuota *uint64 `json:"DiskBackupQuota,omitnil" name:"DiskBackupQuota"` }
Predefined struct for user
type ModifyDiskBackupQuotaResponse ¶
type ModifyDiskBackupQuotaResponse struct { *tchttp.BaseResponse Response *ModifyDiskBackupQuotaResponseParams `json:"Response"` }
func NewModifyDiskBackupQuotaResponse ¶
func NewModifyDiskBackupQuotaResponse() (response *ModifyDiskBackupQuotaResponse)
func (*ModifyDiskBackupQuotaResponse) FromJsonString ¶
func (r *ModifyDiskBackupQuotaResponse) 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 (*ModifyDiskBackupQuotaResponse) ToJsonString ¶
func (r *ModifyDiskBackupQuotaResponse) ToJsonString() string
type ModifyDiskBackupQuotaResponseParams ¶
type ModifyDiskBackupQuotaResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" name:"DiskId"` // The extra throughput to purchase, in MB/s ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" 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 ModifyDiskExtraPerformanceRequestParams ¶
type ModifyDiskExtraPerformanceRequestParams struct { // 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,omitnil" name:"DiskId"` // The extra throughput to purchase, in MB/s ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil" name:"ThroughputPerformance"` }
Predefined struct for user
type ModifyDiskExtraPerformanceResponse ¶
type ModifyDiskExtraPerformanceResponse struct { *tchttp.BaseResponse Response *ModifyDiskExtraPerformanceResponseParams `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 ModifyDiskExtraPerformanceResponseParams ¶
type ModifyDiskExtraPerformanceResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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,omitnil" name:"SnapshotId"` // Name of new snapshot. Maximum length is 60 bytes. SnapshotName *string `json:"SnapshotName,omitnil" name:"SnapshotName"` // Snapshot retention mode. Valid values: `FALSE`: non-permanent retention; `TRUE`: permanent retention. IsPermanent *bool `json:"IsPermanent,omitnil" 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,omitnil" 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 ModifySnapshotAttributeRequestParams ¶
type ModifySnapshotAttributeRequestParams struct { // 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,omitnil" name:"SnapshotId"` // Name of new snapshot. Maximum length is 60 bytes. SnapshotName *string `json:"SnapshotName,omitnil" name:"SnapshotName"` // Snapshot retention mode. Valid values: `FALSE`: non-permanent retention; `TRUE`: permanent retention. IsPermanent *bool `json:"IsPermanent,omitnil" 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,omitnil" name:"Deadline"` }
Predefined struct for user
type ModifySnapshotAttributeResponse ¶
type ModifySnapshotAttributeResponse struct { *tchttp.BaseResponse Response *ModifySnapshotAttributeResponseParams `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 ModifySnapshotAttributeResponseParams ¶
type ModifySnapshotAttributeResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifySnapshotsSharePermissionRequest ¶
type ModifySnapshotsSharePermissionRequest struct { string `json:"AccountIds,omitnil" name:"AccountIds"` Permission *string `json:"Permission,omitnil" name:"Permission"` SnapshotIds []*string `json:"SnapshotIds,omitnil" 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 ModifySnapshotsSharePermissionRequestParams ¶
type ModifySnapshotsSharePermissionRequestParams struct { string `json:"AccountIds,omitnil" name:"AccountIds"` Permission *string `json:"Permission,omitnil" name:"Permission"` SnapshotIds []*string `json:"SnapshotIds,omitnil" name:"SnapshotIds"` }AccountIds []*
Predefined struct for user
type ModifySnapshotsSharePermissionResponse ¶
type ModifySnapshotsSharePermissionResponse struct {}
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 ModifySnapshotsSharePermissionResponseParams ¶
type ModifySnapshotsSharePermissionResponseParams struct { string `json:"RequestId,omitnil" name:"RequestId"` }RequestId *
Predefined struct for user
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,omitnil" 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,omitnil" 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,omitnil" name:"ProjectId"` // Project name of the instance. // Note: This field may return null, indicating that no valid values can be obtained. ProjectName *string `json:"ProjectName,omitnil" name:"ProjectName"` // 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,omitnil" 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,omitnil" name:"CdcId"` // Dedicated cluster ID DedicatedClusterId *string `json:"DedicatedClusterId,omitnil" name:"DedicatedClusterId"` }
type Policy ¶
type Policy struct { // 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,omitnil" name:"Hour"` // 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,omitnil" name:"DayOfWeek"` // Specifies the dates of the month on which a scheduled snapshot will be triggered. Value range: [1, 31]. `1` to `31` indicate the specific dates of the month; for example, `5` indicates the 5th day of the month. Note: If you set a date that does not exist in some months such as 29, 30, and 31, these months will be skipped for scheduled snapshot creation. DayOfMonth []*uint64 `json:"DayOfMonth,omitnil" name:"DayOfMonth"` // Specifies the interval for creating scheduled snapshots in days. Value range: [1, 365]. For example, if it is set to `5`, scheduled snapshots will be created every 5 days. Note: If you choose to back up by day, the time for the first backup is theoretically the day when the backup policy is created. If the backup policy creation time on the current day is later than the set backup time, the first backup will be performed in the second backup cycle. IntervalDays *uint64 `json:"IntervalDays,omitnil" name:"IntervalDays"` }
type PrepayPrice ¶
type PrepayPrice struct { // Discounted price of a monthly-subscribed cloud disk or a snapshot, in USD. DiscountPrice *float64 `json:"DiscountPrice,omitnil" name:"DiscountPrice"` // 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,omitnil" name:"ChargeUnit"` // 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,omitnil" name:"UnitPriceHigh"` // Original payment of a monthly-subscribed cloud disk or a snapshot, in USD, with six decimal places. OriginalPriceHigh *string `json:"OriginalPriceHigh,omitnil" name:"OriginalPriceHigh"` // Original payment of a monthly-subscribed cloud disk or a snapshot, in USD. OriginalPrice *float64 `json:"OriginalPrice,omitnil" name:"OriginalPrice"` // 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,omitnil" name:"UnitPriceDiscount"` // 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,omitnil" name:"UnitPriceDiscountHigh"` // Discounted price of a monthly-subscribed cloud disk or a snapshot, in USD, with six decimal places. DiscountPriceHigh *string `json:"DiscountPriceHigh,omitnil" 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,omitnil" name:"UnitPrice"` // Detailed billing items // Note: This field may return null, indicating that no valid values can be obtained. DetailPrices []*DetailPrice `json:"DetailPrices,omitnil" name:"DetailPrices"` }
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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" 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 ResizeDiskRequestParams ¶
type ResizeDiskRequestParams struct { // 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,omitnil" 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,omitnil" name:"DiskSize"` }
Predefined struct for user
type ResizeDiskResponse ¶
type ResizeDiskResponse struct { *tchttp.BaseResponse Response *ResizeDiskResponseParams `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 ResizeDiskResponseParams ¶
type ResizeDiskResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type SharePermission ¶
type Snapshot ¶
type Snapshot struct { // Location of the snapshot. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // 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,omitnil" name:"CopyFromRemote"` // 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,omitnil" name:"SnapshotState"` // Whether it is a permanent snapshot. Value range: <br><li>true: Permanent snapshot <br><li>false: Non-permanent snapshot. IsPermanent *bool `json:"IsPermanent,omitnil" name:"IsPermanent"` // 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,omitnil" name:"SnapshotName"` // The expiration time of the snapshot. If the snapshot is permanently retained, this field is blank. DeadlineTime *string `json:"DeadlineTime,omitnil" name:"DeadlineTime"` // The progress percentage for snapshot creation. This field is always 100 after the snapshot is created successfully. Percent *uint64 `json:"Percent,omitnil" name:"Percent"` // List of images associated with snapshot. Images []*Image `json:"Images,omitnil" name:"Images"` ShareReference *uint64 `json:"ShareReference,omitnil" name:"ShareReference"` // Snapshot type. This value can currently be either PRIVATE_SNAPSHOT or SHARED_SNAPSHOT. SnapshotType *string `json:"SnapshotType,omitnil" name:"SnapshotType"` // Size of the cloud disk used to create this snapshot (in GB). DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // ID of the cloud disk used to create this snapshot. DiskId *string `json:"DiskId,omitnil" name:"DiskId"` // The destination region to which the snapshot is being replicated. Default value is [ ]. CopyingToRegions []*string `json:"CopyingToRegions,omitnil" name:"CopyingToRegions"` // Whether the snapshot is created from an encrypted disk. Value range: <br><li>true: Yes <br><li>false: No. Encrypt *bool `json:"Encrypt,omitnil" name:"Encrypt"` // Creation time of the snapshot. CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Number of images associated with snapshot. ImageCount *uint64 `json:"ImageCount,omitnil" name:"ImageCount"` // 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,omitnil" name:"DiskUsage"` // Snapshot ID. SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` TimeStartShare *string `json:"TimeStartShare,omitnil" name:"TimeStartShare"` // List of tags associated with the snapshot. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` }
type SnapshotCopyResult ¶
type SnapshotCopyResult struct { // ID of the snapshot replica SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` // Error message. It’s null if the request succeeds. Message *string `json:"Message,omitnil" name:"Message"` // Error code. It’s `Success` if the request succeeds. Code *string `json:"Code,omitnil" name:"Code"` // Destination region of the replication task DestinationRegion *string `json:"DestinationRegion,omitnil" name:"DestinationRegion"` }
type SnapshotOperationLog ¶
type SnapshotOperationLog struct { // Status of operation. Value range: // SUCCESS: Operation successful // FAILED: Operation failed // PROCESSING: Operation in process OperationState *string `json:"OperationState,omitnil" name:"OperationState"` // Start time StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // UIN of operator. // Note: This field may return null, indicating that no valid value was found. Operator *string `json:"Operator,omitnil" name:"Operator"` // ID of snapshot being operated. SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` // 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,omitnil" name:"Operation"` // End time EndTime *string `json:"EndTime,omitnil" name:"EndTime"` }
type TerminateDisksRequest ¶
type TerminateDisksRequest struct { *tchttp.BaseRequest // List of cloud disk IDs required to be returned. DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` // Delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk. `0`: No (default). `1`: Yes. To check whether a snapshot is permanently reserved, refer to the `IsPermanent` field returned by the `DescribeSnapshots` API. DeleteSnapshot *int64 `json:"DeleteSnapshot,omitnil" name:"DeleteSnapshot"` }
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 TerminateDisksRequestParams ¶
type TerminateDisksRequestParams struct { // List of cloud disk IDs required to be returned. DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` // Delete the associated non-permanently reserved snapshots upon deletion of the source cloud disk. `0`: No (default). `1`: Yes. To check whether a snapshot is permanently reserved, refer to the `IsPermanent` field returned by the `DescribeSnapshots` API. DeleteSnapshot *int64 `json:"DeleteSnapshot,omitnil" name:"DeleteSnapshot"` }
Predefined struct for user
type TerminateDisksResponse ¶
type TerminateDisksResponse struct { *tchttp.BaseResponse Response *TerminateDisksResponseParams `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 TerminateDisksResponseParams ¶
type TerminateDisksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UnbindAutoSnapshotPolicyRequest ¶
type UnbindAutoSnapshotPolicyRequest struct { *tchttp.BaseRequest // List of cloud disk IDs scheduled snapshot policy to be unbound from. DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` // ID of scheduled snapshot policy to be unbound. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" 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 UnbindAutoSnapshotPolicyRequestParams ¶
type UnbindAutoSnapshotPolicyRequestParams struct { // List of cloud disk IDs scheduled snapshot policy to be unbound from. DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` // ID of scheduled snapshot policy to be unbound. AutoSnapshotPolicyId *string `json:"AutoSnapshotPolicyId,omitnil" name:"AutoSnapshotPolicyId"` }
Predefined struct for user
type UnbindAutoSnapshotPolicyResponse ¶
type UnbindAutoSnapshotPolicyResponse struct { *tchttp.BaseResponse Response *UnbindAutoSnapshotPolicyResponseParams `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
type UnbindAutoSnapshotPolicyResponseParams ¶
type UnbindAutoSnapshotPolicyResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user