5.5

Table Of Contents
xsi:type="MetadataStringValue">
<Value>http://internal.example.com/orgs/Finance</Value>
</TypedValue>
</MetadataEntry>
<MetadataEntry>
<Link
rel="edit"
type="application/vnd.vmware.vcloud.metadata.value+xml"
href="https://vcloud.example.com/api/org/26/metadata/SYSTEM/LOS" />
<Link
rel="remove"
type="application/vnd.vmware.vcloud.metadata.value+xml"
href="https://vcloud.example.com/api/org/26/metadata/SYSTEM/LOS" />
<Link
rel="up"
type="application/vnd.vmware.vcloud.metadata+xml"
href="https://vcloud.example.com/api/org/26/metadata" />
<Domain
visibility="PRIVATE">SYSTEM</Domain>
<Key>LOS</Key>
<TypedValue
xsi:type="MetadataStringValue">
<Value>bronze</Value>
</TypedValue>
</MetadataEntry>
</Metadata>
Retrieve or Update a Metadata Value
Each name=value pair in an object's metadata is represented as a MetadataEntry element, which includes
links that a system administrator or object owner can use to retrieve or update the metadata value, or delete
the MetadataEntry.
Prerequisites
n
Verify that you are logged in to the vCloud API as a system administrator or the object owner.
n
Retrieve the object's Metadata element. See “Retrieve or Update a Metadata Element,” on page 283
Procedure
1 Examine the retrieved Metadata element to find the MetadataEntry you want.
Each MetadataEntry contains a link of the following form, which you can use when updating the Value
of the entry:
<Link
rel="edit"
type="application/vnd.vmware.vcloud.metadata.value+xml"
href="https://vcloud.example.com/api/admin/object/id/metadata/DOMAIN/key-name" />
For example:
<Link
...
href="https://vcloud.example.com/api/admin/org/26/metadata/SYSTEM/LOS/>
vCloud API Programming Guide
286 VMware, Inc.