Policy Constraint Alarm Creation Count Limit Reached Under Project Context
search cancel

Policy Constraint Alarm Creation Count Limit Reached Under Project Context

book

Article ID: 322455

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • You are receiving a policy_constraint.creation_count_limit_reached_for_project error in NSX.
  • Users are not able to create new resource of the specified type on which alarm is raised.
  • The error contains the object or resource that the constraint is set for.

 

Environment

VMware NSX-T Data Center

Cause

This occurs when there is a quota set for a specified resource type and the maximum resource count has been reached.  See Adding Quotas to an NSX Project in the online documentation.

Resolution

You must, either, delete unwanted or unused resources of the type to get under the quota limit or increase the quota limit for the specified resource.

Alternatively, you could remove the imposed quotas if they are no longer needed.

To delete the quota or change the limit, using the following procedure:

  1. Log into the NSX Manager as a user with admin privileges.
  2. Select the projects section in the main toolbar and click on MANAGE:
  3. In the Manage Projects page that comes up, select the Quotas tab.
  4. Select the ellipses (three vertical dots) on the left side of the quota that needs to be changed and select Edit.  You may select Delete if you wish to remove the quota instead.
  5. Select the number under the Limits section to edit the imposed limits.
  6. Select the ellipses and then Edit to change the imposed limit.
  7. Make the desired change, then click the ADD button to save the change.
  8. Click the APPLY button to apply the changes

 

Refer to Adding Quotas to an NSX Project in the online documentation for more information.

Additional Information

Quotas can be managed via API, if necessary, using the infra/policy/contraints API calls.

 

List tenant Constraints.


List tenant constraints.
GET /policy/api/v1/infra/constraints
GET /policy/api/v1/global-infra/constraints
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/constraints

Delete tenant Constraint.


Delete tenant constraint.
DELETE /policy/api/v1/infra/constraints/{constraint-id}
DELETE /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/constraints/{constraint-id}

Read tenant Constraint.


Read tenant constraint.
GET /policy/api/v1/infra/constraints/{constraint-id}
GET /policy/api/v1/global-infra/constraints/{constraint-id}
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/constraints/{constraint-id}

Create or update tenant Constraint


Create tenant constraint if not exists, otherwise update the existing constraint.
PATCH /policy/api/v1/infra/constraints/{constraint-id}
PATCH /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/constraints/{constraint-id}

Create or update tenant Constraint


Create tenant constraint if it does not exist,
otherwise replace the existing constraint.
PUT /policy/api/v1/infra/constraints/{constraint-id}
PUT /policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/constraints/{constraint-id}