5.1

Table Of Contents
<Link
rel="down"
type="application/vnd.vmware.vcloud.query.idrecords+xml"
name="organization"
href="https://vcloud.example.com/api/query?type=organization&amp;format=idrecords" />
<Link
rel="down"
type="application/vnd.vmware.vcloud.query.references+xml"
name="adminOrgNetwork"
href="https://vcloud.example.com/api/query?type=adminOrgNetwork&amp;format=references" />
...
</QueryList>
If you make a query whose result set you do not have rights to view, a response code of
ACCESS_TO_RESOURCE_IS_FORBIDDEN (403) is returned.
Example: Simple Typed Query
This simple typed query retrieves a list of all users in your organization and returns a response in the default
(records) format.
GET https://vcloud.example.com/api/query?type=user
Response:
<QueryResultRecords
xmlns="http://www.vmware.com/vcloud/v1.5"
total="3"
pageSize="25"
page="1"
name="user"
type="application/vnd.vmware.vcloud.query.records+xml"
href="https://vcloud.example.com/api/query?
type=user&amp;page=1&amp;pageSize=25&amp;format=records"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5
http://vcloud.example.com/api/v1.5/schema/master.xsd">
<Link
rel="alternate"
type="application/vnd.vmware.vcloud.query.references+xml"
href="https://vcloud.example.com/api/query?
type=user&amp;page=1&amp;pageSize=25&amp;format=references" />
<UserRecord
storedVMQuotaRank="-1"
storedVMQuota="0"
numStoredVMs="0"
numDeployedVMs="0"
name="bob"
ldapUser="false"
fullName=" "
enabled="true"
deployedVMQuotaRank="-1"
deployedVMQuota="0"
href="https://vcloud.example.com/api/admin/user/39" />
<UserRecord
storedVMQuotaRank="-1"
storedVMQuota="0"
Chapter 9 Using the Query Service
VMware, Inc. 249