推特 阿里云技术文档正文

GetLibrary_照片库接口_API手册_智能云相册

admin 阿里云技术文档 2020-02-11 226 0
阿里云服务器优惠

GetLibrary

描述

获取照片库的信息,包括配额信息和自动清理逻辑删除配置

请求参数

参数名 类型 是否必须 说明
Action String GetLibrary
StoreName String PhotoStore的名称
LibraryId String 照片库标识。采用AK认证时必选,采用STS认证时可选。了解不同认证方式的区别。

请求示例

  1. https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=GetLibrary
  2. &StoreName=cloudphoto-regression-store
  3. &<公共请求参数>

返回参数

参数名 类型 说明
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格式

  1. {
  2. "Action":"GetLibrary",
  3. "Message":"success",
  4. "Library":{
  5. "Quota":{
  6. "TotalQuota":10737418240,
  7. "ActiveSize":161231,
  8. "FacesCount":8,
  9. "InactiveSize":0,
  10. "TotalTrashQuota":0,
  11. "VideosCount":0,
  12. "UsedQuota":161231,
  13. "PhotosCount":16
  14. },
  15. "AutoCleanConfig":{
  16. "AutoCleanDays":3,
  17. "AutoCleanEnabled":false
  18. },
  19. "Ctime":1503523424000
  20. },
  21. "RequestId":"2D5782B0-B338-49F9-BC42-556AE92F85FF",
  22. "Code":"Success"
  23. }

XML格式

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <GetLibraryResponse>
  3. <Action>GetLibrary</Action>
  4. <Message>success</Message>
  5. <Library>
  6. <Quota>
  7. <TotalQuota>10737418240</TotalQuota>
  8. <ActiveSize>161231</ActiveSize>
  9. <FacesCount>8</FacesCount>
  10. <InactiveSize>0</InactiveSize>
  11. <TotalTrashQuota>0</TotalTrashQuota>
  12. <VideosCount>0</VideosCount>
  13. <UsedQuota>161231</UsedQuota>
  14. <PhotosCount>16</PhotosCount>
  15. </Quota>
  16. <AutoCleanConfig>
  17. <AutoCleanDays>3</AutoCleanDays>
  18. <AutoCleanEnabled>false</AutoCleanEnabled>
  19. </AutoCleanConfig>
  20. <Ctime>1503523424000</Ctime>
  21. </Library>
  22. <RequestId>27E9DDBF-D372-4794-B0E8-376DC23FEEA0</RequestId>
  23. <Code>Success</Code>
  24. </GetLibraryResponse>
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

评论

-----