The following sections describe the commands to manage NX-API and descriptions of the elements of the request and the output
response.
NX-API Management Commands
You can enable and manage NX-API with the CLI commands listed in the following table.
Table 1: NX-API Management Commands
DescriptionNX-API Management Command
Enables NX-API.feature nxapi
Disables NX-API.no feature nxapi
Specifies a port.
nxapi {http|https} port port
Disables HTTP/HTTPS.no nxapi {http|https}
Displays port information.show nxapi
Specifies the upload of the following:
•
HTTPS certificate when httpscrt is specified.
•
HTTPS key when httpskey is specified.
nxapi certificate {httpscrt |httpskey}
Enables a certificate.
nxapi certificate enable
NX-API Request Elements
NX-API request elements are sent to the device in XML format or JSON format. The HTTP header of the request must identify the
content type of the request.
You use the NX-API elements that are listed in the following table to specify a CLI command:
Table 2: NX-API Request Elements
DescriptionNX-API Request Element
Specifies the NX-API version.version
6