Skip to main content

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

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
autoSnapshotPolicyIdBODYstringYessp-bp12m37ccmxvbmi5****target automatic snapshot policy ID.
diskIdsBODYstringYes["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 (,).
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}