7.2

Table Of Contents
Property Description
status
The hp response should contain a Location aribute that is formaed as
https://$host/iaas-proxy-provider/api/keyPairs/$keypairID.
Header.Location
The HTTP response should contain a Location aribute that is formaed
as https://$host/iaas-proxy-
provider/api/network/profiles/$networkProfileID.
$networkProleID Species the unique identier of the new network prole.
Example: curl Command
The following example command creates an external IPAM prole.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/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
}
]
}
Example: JSON Output
The output contains an empty HTTP response body and the location and network prole ID in the header
statement.
Location:
https://vcac148-084-241.eng.mycompany.com/iaas-proxy-provider/api/network/profiles/263b80f5-
d34f-47f2-b0b1-5a3db991c2e9
Copy the location URL into a text editor for future use.
Query a Network Profile
You can use the REST API to query and display an external, NAT, private, or routed network prole. For
example, you can query an external network prole and use it as the basis for creating a dierent type of
network prole.
Prerequisites
n
Log in to vRealize Automation as a tenant administrator.
Chapter 3 REST API Use Cases
VMware, Inc. 307