com.vmware.vapi.metadata.privilege.service.operation

The operation service provides operations to retrieve privilege information of an operation element.

An operation element is said to contain privilege information if there are any privileges assigned to the operation element or if one of the parameter elements contained in it has privileges assigned in privilege definition file.

list

GET /com/vmware/vapi/metadata/privilege/service/operation
POST /com/vmware/vapi/metadata/privilege/service/operation/id:{service_id}?~action=list
POST /com/vmware/vapi/metadata/privilege/service/operation?~action=list

Returns the identifiers for the operation elements contained in the service element corresponding to service_id that have privilege information.
Request:
Representations:
{
    "service_id""obj-103"
}
<?xml version="1.0" ?>
<ns0:List-Input xmlns:ns0="http://vmware.com/vapi/metadata/privilege/service/operation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <service_id>obj-103</service_id>
</ns0:List-Input>
GET /com/vmware/vapi/metadata/privilege/service/operation
?service_id=obj-103

Parameters:
Name Type Required Description
service_id
 *
ID Yes Identifier of the service element. Id of type com.vmware.vapi.service.

Response:
Representations:
{
    "value"[
        "obj-103",
        "obj-103"
    ]
}
<?xml version="1.0" ?>
<ns0:List-Result xmlns:ns0="http://vmware.com/vapi/metadata/privilege/service/operation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <value-array>
    <array-item>obj-103</array-item>
    <array-item>obj-103</array-item>
  </value-array>
</ns0:List-Result>

Parameters:
Name Type Required Description
result List<ID> Yes List of identifiers for the operation elements contained in the service element that have privilege information. Id of type com.vmware.vapi.operation.

Errors:
Type Description HTTP Status Code
not_found if the service element associated with service_id does not have any operation elements that have privilege information. 404

Copyright © 2014. All Rights Reserved.