Domain name for API request: cbs.intl.tencentcloudapi.com.
This API (BindAutoSnapshotPolicy) is used to bind the cloud disk to the specified scheduled snapshot policy.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: BindAutoSnapshotPolicy. |
| Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| AutoSnapshotPolicyId | Yes | String | Specifies the ID of the regular snapshot policy to bind. query via the DescribeAutoSnapshotPolicies api (https://www.tencentcloud.com/document/api/362/33556?from_cn_redirect=1). |
| DiskIds.N | No | Array of String | List of cloud disk IDs to be bound. Maximum of 80 cloud disks can be bound per request. |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to bind a scheduled snapshot policy to a single cloud disk.
https://cbs.intl.tencentcloudapi.com/?Action=BindAutoSnapshotPolicy
&AutoSnapshotPolicyId=asp-mrsrn243
&DiskIds.0=disk-dw0bbzws
&<Common request parameters>
{
"Response": {
"RequestId": "bda8bd1a-754d-d71b-8300-5a1fa45c237f"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InvalidAutoSnapshotPolicyId.NotFound | AutoSnapshotPolicyId entered does not exist. |
| InvalidDisk.AlreadyBound | Cloud disk is already bound to scheduled snapshot policy. |
| InvalidDisk.NotSupported | Indicates that the operation is not supported for the cloud disk. |
| InvalidDiskId.NotFound | The ‘DiskId’ entered does not exist. |
| InvalidParameterValue | Invalid parameter value. |
| InvalidParameterValue.BindDiskLimitExceeded | Number of labels bound to cloud disk exceeds the limit. |
| InvalidParameterValue.LimitExceeded | Number of parameter values exceeds the limit. |
| MissingParameter | Missing parameter. |
| ResourceNotFound.NotFound | The resource is not found. |
| ResourceUnavailable.NotSupported | The resource does not support this operation. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan