更新时间:2024-10-24 GMT+08:00
分享

流控信息

什么是流量控制

流量控制是指华为云对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

查询产品的折扣和激励策略

GET /v2/products/incentive-discount-policies

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

管理客户

注册客户

校验客户注册信息

POST /v2/partners/sub-customers/users/check-identity

5/1(s)

API限速维度:

源IP,API,ParentUid

发送验证码

POST /v2/bases/verificationcode/send

10/1(s)

API限速维度:

源IP,API,ParentUid

创建客户

POST /v2/partners/sub-customers

10/1(s)

API限速维度:

源IP,API,ParentUid

实名认证

申请个人实名认证

POST /v2/customers/realname-auths/individual

10/1(s)

API限速维度:

源IP,API,ParentUid

申请企业实名认证

POST /v2/customers/realname-auths/enterprise

10/1(s)

API限速维度:

源IP,API,ParentUid

申请实名认证变更

PUT /v2/customers/realname-auths/enterprise

10/1(s)

API限速维度:

源IP,API,ParentUid

查询实名认证审核结果

GET /v2/customers/realname-auths/result

10/1(s)

API限速维度:

源IP,API,ParentUid

管理客户

查询客户列表

POST /v2/partners/sub-customers/query

10/1(s)

API限速维度:

源IP,API,ParentUid

查询客户新客标签

POST /v2/partners/sub-customers/new-customers-tags/batch-query

10/1(s)

API限速维度:

源IP,API,ParentUid

管理云经销商

查询云经销商

查询云经销商列表

POST /v2/partners/indirect-partners/query

10/1(s)

API限速维度:

源IP,API,ParentUid

管理云经销商账户

查询云经销商账户余额

GET /v2/accounts/partner-accounts/balances

20/1(s)

API限速维度:

源IP,API,ParentUid

向云经销商账户拨款

POST /v2/accounts/partner-accounts/indirect-partner-adjust

10/1(s)

API限速维度:

源IP,API,ParentUid

回收云经销商账户拨款

POST /v2/accounts/partner-accounts/indirect-partner-reclaim

10/1(s)

API限速维度:

源IP,API,ParentUid

查询调账记录

GET /v3/accounts/partner-accounts/adjust-records

10/1(s)

API限速维度:

源IP,API,ParentUid

管理云经销商优惠券

查询已发放的代金券额度

GET /v2/partners/issued-coupon-quotas

10/1(s)

API限速维度:

源IP,API,ParentUid

向云经销商发放代金券额度

POST /v2/partners/coupon-quotas/indirect-partner-adjust

10/1(s)

API限速维度:

源IP,API,ParentUid

回收云经销商的代金券额度

POST /v2/partners/coupon-quotas/indirect-partner-reclaim

10/1(s)

API限速维度:

源IP,API,ParentUid

查询代金券额度的发放回收记录

GET /v2/partners/coupon-quotas/records

10/1(s)

API限速维度:

源IP,API,ParentUid

管理交易

管理客户账户

查询伙伴账户余额

GET /v2/accounts/partner-accounts/balances

20/1(s)

API限速维度:

源IP,API,ParentUid

查询客户账户余额

POST /v2/accounts/customer-accounts/balances/batch-query

10/1(s)

API限速维度:

源IP,API,ParentUid

向客户账户拨款

POST /v2/accounts/partner-accounts/adjust-amount

10/1(s)

API限速维度:

源IP,API,ParentUid

回收客户账户余额

POST /v2/accounts/partner-accounts/reclaim

10/1(s)

API限速维度:

源IP,API,ParentUid

查询调账记录

GET /v3/accounts/partner-accounts/adjust-records

10/1(s)

API限速维度:

源IP,API,ParentUid

查询收支明细

GET /v2/accounts/partner-accounts/account-change-records

20/1(s)

API限速维度:

源IP,API,ParentUid

管理优惠券

查询优惠券列表

GET /v2/accounts/partner-accounts/account-change-records

10/1(s)

API限速维度:

源IP,API,ParentUid

查询优惠券额度

POST /v2/partners/coupon-quotas/query

10/1(s)

API限速维度:

源IP,API,ParentUid

发放优惠券

POST /v2/promotions/benefits/partner-coupons

10/1(s)

API限速维度:

源IP,API,ParentUid

回收优惠券

POST /v2/promotions/benefits/partner-coupons/reclaim

10/1(s)

API限速维度:

源IP,API,ParentUid

查询已发放的优惠券

GET /v2/promotions/benefits/partner-coupons

10/1(s)

API限速维度:

源IP,API,ParentUid

查询优惠券的发放回收记录

GET /v2/promotions/benefits/partner-coupons/records/query

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}

20/1(s)

API限速维度:

源IP,API,ParentUid

查询订单可用优惠券

GET /v2/orders/customer-orders/order-coupons

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/suscriptions/resources/query

30/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

管理按需资源

查询客户按需资源列表

POST /v2/partners/sub-customers/on-demand-resources/query

30/1(s)

API限速维度:

源IP,API,ParentUid

管理账单

-

查询伙伴子客户消费记录

GET /v2/bills/subcustomer-bills/res-fee-records

30/1(s)

API限速维度:

源IP,API,ParentUid

查询伙伴消费子客户列表

POST /v2/bills/subcustomer-bills/res-fee-records/sub-customers/query

10/1(s)

API限速维度:

源IP,API,ParentUid

查询客户月度消费账单

GET /v2/bills/partner-bills/subcustomer-bills/monthly-sum

30/1(s)

API限速维度:

源IP,API,ParentUid

管理配置信息

查询国家省市信息

查询省份信息

GET /v2/systems/configs/provinces

10/1(s)

API限速维度:

源IP,API,ParentUid

查询城市信息

GET /v2/systems/configs/cities

10/1(s)

API限速维度:

源IP,API,ParentUid

查询区县信息

GET /v2/systems/configs/counties

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状态码并构建重试机制。重试机制应遵循指数回退计划,以在必要时减少请求量。用户还可以在退避时间表中建立一些随机性,以避免严重的羊群效应。

调整配额

若流量配额不能满足您的业务实际诉求和并发场景,请您提交华为云工单,附上业务场景说明,华为云售后服务团队收到工单后将根据您的实际情况调整配额。

相关文档