Get Privilege Service
Retrieves privilege information about 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.
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 ServiceInfo instance that corresponds to serviceId
{
"operations": {
"key": {
"privilege_info": [
{
"privileges": [
"string"
],
"property_path": "string"
}
],
"privileges": [
"string"
]
}
}
}
Information about all operation elements contained in this service element that contain privilege information. The key in the map is the identifier of the operation element and the value in the map is the privilege information for the operation element. For an explanation of containment of privilege information within operation elements, see Operation.
When clients pass a value of this structure as a parameter, the key in the field map must be an identifier for the resource type: com.vmware.vapi.operation. When operations return a value of this structure as a result, the key in the field map will be an identifier for the resource type: com.vmware.vapi.operation.
Errors
com.vmware.vapi.std.errors.not_found : if the service element associated with serviceId 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: get
x-vmw-doc-deprecated-path: /rest/com/vmware/vapi/metadata/privilege/service/id:{service_id}
x-vmw-doc-operation: get