API Guide

{
"id": "{Host ID}",
"href": "",
"objectType": "Host",
"hostip": "{Host IP}",
"hostName": "{Hostname or FQDN}",
"managementIP": "{iDRAC IP}",
"serviceTag": "{Host Service Tag}",
"model": "{Server Model Name}",
"systemId": "{System ID}"
}
]
}
,
For more information, see Response body on page 39.
Set vCenter context
Description: Sets the vCenter context on which user want to perform any operation.
Enter the vCenter ID received from /Services/ConsoleService/Consoles API.
The required vCenter user privilege for all other APIs are verified when you trigger the API.
Command or URL: /Services/ConsoleService/OperationalContext
Method: POST
Request Body:
{
"consoleId": "{vCenterID}",
"consoleUserCredential":
{
"username": "{vCenter username}",
"domain": "{domain}",
"password": "{vCenter password}"
}
}
For more information about request body parameters, see Request body on page 36.
Parameters: None
vCenter privileges required: None
HTTP response code:
Table 6. HTTP response code
Code Description
204 OK
400 Invalid parameters
401 Authorization failure
403 Failed to login to vCenter
429 Too many requests
500 Internal Server error / timeout
For OMIVV-Specific error codes, see OMIVV-Specific error codes on page 47.
Example Response: No content
Console management
13