描述
此操作会列出该用户拥有的全部Vault信息。
默认情况下,此操作返回的列表中最多会有10个Vault,列表按Vault ID升序排列。用户应始终检查返回体中的Marker字段,该字段可以在新的请求中作为获取下一个列表的起点;如果Marker为””(空串),则表示列表已全部获取完成。用户还可以通过设置limit参数来限制每次请求返回的Vault数量,但是limit不能超过10,如果超过10,按10处理。
请求参数
无
请求头部
无,其他公共请求头部参见2.4.1
请求体
无
返回头部
无,其他公共返回头部参见2.4.2
返回体
GET /vaults HTTP/1.1
Host: cn-hangzhou.oas.aliyuncs.com
Date: Tue, 25 Mar 2014 12:00:00 GMT
x-oas-version: 2014-01-01
Authorization: [SignatureValue]
HTTP/1.1 200 OK
x-oas-request-id: [RequestId]
Date: Tue, 25 Mar 2014 12:00:00 GMT
Content-Type: application/json
Content-Length: 497
{
"Marker": "",
"VaultList":
[{
"CreationDate": "Tue, 18 Mar 2014 22:06:47 GMT",
"LastInventoryDate": "Tue, 18 Mar 2014 12:00:00 GMT",
"NumberOfArchives": 2,
"SizeInBytes": 12334,
"VaultId": "79D2D8F33B7C287037286185863B6823",
"VaultName": "myvault1"
},
{
"CreationDate": "Tue, 18 Mar 2014 22:06:47 GMT ",
"LastInventoryDate": "Tue, 18 Mar 2014 12:00:00 GMT",
"NumberOfArchives": 0,
"SizeInBytes": 0,
"VaultId": "ADD2D8F33B7C287037286185863B68D3",
"VaultName": "myvault2"
},
{
"CreationDate": "Tue, 18 Mar 2014 22:06:47 GMT ",
"LastInventoryDate": "Tue, 18 Mar 2014 12:00:00 GMT",
"NumberOfArchives": 0,
"SizeInBytes": 0,
"VaultId": "FDD2D8F33B7C287037286185863B68D3",
"VaultName": "myvault3"
}]
}
GET /vaults?limit=2 HTTP/1.1
Host: cn-hangzhou.oas.aliyuncs.com
Date: Tue, 25 Mar 2014 12:00:00 GMT
x-oas-version: 2014-01-01
Authorization: [SignatureValue]
HTTP/1.1 200 OK
x-oas-request-id: [RequestId]
Date: Tue, 25 Mar 2014 12:00:00 GMT
Content-Type: application/json
Content-Length: 497
{
"Marker": "FDD2D8F33B7C287037286185863B68D3",
"VaultList":
[{
"CreationDate": "Tue, 18 Mar 2014 22:06:47 GMT",
"LastInventoryDate": "Tue, 18 Mar 2014 12:00:00 GMT",
"NumberOfArchives": 2,
"SizeInBytes": 12334,
"VaultId": "79D2D8F33B7C287037286185863B6823",
"VaultName": "myvault1"
},
{
"CreationDate": "Tue, 18 Mar 2014 22:06:47 GMT",
"LastInventoryDate": "Tue, 18 Mar 2014 12:00:00 GMT",
"NumberOfArchives": 0,
"SizeInBytes": 0,
"VaultId": "ADD2D8F33B7C287037286185863B68D3",
"VaultName": "myvault2"
}]
}
GET /vaults?limit=2&marker=FDD2D8F33B7C287037286185863B68D3
HTTP/1.1
Host: cn-hangzhou.oas.aliyuncs.com
Date: Tue, 25 Mar 2014 12:00:00 GMT
x-oas-version: 2014-01-01
Authorization: [SignatureValue]
HTTP/1.1 200 OK
x-oas-request-id: [RequestId]
Date: Tue, 25 Mar 2014 12:00:00 GMT
Content-Type: application/json
Content-Length: 497
{
"Marker": "",
"VaultList":
[{
"CreationDate": "Tue, 18 Mar 2014 22:06:47 GMT",
"LastInventoryDate": "Tue, 18 Mar 2014 12:00:00 GMT",
"NumberOfArchives": 0,
"SizeInBytes": 0,
"VaultId": "FDD2D8F33B7C287037286185863B68D3",
"VaultName": "myvault3"
}]
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。