流控信息
什么是流量控制
流量控制是指华为云对OpenAPI的调用频率进行控制的方式 。配额是指华为云产品为具体的 OpenAPI 设置的在一个时间窗口内能够调用接口的最大次数。
客户运营能力API流控信息
流量配额:10/1(s);API限速维度:源IP,API,ParentUid; 指每1秒钟,单个用户或单源IP最多允许请求该接口10次。
场景 |
子场景 |
接口名称 |
接口URL |
流量配额 |
配额维度 |
---|---|---|---|---|---|
管理产品 |
查询产品信息 |
GET /v2/products/service-types |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|
GET /v2/products/resource-types |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/products/service-resources |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/products/usage-types |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/bases/measurements |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/bases/conversions |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
查询商品价格 |
POST /v2/bills/ratings/on-demand-resources |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
||
POST /v2/bills/ratings/period-resources/subscribe-rate |
30/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
POST /v2/bills/ratings/period-resources/renew-rate |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
管理账户 |
- |
GET /v2/accounts/customer-accounts/balances |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|
管理交易 |
管理优惠券 |
GET /v2/accounts/partner-accounts/account-change-records |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|
管理包年/包月订单 |
GET /v2/orders/customer-orders |
20/1(s) |
API限速维度: 源IP,API,ParentUid |
||
GET /v2/orders/customer-orders/details/{order_id} |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/orders/customer-orders/order-discounts |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
POST /v3/orders/customer-orders/pay |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
PUT /v2/orders/customer-orders/cancel |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/orders/customer-orders/refund-orders |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
管理包年/包月资源 |
POST /v2/orders/subscriptions/resources/renew |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
||
POST /v2/orders/subscriptions/resources/renew |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
POST /v2/orders/subscriptions/resources/unsubscribe |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
POST /v2/orders/subscriptions/resources/autorenew/{resource_id} |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
DELETE /v2/orders/subscriptions/resources/autorenew/{resource_id} |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
POST /v2/orders/subscriptions/resources/to-on-demand |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
管理资源包 |
POST /v3/payments/free-resources/query |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
||
POST /v2/payments/free-resources/usages/details/query |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/bills/customer-bills/free-resources-usage-records |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
管理账单 |
管理账单 |
GET /v2/bills/customer-bills/monthly-sum |
25/1(s) |
API限速维度: 源IP,API,ParentUid |
|
POST /v2/bills/customer-bills/res-records/query |
30/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
GET /v2/bills/customer-bills/res-fee-records |
30/1(s) |
API限速维度: 源IP,API,ParentUid |
|||
管理成本 |
管理成本 |
POST /v4/costs/cost-analysed-bills/query |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|
管理企业 |
管理企业项目 |
POST /v2/enterprises/enterprise-projects/authority |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
|
管理发票 |
管理发票 |
GET /v1.0/{domain_id}/payments/intl-invoices |
10/1(s) |
API限速维度: 源IP,API,ParentUid |
流控失败常见问题及处理
接口报错样例:
{"status_code":429,"request_id":"7e6c1***********c610","error_code":"APIGW.0308","error_message":"The throttling threshold has been reached: policy user over ratelimit,limit:10,time:1 second","encoded_authorization_message":""}
处理方式:
华为云为客户运营能力API均提供默认的流量配额,用户可根据自己实际业务场景对额度进行升级。用户可以监视429状态码并构建重试机制。重试机制应遵循指数回退计划,以在必要时减少请求量。用户还可以在退避时间表中建立一些随机性,以避免严重的羊群效应。
调整配额
若流量配额不能满足您的业务实际诉求和并发场景,请您提交华为云工单,附上业务场景说明,华为云售后服务团队收到工单后将根据您的实际情况调整配额。