VMware Cloud Director API - GET-Vdc-AdminView

VMware Cloud Director API - GET-Vdc-AdminView

GET /admin/vdc/{id}

Operation:
GET /admin/vdc/{id}
Description:
Retrieve the admin view of an organization vDC.
Since:
0.9
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
AdminVdcType

Produce media type(s):
application/vnd.vmware.admin.vdc+xml
application/vnd.vmware.admin.vdc+json
Output type:
AdminVdcType
Examples
Request
HTTP 1.1
GET /api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42

Headers:
x-vcloud-authorization: eVBkZn2wahPAU+IvbURo7ekslpuoHERMB2DZEFlJuHs=

Body:
Response
HTTP/1.1 200 OK

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

Body:
<?xml version="1.0" encoding="UTF-8"?><AdminVdc
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42"
    id="urn:vcloud:vdc:afaafb99-228c-4838-ad07-5bf3aa649d42"
    name="Default vDC"
    status="1"
    type="application/vnd.vmware.admin.vdc+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://https://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <VCloudExtension
        required="false">
        <vmext:VimObjectRef>
            <vmext:VimServerRef
                href="https://vcloud.example.com/api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
                name="VC"
                type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
            <vmext:MoRef>resgroup-194</vmext:MoRef>
            <vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
        </vmext:VimObjectRef>
    </VCloudExtension>
    <Link
        href="https://vcloud.example.com/api/admin/org/7b832bc5-3d65-45a2-8d35-da28388ab80a"
        rel="up"
        type="application/vnd.vmware.admin.organization+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42"
        rel="edit"
        type="application/vnd.vmware.admin.vdc+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/action/disable"
        rel="disable"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/metadata"
        rel="down"
        type="application/vnd.vmware.vcloud.metadata+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/action/registerVApp"
        rel="add"
        type="application/vnd.vmware.admin.registerVAppParams+xml"/>
    <Link
        href="https://vcloud.example.com/api/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42"
        rel="alternate"
        type="application/vnd.vmware.vcloud.vdc+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/edgeGateways"
        rel="add"
        type="application/vnd.vmware.admin.edgeGateway+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/edgeGateways"
        rel="edgeGateways"
        type="application/vnd.vmware.vcloud.query.records+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/networks"
        rel="add"
        type="application/vnd.vmware.vcloud.orgVdcNetwork+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/networks"
        rel="orgVdcNetworks"
        type="application/vnd.vmware.vcloud.query.records+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/extension/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/resourcePools"
        rel="down"
        type="application/vnd.vmware.admin.OrganizationVdcResourcePoolSet+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42/vdcStorageProfiles"
        rel="edit"
        type="application/vnd.vmware.admin.updateVdcStorageProfiles+xml"/>
    <Description>Default vDC</Description>
    <Tasks>
        <Task
            cancelRequested="false"
            endTime="2013-02-14T13:13:00.333+02:00"
            expiryTime="2013-05-15T13:12:59.990+03:00"
            href="https://vcloud.example.com/api/task/2510f3ab-4a12-4c69-834f-bbfd442ff374"
            id="urn:vcloud:task:2510f3ab-4a12-4c69-834f-bbfd442ff374"
            name="task"
            operation="Updated Storage Profiles for Virtual Datacenter (afaafb99-228c-4838-ad07-5bf3aa649d42)"
            operationName="vdcUpdateStorageProfiles"
            serviceNamespace="com.vmware.vcloud"
            startTime="2013-02-14T13:12:59.990+02:00"
            status="error"
            type="application/vnd.vmware.vcloud.task+xml">
            <Owner
                href="https://vcloud.example.com/api/admin/vdc/afaafb99-228c-4838-ad07-5bf3aa649d42"
                name=""
                type="application/vnd.vmware.admin.vdc+xml"/>
            <Error
                majorErrorCode="400"
                message="The request has duplicate VDC storage profile &quot;profile&quot;."
                minorErrorCode="BAD_REQUEST"
                stackTrace="com.vmware.vcloud.api.presentation.service.BadRequestException: The request has duplicate VDC storage profile &quot;profile&quot;.  at com.vmware.vcloud.api.presentation.service.impl.VdcServiceAdapterImpl.updateVdcStorageClassesTask(VdcServiceAdapterImpl.java:672)  at com.vmware.vcloud.api.presentation.service.impl.VdcServiceAdapterImpl.executeTask(VdcServiceAdapterImpl.java:2071)  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="system"
                type="application/vnd.vmware.admin.user+xml"/>
            <Organization
                href="https://vcloud.example.com/api/org/7b832bc5-3d65-45a2-8d35-da28388ab80a"
                name="Default"
                type="application/vnd.vmware.vcloud.org+xml"/>
            <Details>  The request has duplicate VDC storage profile "profile".</Details>
        </Task>
    </Tasks>
    <AllocationModel>AllocationVApp</AllocationModel>
    <ComputeCapacity>
        <Cpu>
            <Units>MHz</Units>
            <Allocated>0</Allocated>
            <Limit>0</Limit>
            <Reserved>0</Reserved>
            <Used>0</Used>
            <Overhead>0</Overhead>
        </Cpu>
        <Memory>
            <Units>MB</Units>
            <Allocated>0</Allocated>
            <Limit>0</Limit>
            <Reserved>0</Reserved>
            <Used>0</Used>
            <Overhead>0</Overhead>
        </Memory>
    </ComputeCapacity>
    <ResourceEntities>
        <ResourceEntity
            href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-fa813d19-3936-4099-bff9-e0ad8d1e34bb"
            name="NewCatalogItem"
            type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
        <ResourceEntity
            href="https://vcloud.example.com/api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f"
            name="importedVapp"
            type="application/vnd.vmware.vcloud.vApp+xml"/>
        <ResourceEntity
            href="https://vcloud.example.com/api/disk/5d9c3d46-c992-49a5-913d-a617d7331618"
            name="diskName"
            type="application/vnd.vmware.vcloud.disk+xml"/>
        <ResourceEntity
            href="https://vcloud.example.com/api/disk/7140e20e-8596-467a-ac10-4cfee7d1a220"
            name="diskName"
            type="application/vnd.vmware.vcloud.disk+xml"/>
        <ResourceEntity
            href="https://vcloud.example.com/api/disk/bb8f4df6-128e-4ffd-a6ed-9241829e382f"
            name="diskName"
            type="application/vnd.vmware.vcloud.disk+xml"/>
        <ResourceEntity
            href="https://vcloud.example.com/api/disk/c0bb36b3-60e2-45c3-a784-1ca2d02a0315"
            name="diskName"
            type="application/vnd.vmware.vcloud.disk+xml"/>
        <ResourceEntity
            href="https://vcloud.example.com/api/disk/e8b2b752-21ca-4cb9-80f6-a55ef1a81eec"
            name="diskName"
            type="application/vnd.vmware.vcloud.disk+xml"/>
    </ResourceEntities>
    <AvailableNetworks>
        <Network
            href="https://vcloud.example.com/api/admin/network/1fcc8a15-340d-43cc-a200-76c2cbbe70ba"
            name="VM Network"
            type="application/vnd.vmware.admin.network+xml"/>
    </AvailableNetworks>
    <Capabilities>
        <SupportedHardwareVersions>
            <SupportedHardwareVersion>vmx-04</SupportedHardwareVersion>
            <SupportedHardwareVersion>vmx-07</SupportedHardwareVersion>
            <SupportedHardwareVersion>vmx-08</SupportedHardwareVersion>
        </SupportedHardwareVersions>
    </Capabilities>
    <NicQuota>0</NicQuota>
    <NetworkQuota>1024</NetworkQuota>
    <UsedNetworkCount>0</UsedNetworkCount>
    <VmQuota>0</VmQuota>
    <IsEnabled>true</IsEnabled>
    <VdcStorageProfiles>
        <VdcStorageProfile
            href="https://vcloud.example.com/api/admin/vdcStorageProfile/b520e879-71de-4d47-b2e1-e092aab97f61"
            name="*"
            type="application/vnd.vmware.admin.vdcStorageProfile+xml"/>
        <VdcStorageProfile
            href="https://vcloud.example.com/api/admin/vdcStorageProfile/eb6aacbd-f0d8-4a07-8248-1de28151e98f"
            name="profile"
            type="application/vnd.vmware.admin.vdcStorageProfile+xml"/>
    </VdcStorageProfiles>
    <ResourceGuaranteedMemory>1.0</ResourceGuaranteedMemory>
    <ResourceGuaranteedCpu>1.0</ResourceGuaranteedCpu>
    <VCpuInMhz>1000</VCpuInMhz>
    <IsThinProvision>false</IsThinProvision>
    <VendorServices/>
    <ProviderVdcReference
        href="https://vcloud.example.com/api/admin/providervdc/c54da61a-258f-457a-9fe4-45fa437901f7"
        name="Provider vDC Name"
        type="application/vnd.vmware.admin.providervdc+xml"/>
    <UsesFastProvisioning>true</UsesFastProvisioning>
</AdminVdc>