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

Update Type Behavior

Description

Override the execution of the specified Behavior in the Defined Entity Type. The Behavior must be specified by ID.

Request

Request

URL

URL


put
https://{api_host}/cloudapi/1.0.0/entityTypes/{id}/behaviors/{behaviorId}
Copy

Path Parameters

Path Parameters

string
id Required

string
behaviorId Required

Request Body

Request Body

Behavior of type(s) application/json Required
{
    "description": "Adds a node to the cluster.\nParameters:\n  clusterId: the ID of the cluster\n  node: The node address\n",
    "id": "urn:vcloud:behavior-type:addNode:vendorA:pksContainerCluster:1.0.0:vendorA:containerCluster:1.0.0",
    "name": "addNode",
    "ref": "urn:vcloud:behavior-interface:testNode:vendorA:containerCluster:1.0.0"
}
string
description Optional

A description specifying the contract of the Behavior


map of object
execution Optional

The Behavior execution mechanism. Can be defined both in an Interface and in a Defined Entity Type as an override.


string
id Optional

The Behavior ID is generated and is an output-only property


string
name Optional

string
ref Optional

The Behavior invocation reference to be used for polymorphic behavior invocations. It is generated and is an output-only property

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns Behavior of type(s) application/json;version=37.2
{
    "description": "Adds a node to the cluster.\nParameters:\n  clusterId: the ID of the cluster\n  node: The node address\n",
    "id": "urn:vcloud:behavior-type:addNode:vendorA:pksContainerCluster:1.0.0:vendorA:containerCluster:1.0.0",
    "name": "addNode",
    "ref": "urn:vcloud:behavior-interface:testNode:vendorA:containerCluster:1.0.0"
}
string
description Optional

A description specifying the contract of the Behavior


map of object
execution Optional

The Behavior execution mechanism. Can be defined both in an Interface and in a Defined Entity Type as an override.


string
id Optional

The Behavior ID is generated and is an output-only property


string
name Optional

string
ref Optional

The Behavior invocation reference to be used for polymorphic behavior invocations. It is generated and is an output-only property

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"description":"Adds a node to the cluster.\nParameters:\n clusterId: the ID of the cluster\n node: The node address\n","id":"urn:vcloud:behavior-type:addNode:vendorA:pksContainerCluster:1.0.0:vendorA:containerCluster:1.0.0","name":"addNode","ref":"urn:vcloud:behavior-interface:testNode:vendorA:containerCluster:1.0.0"}' https://{api_host}/cloudapi/1.0.0/entityTypes/{id}/behaviors/{behaviorId}


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