Skip to content

NX-API

NX-API configuration manages the NX-API (NX-OS Programmable Interface) settings on NX-OS devices. NX-API provides a RESTful interface for device management. Settings include HTTP/HTTPS ports, VRF binding, idle timeout, SSL/TLS certificate and cipher configuration, client certificate authentication, and SUDI (Secure Unique Device Identifier) support.

Diagram
NameTypeConstraintMandatoryDefault Value
nxapiClass[nxapi]No

NameTypeConstraintMandatoryDefault Value
http_portIntegermin: -1, max: 65535No
https_portIntegermin: -1, max: 65535No
vrfStringNo
idle_timeoutIntegermin: 1, max: 1440No
certificate_enableBooleantrue, falseNo
certificate_httpscrtStringNo
certificate_httpskeyStringNo
certificate_httpskey_passphraseStringNo
certificate_trustpointStringNo
ssl_protocolsStringNo
ssl_ciphers_weakBooleantrue, falseNo
client_cert_authChoiceoff, optional, strict, two-stepNo
sudiBooleantrue, falseNo

Example 1: Basic NX-API with HTTPS on management VRF

nxos:
devices:
- name: LEAF1
configuration:
feature:
nxapi: true
system:
nxapi:
https_port: 443
vrf: management
idle_timeout: 10

Example 2: NX-API with custom SSL certificate and restricted ciphers

nxos:
devices:
- name: SPINE1
configuration:
feature:
nxapi: true
system:
nxapi:
https_port: 443
vrf: management
idle_timeout: 30
certificate_enable: true
certificate_httpscrt: "bootflash:server.crt"
certificate_httpskey: "bootflash:server.key"
ssl_protocols: "TLSv1.2"
ssl_ciphers_weak: false

Example 3: NX-API with client certificate authentication

nxos:
devices:
- name: LEAF2
configuration:
feature:
nxapi: true
system:
nxapi:
https_port: 443
vrf: management
client_cert_auth: strict
certificate_trustpoint: my-trustpoint
sudi: true