Get List of Organizations

To view the list of organizations, use the following request:

GET /organizations.xml
GET /organizations.json

XML Request Example 

curl -i -X GET http://onapp.test/organizations.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example 

curl -i -X GET http://onapp.test/organizations.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example 

<vcloud_organizations type="array">
  <vcloud_organization>
    <id type="integer">19</id>
    <user_group_id type="integer">705</user_group_id>
    <hypervisor_id type="integer">19</hypervisor_id>
    <label>MyNewOrg</label>
    <identifier>09822e9c-e43a-4a20-8892-6f465e79a9a0</identifier>
    <created_at type="dateTime">2017-10-03T17:16:23+03:00</created_at>
    <updated_at type="dateTime">2017-10-03T17:16:23+03:00</updated_at>
  </vcloud_organization>
  <vcloud_organization>...</vcloud_organization>
</vcloud_organizations>

Where:

id - the ID of the organization

user_group_id - ID of the user group with which the organization is associated

hypervisor_id - the ID of the VCD compute resource with which the new organization is to be associated

label - the name of the organization

identifier - the identifier of the organization

created_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format 

updated_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format