获取快照列表-DescribeUDiskSnapshot

获取UDisk快照

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域, 参见 地域与可用区列表Yes
Zonestring可用区, 参见 可用区列表No
Offsetint数据偏移量, 默认为0No
Limitint返回数据长度, 默认为20No
ProjectIdstring项目编号,未填写则为默认项目No
UDiskIdstringUDiskId,返回该盘所做快照No
SnapshotIdstring快照id,SnapshotId , UDiskId 同时传SnapshotId优先No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
DataSetarrayJSON 格式的Snapshot列表, 详细参见 UDiskSnapshotSetNo
TotalCountint根据过滤条件得到的总数No

UDiskSnapshotSet

Parameter nameTypeDescriptionRequired
SnapshotIdstring快照IdYes
Namestring快照名称Yes
UDiskIdstring快照的源UDisk的IdYes
UDiskNamestring快照的源UDisk的NameYes
CreateTimeint创建时间Yes
ExpiredTimeint过期时间No
Sizeint容量单位GBYes
Commentstring快照描述No
Statusstring快照状态,Normal:正常,Failed:失败,Creating:制作中Yes
IsUDiskAvailablebool对应磁盘是否处于可用状态No
Versionstring快照版本No
UHostIdstring对应磁盘制作快照时所挂载的主机No
DiskTypeint磁盘类型,0:数据盘,1:系统盘Yes

Request Example

https://api.auto-ai.com.cn/?Action=DescribeUDiskSnapshot
&Region=cn-east-01
&SnapshotId=736aac0a-0fcc-4ba7-b2d6-30661387e02c

Response Example

{
    "Action": "DescribeUDiskSnapshotResponse",
    "TotalCount": 1,
    "RetCode": 0,
    "DataSet": [
        {
            "Comment": "test",
            "ChargeType": "Year",
            "Name": "test",
            "UDiskName": "apidoctest",
            "ExpiredTime": 1402039500,
            "UDiskId": "2afcd36a-2a47-4d26-8514-caa3fc2dc6bf",
            "SnapshotId": "736aac0a-0fcc-4ba7-b2d6-30661387e02c",
            "CreateTime": 1402039500,
            "Size": "100",
            "Status": "Normal",
            "IsUDiskAvailable": true,
            "Version": "1.0",
            "DiskType": 0,
            "UHostId": "xxxx"
        }
    ]
}