Report output is not filtered to objects in custom group on API call
search cancel

Report output is not filtered to objects in custom group on API call

book

Article ID: 379858

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

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.

Environment

Aria Operations 8.14

Aria Operations 8.16

Aria Operations 8.18

Cause

Additional "traversalSpec" codes are needed on the API call.

Resolution

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

}

}