Update Vdc Compute Policy

Update Vdc Compute Policy

Updates vDC compute policy. if PolicyType is VdcKubernetesPolicy, then the response is a 202 with task URL in location header. For VdcVmPolicy type, the response is 200 with updated policy in response body.

Request
URI
PUT
https://{api_host}/cloudapi/2.0.0/vdcComputePolicies/{vdcComputePolicyId}
COPY
Path Parameters
string
vdcComputePolicyId
Required

vdcComputePolicyId


Request Body
VdcComputePolicy2 of type(s) application/json
Optional

Show optional properties

{
    "policyType": "VdcKubernetesPolicy",
    "name": "myPolicy"
}
{
    "id": "string",
    "description": "string",
    "policyType": "string",
    "name": "string",
    "pvdcComputePolicy": {
        "name": "string",
        "id": "string"
    },
    "compatibleVdcTypes": [
        "string"
    ],
    "isSizingOnly": false,
    "hasSizingInfo": false,
    "pvdcId": "string",
    "org": {
        "name": "string",
        "id": "string"
    },
    "isAutoGenerated": false
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns VdcComputePolicy2 of type(s) application/json;version=39.1
"VdcComputePolicy2 Object"
string
id
Optional

UUID for vDC compute policy. This is immutable.

string
description
Optional
Constraints: minLength: 1 maxLength: 256

description

string
policyType
Required

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

string
name
Required
Constraints: minLength: 1 maxLength: 128

Display name.

object
pvdcComputePolicy
Optional

Entity reference used to describe VCD entities

array of string
compatibleVdcTypes
Optional

A list of read-only compatible vDC types for this policy.

boolean
isSizingOnly
Optional

This field cannot be updated and is a read-only field in the client after creation. It defines whether the policy is SIZING_ONLY or if it also contains affinity information.

boolean
hasSizingInfo
Optional

This field cannot be updated and is a read-only field in the client after creation. It defines whether the policy has sizing details.

string
pvdcId
Optional

URN for Provider vDC.

object
org
Optional

Entity reference used to describe VCD entities

boolean
isAutoGenerated
Optional

It is a read-only field. It indicates whether the policy is auto-generated.


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 PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","policyType:"string"}' https://{api_host}/cloudapi/2.0.0/vdcComputePolicies/{vdcComputePolicyId}