EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Get an Administrative View of an Organization Network; Modify an Organization Network

VMware VCLOUD API 1.0 - API
212 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VMware, Inc. 101
Chapter 6 Administrative Operations
<ParentNetwork type="application/vnd.vmware.admin.network+xml" name="ExternalNetwork-VC1"
href="http://vcloud.example.com/api/v1.0/admin/network/7"/>
<FenceMode>bridged</FenceMode>
</Configuration>
</OrgNetwork>
Theresponseechoestherequest,andcontainssomeadditionalelements:
ATaskthattrackscreationofthenetwork.
AdditionalmembersoftheConfigurationelementthatareinheritedfromtheorganization’sdefaults,
becausetheywerenotspecifiedintherequest.
ThesamerequestwithadifferentvalueforFenceModecontentswouldcreateanetworkwithadifferenttype
ofconnectiontotheparent.Formoreinformation,see“FenceMode”onpage 155.
Get an Administrative View of an Organization Network
Toseeanadministrativeviewofanorganizationnetwork,anadministratorcanmakeaGETrequesttothe
network’sadminURL(thehrefelementoftheOrgNetworkbody),asshowninExample 6‐11.Theresponse,
mostofwhichisnotshownhere,wouldbeidenticaltotheoneshownin
Example 6‐10,butwithouttheTasks
element.
Example 6-11. Get an Administrative View of an Organization Network
Request:
GET http://vcloud.example.com/api/v1.0/admin/network/54
Response:
200 OK
Content-Type: application/vnd.vmware.admin.network+xm
...
<OrgNetwork xmlns="http://www.vmware.com/vcloud/v1" name="Internet"
type="application/vnd.vmware.admin.network+xml"
ref="http://vcloud.example.com/api/v1.0/admin/network/54" ...>
...
<Description>Bridged to the public Internet</Description>
...
</OrgNetwork>
Modify an Organization Network
Anadministratorcanusetherel="edit"linkinanOrgNetworkbodytomodifythenetwork’sname,
description,orconfiguration.Example 6‐12doesthisbymakingaPUTrequesttotherel="edit"link
returnedinExample 6‐10.Therequestmodifiesthenetwork’sFenceModeelementandaddselementstothe
Configurationto
definetheNATservicebeingaddedtothenetwork.
Example 6-12. Modify a Network
Request:
PUT http://vcloud.example.com/api/v1.0/admin/network/54
Content-Type: application/vnd.vmware.admin.network+xml
...
<OrgNetwork name="Internet" xmlns="http://www.vmware.com/vcloud/v1">
<Description>NAT-ed to the public Internet</Description>
<Configuration>
<ParentNetwork type="application/vnd.vmware.admin.network+xml" name="ExternalNetwork-VC1"
href="http://vcloud.example.com/api/v1.0/admin/network/7"/>
<FenceMode>natRouted</FenceMode>
<Features>
<DhcpService>

Table of Contents