List Privilege Checks
Queries the privilege checks matching given criteria. if you do not have all of the privileges described as follows: - Operation execution requires Sessions.CollectPrivilegeChecks.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"filter": {
"objects": [
{
"id": "string",
"type": "string"
}
],
"op_ids": [
"string"
],
"principals": [
{
"domain": "string",
"name": "string"
}
],
"privileges": [
"string"
],
"sessions": [
"string"
]
}
}
Contains optional settings by which the privilege checks should be filtered. if unset, recorded privilege checks matching the iteration spec are returned.
Authentication
Response
Response BodyResponse Body
Detailed information about the privileges collected so far.
{
"items": [
{
"object": {
"id": "string",
"type": "string"
},
"principal": {
"domain": "string",
"name": "string"
},
"privilege": "string"
}
],
"marker": "string",
"truncated": false
}
Privilege checks that match the specifiedPrivilegeChecks.FilterSpec and PrivilegeChecks.IterationSpec in chronological order as they were performed. Each check is recorded only the first time it is made. If more than one privilege check matches a given PrivilegeChecks.FilterSpec (for example, two different opIDs checked System.Read for the same object and the same principal, a FilterSpec which specifies only the principal will only contain the first check).
An opaque marker indicating the last returned privilege check. If there are more privilege checks collected than were returned, the next ones can be retrieved directly by passing this value to another call to com.vmware.vcenter.authorization.PrivilegeChecks.list.
In case PrivilegeChecks.IterationSpec.marker was specified and valid, but the privilege check indicated by it is no longer stored,
Errors
com.vmware.vapi.std.errors.invalid_argument : if filter or iteration spec contain invalid values.
com.vmware.vapi.std.errors.not_found : if the iteration spec contains a marker that could not be found.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: list