API traffic visibility using API specification validation
Enable API traffic visibility with the API specification using the CLI
-
Create the API profileAt the command prompt, type:
add api profile <name> -
Enable the API visibilityAt the command prompt, type
set api profile <name> -apiVisibility <ENABLED/DISABLED> -
Bind the specification to the profileAt the command prompt, type:
bind -apiprofile <name> -apiSpec <name> -
Assign the profile to a virtual server At the command prompt, type:
set cs vserver <name> -apiprofile <name>
add api profile test_apiprofile1
set api profile test_apiprofile1 -apiVisibility enabled
bind api profile test_apiprofile1 -apispec testapi spec name
set cs verser vserver_test1 -apiprofile test_apiprofile1
Enable API traffic visibility without the API Specification using the CLI
-
Create the API profileAt the command prompt, type:
add api profile <name> -
Enable the API visibilityAt the command prompt, type:
set api profile <name> -apiVisibility <ENABLED/DISABLED> -
Assign the profile to virtual serverAt the command prompt, type:
set cs vserver <name> -apiprofile <name>
add api profile test_apiprofile
set api profile <test_apiprofile> -apiVisibility enabled
set cs verser vserver_test -apiprofile test_apiprofile
Enable API traffic visibility using GUI
-
Navigate to System > Profiles > API Profiles.
-
Click Add.
-
On the API Profiles page, enter a Name for the API profile.
-
Select API Visibility, and click OK.
-
To enable API traffic visibility, bind the API Specification file.
-
On the API Profiles page, under Advanced Settings, click API Spec.
-
In the API SPEC Binding section, click > and select the required API specification.
-
Click Bind and then click Close.
-
-
Click Done.