Create Expected Switch
Create an Expected Switch to pre-register network switches expected to be discovered at a Site.
Org must have an Infrastructure Provider entity. User must have authorization role with PROVIDER_ADMIN suffix.
Alternatively, Tenant Admins with TargetedInstanceCreation capability can also create Expected Switches if they have an account with the Site’s Infrastructure Provider.
Authentication
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
Path parameters
Request
MAC address of the Expected Switch’s BMC (Baseboard Management Controller)
Required NVOS ethernet ports of the Expected Switch. Mark one entry primary to choose eth0; when none is marked, the first entry on a multi-port switch defaults to primary and a single-port switch is always its own primary. The deprecated nvosMacAddresses field is ignored even when both fields are supplied.
Username for accessing the Expected Switch’s BMC (no API length limit; the BMC’s username policy still applies)
Password for accessing the Expected Switch’s BMC (up to 255 characters; the BMC’s password policy still applies)
Optional BMC IP address (IPv4 or IPv6). When set, pre-allocates a reserved IP for the BMC. It must not be unspecified, multicast, or IPv4 limited broadcast.
User-defined key-value pairs for organizing and categorizing Expected Switches
Deprecated and ignored. This field never configures NVOS ports or primary selection, regardless of its contents. Use nvosInterfaces, including in replace-all entries. Supplying both fields is allowed; only nvosInterfaces takes effect.
Response
MAC address of the Expected Switch’s BMC (Baseboard Management Controller)
NVOS ethernet ports of the Expected Switch, with the primary (eth0) port flagged. Array order is not stable across inventory synchronization; identify ports by MAC and use isPrimary for selection.
Optional BMC IP address (IPv4 or IPv6). When set, pre-allocates a reserved IP for the BMC.
User-defined key-value pairs for organizing and categorizing Expected Switches
Deprecated flat NVOS MAC list retained for v2 compatibility. Use nvosInterfaces. Responses emit both fields, and this array contains the same MACs in the same order as nvosInterfaces.