security-req

This command specifies the security requirements that an API request must pass to access the API definition.

Syntax

security-req name

no security-req [name]

Parameters

name
Specifies the name of a security requirement.

Guidelines

The security-req command specifies the alternative security requirements to enforce for the API as a whole. The security requirement that you apply to your API definition is the base security declaration. By default, the security requirement is applied to all operations in the API. However, you can use the security command of the API Operation mode to specify operation-specific security requirements.

To specify multiple security requirements, run this command for each security requirement to add. When multiple security requirements are defined, an API request needs to pass only one of the security requirements to access the API.

To create a security requirement, use the Global api-sec-req command.

To delete a security requirement, use the no security-req command.