GetLibrary
描述
获取照片库的信息,包括配额信息和自动清理逻辑删除配置
请求参数
参数名 | 类型 | 是否必须 | 说明 |
---|---|---|---|
Action | String | 是 | GetLibrary |
StoreName | String | 是 | PhotoStore的名称 |
LibraryId | String | 否 | 照片库标识。采用AK认证时必选,采用STS认证时可选。了解不同认证方式的区别。 |
请求示例
https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=GetLibrary
&StoreName=cloudphoto-regression-store
&<公共请求参数>
返回参数
参数名 | 类型 | 说明 |
---|---|---|
RequestId | String | 唯一标识本次请求的ID |
Code | String | 响应状态码,Success表示成功的响应 |
Message | String | 响应状态详细描述 |
Action | String | GetLibrary |
Library | Library | Library对象 |
Library
参数名 | 类型 | 说明 |
---|---|---|
AutoCleanConfig | AutoCleanConfig | AutoCleanConfig对象 |
Ctime | Long | 创建的时间戳,单位:毫秒 |
Quota | Quota | Quota对象 |
Quota
参数名 | 类型 | 说明 |
---|---|---|
ActiveSize | Long | 正常状态文件的大小,单位:字节 |
FacesCount | Integer | 照片库中的人脸个数 |
InactiveSize | Long | 逻辑删除状态文件的大小,单位:字节 |
PhotosCount | Integer | 照片库中的照片总数 |
TotalQuota | Long | 照片库总的存储配额,单位字节 |
TotalTrashQuota | Long | 照片库回收站总的存储配额,单位:字节 |
UsedQuota | Long | 照片库已使用的存储空间,单位:字节 |
VideosCount | Integer | 照片库中的视频个数 |
AutoCleanConfig
参数名 | 类型 | 说明 |
---|---|---|
AutoCleanDays | Integer | 自动清理逻辑删除照片的天数 |
AutoCleanEnabled | Boolean | 是否开启自动清理逻辑删除照片 |
返回示例
JSON格式
{
"Action":"GetLibrary",
"Message":"success",
"Library":{
"Quota":{
"TotalQuota":10737418240,
"ActiveSize":161231,
"FacesCount":8,
"InactiveSize":0,
"TotalTrashQuota":0,
"VideosCount":0,
"UsedQuota":161231,
"PhotosCount":16
},
"AutoCleanConfig":{
"AutoCleanDays":3,
"AutoCleanEnabled":false
},
"Ctime":1503523424000
},
"RequestId":"2D5782B0-B338-49F9-BC42-556AE92F85FF",
"Code":"Success"
}
XML格式
<?xml version="1.0" encoding="UTF-8"?>
<GetLibraryResponse>
<Action>GetLibrary</Action>
<Message>success</Message>
<Library>
<Quota>
<TotalQuota>10737418240</TotalQuota>
<ActiveSize>161231</ActiveSize>
<FacesCount>8</FacesCount>
<InactiveSize>0</InactiveSize>
<TotalTrashQuota>0</TotalTrashQuota>
<VideosCount>0</VideosCount>
<UsedQuota>161231</UsedQuota>
<PhotosCount>16</PhotosCount>
</Quota>
<AutoCleanConfig>
<AutoCleanDays>3</AutoCleanDays>
<AutoCleanEnabled>false</AutoCleanEnabled>
</AutoCleanConfig>
<Ctime>1503523424000</Ctime>
</Library>
<RequestId>27E9DDBF-D372-4794-B0E8-376DC23FEEA0</RequestId>
<Code>Success</Code>
</GetLibraryResponse>
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论