7.2

Table Of Contents
"size": 0,
"totalElements": 4,
"totalPages": 1,
"number": 1,
"offset": 0
}
}
Create a Network Profile
You can use the vRealize Automation IaaS proxy provider REST API to create an external, NAT, or routed
network prole.
Prerequisites
n
Log in to vRealize Automation as a tenant administrator.
n
Verify that the host name and fully qualied domain name of the vRealize Automation instance are
available.
n
Verify that you have a valid HTTP bearer token that matches your login credentials. See Chapter 2,
“REST API Authentication,” on page 9.
n
If you are using an external IPAM provider solution, verify that you have access to an endpoint for the
IPAM provider solution software.
n
If you are creating an network prole using external IPAM and are specifying definedRanges or
definedAddresses as part of the prole that you are creating, make sure that you know what address
ranges and TCP/IP addresses are actually congured on the external IPAM provider's device.
Procedure
u
Use the following sample command to create a network prole. You can create an external, NAT, or
routed network prole. The code in the sample command creates an external network prole without
IPAM.
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/iaas-proxy-provider/api/$networkProfileID -d “
{
"@type": "ExternalNetworkProfile",
"name": "externalTestCreate",
"description": "",
"isHidden": false,
"definedRanges": [
{
"name": "range",
"description": "",
"beginIPv4Address": "10.110.183.221",
"endIPv4Address": "10.110.183.240",
"state": "UNALLOCATED"
}
],
"profileType": "EXTERNAL",
"IPAMEndpointId": null,
"subnetMask": "255.255.255.0",
"gatewayAddress": "10.110.183.253",
"primaryDnsAddress": "10.110.182.45",
"secondaryDnsAddress": "",
Chapter 3 REST API Use Cases
VMware, Inc. 303