Replace all Expected Racks
Changed onReplace the full set of Expected Racks for a Site with the provided list. All existing Expected Racks for the Site that are not in the request body will be deleted, and any new Expected Racks in the request will be created. Existing Expected Racks with matching rackId values will be updated.
Every entry in expectedRacks must reference the same siteId as the top-level siteId. rackId values must be unique within the request. The expectedRacks array may be empty to clear all Expected Racks for the 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 replace Expected Racks 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-rack/all
- AuthHTTP bearer
Request body
Example request
{
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"expectedRacks": [
{
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"rackId": "rack-01",
"name": "Rack 01",
"description": "Production rack in row A",
"labels": {
"chassis.manufacturer": "NVIDIA",
"chassis.serial-number": "NVRK0001001",
"chassis.model": "GB200-NVL72",
"location.datacenter": "phx-dc01",
"location.position": "A1"
}
},
{
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"rackId": "rack-02",
"name": "Rack 02",
"description": "Production rack in row A",
"labels": {
"chassis.manufacturer": "NVIDIA",
"chassis.serial-number": "NVRK0001002",
"chassis.model": "GB200-NVL72",
"location.datacenter": "phx-dc01",
"location.position": "A2"
}
}
]
}Response
OK
Example response
[
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"rackId": "rack-01",
"siteId": "f97df110-f4de-492e-8849-4a6af68026b0",
"rackProfileId": "rp-standard-42u",
"name": "Rack 01",
"description": "Production rack in row A",
"labels": {
"chassis.manufacturer": "NVIDIA",
"chassis.serial-number": "NVRK0001001",
"chassis.model": "GB200-NVL72",
"location.region": "us-west-2",
"location.datacenter": "phx-dc01",
"location.room": "room-1",
"location.position": "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