Update Quota Policy

Update Quota Policy

Update the specified quota policy

Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/quotaPolicies/{quotaPolicyId}
COPY
Path Parameters
string
quotaPolicyId
Required

quotaPolicyId


Request Body
QuotaPolicy of type(s) application/json
Optional

Show optional properties

{
    "name": "string",
    "quotaPoolDefinitions": [
        {
            "resourceType": "string",
            "quota": 0
        }
    ]
}
{
    "id": "string",
    "description": "string",
    "name": "string",
    "orgId": "string",
    "quotaPoolDefinitions": [
        {
            "quotaResourceName": "Running VMs quota is the user friendly name for resource type VM with qualifiers deployed == true. Consumed Memory quota is the user fiendly name for resource type memory.",
            "resourceType": "string",
            "quotaResourceUnit": "memory unit - MB, cpu unit - MHz, storage unit - MB",
            "quota": 0,
            "qualifiers": [
                "string"
            ]
        }
    ],
    "isAutoGenerated": false
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns QuotaPolicy of type(s) application/json;version=39.1
"QuotaPolicy Object"
string
id
Optional

URN for quota policy. This is immutable.

string
description
Optional
Constraints: minLength: 1 maxLength: 256 default: A quota policy.

description

string
name
Required
Constraints: minLength: 1 maxLength: 128

Display name for the quota policy.

string
orgId
Optional

URN of org in which this policy is created. This is immutable

array of object
quotaPoolDefinitions
Required

A list of quota pool definitions.

boolean
isAutoGenerated
Optional

This field cannot be updated and is a read-only field in the client. It defines if the quota policy is auto-generated.


202

The request have been accepted and the task to monitor the request is in the Location header.

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","quotaPoolDefinitions":["object"]}' https://{api_host}/cloudapi/1.0.0/quotaPolicies/{quotaPolicyId}