Replace Vm Classes In VDC

Replace Vm Classes In VDC

Replaces the existing set of Virtual Machine Classes in the VDC with the Virtual Machine Classes (as references) supplied.

Request
URI
PUT
https://{api_host}/cloudapi/vcf/virtualDatacenters/{vdcUrn}/virtualMachineClasses
COPY
Path Parameters
string
vdcUrn
Required

vdcUrn


Request Body
EntityReferences of type(s) application/json
Optional
{
    "resultTotal": 0,
    "pageCount": 0,
    "page": 0,
    "pageSize": 0,
    "associations": [
        {
            "entityId": "string",
            "associationId": "string"
        }
    ],
    "values": [
        {
            "name": "string",
            "id": "string"
        }
    ]
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns EntityReferences of type(s) application/json;version=40.0
This response body class contains all of the following: InlineEntityReferences0 , InlineEntityReferences1
"EntityReferences Object"

Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"values":["object"]}' https://{api_host}/cloudapi/vcf/virtualDatacenters/{vdcUrn}/virtualMachineClasses