Home > Configuration > Api > addapispec

addapispec

Use this method to adds a specfile to memory. After it is bound to a profile it can be used for validations.
In a high-availability configuration, the path to spec file must be the same on the primary and the secondary appliance.

Syntax



Parameters

name

Name for the spec. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the spec is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my spec" or 'my spec').
This is mandatory parameter.

file

Name of and, optionally, path to the api spec file. The spec file should be present on the appliance's hard-disk drive or solid-state drive. Storing a spec file in any location other than the default might cause inconsistency in a high availability setup. /nsconfig/apispec/ is the default path.
This is mandatory parameter.

type

Input format of the spec file. The three formats supported by the appliance are: PROTO OAS/Swagger GRAPHQL
Default value = NS_APISPEC_OAS.

skipvalidation

Disabling openapi spec validation while adding it
Default value = NO.

encrypted

Specify the encrypted API spec. Must be in NetScaler format

Return Value

Returns simpleResult

See Also