您可以使用 ListGroupSnapshots 方法返回已创建的所有组快照的相关信息。
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
groupSnapshotID | 检索单个组快照 ID 的信息。 | 整型 | 无 | 否 |
volumes | 要查询的唯一卷 ID 数组。如果未指定此参数,将包括集群上的所有组快照。 | volumeID 数组 | 无 | 否 |
此方法的请求类似于以下示例:
{ "method": "ListGroupSnapshots", "params": { "volumes": [ 31, 49 ] }, "id": 1 }
此方法返回类似于以下示例的响应:
{ "groupSnapshots": [ { "status": "Done", "remoteStatuses": [ { "volumePairUUID": "abcdef-1234-5678-90ab-cdef0123", "remoteStatus": "Present" } ], "attributes": {}, "groupSnapshotID": 1, "createTime": "2014-06-17T17:35:05Z", "members": [ { "snapshotUUID": "abcdef-1234-5678-90ab-cdef0123", "expirationReason": "None", "virtualVolumeID": "abcdef-1234-5678-90ab-cdef0123", "groupID": 1, "createTime": "2014-06-17T17:35:05Z", "totalSize": 1, "snapMirrorLabel": "test1", "volumeName": "test1", "instanceCreateTime": "2014-06-17T17:35:05Z", "volumeID": 1, "checksum": "0x0", "attributes": {}, "instanceSnapshotUUID": "abcdef-1234-5678-90ab-cdef0123", "snapshotID": 1, "status": "Done", "groupSnapshotUUID": "abcdef-1234-5678-90ab-cdef0123", "expirationTime": "2014-06-17T17:35:05Z", "enableRemoteReplication": true, "name": "test1", "remoteStatuses": [ { "volumePairUUID": "abcdef-1234-5678-90ab-cdef0123", "remoteStatus": "Present" } ] } ], "enableRemoteReplication": true, "name": "test1", "groupSnapshotUUID": "abcdef-1234-5678-90ab-cdef0123" } ] }