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

Add Interface Behavior

Description

Add a new Behavior to the Interface. Only allowed if the Interface is not in use.

Request

Request

URL

URL


post
https://{api_host}/cloudapi/1.0.0/interfaces/{id}/behaviors
Copy

Path Parameters

Path Parameters

string
id 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=36.3
{
    "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 POST -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/interfaces/{id}/behaviors


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