1.5

Table Of Contents
Table 9-1. Query Types (Continued)
Type Name Result Set User Admin
Syste
m Format
virtualCenter All vCenter servers registered to the system No No YES All
vm All virtual machines in your organization (or
in the system, if the query is run by a system
administrator)
YES YES No All
Examples
Simple typed query using 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"
numStoredVMs="0"
numDeployedVMs="0"
name="administrator"
ldapUser="false"
fullName="The Admin"
enabled="true"
deployedVMQuotaRank="-1"
vCloud API Programming Guide
204 VMware, Inc.