Rate Limit Interceptor Addition (ssd api-management add (plan | api)-interceptor rate-limit)
The ssd api-management add (plan | api)-interceptor rate-limit
command allows you to add a "Rate Limit" interceptor to an API or plan flow on Sensedia API Platform.
You can use the ssd api-management add (plan | api)-interceptor rate-limit command or its shortened version ssd apim add (plan | api)-interceptor rate-limit .
|
Usage
The ssd api-management add (plan | api)-interceptor rate-limit
command can be followed by flags with their corresponding arguments:
ssd api-management add (plan | api)-interceptor rate-limit [flags]
If no flag is specified, the interactive mode will be activated.
Below you will find usage examples in the direct mode:
# Adds a "Rate Limit" interceptor to all API or plan resources and methods $ ssd (api-management | apim) add api-interceptor rate-limit --api-name "Open Banking" --api-version "1.0.0" --revision 1 --calls 10 --interval HOUR $ ssd (api-management | apim) add api-interceptor rate-limit --api-name "Open Banking" --api-version "1.0.0" --revision 1 --calls 10 --interval HOUR # Selects the "Soft Limit" option and specifies its value as a percentage $ ssd (api-management | apim) add api-interceptor rate-limit --api-name "Open Banking" --api-version "1.0.0" --revision 1 --calls 10 --interval HOUR --soft --soft-value 40 $ ssd (api-management | apim) add api-interceptor rate-limit --api-name "Open Banking" --api-version "1.0.0" --revision 1 --calls 10 --interval HOUR --soft --soft-value 40 # Selects the "Quota Header" option $ ssd (api-management | apim) add api-interceptor rate-limit --api-name "Open Banking" --api-version "1.0.0" --revision 1 --calls 10 --quota-header $ ssd (api-management | apim) add api-interceptor rate-limit --api-name "Open Banking" --api-version "1.0.0" --revision 1 --calls 10 --quota-header # Adds a "Rate Limit" interceptor interactively $ ssd (api-management | apim) add plan-interceptor rate-limit $ ssd (api-management | apim) add api-interceptor rate-limit
Available Flags
The following flags can be used with the ssd (api-management | apim) add (plan | api)-interceptor rate-limit
command:
Flag |
Type |
Description |
Flags for APIs |
||
-n, --api-name |
string |
API name to which the interceptor will be added |
-s, --revision |
string |
API revision to which the interceptor will be added |
-v, --api-version |
string |
API version to which the interceptor will be added |
Flags for plans |
||
-n, --plan-name |
string |
Plan name to which the interceptor will be added |
Other flags |
||
--calls |
int |
Total number of accepted calls |
-f, --flow |
string |
API or plan flow to which the interceptor will be added (INBOUND or OUTBOUND) |
-h, --help |
Displays help for the command |
|
-i, --interval |
string |
Time interval to be considered. Available options: "SECOND", "MINUTE", "HOUR", "DAY", "MONTH" |
--quota-header |
Instructs the gateway to insert a header parameter informing the number of remaining calls |
|
--soft |
Selects the "Soft Limit" option |
|
--soft-value |
int |
Specifies an additional percentage of allowed calls |
-m, --method |
string |
Method (operation) to which the interceptor will be added (Optional). E.g.: POST |
-a, --path |
string |
Operation path to which the interceptor will be added (Optional). E.g.: /users |
-p, --position |
int |
Position of the interceptor in the API or plan flow |
-r, --resource |
string |
Resource name to which the interceptor will be added (Optional) |
Global Flags
Flag |
Type |
Description |
-c, --config |
string |
Configuration file (default: |
--profile |
string |
The configuration profile you want to use (default: "default") |
--verbose |
Lists all requests made by the command.
It is possible to store this information in a TXT file instead of displaying it on the terminal.
E.g.: |
Share your suggestions with us!
Click here and then [+ Submit idea]