API Guide

Table Of Contents
Get list of all hosts in vCenter
Description: Gets the list of all the hosts registered in a vCenter for the given OMIVV IP. All Dell EMC and OEM managed hosts
are listed.
Command or URL: /Services/ConsoleService/Consoles/{id}/Hosts?serviceTags={service Tags 1}&
serviceTags={service Tags 2}
Method: GET
Optional query Parameter: serviceTag
Authorization: Bearer authentication
vCenter privileges required: None
HTTP response code:
Table 9. HTTP response code
Code Description or response object
200 OK
401 Authorization failure
404 Resource not found
429 Too many requests
500 Internal Server error
For OMIVV-Specific error codes, see OMIVV-Specific error codes on page 112.
Example Response:
[
{
"id": "{Host ID}",
"href": "string",
"objectType": "string",
"serviceTag": "{Service Tag of host}"
}
]
Example response using query parameter to get details of only particular host using serviceTags:
[
{
"id": "{Host ID}",
"href": "https://{OMIVV IP}/Spectre/api/rest/v1/Services/ConsoleService/
Consoles/33/Hosts/{Host ID}",
"objectType": "Host",
"serviceTag": "{Service Tag of host}"
}
]
For more information, see Response body on page 96.
Get host details
Description: Gets details of a particular host in a vCenter. Use host ID as a input parameter.
Command or URL: /Services/ConsoleService/Consoles/{id}/Hosts/{hostid}
Method: GET
Parameters: None
Console management
43