GetSnapshotsChain【获取快照链】¶
获取快照链:指定快照ID,获取快照相关联资源(快照链)
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
obj_id | String | 快照的ID | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Array | JSON 格式的链上资源信息列表,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
created_at | String | 资源创建时间 |
type | String | 资源类型 |
id | String | 资源ID |
name | String | 资源的名称 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "GetSnapshotsChain",
"obj_id": "79f896d5-aa45-487e-a0ff-c5655982cb7a"
}
Example Response:
{
"message": "成功",
"code": 200,
"data": [
{
"created_at": "2015-02-04 17:06:48",
"type": "volume",
"id": "bfebb74e-6257-43f3-bae2-f50a4f350959",
"name": "disk"
},
{
"created_at": "2015-02-05 14:24:03",
"type": "itself",
"id": "79f896d5-aa45-487e-a0ff-c5655982cb7a",
"name": "snapshot"
}
]
}