・OVDC情報の取得(一覧) GET /query?type=adminOrgVdc
curl -k --header "Accept: application/*;version=37.0" --header "Authorization: Bearer xxx" --request GET https://172.16.20.20/api/query?type=adminOrgVdc ※レスポンス抜粋 <AdminVdcRecord name="OVDC03" isEnabled="true" cpuAllocationMhz="5910" cpuLimitMhz="5910" cpuUsedMhz="0" memoryAllocationMB="9177" memoryLimitMB="9177" memoryUsedMB="0" storageLimitMB="10240" storageUsedMB="0" providerVdcName="PVDC01" providerVdc="https://172.16.20.20/api/admin/extension/providervdc/733114be-06d3-4d3e-b62e-624189b49589" orgName="ORG01" org="https://172.16.20.20/api/org/6ccb9c49-55f4-4591-83c3-c63b1e295287" allocationModel="2" numberOfVApps="0" numberOfUnmanagedVApps="0" numberOfMedia="0" numberOfDisks="0" numberOfVAppTemplates="0" vcName="20-vcenter.env.lab" isBusy="false" status="READY" numberOfResourcePools="1" numberOfStorageProfiles="1" usedNetworksInVdc="0" numberOfVMs="0" numberOfRunningVMs="0" numberOfDeployedVApps="0" numberOfDeployedUnmanagedVApps="0" isThinProvisioned="true" isFastProvisioned="false" networkProviderType="NONE" numberOfKubernetesPolicies="0" isVgpuEnabled="false" href="https://172.16.20.20/api/admin/vdc/82f372a0-2381-42c0-96af-3e0887368ae5" cpuOverheadMhz="0" taskStatusName="vdcRenameVdc" task="https://172.16.20.20/api/task/872cd360-b2e8-4945-84a9-1966c5335e54" isVCEnabled="true" memoryReservedMB="4588" cpuReservedMhz="2955" storageOverheadMB="0" memoryOverheadMB="0" vc="https://172.16.20.20/api/admin/extension/vimServer/ce9882fe-4b7a-413f-87ab-c962d28fb8e4" taskStatus="success" taskDetails=" "/> <AdminVdcRecord name="OVDC01" isEnabled="true" cpuAllocationMhz="0" cpuLimitMhz="0" cpuUsedMhz="0" memoryAllocationMB="0" memoryLimitMB="0" memoryUsedMB="0" storageLimitMB="0" storageUsedMB="43008" providerVdcName="PVDC01" providerVdc="https://172.16.20.20/api/admin/extension/providervdc/733114be-06d3-4d3e-b62e-624189b49589" orgName="ORG01" org="https://172.16.20.20/api/org/6ccb9c49-55f4-4591-83c3-c63b1e295287" allocationModel="4" numberOfVApps="1" numberOfUnmanagedVApps="1" numberOfMedia="0" numberOfDisks="0" numberOfVAppTemplates="0" vcName="20-vcenter.env.lab" isBusy="false" status="READY" numberOfResourcePools="2" numberOfStorageProfiles="1" usedNetworksInVdc="0" numberOfVMs="1" numberOfRunningVMs="0" numberOfDeployedVApps="0" numberOfDeployedUnmanagedVApps="0" isThinProvisioned="true" isFastProvisioned="false" networkProviderType="NONE" numberOfKubernetesPolicies="0" isVgpuEnabled="false" href="https://172.16.20.20/api/admin/vdc/f76d7037-1768-4c3a-a19b-dac893a34291" cpuOverheadMhz="0" taskStatusName="vdcUpdateVdc" task="https://172.16.20.20/api/task/51c9413a-609a-4354-b5cd-ba2962120e8e" isVCEnabled="true" memoryReservedMB="0" cpuReservedMhz="0" storageOverheadMB="0" memoryOverheadMB="0" vc="https://172.16.20.20/api/admin/extension/vimServer/ce9882fe-4b7a-413f-87ab-c962d28fb8e4" taskStatus="success" taskDetails=" "/>
・OVDC情報の取得(個別) GET /admin/vdc/{OVDC-ID}
curl -k --header "Accept: application/*;version=37.0" --header "Authorization: Bearer xxx" --request GET https://172.16.20.20/api/admin/vdc/82f372a0-2381-42c0-96af-3e0887368ae5 ※レスポンス抜粋 <AdminVdc xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:common="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/versions" status="1" isLegacyType="false" name="OVDC03" id="urn:vcloud:vdc:82f372a0-2381-42c0-96af-3e0887368ae5" href="https://172.16.20.20/api/admin/vdc/82f372a0-2381-42c0-96af-3e0887368ae5" type="application/vnd.vmware.admin.vdc+xml"> <VCloudExtension required="false"> <vmext:VimObjectRef> <vmext:VimServerRef href="https://172.16.20.20/api/admin/extension/vimServer/ce9882fe-4b7a-413f-87ab-c962d28fb8e4" id="urn:vcloud:vimserver:ce9882fe-4b7a-413f-87ab-c962d28fb8e4" type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="VC"/> <vmext:MoRef>resgroup-6001</vmext:MoRef> <vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType> </vmext:VimObjectRef> </VCloudExtension> <AllocationModel>AllocationPool</AllocationModel> <ComputeCapacity> <Cpu> <Units>MHz</Units> <Allocated>5910</Allocated> <Limit>5910</Limit> <Reserved>2955</Reserved> <Used>0</Used> <ReservationUsed>0</ReservationUsed> </Cpu> <Memory> <Units>MB</Units> <Allocated>9177</Allocated> <Limit>9177</Limit> <Reserved>4588</Reserved> <Used>0</Used> <ReservationUsed>0</ReservationUsed> </Memory> </ComputeCapacity> <ResourceEntities/> <AvailableNetworks/>
・OVDC情報の変更(名前変更) PUT /vdc/{OVDC-ID}
curl -k --header "Content-Type: application/*+xml" --header "Accept: application/*;version=37.0" --header "Authorization: Bearer xxx" --request PUT https://172.16.20.20/api/vdc/82f372a0-2381-42c0-96af-3e0887368ae5 -d '<root:Vdc xmlns:root="http://www.vmware.com/vcloud/v1.5" name="OVDC05"/>'