VMware Cloud Director API - GET-Datastore

VMware Cloud Director API - GET-Datastore

GET /admin/extension/datastore/{id}

Operation:
GET /admin/extension/datastore/{id}
Description:
Retrieve a datastore.
Since:
1.5
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
Datastore

Produce media type(s):
application/vnd.vmware.admin.datastore+xml
application/vnd.vmware.admin.datastore+json
Output type:
DatastoreType
Examples
Request
HTTP 1.1
GET /api/admin/extension/datastore/80c399eb-07e2-4b99-a9e4-6bc0ac693345

Headers:
x-vcloud-authorization: aMICDN2Iop2cdra6WlBfZh/ASdy1+RcwOGwC++hqG9A=

Body:
Response
HTTP/1.1 200 OK

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

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:Datastore
    xmlns:vcloud="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/extension/datastore/80c399eb-07e2-4b99-a9e4-6bc0ac693345"
    id="urn:vcloud:datastore:80c399eb-07e2-4b99-a9e4-6bc0ac693345"
    name="datastore1"
    type="application/vnd.vmware.admin.datastore+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">
    <vcloud:Link
        href="https://vcloud.example.com/api/admin/extension/datastore/80c399eb-07e2-4b99-a9e4-6bc0ac693345"
        rel="edit"
        type="application/vnd.vmware.admin.datastore+xml"/>
    <vcloud:Link
        href="https://vcloud.example.com/api/admin/extension/datastore/80c399eb-07e2-4b99-a9e4-6bc0ac693345/action/disable"
        rel="disable"/>
    <vmext:VimObjectRef>
        <vmext:VimServerRef
            href="https://vcloud.example.com/api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
            name="ConfigWizard Configured vCenter"
            type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
        <vmext:MoRef>datastore-42</vmext:MoRef>
        <vmext:VimObjectType>DATASTORE</vmext:VimObjectType>
    </vmext:VimObjectRef>
    <vmext:Enabled>true</vmext:Enabled>
    <vmext:Busy>false</vmext:Busy>
    <vmext:ThresholdYellowGb>0</vmext:ThresholdYellowGb>
    <vmext:ThresholdRedGb>0</vmext:ThresholdRedGb>
    <vmext:DatastoreFsType>VMFS5</vmext:DatastoreFsType>
    <vmext:VcDisplayName>datastore1</vmext:VcDisplayName>
    <vmext:TotalCapacityMb>3072.0</vmext:TotalCapacityMb>
    <vmext:TotalCapacityGb>3.0</vmext:TotalCapacityGb>
    <vmext:UsedCapacityMb>923.0</vmext:UsedCapacityMb>
    <vmext:UsedCapacityGb>0.9</vmext:UsedCapacityGb>
    <vmext:UsedCapacityPercent>30.04557228088379</vmext:UsedCapacityPercent>
    <vmext:ProvisionedSpaceMb>26321.18</vmext:ProvisionedSpaceMb>
    <vmext:ProvisionedSpaceGb>25.7</vmext:ProvisionedSpaceGb>
    <vmext:RequestedStorageMb>4176.0</vmext:RequestedStorageMb>
    <vmext:RequestedStorageGb>4.078125</vmext:RequestedStorageGb>
</vmext:Datastore>