IP registration from VCF Automation

VCF IPAM Insight includes an IPAM integration for VCF Automation: when a virtual machine is deployed, the integration reserves the next free address in the selected phpIPAM subnet, stores the host name and the owner, and releases the address when the machine is removed. The reservation is made over the phpIPAM API and appears in VCF Operations on the next collection cycle of the Management Pack adapter.

What the integration does

StepResult in phpIPAMResult in VCF Operations
A deployment is requested in VCF AutomationA free address in the selected subnet is reservedThe address appears as a phpIPAM IP Address object on the next collection cycle
The deployment completesThe host name and the owner are written on the addressThe change alerts report a hostname or DNS change if the values differ from the previous cycle
The deployment is destroyedThe reservation is released and the address returns to the free poolThe address object keeps its history; its availability metric changes

The integration is an IPAM endpoint of VCF Automation, not a second adapter. The Management Pack adapter keeps reading phpIPAM and stays read-only; the reservations are written by the VCF Automation integration with its own account.

Requirements

ItemRequirement
VCF AutomationAn installation that supports IPAM integration endpoints
phpIPAMVersion 1.5 or later, reachable from VCF Automation over HTTPS/443
phpIPAM API applicationA separate API application with Read/Write permission, limited to the sections the integration allocates from
phpIPAM userA dedicated user that owns the API application. It is not the account used by the Management Pack adapter
Network mappingEvery VCF Automation network that must receive addresses is mapped onto a phpIPAM subnet

The account used for the integration is separate from the read-only account used by the Management Pack adapter. Neither account needs administrative privileges on phpIPAM.

Installing the integration in VCF Automation

  1. In phpIPAM, create the API application with Read/Write permission and note its App ID.
  2. Create the dedicated user and grant it access to the sections the integration allocates from.
  3. In VCF Automation, add an IPAM integration endpoint of type phpIPAM.
  4. Supply the phpIPAM address, the API App ID and the credentials of the dedicated user.
  5. Map each VCF Automation network onto the phpIPAM subnet it allocates from. A network without a mapping allocates no address.
  6. Save the endpoint and run the connection test.

Mapping VCF Automation networks onto phpIPAM subnets

A VCF Automation network is bound to exactly one phpIPAM subnet. The subnet carries the CIDR, the gateway and the DNS settings, so the address range and the resolver are the ones configured in phpIPAM and not in VCF Automation. When a network is bound to a subnet that has no free address left, the deployment fails with an address exhaustion error rather than allocating outside the subnet.

What is visible in VCF Operations

The Management Pack adapter reads the address the integration created in the same way as any other address, so no additional configuration is required. The address carries the host name and the owner written by the integration, is a member of its subnet and is related to the virtual machine that uses it when the address matches an object collected by another adapter.

The next collection cycle picks the reservation up. The collection interval is configured on the adapter instance and is five minutes or less by default, so a new deployment is visible in VCF Operations within one cycle of the reservation.