Add Interface Behavior

Add Interface Behavior

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

Request
URI
POST
https://{api_host}/cloudapi/1.0.0/interfaces/{id}/behaviors
COPY
Path Parameters
string
id
Required

id

string
id
Required

id


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

name

string
id
Optional

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

string
ref
Optional

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

string
description
Optional

A description specifying the contract of the Behavior

object
execution
Optional

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

Authentication
This operation uses the following authentication methods.
Responses
200

OK

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

name

string
id
Optional

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

string
ref
Optional

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

string
description
Optional

A description specifying the contract of the Behavior

object
execution
Optional

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