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
https://{api_host}/rest/com/vmware/vapi/metadata/privilege/service/operation/id:{service_id}
Parameters
Parameters
string
service_id
Required
Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service.
Query Parameters
Query Parameters
string
operation_id
Required
Identifier of the operation element.
The parameter must be an identifier for the resource type: com.vmware.vapi.operation.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
MetadataPrivilegeServiceOperationGetResponseBody
of type application/json
The OperationInfo instance that corresponds to operationId.
{
"value": {
"privilege_info": [
{
"privileges": [
"string"
],
"property_path": "string"
}
],
"privileges": [
"string"
]
}
}
value
Optional
The OperationInfo instance that corresponds to operationId.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/vapi/metadata/privilege/service/operation/id:{service_id}?operation_id=string
Errors
404
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
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.