edit-icon download-icon

Modify the settings of throttling policies

Last Updated: Dec 22, 2017

Description

For modifying the settings of custom throttling policies.

  • This function is intended for API activators.
  • The policy setting modification takes effect for bound APIs instantly.
  • This API can call up to 50 QPS for a single user.

Request parameters

Name Type Required? Description
Action String Yes Operation interface name, which is a required parameter; value: ModifyTrafficControl.
TrafficControlId String Yes ID of a specified throttling policy.
TrafficControlName String No Throttling policy name, which contains 4–50 characters including English letters (upper and lower cases), Chinese characters, numbers, and underscores. The policy name must not start with an underscore.
TrafficControlUnit String No Unit; values:
  • MINUTE: Minute
  • HOUR: Hour
  • DAY: Day
ApiDefault Integer No Default throttling value for each API.
UserDefault Integer No Default throttling value for each user.
AppDefault Integer No Default throttling value for each app.
Description String No Throttling policy description.

Return parameters

Name Type Description
RequestId String ID of the current request.

Examples

Request example

  1. https://apigateway.cn-qingdao.aliyuncs.com/?Action=ModifyTrafficControl
  2. &TrafficControlId=tf123456
  3. &TrafficControlName=throttling test
  4. &TrafficControlUnit=MINUTE
  5. &ApiDefault=10000
  6. &UserDefault=10000
  7. &AppDefault=10000
  8. &Description=throttling test description
  9. &<Public request parameters>

Response example

XML format

  1. <ModifyTrafficControlResponse>
  2. <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BZ004</RequestId>
  3. </ModifyTrafficControlResponse>

JSON format

  1. {
  2. "RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BZ004",
  3. }
Thank you! We've received your feedback.