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

Add VDC Compute Policy To VDCs

Description

Assign this organization VDC compute policy to list of VDCs.

Request

Request

URL

URL


post
https://{api_host}/cloudapi/2.0.0/vdcComputePolicies/{vdcComputePolicyId}/vdcs
Copy

Path Parameters

Path Parameters

string
vdcComputePolicyId Required

Request Body

Request Body

array of EntityReference of type(s) application/json Required
{
	"id": "string",
	"name": "string"
}
string
id Optional

string
name Optional
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns array of EntityReference of type(s) application/json;version=36.3
{
	"id": "string",
	"name": "string"
}
string
id Optional

string
name Optional

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '[{"id":"string","name":"string"}]' https://{api_host}/cloudapi/2.0.0/vdcComputePolicies/{vdcComputePolicyId}/vdcs


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