NSX-T Data Center REST API
Create or update limit
API to create or update a limit definition. If the object with the ID already exists, it will be updated.Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/infra/limits/{limit-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/limits/{limit-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/limits/{limit-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
Limit+
Example Request:
PATCH https://<policy-mgr>/policy/api/v1/infra/limits/ipblock-quota-limit { "quota": { "resource_type": "IpBlockQuota", "ip_block_visibility": "EXTERNAL", "ip_block_address_type": "IPV4", "single_ip_cidrs": 3, "other_cidrs": { "mask": "/28", "total_count": 2 }, "ip_block_paths": ["/infra/ip-blocks/eipb1"] } }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
Limit+