GET /api/v1/data/deviceInfo?deviceID={id}
Use this method to return general information about a specific device.
Authentication
Authentication with username and password is required.
Resource URI
GET https://{orchestrator_server_IP}/api/v1/data/deviceInfo?deviceID={id}
Query parameters
Parameters | Required / Optional | Description |
---|---|---|
deviceID={id} | Required | Returns general information about a device, specified by the ID To obtain the device IDs, use GET /api/v1/data/devices |
The following example returns general information about a specific device.
GET https://192.0.2.0/api/v1/data/deviceInfo?deviceID=
3015DE7E2B6011E881940A94EF5F5B65-C7199530FEDE4FE09540DFC3D75FC56C
Request body
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. If a query parameter is specified and the value of that parameter has no matches, the response body returns default values. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
404 | Not found | The resource cannot be found. A descriptive error message is returned in the response body. |
Response body
When the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).
Attributes | Type | Description | ||
---|---|---|---|---|
domainName | String | Domain name | ||
entitleSerialNumber | String | Entitled serial number | ||
groupNames | Array of strings | List of names of the groups to which the device belongs | ||
healthStatus | String | Health state of the device (translated). This can be one of the following values.
| ||
healthStatusKey | String | Health state key. This can be one of the following values.
| ||
hostname | String | Hostname | ||
ipv4Addresses | Array of strings | List of IPv4 addresses | ||
ipv6Addresses | Array of strings | List of IPv6 addresses | ||
location | Object | Information about the location of the device | ||
location | String | Location description | ||
lowestRackUnit | String | Lowest rack unit | ||
rack | String | Rack name | ||
room | String | Room name | ||
machineType | String | Device machine type | ||
manager | Object | Information about the resource manager that manages this device | ||
domainName | String | Fully qualified domain name | ||
fqdn | String | Full-qualified domain name | ||
hostname | String | Host name | ||
inContextHref | String | In context URI | ||
ipv4Addresses | Array of strings | IPv4 addresses | ||
ipv6Addresses | Array of strings | IPv6 addresses | ||
model | String | Device model | ||
patternComplianceStatus | String | Sever-configuration pattern compliance status (translated). This can be one of the following values.
| ||
patternComplianceStatusKey | String | Sever-configuration pattern compliance status key. This can be one of the following values.
| ||
patternID | String | Sever-configuration pattern ID | ||
patternName | String | Sever-configuration pattern name If a pattern is not assigned, this value is No Assignment. | ||
powerStatus | String | Power status (translated). This can be one of the following values.
| ||
powerStatusKey | String | Power status key. This can be one of the following values.
| ||
productName | String | Device product name | ||
serialNumber | String | Device serial number | ||
userDefinedName | String | User-defined name for the device | ||
uuid | String | Device UUID | ||
_links | Object | Device URI (see Links) |
The following example is returned if the request is successful.
{
"domainName": "labs.lenovo.com",
"entitleSerialNumber": null,
"groupNames": [],
"healthStatus": "Warning",
"healthStatusKey": "Warning",
"hostname": "XCC-7Y02-0123456789",
"ipv4Addresses": ["10.243.0.235","169.254.95.118"],
"ipv6Addresses": ["fd55:faaf:e1ab:2021:a94:efff:fe4f:5635","fe80::a94:efff:fe4f:5635"],
"location": {
"location": "elephante",
"lowestRackUnit": 33,
"rack": "Snufflaluffagus",
"room": "pacaderm"
},
"machineType": "7Y02",
"manager": {
"domainName": "",
"fqdn": null,
"hostname": "localhost",
"inContextHref": "/ui/index.html#/compDetails/Rack-Tower Server/8151C5148B4411E791329DD935F1CD89/",
"ipv4Addresses": ["10.243.17.164"],
"ipv6Addresses": ["0::0","fe80:0:0:0:215:5dff:fe0c:d156"]
},
"model": "RCZ000",
"patternComplianceStatus": "No Pattern Assigned",
"patternComplianceStatusKey": "NoPatternAssigned",
"patternID": null,
"patternName": "No Assignment",
"powerStatus": "On",
"powerStatusKey": "On",
"productName": "ThinkSystem SR570",
"serialNumber": "0123456789",
"userDefinedName": "",
"uuid": "8151C5148B4411E791329DD935F1CD89",
"_links": {
"rel": "self",
"uri": "/api/v1/data/devices/C7199530FEDE4FE09540DFC3D75FC56C"
}
}
Give documentation feedback