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

Error
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 (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?