EasyManuals Logo

VMware VCLOUD API 1.0 - API User Manual

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #101 background imageLoading...
Page #101 background image
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 611.Theresponse,
mostofwhichisnotshownhere,wouldbeidenticaltotheoneshownin
Example 610,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 612doesthisbymakingaPUTrequesttotherel="edit"link
returnedinExample 610.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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the VMware VCLOUD API 1.0 - API and is the answer not in the manual?

VMware VCLOUD API 1.0 - API Specifications

General IconGeneral
BrandVMware
ModelVCLOUD API 1.0 - API
CategorySoftware
LanguageEnglish

Related product manuals