Get Core Hosts
Get a collection of host scoped by organization
organization identifier
parent deployment identifier
parent cluster identifier
should the deleted resources be included in the results?
Indicates whether the response should correctly populate total_elements and total_pages properties. These properties are not always needed, and the calls are faster when calculate_totals=false. Don't rely on their values when passing calculate_totals=false. If you need correct values for total_pages and total_elements, pass calculate_totals=true.
Zero-based page index (0..N)
The size of the page to be returned
Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
OK
{
"content": [
{
"id": "string",
"name": "string",
"deployment_id": "string",
"cluster_id": "string",
"org_id": "string",
"state": {
"phase": "string",
"sub_phase": "string",
"display_name": "string",
"error_msg": "string",
"error_code": "string",
"provider": "string",
"internal_error_msg": "string",
"internal_error_code": "string"
},
"capacity": {
"cpu_mhz": 0,
"memory_bytes": 0,
"storage_bytes": 0
},
"creator": {
"user_name": "string",
"user_id": "string",
"client_id": "string",
"timestamp": "string"
},
"updater": {
"user_name": "string",
"user_id": "string",
"client_id": "string",
"timestamp": "string"
},
"internal_creator": {
"user_name": "string",
"user_id": "string",
"client_id": "string",
"timestamp": "string"
},
"deleted": false,
"resource_version": 0
}
],
"pageable": {
"page_size": 0,
"page_number": 0
},
"first": false,
"last": false,
"total_pages": 0,
"total_elements": 0,
"number_of_elements": 0,
"size": 0,
"number": 0
}
List of hosts
pageable
first
last
Total number of pages
Total number of elements
Number of elements returned in current page
Number of elements allowed in each page
Page number/offset (0-indexed)
Unauthorized
Forbidden
curl -H 'Authorization: <value>' https://{api_host}/api/inventory/{org_id}/core/hosts