The addVMInstance action registers a static IP address, and assigns it a subnet mask and gateway in Address Manager. Upon completion, addVMInstance returns a map with the keys: IP, netmask, gateway.
Input parameters:
- profileName—an existing Address Manager connection profile name.
- configName—an existing Address Manager configuration name.
- ipRange—an existing IPv4 block in CIDR format, an existing IPv4 network in CIDR format, or an existing IPv4 network’s range in the format of two IPv4 addresses separated by a hyphen - in the specified Address Manager configuration.
- viewName—an existing view in the specified Address Manager configuration, or null. If viewName is null, then domainName and hostName are set to null.
- domainName—an existing domain name (A.K.A a zone) in Address Manager, or null if viewName is null.
- hostName—a unique, valid record name, or null if viewName is null.
- allowDuplicateHostname—if specified, it will create duplicate hostnames in DNS. If you have two VMs with the same hostname, the hostname will resolve 50 percent of the time for each IP address.
Return value: A map with the following keys:
- ip address
- netmask
- gateway