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

Add Defined Entity Type Access

Description

Adds an access control configuration of an entity type’s behavior

Request

Request

URL

URL


post
https://{api_host}/cloudapi/1.0.0/entityTypes/{id}/behaviorAccessControls
Copy

Path Parameters

Path Parameters

string
id Required

Request Body

Request Body

BehaviorAccess of type(s) application/json Required
{
	"accessLevelId": "urn:vcloud:accessLevel:ReadOnly",
	"behaviorId": "urn:vcloud:behavior-interface:testNode:vendorA:containerCluster:1.0.0"
}
string
accessLevelId Optional

The ID of an AccessLevel.


string
behaviorId Optional

The ID of the Behavior. It can be both a behavior-interface or an overriden behavior-type ID.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns BehaviorAccess of type(s) application/json;version=36.3
{
	"accessLevelId": "urn:vcloud:accessLevel:ReadOnly",
	"behaviorId": "urn:vcloud:behavior-interface:testNode:vendorA:containerCluster:1.0.0"
}
string
accessLevelId Optional

The ID of an AccessLevel.


string
behaviorId Optional

The ID of the Behavior. It can be both a behavior-interface or an overriden behavior-type ID.

Errors

Errors

400

Invalid configuration.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"accessLevelId":"urn:vcloud:accessLevel:ReadOnly","behaviorId":"urn:vcloud:behavior-interface:testNode:vendorA:containerCluster:1.0.0"}' https://{api_host}/cloudapi/1.0.0/entityTypes/{id}/behaviorAccessControls


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