Use this API to get the corresponding device by an IP address or device name. If neither hostname nor IP address is set, return all devices in the current domain.
Method |
URL |
Required authentication |
GET |
/V1/CMDB/Devices |
Yes |
Name |
Description |
|---|---|
Token*required |
Place the token received from the API Log in to get an authentication token. |
hostname |
Enter hostname to find the corresponding device’s details. ▪If neither hostname or IP address is set, all devices of the current domain will be returned. ▪If both hostname and IP address are set, the hostname will take precedence. |
ip |
Enter an IP address to find the corresponding device’s details. ▪If neither hostname or IP address is set, all devices of the current domain will be returned. ▪If both hostname and IP address are set, the hostname will take precedence. |
Parameter |
Type |
Description |
Example |
|---|---|---|---|
devices |
list |
A list with of devices in a domain. |
{ |
id |
string |
The ID of a device. |
|
mgmtIP |
string |
The management IP of a device. |
|
hostname |
string |
The hostname of a device. |
|
deviceTypename |
string |
The device type of a device. |
|
statusCode |
integer |
The returned status code of executing the API. |
|
statusDescription |
string |
The explanation of the status code. |