Authorization Manager Has Privilege On Entities

Authorization Manager Has Privilege On Entities

Check whether a session holds a set of privileges on a set of managed entities.

If the session does not exist, false is returned for all privileges of all the entities.

This API is implemented only by vCenter Server.

Required privileges: System.View

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/AuthorizationManager/{moId}/HasPrivilegeOnEntities
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case AuthorizationManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.


Request Body
HasPrivilegeOnEntitiesRequestType of type(s) application/json
Required

Show optional properties

{
    "entity": [
        {}
    ],
    "sessionId": "string"
}
{
    "entity": [
        {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        }
    ],
    "sessionId": "string",
    "privId": [
        "string"
    ]
}
entity
Required

The set of entities on which the privileges are checked.

Required privileges: System.Read

string
sessionId
Required

The session ID to check privileges for. A sesssion ID can be obtained from UserSession.key.

array of string
privId
Optional

The array of privilege IDs to check.

Authentication
This operation uses the following authentication methods.
Responses
200

The privilege check result.

Returns Array of EntityPrivilege of type(s) application/json
[
    {
        "_typeName": "string",
        "entity": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "privAvailability": [
            {
                "_typeName": "string",
                "privId": "string",
                "isGranted": false
            }
        ]
    }
]