Vapi Metadata Privilege Component get
Retrieves privilege information about the component element corresponding to componentId.
The Vapi Metadata Privilege ComponentData contains the privilege information about the component element and its fingerprint. It contains information about all the package elements that belong to this component element.
Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.
The Vapi Metadata Privilege ComponentData instance that corresponds to componentId
{
"info": {
"packages": {
"packages": {
"privileges": [
"string"
],
"services": {
"services": {
"operations": {
"operations": {
"privileges": [
"string"
],
"privilege_info": [
{
"property_path": "string",
"privileges": [
"string"
]
}
]
}
}
}
}
}
}
},
"fingerprint": "string"
}
Privilege information of the component. This includes information about all the namespaces in the component.
Fingerprint of the metadata of the component.
Privilege information could change when there is an infrastructure update. Since the data present in Vapi Metadata Privilege ComponentData.info could be quite large, fingerprint provides a convenient way to check if the data for a particular component is updated.
You should store the fingerprint associated with a component. After an update, by invoking the GET /vapi/metadata/privilege/component/{componentId}/fingerprint operation, you can retrieve the new fingerprint for the component. If the new fingerprint and the previously stored fingerprint do not match, clients can then use the GET /vapi/metadata/privilege/component/{componentId} to retrieve the new privilege information for the component.
if the component element associated with componentId does not have any privilege information.
"Vapi Std Errors NotFound Object"
curl -H 'Authorization: <value>' https://{api_host}/api/vapi/metadata/privilege/component/{componentId}