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

Invoke Defined Entity Behavior

Description

Invokes a behavior on a defined entity. The contract of the behavior is specified in the behavior description. If an Activity behavior is invoked with an ‘operationId’ in the invocation metadata, then another invocation of the behavior with the same ‘operationId’ will be ignored within the next 1 hour.

Request

Request

URL

URL


post
https://{api_host}/cloudapi/1.0.0/entities/{id}/behaviors/{behaviorId}/invocations
Copy

Path Parameters

Path Parameters

string
id Required

string
behaviorId Required

Request Body

Request Body

BehaviorInvocation of type(s) application/json Optional
{
	"arguments": {},
	"metadata": {}
}
arguments Optional

The arguments to be passed to the invoked Behavior


metadata Optional

Metadata to be passed to the invoked Behavior

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

202 Accepted

The request have been accepted and the task to monitor the request is in the Location header.

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"arguments":{},"metadata":{}}' https://{api_host}/cloudapi/1.0.0/entities/{id}/behaviors/{behaviorId}/invocations


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