Skip to main content

GET – GPU EnvironmentMetrics properties

Use the GET method to retrieve properties of GPU EnvironmentMetrics resource for Redfish service. NOTE: This resource is only supported by Nvdia GPU in AMD-based systems.

Request URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/Processors/GPU{1-N}/EnvironmentMetrics

Request body

None

Response body

FieldTypeDescription
DescriptionString“This resource shall represent an environment metrics for a Redfish implementation.”
IdString“EnvironmentMetrics”
NameString“GPU{N} EnvironmentMetrics”
PowerWattsObjectExpanded
 DataSourceUriStringRedfish sensor resource path of “GPU{N}_Power” sensor
 ReadingNumberequals to “GPU{N}_Power” sensor reading.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
“Id”:” EnvironmentMetrics”,
“Name”:” GPU1 EnvironmentMetrics”
"@odata.type": "#EnvironmentMetrics.v1_2_0.EnvironmentMetrics",
"@odata.id": "/redfish/v1/Chassis/1/EnvironmentMetrics",
"@odata.etag": "\"3d6b38a53bed29662db\"",
"Description": " This resource shall represent an environment metrics for a Redfish implementation.",
“PowerWatts”: {
“DataSourceUri”:”/redfish/v1/Chassis/1/Sensors/GPU1_Power”,
“Reading”:60
}
}