IP Filtering Interceptor Addition (ssd api-management add (plan | api)-interceptor ip-filtering)

The ssd api-management add (plan | api)-interceptor ip-filtering command allows you to add an "IP Filtering" interceptor to an API or plan flow on Sensedia API Platform.

You can use the ssd api-management add (plan | api)-interceptor ip-filtering command or its shortened version ssd apim add (plan | api)-interceptor ip-filtering.

Usage

The ssd api-management add (plan | api)-interceptor ip-filtering command can be followed by flags with their corresponding arguments:

ssd api-management add (plan | api)-interceptor ip-filtering [flags]

If no flag is specified, the interactive mode will be activated.

# Adds an "IP Filtering" interceptor to the API or plan for all of its resources and methods.
$ ssd (api-management | apim) add api-interceptor ip-filtering --api-name "Open Banking" --api-version "1.0.0" --revision 1 --type allow --ips 127.0.0.0/8
$ ssd (api-management | apim) add plan-interceptor ip-filtering --plan-name "Plan Name" --type allow --ips 127.0.0.0/8

# Adds an "IP Filtering" interceptor interactively
$ ssd (api-management | apim) add api-interceptor ip-filtering
$ ssd (api-management | apim) add plan-interceptor ip-filtering

Available Flags

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

-f, --flow

string

API or plan flow to which the interceptor will be added (INBOUND or OUTBOUND).

-h, --help

Displays help for the command

--ips

string

An IP or CIDR address to be blocked or allowed

-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).

--type

string

The type of permission to be granted, which can be "allow" or "block"

Global Flags

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

Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]