VMware Cloud Director API - GET-VAppMetadata

VMware Cloud Director API - GET-VAppMetadata

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
application/vnd.vmware.vcloud.metadata+json
Output type:
MetadataType
Examples
Request
HTTP 1.1
GET /api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f/metadata

Headers:
x-vcloud-authorization: uJ13vBx80VGzZ0KcClBqxHNDJr3QI0K5KaQ0YKn2YZ0=

Body:
Response
HTTP/1.1 200 OK

Headers:
Content-Length: 719
Content-Type: application/vnd.vmware.vcloud.metadata+xml;version=5.5
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><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-bba47763-0ce1-45b9-8470-ea29ba58c52f/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-bba47763-0ce1-45b9-8470-ea29ba58c52f"
        rel="up"
        type="application/vnd.vmware.vcloud.vApp+xml"/>
    <Link
        href="https://vcloud.example.com/api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f/metadata"
        rel="add"
        type="application/vnd.vmware.vcloud.metadata+xml"/>
</Metadata>