VMware Cloud Director API - GET-ProviderVdcStorageProfile

VMware Cloud Director API - GET-ProviderVdcStorageProfile

GET /admin/pvdcStorageProfile/{id}

Operation:
GET /admin/pvdcStorageProfile/{id}
Description:
Retrieve provider vDC storage profile details.
Since:
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
ProviderVdcStorageClassType representation of storage profile referred by storageClassId

Produce media type(s):
application/vnd.vmware.admin.pvdcStorageProfile+xml
application/vnd.vmware.admin.pvdcStorageProfile+json
Output type:
ProviderVdcStorageProfileType
Examples
Request
HTTP 1.1
GET /api/admin/pvdcStorageProfile/468ed24c-fdc3-4535-83a9-3f5e198b66be

Headers:
x-vcloud-authorization: jlfBniGOkcjcw1qWDpCYp6dhBJZ4LQW0m5Sp7UjZ/Vg=

Body:
Response
HTTP/1.1 200 OK

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

Body:
<?xml version="1.0" encoding="UTF-8"?><ProviderVdcStorageProfile
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    href="https://vcloud.example.com/api/admin/pvdcStorageProfile/468ed24c-fdc3-4535-83a9-3f5e198b66be"
    id="urn:vcloud:providervdcstorageprofile:468ed24c-fdc3-4535-83a9-3f5e198b66be"
    name="profile"
    type="application/vnd.vmware.admin.pvdcStorageProfile+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/admin/pvdcStorageProfile/468ed24c-fdc3-4535-83a9-3f5e198b66be/metadata"
        rel="down"
        type="application/vnd.vmware.vcloud.metadata+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/providervdc/c54da61a-258f-457a-9fe4-45fa437901f7"
        rel="up"
        type="application/vnd.vmware.admin.providervdc+xml"/>
    <Tasks>
        <Task
            cancelRequested="false"
            endTime="2013-02-14T13:12:38.137+02:00"
            expiryTime="2013-05-15T13:12:37.600+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="Updated Storage Profiles for Provider Virtual Datacenter (c54da61a-258f-457a-9fe4-45fa437901f7)"
            operationName="rclUpdateProviderVdcStorageProfiles"
            serviceNamespace="com.vmware.vcloud"
            startTime="2013-02-14T13:12:37.600+02:00"
            status="error"
            type="application/vnd.vmware.vcloud.task+xml">
            <Owner
                href="https://vcloud.example.com/api/admin/extension/providervdc/c54da61a-258f-457a-9fe4-45fa437901f7"
                name=""
                type="application/vnd.vmware.admin.vmwprovidervdc+xml"/>
            <Error
                majorErrorCode="400"
                message="A storage profile with the name &quot;profile&quot; already exists in the provider VDC."
                minorErrorCode="BAD_REQUEST"
                stackTrace="com.vmware.vcloud.api.presentation.service.BadRequestException: A storage profile with the name &quot;profile&quot; already exists in the provider VDC.  at com.vmware.vcloud.rcl.impl.RclServiceImpl.addStorageClasses(RclServiceImpl.java:1034)  at com.vmware.vcloud.rcl.impl.RclServiceImpl.updateProviderVdcStorageClassesTask(RclServiceImpl.java:2676)  at com.vmware.vcloud.rcl.impl.RclServiceImpl.executeTask(RclServiceImpl.java:1988)  at com.vmware.vcloud.backendbase.management.system.TaskServiceImpl$4.doInSecurityContext(TaskServiceImpl.java:1341)  at com.vmware.vcloud.backendbase.management.system.TaskServiceImpl$4.doInSecurityContext(TaskServiceImpl.java:1336)  at com.vmware.vcloud.backendbase.management.system.TaskServiceImpl$SecurityContextTemplate.executeForOrgAndUser(TaskServiceImpl.java:1702)  at com.vmware.vcloud.backendbase.management.system.TaskServiceImpl.execute(TaskServiceImpl.java:1336)  at com.vmware.vcloud.backendbase.management.system.TaskServiceImpl.dispatchByStatus(TaskServiceImpl.java:1258)  at com.vmware.vcloud.backendbase.management.system.TaskServiceImpl.dispatchTask(TaskServiceImpl.java:1137)  at com.vmware.vcloud.backendbase.management.system.LocalTask.run(LocalTask.java:88)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  at java.lang.Thread.run(Thread.java:722) "/>
            <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>  A storage profile with the name "profile" already exists in the provider VDC.</Details>
        </Task>
    </Tasks>
    <Enabled>false</Enabled>
    <Units>MB</Units>
    <CapacityTotal>3072.0</CapacityTotal>
    <CapacityUsed>893.0</CapacityUsed>
</ProviderVdcStorageProfile>