Authorization Manager Has Privilege On Entity
Check whether a session holds a set of privileges on a managed entity.
If the session does not exist, false is returned for all privileges.
This API is implemented only by vCenter Server.
Required privileges: System.View
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}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
Show optional properties
{
"entity": {},
"sessionId": "string"
}
{
"entity": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"sessionId": "string",
"privId": [
"string"
]
}
The session ID to check privileges for. A sesssion ID can be obtained from UserSession.key.
The array of privilege IDs to check.
a boolean value for each privilege indicating whether the session holds the privilege.
[
{}
]