ApplyAutoSnapshotPolicy
Description
call ApplyAutoSnapshotPolicy to apply automatic snapshot policy for one or more cloud disks. When the automatic snapshot policy has been applied to the target cloud disk, the ApplyAutoSnapshotPolicy can be called to change the automatic snapshot policy currently applied to the cloud disk.
Request Method
POST
Request Path
/apsara/route/Ecs/ApplyAutoSnapshotPolicy
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
autoSnapshotPolicyId | BODY | string | Yes | sp-bp12m37ccmxvbmi5**** | target automatic snapshot policy ID. |
diskIds | BODY | string | Yes | ["d-bp198f7xn673w2rw****", "d-bp12te2l9m0170wc****", "d-bp1btgnlb4lgdzoi****"] | ID of one or more cloud disks. The values are in JSON array format, and the disk IDs are separated by commas (,). |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}