System Administration > Configuration > Fabric > Pool Management > IP Blocks

Update an IP Address Block

Modifies the IP address block with specifed id. display_name, description
and cidr are parameters that can be modified. If a new cidr is specified,
it should contain all existing subnets in the IP block. Returns a conflict error
if the IP address block cidr can not be modified due to the presence of
subnets that it contains. Eg: If the IP block contains a subnet 192.168.0.1/24
and we try to change the IP block cidr to 10.1.0.1/16, it results in a conflict.

Request:

Method:
PUT
URI Path(s):
/api/v1/pools/ip-blocks/<block-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IpBlock+

Example Request:

PUT https://<nsx-mgr>/api/v1/pools/ip-blocks/4a5f22a8-8293-4212-93df-99286d20e35b { "_revision": 1, "display_name": "IPBlock-Tenant-1", "description": "IPBlock-Tenant-1 Description", "cidr": "192.168.1.0/24" }

Successful Response:

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

Example Response:

{ "_revision": 2, "id": "4a5f22a8-8293-4212-93df-99286d20e35b", "display_name": "IPBlock-Tenant-1", "description": "IPBlock-Tenant-1 Description", "resource_type": "IpBlock", "cidr": "192.168.1.0/24", "_last_modified_user": "admin", "_last_modified_time": 1414691880507, "_create_time": 1414691880507, "_create_user": "admin" }

Required Permissions:

crud

Feature:

ipam_ipam

Additional Errors: