NSX-T Data Center REST API
Add a IP address to a IPSet
Add/Remove an individual IP address to an IPSetRequest:
Method:
POST
URI Path(s):
/api/v1/ip-sets/<ip-set-id>
Request Headers:
n/a
Query Parameters:
IPMemberAction+
Request Body:
IPAddressElement+
Example Request:
POST https://<nsx-mgr>/api/v1/ip-sets/183e372b-854c-4fcc-a24e-05721ce89a60?action=add_ip { "ip_address":"192.23.243.1" } example_response: | { "ip_address": "192.23.243.1", "_revision": 2 } POST https://<nsx-mgr>/api/v1/ip-sets/183e372b-854c-4fcc-a24e-05721ce89a60?action=remove_ip { "ip_address":"192.23.243.1" } example_response: | { "ip_address": "192.23.243.1", "_revision": 2 }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
IPAddressElement+