Skip to main content

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.

FieldTypeError Message ID
AssetTagString

The user assigned asset tag for this chassis.

Maximum string length of AssetTag is 32.

IndicatorLEDString

The state of the indicator LED, used to identify the chassis.

Available value is either “Lit” or “Blinking” or “Off”.

LocationObject

The location of chassis.

 ContactsArray

An array of contact information.

  Contacts[0]Object

Expanded

   ContactNameString

Name of this contact.

 PlacementObject

A place within the addressed location.

  RackString

The name of a rack location within a row.

  RackOffsetInteger

The vertical location of the item, in terms of RackOffsetUnits.

 PostalAddressObject

The postal address of the addressed Resource.

  BuildingString

The name of the building.

  LocationString

The room designation or other additional information.

  NameString

The name.

   RoomString

The name or number of the room.

Response

The response returns same content as GET operation with updated properties.

Status code

HTTP Status CodeError Message ID
500InternalError

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:

{

"AssetTag": "ABC-1-2",

}