5.5

Table Of Contents
visibility="PRIVATE">SYSTEM</Domain>
<Key>expiry</Key>
<TypedValue
xsi:type="MetadataDateTimeValue">
<Value>2012-05-01T00:00:00.000-04:00</Value>
</TypedValue>
</MetadataEntry>
<MetadataEntry>
<Key>rank</Key>
<TypedValue
xsi:type="MetadataNumberValue">
<Value>1</Value>
</TypedValue>
</MetadataEntry>
</Metadata>
</OrgRecord>
<OrgRecord
storedVMQuota="0"
numberOfVdcs="2"
...
href="https://vcloud.example.com/api/org/77"
numberOfRunningVMs="0">
<Metadata>
<MetadataEntry>
<Key>expiry</Key>
<TypedValue
xsi:type="MetadataDateTimeValue">
<Value>2012-06-01T00:00:00.000-04:00</Value>
</TypedValue>
</MetadataEntry>
<MetadataEntry>
<Key>rank</Key>
<TypedValue
xsi:type="MetadataNumberValue">
<Value>2</Value>
</TypedValue>
</MetadataEntry>
</Metadata>
</OrgRecord>
</QueryResultRecords>
To filter the query result set so that it contains only those organizations whose expiry date is later than May
1, 2012, add a filter for the expiry value, as this example shows.
Request:
GET https://vcloud.example.com/api/query?
type=organization&format=records&fields=metadata:rank,metadata@SYSTEM:expiry"
&filter="metadata@SYSTEM:expiry=lt=DATETIME:2012-05-01T00:00:00.000-04:00
Response:
<QueryResultRecords
xmlns="http://www.vmware.com/vcloud/v1.5"
total="3"
pageSize="25"
page="1"
...
vCloud API Programming Guide
304 VMware, Inc.