DeleteInstanceSnapshot

Updated at:

Deletes an instance snapshot.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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

  • false

true

Message

string

The returned message.

"XXX"

Code

string

The status code. Valid values:

  • InternalError: An internal error occurred. All errors other than parameter validation errors are classified as internal errors.

  • ValidationError: A parameter validation error occurred.

null

HttpStatusCode

integer

The HTTP status code. Valid values:

  • 400

  • 404

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.