We Have Moved
The IBM Application Gateway has a new home - docs.verify.ibm.com/gateway
The documentation on this site will no longer be maintained after v21.02, please update your bookmarks.
Rate Limiting
Description
The gateway can apply rate limiting to incoming requests. This entry defines the rate limiting policies and where they will be applied. Refer to the documentation for information about how to author a rate-limiting policy.
This entry is an array and can be used to define multiple policies.
Properties
The following table(s) describe the configuration properties for this component:
Name | Type | Constraints | Description |
---|---|---|---|
paths | array[string] | The paths to which this rate limiting rule will be applied. The path supports wildcards. This entry is an array and can be used to specify multiple paths. Note that the policy will be duplicated and applied for each specified path, multiple paths do not share a common request bucket. To share a common request bucket for multiple paths, provide a single path pattern which matches all required paths. |
|
name | string | The name to be associated with this rate limiting rule. |
|
rule | string | The rate limiting rule. |
|
methods | array[string] | The methods to which this rate limiting rule will be applied. If the wildcard "*" is specified all methods will be matched. |
Example
policies:
rate_limiting:
- name: rate_policy_A
methods:
- GET
- POST
paths:
- "/test*"
- "/release*"
rule: |
ip: true
capacity: 3
interval: 60
reaction: TEMPLATE