Updated on 2025-11-13 GMT+08:00

Querying Details About a Snapshot

Function

This API is used to query details about a snapshot. Standard snapshots are available only in some regions.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

GET /v5/{project_id}/snapshots/{snapshot_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

The project ID. For details, see Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

snapshot_id

Yes

String

Definition

The snapshot ID.

You can call the Querying Details About EVS Snapshots API to obtain the snapshot ID.

Constraints

N/A

Range

N/A

Default Value

N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

The user token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Constraints

N/A

Range

N/A

Default Value

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

snapshot

SnapshotDetailV5 object

  
Table 4 SnapshotDetailV5

Parameter

Type

Description

id

String

Definition

The snapshot ID.

Range

N/A

name

String

Definition

The snapshot name.

Snapshots whose names started with the autobk_snapshot_ prefix are automatically created by the system during backup creation. Such snapshots cannot be deleted or used to roll back data.

Range

N/A

description

String

Definition

The snapshot description.

Range

N/A

created_at

String

Definition

The time when the snapshot was created.

Time format: UTC YYYY-MM-DDTHH:MM:SS.XXXXXX

Range

N/A

updated_at

String

Definition

The time when the snapshot was updated.

Range

N/A

volume_id

String

Definition

The ID of the snapshot's source disk.

Range

N/A

size

String

Definition

The snapshot size, in GiB.

Range

N/A

status

String

Definition

The snapshot status.

Range

For details, see EVS Snapshot Status.

project_id

String

Definition

The project ID.

Range

N/A

enterprise_project_id

String

Definition

The ID of the enterprise project to which the snapshot belongs.

Range

N/A

encrypted

Boolean

Definition

Whether the snapshot is encrypted.

Range

N/A

cmk_id

String

Definition

The ID of the encryption key used by the snapshot's source disk.

Range

N/A

category

String

Definition

The snapshot type.

Range

standard or flash

availability_zone

String

Definition

The AZ to which the snapshot belongs.

Range

N/A

tags

Map<String,String>

Definition

The snapshot tags.

Range

N/A

instant_access

Boolean

Definition

Whether Instant Snapshot Restore is enabled.

Range

true: enabled. Only SSD-backed disks support this function.

false: disabled. Snapshots with Instant Snapshot Restore disabled are standard snapshots.

retention_at

String

Definition

The snapshot retention duration.

Range

N/A

instant_access_retention_at

String

Definition

The retention duration of Instant Snapshot Restore. After the retention duration ends, Instant Snapshot Restore is automatically disabled for snapshots.

Range

By default, the value of this parameter is the same as that of retention_at.

incremental

Boolean

Definition

Whether the snapshot is an incremental snapshot.

Range

true or false

snapshot_type

String

Definition

The snapshot creation source.

Range

auto: automatically created

user: manually created

copy: replicated

progress

String

Definition

The snapshot creation progress, in percentage.

Range

N/A

encrypt_algorithm

String

Definition

The snapshot encryption algorithm.

Range

N/A

snapshot_chains

Array of SnapshotChains objects

Definition

The snapshot chain to which the snapshot belongs.

Range

N/A

snapshot_group_id

String

Definition

The ID of the snapshot consistency group to which the snapshot belongs.

Range

N/A

Table 5 SnapshotChains

Parameter

Type

Description

id

String

Definition

The snapshot chain ID.

Range

N/A

availability_zone

String

Definition

The AZ of the disk that the snapshot chain belongs to.

Range

N/A

snapshot_count

Integer

Definition

The number of snapshots on the snapshot chain.

Range

≥ 0

capacity

Integer

Definition

The snapshot chain storage usage.

Range

The value is greater than or equal to 0.

project_id

String

Definition

The project ID.

Range

N/A

volume_id

String

Definition

The ID of the disk that the snapshot chain belongs to.

Range

N/A

category

String

Definition

The snapshot chain type.

Range

The value can be standard or standard_copy.

created_at

String

Definition

The creation time.

Range

N/A

updated_at

String

Definition

The update time.

Range

N/A

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error

Error object

Definition

The error information returned if an error occurs.

Range

N/A

Table 7 Error

Parameter

Type

Description

code

String

Definition

The error code returned if an error occurs.

Range

For details about the error code, see Error Codes.

message

String

Definition

The error message returned if an error occurs.

Range

N/A

Example Requests

GET https://{endpoint}/v5/{project_id}/snapshots/{snapshot_id}

Example Responses

Status code: 200

OK

{
  "snapshot" : {
    "id" : "308c213b-5e09-478e-a772-c81b20749fea",
    "status" : "available",
    "project_id" : "7c08fb7726964bf5b70a1f55a4cd6017",
    "size" : 1,
    "name" : null,
    "description" : null,
    "cmk_id" : null,
    "encrypted" : false,
    "created_at" : "2023-07-03T08:53:13.373010",
    "updated_at" : "2023-07-03T08:53:13.578010",
    "volume_id" : "66016b8d-b850-4afb-b2a4-d5903e9ffb59",
    "enterprise_project_id" : "0",
    "category" : "flash",
    "availability_zone" : "az2.dc2",
    "tags" : { },
    "instant_access" : true,
    "instant_access_retention_at" : "2023-07-07T08:53:13.373010",
    "retention_at" : "2023-07-07T08:53:13.373010"
  }
}

Status code: 400

Bad Request

{
  "error" : {
    "message" : "XXXX",
    "code" : "EVS.XXX"
  }
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

Error Codes

See Error Codes.