GET /vApp/{id}/metadata

Operation:
GET /vApp/{id}/metadata
Description:
Retrieve metadata associated with the vApp or VM.
Since:
1.5
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
{@link JAXBElement}

Produce media type(s):
application/vnd.vmware.vcloud.metadata+xml
Output type:
MetadataType
Examples
Request
HTTP 1.1
GET /api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata

Headers:
x-vcloud-authorization: 4P7Jkhy1j5v08XmWuoRNHLa5jXLud5sKRyCKaI4lF78=

Body:
Response
HTTP/1.1 200 OK

Headers:
Content-Length: 2237
Content-Type: application/vnd.vmware.vcloud.metadata+xml;version=1.5

Body:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Metadata
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata"
    type="application/vnd.vmware.vcloud.metadata+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <Link
        href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961"
        rel="up"
        type="application/vnd.vmware.vcloud.vApp+xml"/>
    <Link
        href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata"
        rel="add"
        type="application/vnd.vmware.vcloud.metadata+xml"/>
    <MetadataEntry
        href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata/example%20key"
        type="application/vnd.vmware.vcloud.metadata.value+xml">
        <Link
            href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata"
            rel="up"
            type="application/vnd.vmware.vcloud.metadata+xml"/>
        <Link
            href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata/example%20key"
            rel="edit"
            type="application/vnd.vmware.vcloud.metadata.value+xml"/>
        <Link
            href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata/example%20key"
            rel="remove"/>
        <Key>example key</Key>
        <Value>example value</Value>
    </MetadataEntry>
    <MetadataEntry
        href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata/someKey"
        type="application/vnd.vmware.vcloud.metadata.value+xml">
        <Link
            href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata"
            rel="up"
            type="application/vnd.vmware.vcloud.metadata+xml"/>
        <Link
            href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata/someKey"
            rel="edit"
            type="application/vnd.vmware.vcloud.metadata.value+xml"/>
        <Link
            href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata/someKey"
            rel="remove"/>
        <Key>someKey</Key>
        <Value>someValue</Value>
    </MetadataEntry>
</Metadata>