3.26.2. Show host information

 
MethodURIDescription
GET/v2/{tenant_id}/os-hosts/{host_name}

Shows information for a specified host.

Normal response codes: 200

 3.26.2.1. Request

This table shows the URI parameters for the show host information request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or account in a multi-tenancy cloud.

{host_name}

​String

The name of the host of interest to you.

This operation does not require a request body.

 3.26.2.2. Response

 

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.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...