配额中心支持产品信息查询
更新时间:2021-08-31
- 查询配额中心支持的产品信息。
- 查询结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定。
请求结构
Plain Text
1GET /v{version}/quota_center/info/product HTTP/1.1
2Host: quota-center.baidubce.com
3ContentType: application/json
4Authorization: bce auth v1/f81d3b34e48048fbb2634dc7882d7e21/2017 03 11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
5
6
请求头域
除公共头域外,无其他特殊头域
请求参数
名称 | 类型 | 是否必须 | 位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号,当前取值1。 |
productType | String | 否 | Query参数 | 产品一级类型 |
marker | String | 否 | Query参数 | 批量获取列表的查询的起始位置 |
maxKeys | String | 否 | Query参数 | 每页包含的最大数量,最大数量通常不超过1000,缺省值为1000 |
返回状态码
成功返回200,失败返回见错误码
返回头域
除公共头域外,无其他特殊头域
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
marker | String | 标记查询的起始位置 |
isTruncated | boolean | true表示后面还有数据,false表示已经是最后一页 |
nextMarker | String | 获取下一页所需要传递的marker值。当isTruncated为false时,该域不出现 |
maxKeys | int | 每页包含的最大数量 |
result | List <ProductInfo> | 结果列表 |
ProductInfo:
参数名称 | 类型 | 描述 |
---|---|---|
productType | String | 产品一级类型 |
serviceType | String | 产品类型,在productType基础上细分,如弹性公网分为 EIP、EIPGROUP、EIP_BP |
请求示例
Plain Text
1GET /v1/quota_center/info/product HTTP/1.1
2Host: quota-center.baidubce.com
3Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
响应示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7
8{
9 "result": [
10 {
11 "productType": "BLB",
12 "serviceType": "BLB"
13 },
14 {
15 "productType": "DNS",
16 "serviceType": "LD"
17 },
18 {
19 "productType": "EIP",
20 "serviceType": "EIP"
21 },
22 {
23 "productType": "EIP",
24 "serviceType": "EIPGROUP"
25 },
26 {
27 "productType": "EIP",
28 "serviceType": "EIP_BP"
29 },
30 {
31 "productType": "ET",
32 "serviceType": "ET"
33 },
34 {
35 "productType": "VPC",
36 "serviceType": "ACL"
37 },
38 {
39 "productType": "VPC",
40 "serviceType": "DCGW"
41 },
42 {
43 "productType": "VPC",
44 "serviceType": "ENDPOINT"
45 },
46 {
47 "productType": "VPC",
48 "serviceType": "ENI"
49 },
50 {
51 "productType": "VPC",
52 "serviceType": "FLOWLOG"
53 },
54 {
55 "productType": "VPC",
56 "serviceType": "IPV6"
57 },
58 {
59 "productType": "VPC",
60 "serviceType": "NAT"
61 },
62 {
63 "productType": "VPC",
64 "serviceType": "PEERCONN"
65 },
66 {
67 "productType": "VPC",
68 "serviceType": "ROUTE"
69 },
70 {
71 "productType": "VPC",
72 "serviceType": "SECURITYGROUP"
73 },
74 {
75 "productType": "VPC",
76 "serviceType": "SUBNET"
77 },
78 {
79 "productType": "VPC",
80 "serviceType": "VPC"
81 },
82 {
83 "productType": "VPC",
84 "serviceType": "VPN"
85 }
86 ],
87 "marker": null,
88 "isTruncated": false,
89 "maxKeys": 1000
90}