This API has a deprecated equivalent from v7.0U1.
Get Privilege Service Operation
DescriptionRetrieves the privilege information about an operation element corresponding to operationId contained in the service element corresponding to serviceId.
Request
URLURL
https://{api_host}/api/vapi/metadata/privilege/service/{service_id}/operation/{operation_id}
Path Parameters
Path Parameters
string
service_id
Required
Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service.
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, obtained by first calling Create Session API
Response
Response
Response BodyResponse Body
200 OK returns
MetadataPrivilegeOperationInfo of type application/json
The OperationInfo instance that corresponds to operationId.
{
"privilege_info": [
{
"privileges": [
"string"
],
"property_path": "string"
}
],
"privileges": [
"string"
]
}
array of
MetadataPrivilegePrivilegeInfo
privilege_info
Required
Privilege information of all the parameter elements of the operation element. For an explanation of containment of privilege information within parameter elements, see PrivilegeInfo.
array of
string
privileges
Required
List of all privileges assigned to the operation element.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/api/vapi/metadata/privilege/service/{service_id}/operation/{operation_id}
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.
Availability
Added in 7.0U2