Policy > Networking > IP Management > IP Address Pools > IP Pools

Records intent to allocate an IP Address from an IP Pool

If allocation of the same ID is found, this is a no-op. If no allocation
of the specified ID is found, then a new allocation is created.
An allocation cannot be updated once created.
When an IP allocation is requested from an IpAddressPool, the IP could be
allocated from any subnet in the pool that has the available capacity.
Request to allocate an IP will fail if no subnet was previously created.
If specific IP was requested, the status of allocation is reflected in the
realized state.
If any IP is requested, the IP finally allocated is obtained by polling on
the realized state until the allocated IP is returned in the extended
attributes.
An allocation cannot be updated once created.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/ip-pools/<ip-pool-id>/ip-allocations/<ip-allocation-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IpAddressAllocation+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/ip-pools/IpPool-Tenant-1/ip-allocations/ip-1-allocation { "allocation_ip": "10.0.0.5" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
IpAddressAllocation+

Example Response:

{ "resource_type": "IpAddressAllocation", "id": "ip-1-allocation", "display_name": "ip-1-allocation", "path": "/infra/ip-pools/IpPool-Tenant-1/ip-allocations/ip-1-allocation", "relative_path": "ip-1-allocation", "parent_path": "/infra/ip-pools/IpPool-Tenant-1", "marked_for_delete": false, "allocation_ip": "10.0.0.5" "_create_user": "admin", "_create_time": 1543966814544, "_last_modified_user": "admin", "_last_modified_time": 1543966814544, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_ipam

Additional Errors: