[{"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

Create Quota Policy

Description

Creates a new quota policy

Request

Request

URL

URL


post
https://{api_host}/cloudapi/1.0.0/quotaPolicies
Copy

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

201 Created

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

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -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


[{"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?