[{"label":"Latest (v36.3)","version":"latest"},{"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

Description

Creates a new pVDC compute policy

Request

Request

URL

URL


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

Request Body

Request Body

PvdcComputePolicy2 of type(s) application/json Required
{
	"name": "string",
	"policyType": "string"
}
string
name Required

Display name.


string
policyType Required

The discriminator type is used to differentiate among various sub policy types.


string
description Optional

string
id Optional

UUID for pVDC compute policy. This is immutable.


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

202 Accepted returns PvdcComputePolicy2 of type(s) application/json;version=36.3
{
	"description": "string",
	"id": "string",
	"name": "string",
	"policyType": "string",
	"pvdcId": "string"
}
string
name Required

Display name.


string
policyType Required

The discriminator type is used to differentiate among various sub policy types.


string
description Optional

string
id Optional

UUID for pVDC compute policy. This is immutable.


string
pvdcId Optional

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

Errors

Errors

400

Invalid configuration.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"description":"string","id":"string","name":"string","policyType":"string","pvdcId":"string"}' https://{api_host}/cloudapi/2.0.0/pvdcComputePolicies


[{"label":"Latest (v36.3)","version":"latest"},{"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?