Creates a snapshot.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DiskId | string | Yes | The ID of the cloud disk. | d-bp1s5fnvk4gn2tws0**** |
EnsRegionId | string | Yes | The ID of the edge node. | cn-shenzhen-3 |
SnapshotName | string | No | The name of the snapshot. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with | testSnapshotName |
Description | string | No | The description of the snapshot. The description must be 2 to 256 characters in length and cannot start with By default, this parameter is left empty. | testDescription |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"SnapShotId": "s-bp17441ohwka0yuh****",
"OrderId": "21969183547****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | OrderFailed | - | |
400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | Failed to pass the sales constraint verification when you create the resource. |
400 | SaleControlVerificationFailedStock | Inventory sales constraint verification failed, please re-match, or contact the product. | Inventory sales constraint verification failed, please re-select |
400 | SaleControlVerificationFailedRegion | The node sales constraint verification failed, please re-select or contact the product. | Node sales constraint verification failed, please re-select |
400 | NoPermission | Permission denied. | - |
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-10-17 | The Error code has changed | see changesets | ||||
|