Batch Update Expected Machines
Changed onUpdate multiple Expected Machines in a single request. All machines must belong to the same site.
All items in a batch update must provide the same set of fields, except that bmcIpAddress may be omitted or set to null to preserve that machine's current BMC IP address.
Org must have an Infrastructure Provider entity. User must have authorization role with PROVIDER_ADMIN suffix.
Infrastructure Provider must own the Expected Machines.
Alternatively, Tenant Admins with TargetedInstanceCreation capability can also update Expected Machines if they have an account with the Site's Infrastructure Provider.
Maximum batch size: 100 Expected Machines per request.
Request
- Base URLhttps://nico-rest-api.nico.svc.cluster.local
- URLhttps://nico-rest-api.nico.svc.cluster.local/v2/org/{org}/nico/expected-machine/batch
- AuthHTTP bearer
Request body
Example request
[
{
"defaultBmcUsername": "newadmin",
"defaultBmcPassword": "newpassword123",
"chassisSerialNumber": "CHASSIS-54321",
"skuId": "sku-xyz789",
"rackId": "rack-02",
"isDpfEnabled": false,
"interfaces": [
{
"identifier": {
"macAddress": "02:00:00:00:00:10"
},
"nicType": "CX9",
"fixedIp": "192.0.2.10"
}
],
"manufacturer": "Lenovo",
"labels": {
"environment": "staging",
"rack": "B2"
}
}
]Response
OK
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",
"chassisSerialNumber": "CHASSIS-12345",
"fallbackDPUSerialNumbers": [
"DPU-001",
"DPU-002"
],
"interfaces": [
{
"identifier": {
"macAddress": "02:00:00:00:00:10",
"astra": null
},
"macAddress": "02:00:00:00:00:10",
"nicType": "CX9",
"fixedIp": "192.0.2.10"
},
{
"identifier": {
"macAddress": null,
"astra": {
"physicalName": "C1-1-L1",
"logicalName": "eth_r0_p0"
}
},
"macAddress": null,
"nicType": "CX9",
"fixedIp": "192.0.2.11"
}
],
"skuId": "lenovo.sr650v2.cpu.1",
"machineId": "fm100ht4v4mce2qstjnl8970nnj3ie6ecek4mtjn27pea4kre5gsa49jg0g",
"rackId": "rack-01",
"isDpfEnabled": true,
"manufacturer": "Lenovo",
"labels": {
"environment": "production",
"rack": "A1"
},
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z"
}
]Changes
- breaking
the response property
///became nullable for the status - breaking
the response property
///became optional for the status - info
added the new optional request property
/// - info
added the new optional request property
/ - info
the request property
///became nullable - info
the request property
///became optional - info
request property
///deprecated - info
added the optional property
///to the response with the status - info
added the optional property
/to the response with the status - info
response property
items/interfaces/items/macAddressdeprecated
- breaking
- breaking
added
subschema #2to the///response propertyoneOflist for the response status - breaking
the
///response's property type changed fromarrayto no type for status
- breaking