查询用户配额信息
更新时间:2021-12-13
- 查询指定产品的指定地域用户配额信息。
请求结构
GET /v{version}/quota_center?type=QUOTA&serviceType=EIP®ion=bj HTTP/1.1
Host: quota-center.baidubce.com
ContentType: application/json
Authorization: bce auth v1/f81d3b34e48048fbb2634dc7882d7e21/2017 03 11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
请求头域
除公共头域外,无其他特殊头域
请求参数
名称 | 类型 | 是否必须 | 位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号,当前取值1。 |
type | String | 否 | Query参数 | info信息类型,包括QUOTA 和 WHITELIST,默认QUOTA |
serviceType | String | 是 | Query参数 | 产品类型,在productType基础上细分,如弹性公网分为 EIP、EIPGROUP、EIP_BP |
region | String | 是 | Query参数 | 该配额对应region |
name | String | 否 | Query参数 | 配额或白名单名称 |
marker | String | 否 | Query参数 | 批量获取列表的查询的起始位置 |
maxKeys | String | 否 | Query参数 | 每页包含的最大数量,最大数量通常不超过1000,缺省值为1000 |
返回状态码
成功返回200,失败返回见错误码
返回头域
除公共头域外,无其他特殊头域
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
marker | String | 分页编号 |
isTruncated | boolean | 分页大小 |
nextMarker | String | 数据总数 |
maxKeys | int | 排序方式 |
result | List <QuotaData> | 结果列表 |
QuotaData:
参数名称 | 类型 | 描述 |
---|---|---|
productType | String | 产品一级类型 |
serviceType | String | 产品类型,在productType基础上细分,如弹性公网分为 EIP、EIPGROUP、EIP_BP |
type | String | 类型,包括 QUOTA 和 WHITELIST |
region | String | 地域 |
name | String | 配额或白名单名称 |
description | String | 描述信息 |
value | String | 当前配额数据 |
used | String | 当前用量 |
请求示例
GET /v1/quota_center?type=QUOTA&serviceType=EIP®ion=bj HTTP/1.1
Host: quota-center.baidubce.com
Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
响应示例
HTTP/1.1 200 OK
x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
Date: Wed, 10 Apr 2016 08:26:52 GMT
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
Server: BWS
{
"result": [
{
"productType": "EIP",
"serviceType": "EIP",
"type": "QUOTA",
"region": "bj",
"name": "eipInstanceQuota",
"description": "个人用户单个地域可创建的EIP数量",
"value": "50",
"used": "1"
},
{
"productType": "EIP",
"serviceType": "EIP",
"type": "QUOTA",
"region": "bj",
"name": "eipEnterpriseQuota",
"description": "企业用户单个地域可创建的EIP数量",
"value": "130",
"used": "1"
},
{
"productType": "EIP",
"serviceType": "EIP",
"type": "QUOTA",
"region": "bj",
"name": "eipBandwidthQuotaByBand",
"description": "按带宽计费的单个EIP带宽峰值",
"value": "200000",
"used": null
},
{
"productType": "EIP",
"serviceType": "EIP",
"type": "QUOTA",
"region": "bj",
"name": "eipBandwidthQuotaByTraffic",
"description": "按流量计费的单个EIP带宽峰值",
"value": "200",
"used": null
},
{
"productType": "EIP",
"serviceType": "EIP",
"type": "QUOTA",
"region": "bj",
"name": "eipTotalBandwidthQuotaByBand",
"description": "单个地域所有按带宽计费EIP的累计购买带宽峰值总和",
"value": "10000",
"used": "0"
},
{
"productType": "EIP",
"serviceType": "EIP",
"type": "QUOTA",
"region": "bj",
"name": "eipTotalBandwidthQuotaByTraffic",
"description": "单个地域所有按流量计费EIP的累计购买带宽峰值总和",
"value": "5000",
"used": "1"
}
],
"marker": null,
"isTruncated": false,
"maxKeys": 1000
}