VMware Cloud Director API - POST-UploadAmqpCertificate

VMware Cloud Director API - POST-UploadAmqpCertificate

POST /admin/extension/settings/amqp/action/updateAmqpCertificate

Operation:
POST /admin/extension/settings/amqp/action/updateAmqpCertificate
Description:
Updates AMQP certificate. AMQP certificate and trust store are mutually exclusive. Overrides AMQP trust store, if update is successful.
Since:
5.1
Input parameters
contains update parameters

Consume media type(s):
application/vnd.vmware.admin.certificateUpdateParams+xml
application/vnd.vmware.admin.certificateUpdateParams+json
Input type:
CertificateUpdateParamsType
Output parameters
{@link JAXBElement }

Produce media type(s):
application/vnd.vmware.admin.certificateUploadSocketType+xml
application/vnd.vmware.admin.certificateUploadSocketType+json
Output type:
CertificateUploadSocketType
Examples
Request
HTTP 1.1
POST /api/admin/extension/settings/amqp/action/updateAmqpCertificate

Headers:
x-vcloud-authorization: hYrFvdvecg+ume8l+vFlkC4X4fc/em9VLW8Zx0TrHww=

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns6:CertificateUpdateParams
    xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5"
    fileSize="1062"/>
Response
HTTP/1.1 200 OK

Headers:
Content-Length: 1390
Content-Type: application/vnd.vmware.admin.certificateUploadSocketType+xml; version=5.5
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?>
<CertificateUploadSocket
    xmlns="http://www.vmware.com/vcloud/v1.5"
    uploadLocation="https://vcloud.example.com:443/transfer/33b7189e-2d5e-4eb6-85e3-581279f7283e/amqpCertificate"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloud.example.com/api/v1.5/schema/master.xsd">
    <Task
        status="running"
        startTime="2013-04-01T09:56:01.260+03:00"
        serviceNamespace="com.vmware.vcloud"
        operationName="systemUpdateAmqpCertificate"
        operation="Updating AMQP certificate Organization (a93c9db9-7471-3192-8d09-a8f7eeda85f9)"
        expiryTime="2013-06-30T09:56:01.260+03:00"
        cancelRequested="false"
        name="task"
        id="urn:vcloud:task:534ed730-dd30-4cb5-a510-9683ecf48216"
        type="application/vnd.vmware.vcloud.task+xml"
        href="https://vcloud.example.com/api/task/534ed730-dd30-4cb5-a510-9683ecf48216">
        <Owner
            type="application/vnd.vmware.admin.organization+xml"
            name=""
            href="https://vcloud.example.com/api/admin/org/a93c9db9-7471-3192-8d09-a8f7eeda85f9"/>
        <User
            type="application/vnd.vmware.admin.user+xml"
            name="admin"
            href="https://vcloud.example.com/api/admin/user/4b36181e-b32d-456e-ad94-8e0a568b1346"/>
        <Organization
            type="application/vnd.vmware.vcloud.org+xml"
            name="System"
            href="https://vcloud.example.com/api/org/a93c9db9-7471-3192-8d09-a8f7eeda85f9"/>
        <Details/>
    </Task>
</CertificateUploadSocket>