Get Privilege Component
DescriptionRetrieves privilege information about the component element corresponding to componentId. The 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.
Request
URLURL
https://{api_host}/rest/com/vmware/vapi/metadata/privilege/component/id:{component_id}
Parameters
Parameters
string
component_id
Required
Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component.
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
MetadataPrivilegeComponentGetResponseBody
of type application/json
The ComponentData instance that corresponds to componentId
{
"value": {
"fingerprint": "string",
"info": {
"packages": [
{
"key": "key1",
"value": {
"privileges": [
"string"
],
"services": [
{
"key": "key1",
"value": {
"operations": [
{
"key": "key1",
"value": {
"privilege_info": [
{
"privileges": [
"string"
],
"property_path": "string"
}
],
"privileges": [
"string"
]
}
}
]
}
}
]
}
}
]
}
}
}
value
Optional
The ComponentData instance that corresponds to componentId
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/vapi/metadata/privilege/component/id:{component_id}
Errors
404
com.vmware.vapi.std.errors.not_found : if the component element associated with componentId 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.