[{"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 Pvdc Compute Policy Deprecated

Description

Creates a new pVDC compute policy

Request

Request

URL

URL


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

Request Body

Request Body

PvdcComputePolicy of type(s) application/json Required
{
	"name": "string"
}
string
name Required

Display name.


string
description Optional

string
id Optional

UUID for pVDC compute policy. This is immutable.


array of EntityReference
logicalVmGroupReferences Optional

This field cannot be updated and is a read-only field after creation.


array of EntityReference
namedVmGroupReferences Optional

This field cannot be updated and is a read-only field in the client after creation. Deprecated in Api 33.0, this property will be removed in future release.


array of EntityReference
namedVmGroups Optional

List of list of vmGroups grouped together in a meaningful manner. A group of vmGroups would consist of one functionally equal vmGroup picked from each cluster of the pvdc.


string
pvdcId Optional

URN for Provider VDC. If not provided, then this policy is considered Global.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns PvdcComputePolicy of type(s) application/json;version=36.3
{
	"description": "string",
	"id": "string",
	"logicalVmGroupReferences": [
		{
			"id": "string",
			"name": "string"
		}
	],
	"name": "string",
	"namedVmGroupReferences": [
		{
			"id": "string",
			"name": "string"
		}
	],
	"namedVmGroups": [
		{
			"id": "string",
			"name": "string"
		}
	],
	"pvdcId": "string"
}
string
name Required

Display name.


string
description Optional

string
id Optional

UUID for pVDC compute policy. This is immutable.


array of EntityReference
logicalVmGroupReferences Optional

This field cannot be updated and is a read-only field after creation.


array of EntityReference
namedVmGroupReferences Optional

This field cannot be updated and is a read-only field in the client after creation. Deprecated in Api 33.0, this property will be removed in future release.


array of EntityReference
namedVmGroups Optional

List of list of vmGroups grouped together in a meaningful manner. A group of vmGroups would consist of one functionally equal vmGroup picked from each cluster of the pvdc.


string
pvdcId Optional

URN for Provider VDC. If not provided, then this policy is considered Global.

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","logicalVmGroupReferences":[{"id":"string","name":"string"}],"name":"string","namedVmGroupReferences":[{"id":"string","name":"string"}],"namedVmGroups":[{"id":"string","name":"string"}],"pvdcId":"string"}' https://{api_host}/cloudapi/1.0.0/pvdcComputePolicies


[{"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
Availability
Deprecated in 35.0
With alternative: 2.0.0 version of API
Pvdc Compute Policies Operations
Feedback

Was this page helpful?