Create Pvdc Compute Policy
Creates a new pVDC compute policy
Request
URI
POST
https://{api_host}/cloudapi/2.0.0/pvdcComputePolicies
COPY
Request Body
PvdcComputePolicy2
of type(s)
application/json
Optional
Show optional properties
{
"policyType": "PvdcKubernetesPolicy",
"name": "myPolicy"
}
{
"id": "string",
"name": "string",
"policyType": "string",
"description": "string",
"pvdcId": "string"
}
Responses
201
Created
Returns
PvdcComputePolicy2
of type(s)
application/json;version=39.1
"PvdcComputePolicy2 Object"
string
id
Optional
UUID for pVDC compute policy. This is immutable.
string
name
Required
Constraints:
minLength: 1
maxLength: 128
Display name.
string
policyType
Required
The discriminator type is used to differentiate among various sub policy types.
string
description
Optional
Constraints:
minLength: 1
maxLength: 256
default:
description
string
pvdcId
Optional
URN for Provider vDC. If not provided, then this policy is considered Global.
202
The request have been accepted and the task to monitor the request is in the Location header.
Operation doesn't return any data structure
400
Invalid configuration.
Returns
Error
of type(s)
application/json;version=39.1
"Error Object"
string
minorErrorCode
Required
minorErrorCode
string
message
Required
message
string
stackTrace
Optional
stackTrace
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","policyType:"string"}' https://{api_host}/cloudapi/2.0.0/pvdcComputePolicies
Availability
Added in 35.0
On This Page
Pvdc Compute Policies2 Operations
GET
Query Pvdc Compute Policies
POST
Create Pvdc Compute Policy
GET
Get Pvdc Compute Policy
PUT
Update Pvdc Compute Policy
DELETE
Delete Pvdc Compute Policy
GET
Query Virtual Machine Classes