
# 使用APIG专享版的流量控制2.0策略实现API的精细流控操作流程
假设您对一个API有如下的流控诉求：
1. 默认API流量限制为100次/60秒，用户流量限制为5次/60秒。
2. 对请求头header字段为"Host=www.abc.com"的限制为10次/60秒。
3. 对于请求头test_header的值为userA的请求，限流20次/60秒；同时对于test_header的值为userB的请求，也限流20次/60秒。对于test_header为其他取值的请求，每个值独立限流10次/60秒。
4. 对请求方法为get且请求路径为"reqPath= /list"的限制为10次/60秒。
5. 对请求路径为"reqPath= /fc"的限制为10次/60秒。
6. 对特殊租户Special Renter的流量限制为5次/60秒。
您可以根据以下操作流程为API创建并绑定流量控制2.0策略。
![](https://support.huaweicloud.com/bestpractice-apig/zh-cn_image_0000002108895209.png)
1. [创建策略](https://support.huaweicloud.com/bestpractice-apig/apig-bp-0011.html#apig-bp-0011__zh-cn_topic_0000001369787614_li225419195173)
   填写流量控制2.0策略基本信息。
   
2. [配置基础流控](https://support.huaweicloud.com/bestpractice-apig/apig-bp-0011.html#apig-bp-0011__zh-cn_topic_0000001369787614_li7922341175618)
   配置基础流量控制。
   
3. [配置参数流控](https://support.huaweicloud.com/bestpractice-apig/apig-bp-0011.html#apig-bp-0011__zh-cn_topic_0000001369787614_li771867175913)
   开启参数流控配置开关，定义参数和规则，配置参数流量控制。
   
4. [配置特殊流控](https://support.huaweicloud.com/bestpractice-apig/apig-bp-0011.html#apig-bp-0011__zh-cn_topic_0000001369787614_li1443139102513)
   开启特殊流控配置开关，特殊凭据与特殊租户流量控制的使用场景。
   
5. [绑定API](https://support.huaweicloud.com/bestpractice-apig/apig-bp-0011.html#apig-bp-0011__zh-cn_topic_0000001369787614_li192341149173112)
   流量控制2.0策略绑定到API。
   
6. [验证](https://support.huaweicloud.com/bestpractice-apig/apig-bp-0011.html#apig-bp-0011__zh-cn_topic_0000001369787614_li118994317374)
   通过相应的请求URL调用API，验证流量控制2.0策略是否生效。
   
 
