Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

Error on vCloud API Rest Call

$
0
0

I am in the process of trying to perform the following.  This is being performed in a Orchestration tool.

 

1.  Login in and get Auth Key and Value.

 

2.  Initiate Get to Query vCloud for orgNetworks

     a.  URL used: "https://<vcloud server>/api/query?type=orgNetwork"

 

     b.  passed the Auth Information and following header values

          Capture01.JPG

3. Next we are trying to perform a DHCP Configuartion on a Org Network that has been created.  We hafe the orgNetwork URL.  Is there any short cuts to calling the PUT REST call?  I have built the following XML to pas in the body.  how do you indicate the Destination Org Network fo rteh configuration?

 

<?xml version="1.0" encoding="UTF-8"?><DhcpService xmlns="http://www.vmware.com/vcloud/v1.5"><IsEnabled>true</IsEnabled>    <DefaultLeaseTime>3000</DefaultLeaseTime>    <MaxLeaseTime>3000</MaxLeaseTime>    <IpRange>        <StartAddress>1.1.1.1</StartAddress>        <EndAddress> 1.1.1.2 </EndAddress>    </IpRange>    <RouterIp> 1.1.0.1 </RouterIp>    <SubMask> 255.255.255.0 </SubMask>    <PrimaryNameServer> test.test.com </PrimaryNameServer>    <SecondaryNameServer>test1.test.com</SecondaryNameServer>    <DomainName>test.com</DomainName></DhcpService>


Viewing all articles
Browse latest Browse all 182126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>