defineHostName - BlueCat vRO Plug-in - 8.0.1-9.2.0

Workflow Guide

prodname
BlueCat vRO Plug-in
version_custom
8.0.1-9.2.0

Returns a string in the following format for the VM and for the primary NIC: <VM hostname>-<optional, user-inputted suffix>. For example, myHostname-mySuffix. It returns a string in the following format for the other NICs: <VM hostname>-<optional, user-inputted suffix>-<NIC instance index>. For example, myHostname-mySuffix-1.

Input parameters:
  • inputMap—a map with the following keys: prefix or suffix, retrieve hostname only, nic instance index, is primary nic, and vm hostname.
  • prefix or suffix—the prefix or suffix as provided by the user. The mapped value can be of type String, or null.
  • retrieve hostname only—the value can be of type Boolean, or null. True if the hostname to be returned is for the server (the main hostname). If true, the nic instance index and is primary nic fields can be ignored.
  • nic instance index—the index of the NIC instance as defined in the VMware structure. The value can be of type number, unless the value associated with the key retrieve hostname only is null or false, or the value associated with the key is primary nic is null or false.
  • is primary nic—the value can be of type Boolean, or null. True if the NIC is the primary one.
  • vm hostname—the VM hostname as defined in the template. The value can be of type String.