---
title: "Create Expected Switch"
method: POST
path: "/v2/org/{org}/nico/expected-switch"
tags: ["Expected Switch"]
---

# Create Expected Switch

`POST /v2/org/{org}/nico/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.

## Request body

- ExpectedSwitchCreateRequest — Request data to create a new Expected Switch. Note: BMC and NvOS credentials (username/password) are only accepted during creation and updates but are not returned in responses.
  - `siteId` string, uuid, required — ID of the site the Expected Switch belongs to
  - `bmcMacAddress` string, required — MAC address of the Expected Switch's BMC (Baseboard Management Controller)
  - `defaultBmcUsername` string, nullable — Username for accessing the Expected Switch's BMC
  - `defaultBmcPassword` string, nullable — Password for accessing the Expected Switch's BMC
  - `switchSerialNumber` string, required — Serial number of the Expected Switch
  - `nvOsUsername` string, nullable — NvOS username for the Expected Switch
  - `nvOsPassword` string, nullable — NvOS password for the Expected Switch
  - `nvosMacAddresses` string[] — MAC addresses of the Expected Switch's NvOS management interfaces
  - `rackId` string, nullable — Optional rack identifier for this component
  - `bmcIpAddress` string, nullable — Optional BMC IP address (IPv4 or IPv6). When set, pre-allocates a reserved IP for the BMC.
  - `name` string, nullable — Display name for this component
  - `manufacturer` string, nullable — Manufacturer of this component
  - `model` string, nullable — Model of this component
  - `description` string, nullable — Description of this component
  - `slotId` integer, nullable — Slot ID within the rack
  - `trayIdx` integer, nullable — Tray index within the rack
  - `hostId` integer, nullable — Host ID within the tray
  - `labels` Labels

## Response `201`

Created

- ExpectedSwitch — An Expected Switch represents a network switch that is expected to be discovered at a site, with hardware identifiers and metadata. Note: BMC and NvOS credentials (username/password) are only accepted during creation and updates but are not returned in responses.
  - `id` string, uuid — Unique identifier for the Expected Switch
  - `siteId` string, uuid — ID of the site the Expected Switch belongs to
  - `bmcMacAddress` string — MAC address of the Expected Switch's BMC (Baseboard Management Controller)
  - `switchSerialNumber` string — Serial number of the Expected Switch
  - `nvosMacAddresses` string[] — MAC addresses of the Expected Switch's NvOS management interfaces
  - `rackId` string, nullable — Optional rack identifier for this component
  - `bmcIpAddress` string, nullable — Optional BMC IP address (IPv4 or IPv6). When set, pre-allocates a reserved IP for the BMC.
  - `name` string, nullable — Display name for this component
  - `manufacturer` string, nullable — Manufacturer of this component
  - `model` string, nullable — Model of this component
  - `description` string, nullable — Description of this component
  - `slotId` integer, nullable — Slot ID within the rack
  - `trayIdx` integer, nullable — Tray index within the rack
  - `hostId` integer, nullable — Host ID within the tray
  - `labels` Labels
  - `created` string, date-time — ISO 8601 datetime when the Expected Switch was created
  - `updated` string, date-time — ISO 8601 datetime when the Expected Switch was last updated

## Other responses

- `400` — Error response when request data cannot be validated
- `403` — Error response when user is not authorized to call an endpoint or retrieve/modify objects

---

[API](https://skmtc.net/nvidia/apis/nvidia-infra-controller-rest-api.md) · [All operations](https://skmtc.net/nvidia/apis/nvidia-infra-controller-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nvidia/nvidia-infra-controller-rest-api/revisions/4c29fe59bd4e/schema)
