VMware Cloud Director API - POST-UploadAmqpTruststore

VMware Cloud Director API - POST-UploadAmqpTruststore

POST /admin/extension/settings/amqp/action/updateAmqpTruststore

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

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

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

Headers:
x-vcloud-authorization: uuPYGJjug4nRJkqeRvWgTVKJnr9DTtn8U/74GsHp1TE=

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns6:TrustStoreUpdateParams
    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"
    password="CENSORED"
    fileSize="805"/>
Response
HTTP/1.1 200 OK

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

Body:
<?xml version="1.0" encoding="UTF-8"?>
<TrustStoreUploadSocket
    xmlns="http://www.vmware.com/vcloud/v1.5"
    uploadLocation="https://vcloud.example.com:443/transfer/9a709288-73bb-460d-90e6-ebad301a3648/amqpTrustStore"
    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-01T11:18:33.003+03:00"
        serviceNamespace="com.vmware.vcloud"
        operationName="systemUpdateAmqpTruststore"
        operation="Updating AMQP truststore Organization (a93c9db9-7471-3192-8d09-a8f7eeda85f9)"
        expiryTime="2013-06-30T11:18:33.003+03:00"
        cancelRequested="false"
        name="task"
        id="urn:vcloud:task:6f505ae3-f5e1-47d6-9866-c0cc0a9b9f9e"
        type="application/vnd.vmware.vcloud.task+xml"
        href="https://vcloud.example.com/api/task/6f505ae3-f5e1-47d6-9866-c0cc0a9b9f9e">
        <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/0fcab391-6dbe-47ff-aa5d-75d03c027b8a"/>
        <Organization
            type="application/vnd.vmware.vcloud.org+xml"
            name="System"
            href="https://vcloud.example.com/api/org/a93c9db9-7471-3192-8d09-a8f7eeda85f9"/>
        <Details/>
    </Task>
</TrustStoreUploadSocket>