[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Update Quota Policy

Description

Update the specified quota policy

Request

Request

URL

URL


put
https://{api_host}/cloudapi/1.0.0/quotaPolicies/{quotaPolicyId}
Copy

Path Parameters

Path Parameters

string
quotaPolicyId Required

Request Body

Request Body

QuotaPolicy of type(s) application/json Required
{
	"name": "string",
	"quotaPoolDefinitions": [
		{
			"quota": 0,
			"resourceType": "string"
		}
	]
}
string
name Required

Display name for the quota policy.


quotaPoolDefinitions Required

A list of quota pool definitions.


string
description Optional

string
id Changed Optional

URN for quota policy. This is immutable.


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.


string
orgId Changed Optional

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

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns QuotaPolicy of type(s) application/json;version=37.2
{
	"description": "string",
	"id": "string",
	"isAutoGenerated": false,
	"name": "string",
	"orgId": "string",
	"quotaPoolDefinitions": [
		{
			"qualifiers": [
				"vm.guestOs == Windows"
			],
			"quota": 0,
			"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.",
			"quotaResourceUnit": "memory unit - MB, cpu unit - MHz, storage unit - MB",
			"resourceType": "string"
		}
	]
}
string
name Required

Display name for the quota policy.


quotaPoolDefinitions Required

A list of quota pool definitions.


string
description Optional

string
id Changed Optional

URN for quota policy. This is immutable.


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.


string
orgId Changed Optional

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


202 Accepted

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

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"description":"string","id":"string","isAutoGenerated":false,"name":"string","orgId":"string","quotaPoolDefinitions":[{"qualifiers":["vm.guestOs == Windows"],"quota":0,"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.","quotaResourceUnit":"memory unit - MB, cpu unit - MHz, storage unit - MB","resourceType":"string"}]}' https://{api_host}/cloudapi/1.0.0/quotaPolicies/{quotaPolicyId}


[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Feedback

Was this page helpful?