VMware Cloud Director API - POST-UpdateProviderVdcStorageClasses

VMware Cloud Director API - POST-UpdateProviderVdcStorageClasses

POST /admin/extension/providervdc/{id}/storageProfiles

Operation:
POST /admin/extension/providervdc/{id}/storageProfiles
Description:
Update storage classes of a provider vDC.

The request parameters specify storage classes to add or remove.

Since:
5.1
Input parameters
Consume media type(s):
application/vnd.vmware.admin.updateProviderVdcStorageProfiles+xml
application/vnd.vmware.admin.updateProviderVdcStorageProfiles+json
Input type:
UpdateProviderVdcStorageProfilesParamsType
Output parameters
TaskType

This operation is asynchronous and returns a task that you can monitor to track the progress of the request.

Produce media type(s):
application/vnd.vmware.vcloud.task+xml
application/vnd.vmware.vcloud.task+json
Output type:
TaskType
Examples
Request
HTTP 1.1
POST /api/admin/extension/providervdc/c54da61a-258f-457a-9fe4-45fa437901f7/storageProfiles

Headers:
Content-Length: 362
Content-Type: application/vnd.vmware.admin.updateProviderVdcStorageProfiles+xml; charset=ISO-8859-1
x-vcloud-authorization: jlfBniGOkcjcw1qWDpCYp6dhBJZ4LQW0m5Sp7UjZ/Vg=

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:UpdateProviderVdcStorageProfiles
    xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
    name="Dummy">
    <vcloud:Description>Description</vcloud:Description>
    <vmext:AddStorageProfile>profile</vmext:AddStorageProfile>
</vmext:UpdateProviderVdcStorageProfiles>
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1400
Content-Type: application/vnd.vmware.vcloud.task+xml;version=5.5
Location: https://vcloud.example.com/api/task/58cb5425-7ca7-45ed-ab2c-3136490dbd11
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><Task
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    cancelRequested="false"
    expiryTime="2013-05-15T13:12:37.601+03:00"
    href="https://vcloud.example.com/api/task/58cb5425-7ca7-45ed-ab2c-3136490dbd11"
    id="urn:vcloud:task:58cb5425-7ca7-45ed-ab2c-3136490dbd11"
    name="task"
    operation="Updating Storage Profiles for Provider Virtual Datacenter (c54da61a-258f-457a-9fe4-45fa437901f7)"
    operationName="rclUpdateProviderVdcStorageProfiles"
    serviceNamespace="com.vmware.vcloud"
    startTime="2013-02-14T13:12:37.601+02:00"
    status="running"
    type="application/vnd.vmware.vcloud.task+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/task/58cb5425-7ca7-45ed-ab2c-3136490dbd11/action/cancel"
        rel="task:cancel"/>
    <Owner
        href="https://vcloud.example.com/api/admin/extension/providervdc/c54da61a-258f-457a-9fe4-45fa437901f7"
        name=""
        type="application/vnd.vmware.admin.vmwprovidervdc+xml"/>
    <User
        href="https://vcloud.example.com/api/admin/user/1260efee-6915-494c-8afa-84e7e6d8a310"
        name="vcloud"
        type="application/vnd.vmware.admin.user+xml"/>
    <Organization
        href="https://vcloud.example.com/api/org/a93c9db9-7471-3192-8d09-a8f7eeda85f9"
        name="System"
        type="application/vnd.vmware.vcloud.org+xml"/>
    <Details/>
</Task>