Create Expected Switch
Changed onCreate 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
- Base URLhttps://nico-rest-api.nico.svc.cluster.local
- URLhttps://nico-rest-api.nico.svc.cluster.local/v2/org/{org}/nico/expected-switch
- AuthHTTP bearer
Request body
Example request
{
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"bmcMacAddress": "00:1A:2B:3C:4D:5E",
"bmcIpAddress": "192.168.1.100",
"defaultBmcUsername": "admin",
"defaultBmcPassword": "password123",
"switchSerialNumber": "SWITCH-12345",
"nvOsUsername": "nvadmin",
"nvOsPassword": "nvpassword123",
"nvosInterfaces": [
{
"macAddress": "00:1A:2B:3C:4D:60",
"isPrimary": true
},
{
"macAddress": "00:1A:2B:3C:4D:61",
"isPrimary": false
}
],
"rackId": "rack-01",
"manufacturer": "NVIDIA",
"labels": {
"environment": "production",
"rack": "A1"
}
}Response
Created
Example response
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"bmcMacAddress": "00:1A:2B:3C:4D:5E",
"bmcIpAddress": "192.168.1.100",
"switchSerialNumber": "SWITCH-12345",
"nvosInterfaces": [
{
"macAddress": "00:1A:2B:3C:4D:60",
"isPrimary": true
},
{
"macAddress": "00:1A:2B:3C:4D:61",
"isPrimary": false
}
],
"nvosMacAddresses": [
"00:1A:2B:3C:4D:60",
"00:1A:2B:3C:4D:61"
],
"rackId": "rack-01",
"manufacturer": "NVIDIA",
"labels": {
"environment": "production",
"rack": "A1"
},
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z"
}Changes
- breaking
added the new required request property
- info
request property
deprecated - info
added the optional property
to the response with the status - info
response property
nvosMacAddressesdeprecated
- breaking
- info
removed the
nicoenum value from theresponse property for the response status - info
removed the
nicoenum value from theresponse property for the response status - info
removed the
nicoenum value from theresponse property for the response status
- info