5.5

Table Of Contents
<Key>Foo</Key>
...
</MetadataEntry>
</Metadata>
See “Access Control for vCloud API Object Metadata,” on page 282 for more information about the Domain
element.
The type of a Value is expressed in the xsi:type attribute of the containing TypedValue element. Values have
various restrictions, based on their type.
Table 81. Metadata TypedValue Types
Type Name Restrictions on Value Size of Value
MetadataStringValue UTF-8 character set. Strings
longer than 1000 characters
cannot be searched for in a
query.
Depends on length of string.
MetadataNumberValue Must be a signed 8-byte integer. 8 bytes
MetadataDateTimeValue UTC date and time in the
format defined by
http://www.w3.org/TR/xmlsche
ma-2/#dateTime. For example,
2012-06-18T12:00:00-05:00
8 bytes
MetadataBooleanValue Must be one of: 1, 0, true, false 1 byte
The following rules apply when you update a Metadata element.
n
When the content of a Key element in the update does not match the content of an existing Key element
in the same Domain, the MetadataEntry containing that Key is added to the Metadata element.
n
When the content of Key element in the update matches the content of an existing Key element in the
same Domain, the MetadataEntry containing that Key is replaced.
Access Control for vCloud API Object Metadata
The Domain element of a MetadataEntry controls access to that entry by users and system administrators.
There are two access domains.
GENERAL
User access to metadata in the GENERAL domain is controlled by the user's
rights to the object to which the Metadata is attached. The owner of the object
can create, read, update, or delete any MetadataEntry in the GENERAL domain.
A MetadataEntry that does not include a Domain element is considered to be
in the GENERAL domain.
SYSTEM
Metadata in the SYSTEM domain can be created, updated, and deleted only by
a system administrator. User access to metadata in the SYSTEM domain is
controlled by the value of the visibility attribute of the Domain element.
Table 82. Domain Visibility Attribute Values
Value Meaning
PRIVATE The metadata is visible to system
administrators only.
READONLY the metadata is visible to system
administrators and the object owner.
vCloud API Programming Guide
282 VMware, Inc.