Tenants:List Hosts

Search (SHIFT+S)



List Hosts

GET /tenants/{id}/hosts
This call has been deprecated and will be removed in future versions

Lists the id and name for all the hosts that belong to the given tenant organization.

idthe URN of a ViPR tenant organization

Required Roles

This call has no restrictions.


Response Body

A list of hosts that belong to the tenant organization.

Field Description Type Notes
<hosts>
<host>     0-* Elements
<name> The name of the resource String
<id> ViPR ID of the related object URI
<link> A hyperlink to the related object
</host>      
</hosts>

Examples

Request
GET https://192.168.0.0:4443/tenants/urn:storageos:TenantOrg:4e39adf3-4b93-4c64-bfe8-b3e5f7ea4f74:/hosts HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK 
Content-Type: application/xml 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<hosts>
  <host>
    <id>urn:storageos:Host:6edcc2c7-ef44-40bd-939d-64a83b0665b0:</id>
    <link href="/compute/hosts/urn:storageos:Host:6edcc2c7-ef44-40bd-939d-64a83b0665b0:" rel="self"/>
    <name>host61C8lglap13512</name>
  </host>
  <host>
    <id>urn:storageos:Host:0ad4cab1-77b6-4919-bfb5-07e1fc3f3ac5:</id>
    <link href="/compute/hosts/urn:storageos:Host:0ad4cab1-77b6-4919-bfb5-07e1fc3f3ac5:" rel="self"/>
    <name>host61C8lglap13522</name>
  </host>
  <host>
    <id>urn:storageos:Host:faee8ecb-1ce5-4006-a51e-43c84b7e4fa1:</id>
    <link href="/compute/hosts/urn:storageos:Host:faee8ecb-1ce5-4006-a51e-43c84b7e4fa1:" rel="self"/>
    <name>host61C8lglap13521</name>
  </host>
  <host>
    <id>urn:storageos:Host:ea470e56-f7d8-49dc-8164-720e2b28df0c:</id>
    <link href="/compute/hosts/urn:storageos:Host:ea470e56-f7d8-49dc-8164-720e2b28df0c:" rel="self"/>
    <name>host61C8lglap13511</name>
  </host>
</hosts>
Notes: