NSX-T Data Center REST API
Create or Update limit
API to create or update a limit definition.If the limit with the limit-id already exists, it will be updated.
If the limit-id doesn't exist then it creates a new limit object.
Request:
Method:
PUT
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:
PUT 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"] }, "_revision": 0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
Limit+