PATCH – Update chassis asset tag and location LED and other location properties
Use the PATCH method to update properties in Chassis resource for Redfish service.
Request URL
PATCH https://<BMC_IPADDR>/redfish/v1/Chassis/1
Request body
Properties to be updated are shown as bellow, all of these properties can be changed individually.
Field | Type | Error Message ID | |||
---|---|---|---|---|---|
AssetTag | String | The user assigned asset tag for this chassis. Maximum string length of AssetTag is 32. | |||
IndicatorLED | String | The state of the indicator LED, used to identify the chassis. Available value is either “Lit” or “Blinking” or “Off”. | |||
Location | Object | The location of chassis. | |||
Contacts | Array | An array of contact information. | |||
Contacts[0] | Object | Expanded | |||
ContactName | String | Name of this contact. | |||
Placement | Object | A place within the addressed location. | |||
Rack | String | The name of a rack location within a row. | |||
RackOffset | Integer | The vertical location of the item, in terms of RackOffsetUnits. | |||
PostalAddress | Object | The postal address of the addressed Resource. | |||
Building | String | The name of the building. | |||
Location | String | The room designation or other additional information. | |||
Name | String | The name. | |||
Room | String | The name or number of the room. |
Response
The response returns same content as GET operation with updated properties.
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
Example
The following example is PATCH body.
{
"AssetTag" : "ABC-1-2"
}
After the PATCH operation runs successfully, querying the chassis resource returns below example JSON response:
{
"SerialNumber": "NARVIR073",
"@odata.id": "/redfish/v1/Chassis/1",
"IndicatorLED": "Lit",
"PowerState": "On",
"NetworkAdapters": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters"
},
"EnvironmentalClass": "A4",
"Oem": {
"Lenovo": {
"@odata.type": "#LenovoChassis.v1_0_0.LenovoChassisProperties",
"FruPartNumber": "01GT946",
"Sensors": {
"@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Sensors"
},
"ProductName": "ThinkSystem SR860",
"LEDs": {
"@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/LEDs"
},
"Slots": {
"@odata.id": "/redfish/v1/Chassis/1/Oem/Lenovo/Slots"
}
}
},
"ChassisType": "RackMount",
"Location": {
"PostalAddress": {
"Location": "",
"Room": "10F",
"Building": "ZJ",
"Name": "Narvi-SR860V2-1"
},
"Placement": {
"RackOffset": 48,
"Rack": "15C",
"RackOffsetUnits": "EIA_310"
},
"PartLocation": {},
"Contacts": [
{
"ContactName": ""
}
]
},
"Model": "7Z59CTO1WW",
"PCIeSlots": {
"@odata.id": "/redfish/v1/Chassis/1/PCIeSlots"
},
"Description": "This resource is used to represent a chassis or other physical enclosure for a Redfish implementation.",
"Thermal": {
"@odata.id": "/redfish/v1/Chassis/1/Thermal"
},
"Links": {
"Drives": [],
"CooledBy": [
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/2"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/4"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/5"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/6"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/7"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/8"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Thermal#/Fans/9"
}
],
"ComputerSystems": [
{
"@odata.id": "/redfish/v1/Systems/1"
}
],
"PCIeDevices": [
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/ob_1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot_13"
}
],
"PoweredBy": [
{
"@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/0"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/2"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/3"
}
],
"Storage": [],
"ManagersInChassis": [
{
"@odata.id": "/redfish/v1/Managers/1"
}
],
"Processors": [
{
"@odata.id": "/redfish/v1/Systems/1/Processors/1"
},
{
"@odata.id": "/redfish/v1/Systems/1/Processors/2"
}
],
"ManagedBy": [
{
"@odata.id": "/redfish/v1/Managers/1"
}
]
},
"AssetTag": "ABC-1-2",
"PCIeDevices": {
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices"
},
"Status": {
"State": "Enabled",
"Health": "Critical"
},
"Id": "1",
"Name": "Chassis",
"HeightMm": 177.8,
"Power": {
"@odata.id": "/redfish/v1/Chassis/1/Power"
},
"SKU": "7Z59CTO1WW",
"@odata.type": "#Chassis.v1_10_0.Chassis",
"PartNumber": "SB27A22721",
"Manufacturer": "Lenovo",
"@odata.etag": "\"fe6783781ffb0b49d7667e84ce6a624a\"",
"LogServices": {
"@odata.id": "/redfish/v1/Systems/1/LogServices"
},
"UUID": "55833BF4-5BBB-11E7-997F-0A94EF402C57"
}