7.3

Table Of Contents
Property Description
status If the command is successful, the HTTP status is 201 Created.
Header.Location The HTTP response should contain a Location attribute that is formatted as
https://$vRA/iaas-proxy-
provider/api/network/profiles/$networkProfileID.
$networkProfileID Specifies the unique identifier of the new network profile.
Create an External Network Profile Using External IPAM
Example
POST /api/network/profiles creates a external network profile using external IPAM.
curl Command
The following example command creates an external IPAM profile.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$vRA/iaas-proxy-provider/api/$networkProfileID -d “
{
"profileType" : "EXTERNAL",
"id" : null,
"@type" : "ExternalNetworkProfile",
"name" : "External IPAM",
"IPAMEndpointId" : "c20f305c-07a5-4ba7-88ac-35da7b9713e0",
"addressSpaceExternalId" : "address-space-4",
"description" : null,
"definedRanges" : [{
"externalId" : "network-1",
"name" : "192.168.1.0/24",
"description" : "Created by vRO package stub workflow",
"state" : "UNALLOCATED",
"beginIPv4Address" : null,
"endIPv4Address" : null
}
]
}
Programming Guide
VMware, Inc. 314