最近更新时间:2023-03-30
快照列表
名称 | 类型 | 是否必选 | 描述 | 示例 |
Action | String | 是 | 系统规定参数取值:DescribeSnapshots | DescribeSnapshots |
regionId | String | 是 | 区域id | cn-tianjin-yfb |
fsId | String | 否 | 源文件存储ID | nas-h58kb6z50xaw |
FsName | String | 否 | 文件存储名称 | faefaewfaewfwa |
Page | Integer | 否 | 当前页数 | 1 |
Size | Integer | 否 | 每页条数 | 10 |
SnapshotId | String | 否 | 快照ID | snap-h58kg0mvx204 |
SnapshotName | String | 否 | 快照名称 | string |
Status | String | 否 | 状态 | "Available" |
SystemType | String | 否 | 系统类型 | onestor |
名称 | 类型 | 描述 | 示例值 |
RequestId | String | 请求ID | f79fd132-eae6-455e-8542-c0db5296d69b |
Status | Boolean | 状态 | true |
Auth | Boolean | 用户认证 | true |
Code | String | 状态码 | Success |
Res | List | 用户信息列表 | { “Records”:[{}…], "Size": 10, "Pages": 1, "Current": 1, "Total": 2 } |
Message | String | 错误提示信息 (异常返回才有此项) | The specified parameter “Signature” is not valid |
示例 | 示例内容 |
请求示例 | https://api.unicloud.com/openapi/nas?SignatureVersion=2.0&Action=DescribeSnapshots&Format=json&SignatureNonce=16343456325226&Version=2020-07-30&AccessKeyId=6oPiV0WMJXhxiT65&SignatureMethod=HMAC-SHA1®ionId=cn-tianjin-yfb&Timestamp=2020-07-30T12%3A00%3A00Z&Signature=Iabo1PjSTEpuVGNBu%2FDK6kCztI0%3D |
正常返回示例 | { "Status": true, "Auth": true, "Code": "Success", "Res": { "Records": [ { "AzoneId": "cn-tianjin-yfb1", "SnapshotName": "string", "UpdateTime": 1673540886000, "ProductType": "NAS", "AutoType": "0", "SnapshotId": "snap-h58kg0mvx204", "Status": "Available", "regionId": "cn-tianjin-yfb", "Duration": 0, "UserId": "420925d6-bcc4-4537-904b-ff67a8d6ce4a", "Description": "string", "fsId": "nas-h58kb6z50xaw", "CreateTime": 1673540881000, "FsName": "stor_2" }, { "AzoneId": "cn-tianjin-yfb1", "SnapshotName": "snap", "UpdateTime": 1673540625000, "ProductType": "NAS", "AutoType": "0", "SnapshotId": "snap-h58kcuojdhgy", "Status": "Available", "regionId": "cn-tianjin-yfb", "Duration": 0, "UserId": "420925d6-bcc4-4537-904b-ff67a8d6ce4a", "Description": "", "fsId": "nas-h58kb6z50xaw", "CreateTime": 1673540620000, "FsName": "stor_2" }, { "AzoneId": "cn-tianjin-yfb1", "SnapshotName": "fddd", "UpdateTime": 1658451192000, "ProductType": "NAS", "AutoType": "0", "SnapshotId": "snap-f88mit4z2oww", "Status": "Available", "regionId": "cn-tianjin-yfb", "Duration": 0, "UserId": "420925d6-bcc4-4537-904b-ff67a8d6ce4a", "Description": "xffd", "fsId": "nas-f88mil8vmhkw", "CreateTime": 1658451185000, "FsName": "nas-cifs" } ], "Size": 10, "Pages": 1, "Current": 1, "Total": 3 }, "RequestId": "ca6f99f0-918c-4cc1-9007-2e70d03c9289" } |
异常返回示例 | { "Code": "InvalidParameter", "Message": "The specified parameter “Signature” is not valid." } |
HttpCode | 错误码 | 错误信息 | 错误描述 |
400 | InvalidParameter | "The specified parameter”Signature”is not valid." | 签名无效 |