When report is generated via Product UI, with reference to Custom Group being selected, the report provides filtered data based on objects listed in the custom group. However, when the same report is generated from the Swagger API call, the data is not filtered based on the custom group, resulting in full listing of VMs and Hosts from the vCenter.
Aria Operations 8.14
Aria Operations 8.16
Aria Operations 8.18
Additional "traversalSpec
" codes are needed on the API call.
The following codes to be inserted into the API to generate the same result, filtering the data based on the Custom Group:
"traversalSpec": {
"name": "Custom Groups",
"rootAdapterKindKey": "?",
"rootResourceKindKey": "?",
"adapterInstanceAssociation": false
}
Example of the API call with the inclusion of the "traversalSpec" codes:
{
"resourceId" : "######-####-####-####-########",
"reportDefinitionId" : "######-####-####-####-#######",
"traversalSpec": {
"name": "Custom Groups",
"rootAdapterKindKey": "?",
"rootResourceKindKey": "?",
"adapterInstanceAssociation": false
}
}