Get Organization Details

To view the details of an organization, use the following request:

1
2
GET /organizations/:id.xml
GET /organizations/:id.json

XML Request Example

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

JSON Request Example

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

XML Output Example

1
2
3
4
5
6
7
8
9
<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>

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