NOTEYou can use the
ssd api-management add api-interceptor xss-threat-protectioncommand or its shortened versionssd apim add api-interceptor xss-threat-protection.
The ssd api-management add api-interceptor xss-threat-protection command can be followed by flags with their corresponding arguments:
If no flag is specified, the interactive mode will be activated.
Below you will find usage examples in the direct mode:
The following flags can be used with the ssd api-management add api-interceptor xss-threat-protection 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 |
| Other flags | ||
| -d , --locations-default-regex | Applies the Sensedia API Platform standard set of regular expressions at the given locations | |
| -f, --flow | string | API flow to which the interceptor will be added (INBOUND or OUTBOUND) |
| -h, --help | Displays help for the command | |
| -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 flow |
| -r, --resource | string | Resource name to which the interceptor will be added (Optional) |
| --regex-uri-path | string | Applies a user-entered regular expression to the URI path. This parameter can be entered multiple times, so that the various expressions are supported |
| --regex-query-param | string | Applies a user-entered regular expression to the query params. This parameter can be entered multiple times, so that the various expressions are supported |
| --regex-header | string | Applies a user-entered regular expression to the headers. This parameter can be entered multiple times, so that the various expressions are supported |
| --regex-body | string | Applies a user-entered regular expression to the body. This parameter can be entered multiple times, so that the various expressions are supported |
For example:
Flag | Type | Description |
|---|---|---|
| -c, --config | string | Configuration file (default: $HOME/.sensedia/config.json) |
| --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.: $ ssd (api-management | apim) list apis --verbose 2> log.txt |
We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more