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

Create or Replace IpAddressBlock

Create a new IpAddressBlock with given ID if it does not exist.
If IpAddressBlock with given ID already exists, it will update existing instance.
This is a full replace.

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/ip-blocks/Finance-block { "display_name": "Finance-block", "description": "Finance-block", "cidr": "192.168.0.0/16", "_revision": 0 }

Successful Response:

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

Example Response:

{ "resource_type": "IpAddressBlock", "id": "Finance-block", "display_name": "Finance-block", "path": "/infra/ip-blocks/Finance-block", "parent_path": "/infra/ip-blocks", "relative_path": "Finance-block", "cidr": "192.168.0.0/16", "_create_user": "admin", "_create_time": 1516387911610, "_last_modified_user": "admin", "_last_modified_time": 1516387911610, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_ipam

Additional Errors: