Update Allocation Constraint
Update an existing Allocation Constraint by ID
Org must have an Infrastructure Provider. Specified Allocation must have been created by the Provider and requesting user must have PROVIDER_ADMIN role.
Modifying allocations may not be possible if Tenant has started utilizing resources from this allocation.
For an InstanceType resource, constraintValue can be incremented at any time, but not decremented if doing so requires decommissioning Tenant resources.
For an IPBlock resource, constraintValue cannot be changed while Subnets or VPC Prefixes reference the allocated Tenant IP Block. If the source IP Block is linked to an OperatorManaged SitePrefix, its status must also be Ready before constraintValue can change. A change blocked by either condition returns 400.
Submitting the existing constraintValue leaves the constraint unchanged and does not require the source IP Block to be Ready.
Authentication
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
Path parameters
Request
Response
ID of the resource that acts as the source of the Allocation. For resource type InstanceType, this is the ID of the Instance Type whose associated Machines are allocated to the Tenant. For resource type IPBlock, this is the ID of the Site-level IP Block from which a prefix is allocated to the Tenant.
Type of the Allocation Constraint. Reserved is the only constraint type supported by current implementation.
Value of the Allocation Constraint. For resource type: InstanceType, this value represents number of Machines associated with the Instance Type that is allocated to the Tenant. For resource type IPBlock, this value represents the prefix length of the IP Block allocated to the Tenant.
Date/time when the Allocation Constraint was created
Date/time when the Allocation Constraint was last updated