VMware Cloud Director API - GET-AvailableNetworks
GET /admin/extension/vimServer/{id}/networks
- Operation:
- GET /admin/extension/vimServer/{id}/networks
- Description:
-
Retrieve a list of available vCenter networks and portgroups.
Networks and portgroups that are already in use by a vCloud Director network are not listed.
- Since:
- 1.5
- Input parameters
-
- Consume media type(s):
- None
- Input type:
- None
- Output parameters
-
{@link JAXBElement
}
- Produce media type(s):
-
application/vnd.vmware.admin.vimServerNetworks+xml
application/vnd.vmware.admin.vimServerNetworks+json
- Output type:
- VimObjectRefListType
- Examples
-
- Request
-
HTTP 1.1
GET /api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102/networks
Headers:
x-vcloud-authorization: M69zc2o7Ol7AuYVBAslGYbnTluZZVZKIYa1HPe8MzEk=
Body:
- Response
-
HTTP/1.1 200 OK
Headers:
Content-Length: 2639
Content-Type: application/vnd.vmware.admin.vimservernetworks+xml;version=5.5
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:VimObjectRefList
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"
type="application/vnd.vmware.admin.vimServerNetworks+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/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
rel="up"
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:VimObjectRefs>
<vmext:VimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
name=""
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>dvportgroup-52</vmext:MoRef>
<vmext:VimObjectType>DV_PORTGROUP</vmext:VimObjectType>
</vmext:VimObjectRef>
<vmext:VimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
name=""
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>dvportgroup-49</vmext:MoRef>
<vmext:VimObjectType>DV_PORTGROUP</vmext:VimObjectType>
</vmext:VimObjectRef>
<vmext:VimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
name=""
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>dvportgroup-87</vmext:MoRef>
<vmext:VimObjectType>DV_PORTGROUP</vmext:VimObjectType>
</vmext:VimObjectRef>
<vmext:VimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
name=""
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>dvportgroup-88</vmext:MoRef>
<vmext:VimObjectType>DV_PORTGROUP</vmext:VimObjectType>
</vmext:VimObjectRef>
<vmext:VimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/5b2f648b-9da7-4d7b-8212-6ed8a83f2102"
name=""
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>network-248</vmext:MoRef>
<vmext:VimObjectType>NETWORK</vmext:VimObjectType>
</vmext:VimObjectRef>
</vmext:VimObjectRefs>
</vmext:VimObjectRefList>