Create Entity Access Control Grant

Create Entity Access Control Grant

Creates an access-control grant, giving the user the level of access for the vCD entity.

Request
URI
POST
https://{api_host}/cloudapi/1.0.0/entities/{objectId}/accessControls
COPY
Path Parameters
string
objectId
Required

objectId


Request Body
AccessControlGrant of type(s) application/json
Optional
{
    "id": "string",
    "tenant": {
        "name": "string",
        "id": "string"
    },
    "grantType": "string",
    "objectId": "string",
    "accessLevelId": "urn:vcloud:accessLevel:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
string
id
Optional

VcloudId URN identifier for ACL grant

tenant
Optional

tenant

string
grantType
Required

Indicates whether this access control grant is based on user memberships or entitlements

string
objectId
Optional

The object that this access control grant applies to

string
accessLevelId
Required

The ID of the level of access which the subject will be granted.

Authentication
This operation uses the following authentication methods.
Responses
201

Created

Returns AccessControlGrant of type(s) application/json;version=36.3
{
    "id": "string",
    "tenant": {
        "name": "string",
        "id": "string"
    },
    "grantType": "string",
    "objectId": "string",
    "accessLevelId": "urn:vcloud:accessLevel:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
string
id
Optional

VcloudId URN identifier for ACL grant

tenant
Optional

tenant

string
grantType
Required

Indicates whether this access control grant is based on user memberships or entitlements

string
objectId
Optional

The object that this access control grant applies to

string
accessLevelId
Required

The ID of the level of access which the subject will be granted.