Modifying System Resource Attributes
Function
This interface is used to modify the attributes of a specified system resource.
Syntax
Operation type: PATCH
URL: https://device_ip/redfish/v1/EdgeSystem
Request header:
X-Auth-Token: auth_value
Content-Type: header_type
Request message body:
{
"AssetTag": tag,
"DateTime": time,
"DateTimeLocalOffset": offset,
}
Parameters
Parameter |
Description |
Value |
---|---|---|
device_ip |
IP address for logging in to a device |
An IPv4 or IPv6 address |
auth_value |
Authentication parameter contained in the request |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
header_type |
Request format |
Supported formats include:
|
tag |
Customized asset tag |
The value can be null or a string of 1 to 48 characters. |
time |
Current system time |
Character string |
offset |
System time zone |
Character string |
Usage Guidelines
None
Example
Request:
PATCH https://10.10.10.10/redfish/v1/EdgeSystem
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Content-Type: application/json
Request message body:
{
"AssetTag": "JiaXianRoad_110"
}
Response:
{
"HostName ": "Atlas500",
"UUID": "421C1E9E-1DD2-11B2-986D-0018AC640A29",
"SerialNumber": "haha",
"AssetTag": "JianXianRoad_110",
"DateTime": "XXX",
"DateTimeLocalOffset": "XXX"
}
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
HostName |
Character string |
System host name |
UUID |
Character string |
ID of the system |
SerialNumber |
Character string |
Product SN |
AssetTag |
Character string |
User-defined electronic label |
DateTime |
Character string |
System time |
DateTimeLocalOffset |
Character string |
Time zone of the system |