[{"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
DescriptionAdds an access control configuration of an entity type’s behavior
Request
URLURL
https://{api_host}/cloudapi/1.0.0/entityTypes/{id}/behaviorAccessControls
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
This operation uses the following authentication methods.
Response
Response
Response BodyResponse 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
Error
400
Invalid configuration.
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
Availability
Added in 35.0