VMware Cloud Community
derevan007
Contributor
Contributor

vCloud API not returning Org Network Allocated IP Addresses

I am trying to get the list of static IP addresses asssigned from the pool for an organization's network using the REST API. I can get them for the External Network, but not the Org Network. The UI is able to show the allocated IP addresses for both. Also, the SDK doc suggests it is available. Does anyone know if there is problem with the SDK?

When I call the API, there is no <AllocatedIPAddresses> tag (in green in the API doc shown below)

<OrgNetwork....

<Configuration>

<IpScope>

<IsInherited>true</IsInherited>

<Gateway>10.147.122.190</Gateway>

<Netmask>255.255.255.192</Netmask>

<Dns1>10.115.120.71</Dns1>

<DnsSuffix>example.com</DnsSuffix>

<IpRanges>

<IpRange>

<StartAddress>10.147.122.100</StartAddress>

<EndAddress>10.147.122.200</EndAddress>

</IpRange>

</IpRanges>

<AllocatedIpAddresses />

</IpScope>

<ParentNetwork

type="application/vnd.vmware.admin.orgNetwork+xml"

name="ExternalNetwork-VC1"

href="https://vcloud.example.com/api/admin/network/7" />

<FenceMode>bridged</FenceMode>

</Configuration>

</OrgNetwork>

Below is what I get:

<OrgNetwork ...>
<Configuration>
        <IpScope>
            <IsInherited>true</IsInherited>
            <Gateway>10.29.102.97</Gateway>
            <Netmask>255.255.255.224</Netmask>
            <Dns1>171.70.168.183</Dns1>
            <Dns2>64.102.6.247</Dns2>
            <DnsSuffix>xxx.com</DnsSuffix>
            <IpRanges>
                <IpRange>
                    <StartAddress>10.29.102.126</StartAddress>
                    <EndAddress>10.29.102.126</EndAddress>
                </IpRange>
            </IpRanges>
        </IpScope>
        <ParentNetwork type="application/vnd.vmware.admin.network+xml" name="net-test" href="https://vcd-2.xxx.com/api/admin/network/07b10773-33ea-4d89-bf50-00c22c201035"/>
        <FenceMode>bridged</FenceMode>
        <RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
        <SyslogServerSettings/>
    </Configuration>
    <AllowedExternalIpAddresses/>
</OrgNetwork>

Tags (2)
0 Kudos
2 Replies
IamTHEvilONE
Immortal
Immortal

you may want to also post here, which is specifically for the vCloud API.

http://communities.vmware.com/community/vmtn/developer/forums/vcloudapi

Best Regards,

Jon Hemming

0 Kudos
derevan007
Contributor
Contributor

Thanks for the tip. I have posted this question to the API forum.

0 Kudos