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.
"HasPrivilegeOnEntityRequestType Object"
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.
[
{}
]
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/AuthorizationManager/{moId}/HasPrivilegeOnEntity