Get Privilege Service Operation
Retrieves the privilege information about an operation element corresponding to operationId contained in the service element corresponding to serviceId.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the service element. The parameter must be an identifier for the resource type: com.vmware.vapi.service.
Identifier of the operation element. The parameter must be an identifier for the resource type: com.vmware.vapi.operation.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
The OperationInfo instance that corresponds to operationId.
{
"privilege_info": [
{
"privileges": [
"string"
],
"property_path": "string"
}
],
"privileges": [
"string"
]
}
Privilege information of all the parameter elements of the operation element. For an explanation of containment of privilege information within parameter elements, see PrivilegeInfo.
List of all privileges assigned to the operation element.
Errors
com.vmware.vapi.std.errors.not_found : if the service element associated with serviceId does not exist. if the operation element associated with operationId does not exist. if the operation element associated with operationId does not have any privilege information.
‘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-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/com/vmware/vapi/metadata/privilege/service/operation/id:{service_id}?~action=get
x-vmw-doc-operation: get