DeleteInstanceSnapshot
Deletes an instance snapshot.
Try it now
Test
RAM authorization
Request syntax
DELETE /api/v2/instances/{InstanceId}/snapshots/{SnapshotId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. For information about how to obtain the instance ID, see ListInstances. |
dsw-730xxxxxxxxxx |
| SnapshotId |
string |
Yes |
The instance snapshot ID. For information about how to obtain the instance snapshot ID, see ListInstanceSnapshot. |
snp-05cexxxxxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The instance snapshot details. |
||
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Message |
string |
The returned message. |
"XXX" |
| Code |
string |
The status code. Valid values:
|
null |
| HttpStatusCode |
integer |
The HTTP status code. Valid values:
|
400 |
| InstanceId |
string |
The instance ID. |
dsw-730xxxxxxxxxx |
| SnapshotId |
string |
The instance snapshot ID. |
snp-05cexxxxxxxxx |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Success": true,
"Message": "\"XXX\"",
"Code": "null",
"HttpStatusCode": 400,
"InstanceId": "dsw-730xxxxxxxxxx",
"SnapshotId": "snp-05cexxxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.