Retrieve all Expected Switches
Retrieve all Expected Switches.
Org must have an Infrastructure Provider entity. User must have `FORGE_PROVIDER_ADMIN` or `FORGE_PROVIDER_VIEWER` role.
Alternatively, Tenant Admins with `TargetedInstanceCreation` capability can also retrieve Expected Switches if they have an account with the Site's Infrastructure Provider (siteId query parameter is required for Tenants).
Authentication
AuthorizationBearer
```
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://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current
```
Path parameters
org
Query parameters
siteId
ID of the Site to filter Expected Switches by
includeRelation
Related entity to expand
Allowed values:
pageNumber
Page number for pagination query
pageSize
Page size for pagination query
orderBy
Ordering for pagination query
Response headers
X-Pagination
Pagination result in JSON format
Response
OK
id
Unique identifier for the Expected Switch
siteId
ID of the site the Expected Switch belongs to
bmcMacAddress
MAC address of the Expected Switch’s BMC (Baseboard Management Controller)
switchSerialNumber
Serial number of the Expected Switch
rackId
Optional rack identifier for this component
name
Display name for this component
manufacturer
Manufacturer of this component
model
Model of this component
description
Description of this component
firmwareVersion
Firmware version of this component
slotId
Slot ID within the rack
trayIdx
Tray index within the rack
hostId
Host ID within the tray
labels
User-defined key-value pairs for organizing and categorizing Expected Switches
created
ISO 8601 datetime when the Expected Switch was created
updated
ISO 8601 datetime when the Expected Switch was last updated
Errors
400
Bad Request Error
403
Forbidden Error