Global PIP

Retrieves all Global PIP connectivity information in a JSON object.

Request URI

https://<CloudControl_hostname>/asc/api/rest/v1/resources/hostmenu

Request Method

GET

Request Header

Auth-Token

2D9F8F8F32BB860B3BE74FF0CE36AE88

Accept

application/json

cURL Example

$curl -b cookies -i -k https://<CloudControl_hostname>/asc/api/rest/v1/resources/hostmenu -H "Accept:application/json" -H "Auth-Token: 9C496BB6A447E8325203CE468BA2845F"

Success Response

Response Header

Date: Tue, 11 Jun 2019 08:28:50 GMT
Server: Apache-Coyote/1.1
X-FRAME-OPTIONS: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
Content-Type: application/json
Set-Cookie: JSESSIONID=9F7B8497EB60BEA5F118EFD368642422; Path=/asc/; Secure;HttpOnly
Transfer-Encoding: chunked

Response Body

{"status":true,"data":["{\"HostMenu\": {\"id\": \"com.hytrust.root\", \"text\": \"Appliance Root\",\"type\": \"Root\", \"children\": [{\"id\": \"2ddaf157-02c7-49d1-9500-549cdf01b7c1\", \"text\":\"vcsa-14.test.hytrust.com\", \"type\": \"VirtualCenter\", \"children\": [{\"id\":\"24b5c614-21f8-4792-83db-62a59507f264\", \"text\": \"DC-2\", \"type\": \"Datacenter\",\"children\": [{\"id\": \"56db8776-a0b0-4c19-8bc9-1eb4e16a30fa\", \"text\":\"esxi-17.test.hytrust.com\", \"type\": \"HostSystem\", \"children\": [], \"publishedIp\":\"10.222.73.77\", \"httpPort\": 80, \"httpsPort\": 443, \"sshPort\": 22, \"realIp\": \"10.222.73.17\",\"icon\": \"jstree-HostSystem\"}], \"publishedIp\": \"\", \"httpPort\": -1, \"httpsPort\": -1, \"sshPort\":-1, \"realIp\": null, \"icon\": \"jstree-Datacenter\"}], \"publishedIp\": \"\", \"httpPort\": -1,\"httpsPort\": -1, \"sshPort\": -1, \"realIp\": null, \"icon\": \"jstree-VirtualCenter\"}], \"publishedIp\":\"\", \"httpPort\": -1, \"httpsPort\": -1, \"sshPort\": -1, \"realIp\": null, \"icon\": \"jstree-Root\"}}"]}

Failure Response

Response Body

{"status":false,"error":{"code":"API0076","message":"No hosts to be returned"}}