Replace all Expected Power Shelves
Changed onReplace the complete Expected Power Shelf set for one Site. Entries omitted from the request are deleted, and entries in the request are created with new REST IDs. The expectedPowerShelves array may be empty to clear the Site's set.
Every entry must use the top-level siteId. BMC MAC addresses and shelf serial numbers must be unique within the replacement set.
Org must have an Infrastructure Provider entity. User must have authorization role with PROVIDER_ADMIN suffix.
Alternatively, Tenant Admins with TargetedInstanceCreation capability can also replace Expected Power Shelves 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-power-shelf/all
- AuthHTTP bearer
Request body
Example request
{
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"expectedPowerShelves": [
{
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"bmcMacAddress": "00:1A:2B:3C:4D:70",
"shelfSerialNumber": "SHELF-12345",
"defaultBmcUsername": "admin",
"defaultBmcPassword": "password123",
"labels": {
"rack": "A1"
}
}
]
}Response
Expected Power Shelves replaced successfully
Example response
[
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"bmcMacAddress": "00:1A:2B:3C:4D:5E",
"shelfSerialNumber": "SHELF-12345",
"bmcIpAddress": "192.168.1.100",
"rackId": "rack-01",
"manufacturer": "Delta",
"labels": {
"environment": "production",
"rack": "A1"
},
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z"
}
]Changes
- 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
- info
added the non-success response with the status
- info