查询服务使用量 - GetQuotaUsed
功能介绍
查询服务(云空间配额、OrgID用户配额)当前使用量。
授权信息
当前API调用无需身份策略权限。
URI
GET /koodrive/ose/v1/service/quotaUsed
请求参数
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| Authorization | 否 | String | 该字段存储的是Access Token。调用KooDrive的API使用Token认证,拥有Token就代表拥有某种权限,在调用API的时候将Token加到请求消息头中,从而通过身份认证,获得操作API的权限。Access Token的获取请参考对应的开发手册,格式参考:Bearer+{access_token} |
| X-Traceid | 否 | String | 消息日志跟踪标识(必须58位) |
| X-User-Id | 是 | String | 用户id,用于app鉴权 |
| X-Date | 是 | String | 日期,用于app鉴权 |
| Host | 是 | String | 地址,用于app鉴权 |
响应参数
状态码:200
| 参数 | 参数类型 | 描述 |
|---|---|---|
| code | Integer | 响应码 |
| msg | String | 响应消息 |
| data | data object | 服务当前使用量 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| spaceQuotaUsed | Integer | 云空间配额使用量 |
| userCount | Integer | OrgID已建用户数 |
| spaceCapacity | Integer | 租户订购空间总容量;单位:GB |
| userMaxCount | Integer | 租户订购的最大使用人数 |
| spaceUsed | Integer | 空间使用量 |
| deptSpaceQuota | Integer | 部门空间配额 |
| personalSpaceQuota | Integer | 个人空间配额 |
| groupSpaceQuota | Integer | 群组空间配额 |
| reservedSpaceQuota | Integer | 保留的空间配额 |
| deptSpaceUsed | Integer | 部门空间使用量 |
| deptSpaceQuotaUsed | Integer | 部门空间配额使用量 |
| personalSpaceUsed | Integer | 个人空间使用量 |
| personalSpaceQuotaUsed | Integer | 个人空间配额使用量 |
| groupSpaceUsed | Integer | 群组空间使用量 |
| groupSpaceQuotaUsed | Integer | 群组空间配额使用量 |
| packageDownloadExpires | Integer | 打包下载过期时间 |
| productType | String | 产品类型 |
请求示例
查询服务当前使用量。
GET /koodrive/ose/v1/service/quotaUsed Authorization:Bearer+10f88d***************4791e9f
响应示例
状态码:200
查询服务使用量响应
{
"data" : {
"spaceUsed" : 7753298,
"spaceCapacity" : 10240,
"deptSpaceQuota" : 6144,
"personalSpaceQuota" : 2048,
"groupSpaceQuota" : 2048,
"reservedSpaceQuota" : 0,
"spaceQuotaUsed" : 327,
"deptSpaceUsed" : 1975057,
"deptSpaceQuotaUsed" : 42,
"personalSpaceUsed" : 3933426,
"personalSpaceQuotaUsed" : 35,
"groupSpaceUsed" : 1844815,
"groupSpaceQuotaUsed" : 250,
"userCount" : 20,
"userMaxCount" : 100,
"packageDownloadExpires" : 7,
"productType" : "1"
},
"code" : 0,
"msg" : "success"
} 状态码
| 状态码 | 描述 |
|---|---|
| 200 | 查询服务使用量响应 |