Method | URI | Description |
---|---|---|
GET | /v2/{tenant_id}/os-hosts/{host_name} | Shows information for a specified host. |
Normal response codes: 200
This table shows the URI parameters for the show host information request:
Name | Type | Description |
---|---|---|
| String | The ID for the tenant or account in a multi-tenancy cloud. |
| String | The name of the host of interest to you. |
This operation does not require a request body.
Example 3.217. Show host information: JSON response
{ "host": [ { "resource": { "cpu": 1, "disk_gb": 1028, "host": "5ca60c6792a1442f9471ff575443f94d", "memory_mb": 8192, "project": "(total)" } }, { "resource": { "cpu": 0, "disk_gb": 0, "host": "5ca60c6792a1442f9471ff575443f94d", "memory_mb": 512, "project": "(used_now)" } }, { "resource": { "cpu": 0, "disk_gb": 0, "host": "5ca60c6792a1442f9471ff575443f94d", "memory_mb": 0, "project": "(used_max)" } } ] }
Example 3.218. Show host information: XML response
<?xml version='1.0' encoding='UTF-8'?> <host> <resource> <project>(total)</project> <memory_mb>8192</memory_mb> <host>ecf3458ac6bf4a299cc2e0efa740f426</host> <cpu>1</cpu> <disk_gb>1028</disk_gb> </resource> <resource> <project>(used_now)</project> <memory_mb>512</memory_mb> <host>ecf3458ac6bf4a299cc2e0efa740f426</host> <cpu>0</cpu> <disk_gb>0</disk_gb> </resource> <resource> <project>(used_max)</project> <memory_mb>0</memory_mb> <host>ecf3458ac6bf4a299cc2e0efa740f426</host> <cpu>0</cpu> <disk_gb>0</disk_gb> </resource> </host>
This operation does not return a response body.