GetVolumeSnapshots【获取快照列表】¶
获取快照信息列表
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Array | JSON 格式的快照信息列表,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
description | String | 快照的描述 |
size | Integer | 快照的大小 |
snapshot_id | String | 快照ID |
snapshot_name | String | 快照名称 |
status | String | 快照的状态 |
volume_name | String | 源云硬盘的名称 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/x-www-form-urlencoded
Form Data:
action: GetVolumeSnapshots
Example Response:
{
"message": "成功",
"code": 200,
"data": [
{
"status": "available",
"description": "test",
"volume_name": "disk",
"snapshot_name": "snapshot",
"snapshot_id": "79f896d5-aa45-487e-a0ff-c5655982cb7a",
"size": 11
}
]
}