View Unmanaged VM Inventory Report (Deprecated)
Details
API | Details | ||
---|---|---|---|
Name | View Unmanaged VM Inventory Report | ||
Description | Displays the Unmanaged VM Inventory report for all cloud regions and accounts my tenant or for a specific sub-tenant. | ||
Method | GET | ||
URI | v2/tenants/tenantId/reports?reportType=reportType&startDate=start_date&endDate=end_date &cloudAccountId= cloudAccountId®ionId=regionId&page=page&size=size | ||
CloudCenter Release | Introduced in CloudCenter 4.6 Deprecated in CloudCenter 4.8.0. Use the View Managed and Unmanaged VMs API instead. | ||
Notes |
| ||
ESB Header | action: get.tenants.tenantId.reports actionparam: reportType=reportType&startDate=start_date&endDate=end_date& cloudAccountId= cloudAccountId®ionId=regionId&page=page&size=size |
Example 1 – My Tenant (Default)
curl -k -X GET -H "Accept: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/v2/tenants/1/reports?reportType= UNMANAGED_VM_INVENTORY_REPORT&startDate=1467488819620&endDate=1470080819621&page=0&size=50
Response
{ "summary": { "totalNumberOfVMs": 8, "totalNumberOfRunningVMs": 8 }, "details": [{ "nodeId": "412caa93-38e6-4ad1-8627-6ca1d60a02ed", "nodeStatus": "Running", "hostName": "cco", "publicIpAddress": "10.110.12.218", "privateIpAddress": "10.0.0.33 " }, { "nodeId ": "d3cdc409 - 6 a93 - 424e-905 c - 15506 a9194b6 ", "nodeStatus ": "Running ", "hostName ": "ccm1 ", "publicIpAddress ": "10.110.13.18", "privateIpAddress": "10.0.0.27" }, { "nodeId": "d1c6def0-5db9-4a5b-8634-7b94c0b02023", "nodeStatus": "Running", "hostName": "ccm46", "publicIpAddress": "10.110.13.170", "privateIpAddress": "10.0.0.24" }, { "nodeId": "b871ec1d-4959-4c1a-bbb9-e89593de26d9", "nodeStatus": "Running", "hostName": "chef", "publicIpAddress": "10.110 .13 .12 ", "privateIpAddress ": "10.0 .0 .21 " }, { "nodeId ": "4 cb3a0fc - efd8 - 4 b12 - b44e - 1 b954aec27e9 ", "nodeStatus ": "Running", "hostName": "dokku", "publicIpAddress": null, "privateIpAddress": "10.0.0.19" }, { "nodeId": "0894a243-5dd4-475d-9710-acdfac81cdd9", "nodeStatus": "Running", "hostName": "cco-4.5.0", "publicIpAddress": "10.110.13.185", "privateIpAddress": "10.0 .0 .13 " }, { "nodeId ": "90 ddae1d - 14 bd - 4e41 - b6ce - ca835c621046 ", "nodeStatus ": "Running ", "hostName ": "ccm - 4.5.0 ", "publicIpAddress ": "10.110 .13 .186 ", "privateIpAddress ": "10.0 .0 .11 " }, { "nodeId ": "04 d68b0e - 37 c2 - 4 a4d - a2ea - 4 c1bea590a71 ", "nodeStatus": "Running", "hostName": "ccm-chef", "publicIpAddress": "10.110.13.183", "privateIpAddress": "10.0 .0 .3 " }] }
Example 2 – Specific Tenant
curl -k -X GET -H "Accept: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/v2/tenants/1/reports?reportType=UNMANAGED_VM_INVENTORY_REPORT&startDate=1467500921101&endDate=1470092921102&cloudAccountId=150&page=0&size=50
Response
{ "summary": { "totalNumberOfVMs": 8, "totalNumberOfRunningVMs": 8 }, "details": [{ "nodeId": "412caa93-38e6-4ad1-8627-6ca1d60a02ed", "nodeStatus": "Running", "hostName": "cco", "publicIpAddress": "10.10.12.21", "privateIpAddress": "10.0.0.33 " }, { "nodeId ": "d3cdc409 - 6 a93 - 424e-905 c - 15506 a9194b6 ", "nodeStatus ": "Running ", "hostName ": "ccm1 ", "publicIpAddress ": "10.10.13.18", "privateIpAddress": "10.0.0.27" }, { "nodeId": "d1c6def0-5db9-4a5b-8634-7b94c0b02023", "nodeStatus": "Running", "hostName": "ccm46", "publicIpAddress": "10.10.13.17", "privateIpAddress": "10.0.0.24" }, { "nodeId": "b871ec1d-4959-4c1a-bbb9-e89593de26d9", "nodeStatus": "Running", "hostName": "chef", "publicIpAddress": "10.10.13.12 ", "privateIpAddress ": "10.0.0.21 " }, { "nodeId ": "4 cb3a0fc - efd8 - 4 b12 - b44e - 1 b954aec27e9 ", "nodeStatus ": "Running", "hostName": "dokku", "publicIpAddress": null, "privateIpAddress": "10.0.0.19" }, { "nodeId": "0894a243-5dd4-475d-9710-acdfac81cdd9", "nodeStatus": "Running", "hostName": "cco-4.5.0", "publicIpAddress": "10.10.13.19", "privateIpAddress": "10.0.0.13 " }, { "nodeId ": "90 ddae1d - 14 bd - 4e41 - b6ce - ca835c621046 ", "nodeStatus ": "Running ", "hostName ": "ccm - 4.5.0 ", "publicIpAddress ": "10.10.13.16 ", "privateIpAddress ": "10.0.0.11" }, { "nodeId ": "04 d68b0e - 37 c2 - 4 a4d - a2ea - 4 c1bea590a71 ", "nodeStatus": "Running", "hostName": "ccm-chef", "publicIpAddress": "10.10.13.13", "privateIpAddress": "10.0 .0 .3 " }] }
Request Attributes
tenantId
Required | ||||||||||||||||
reportType
Optional query parameter | ||||||||||||||||
regionId
Optional query parameter | ||||||||||||||||
cloudAccountId
Required | ||||||||||||||||
tenantId
Optional query parameter | ||||||||||||||||
startDate
Optional query parameter | ||||||||||||||||
endDate
Optional query parameter |
Response Attributes
summary
| |||||||||||||||
details
|