com.vmware.vapi.metadata.privilege.component

The component service provides operations to retrieve privilege information of a component element.

A component element is said to contain privilege information if any one of package elements in it contains privilege information.

fingerprint

POST /com/vmware/vapi/metadata/privilege/component/id:{component_id}?~action=fingerprint
POST /com/vmware/vapi/metadata/privilege/component?~action=fingerprint

Retrieves the fingerprint computed from the privilege metadata of the component element corresponding to component_id.

The fingerprint provides clients an efficient way to check if the metadata for a particular component has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of get.

Request:
Representations:
{
    "component_id""obj-103"
}
<?xml version="1.0" ?>
<ns0:Fingerprint-Input xmlns:ns0="http://vmware.com/vapi/metadata/privilege/component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <component_id>obj-103</component_id>
</ns0:Fingerprint-Input>
POST /com/vmware/vapi/metadata/privilege/component?~action=fingerprint
&component_id=obj-103

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

Response:
Representations:
{
    "value""string"
}
<?xml version="1.0" ?>
<ns0:Fingerprint-Result xmlns:ns0="http://vmware.com/vapi/metadata/privilege/component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <value>string</value>
</ns0:Fingerprint-Result>

Parameters:
Name Type Required Description
result string Yes The fingerprint computed from the privilege metadata of the component.

Errors:
Type Description HTTP Status Code
not_found if the component element associated with component_id does not have any privilege information. 404

Copyright © 2014. All Rights Reserved.