Allocation
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 modified if Tenant resources, e.g., Subnets or VPC Prefixes, reference the block.
patch/v2/org/{org}/nico/allocation/{allocationId}/constraint/{allocationConstraintId}
Request body
Example request
{
"constraintValue": 10
}Response
OK
Example response
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"allocationId": "9ec871ce-3363-4de2-8f79-062881067628",
"resourceType": "InstanceType",
"resourceTypeId": "a59ee688-b5e5-4606-9891-f4a605edacd3",
"constraintType": "Reserved",
"constraintValue": 10,
"derivedResourceId": null,
"instanceType": {
"name": "x3.large",
"infrastructureProviderId": "63c29416-8833-4eaf-9e1c-7c0173cc3150",
"siteId": "c9f4f276-6f7a-4209-953c-2b9870ce7cc1",
"status": "Ready"
},
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z"
}