1. Home
  2. ...
  3. Interceptor addition (ssd api-management add api-interceptor)
  4. XSS Threat Protection Interceptor Addition (ssd api-management add api-interceptor xss-threat-protection)

XSS Threat Protection Interceptor Addition (ssd api-management add api-interceptor xss-threat-protection)

The `ssd api-management add api-interceptor xss-threat-protection` command allows you to add an "XSS Threat Protection" interceptor to an API flow on Sensedia API Platform.
NOTE

You can use the ssd api-management add api-interceptor xss-threat-protection command or its shortened version ssd apim add api-interceptor xss-threat-protection.

Usage

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:

Available Flags

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-namestringAPI name to which the interceptor will be added
-s, --revisionstringAPI revision to which the interceptor will be added
-v, --api-versionstringAPI version to which the interceptor will be added
Other flags
-d , --locations-default-regexApplies the Sensedia API Platform standard set of regular expressions at the given locations
-f, --flowstringAPI flow to which the interceptor will be added (INBOUND or OUTBOUND)
-h, --helpDisplays help for the command
-m, --methodstringMethod (operation) to which the interceptor will be added (Optional). E.g.: POST
-a, --pathstringOperation path to which the interceptor will be added (Optional). E.g.: /users
-p, --positionintPosition of the interceptor in the API flow
-r, --resourcestringResource name to which the interceptor will be added (Optional)
--regex-uri-pathstringApplies 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-paramstringApplies a user-entered regular expression to the query params. This parameter can be entered multiple times, so that the various expressions are supported
--regex-headerstringApplies a user-entered regular expression to the headers. This parameter can be entered multiple times, so that the various expressions are supported
--regex-bodystringApplies a user-entered regular expression to the body. This parameter can be entered multiple times, so that the various expressions are supported

For example:

Global Flags

Flag
Type
Description
-c, --configstringConfiguration file (default: $HOME/.sensedia/config.json)
--profilestringThe configuration profile you want to use (default: "default")
--verboseLists 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

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more