You can try to change your policy criteria to Lookup Data Set Search and configure like below. Copy the commands from your Command Groups object to Lookup Data Set Search object (newly created) and use this object for new criteria (highlighted area below).
If this policy works as intended, then now you can query to newly created Lookup Data Set Search object as Jaired advised before.
I hope this solution works.
------------------------------
Cezmi Cal
technical support engineer
Barikat Cyber Security
Ankara
------------------------------
Original Message:
Sent: 06-09-2022 07:36
From: Ghulam Mallah
Subject: API - Global Objects Command Group
Thank you Cezmi for your quick response. Do you know what is the best approach to get that data from directly from database or other sources?
------------------------------
Ghulam Mallah
Security Database Consultant
Hook
Original Message:
Sent: 06-09-2022 07:31
From: Cezmi Cal
Subject: API - Global Objects Command Group
Hi Ghulam,
As i understand from screenshot, you are using SecureSphere v13.x. According to the following documentation page, you cannot query to Command Groups scope.
https://docs.imperva.com/bundle/v13.6-api-reference-guide/page/69334.htm
You can query to following scopes:
In addition, I looked newer versions' API Guides and there is also no addition to query to Command Groups scope.
------------------------------
Cezmi Cal
technical support engineer
Barikat Cyber Security
Ankara
Original Message:
Sent: 06-09-2022 07:15
From: Ghulam Mallah
Subject: API - Global Objects Command Group
Thank you Jaired for your response. I tried, but I couldn't acquire the data. I can retrieve the data from DataSets but not from Global Trees Command Groups. The screenshot below depicts what I'm attempting to achieve. I am using following command for datasets.
`curl -sik -X GET -H "Cookie: JSESSIONID=$JSESSIONID" -H "Content-Type: application/json" -H "Accept: application/json" https://$MX:8083/SecureSphere/api/v1/conf/dataSets/Command%20exclusuions/data`
Please advise and alter the above command to get the Command Groups data.
------------------------------
Ghulam Mallah
Security Database Consultant
Hook
Original Message:
Sent: 06-06-2022 16:16
From: Jaired Anderson
Subject: API - Global Objects Command Group
Hi Ghulam,
You might be able to get it by making a call to the lookup data set.
Please see: https://docs.imperva.com/bundle/v14.7-dam-api-reference-guide/page/61645.htm
If you have a previous version of SecureSphere, please see https://docs.imperva.com/bundle/api-docs/page/api/onpremsec.htm for older documentation.
Thanks.
Original Message:
Sent: 06-05-2022 19:43
From: Ghulam Mallah
Subject: API - Global Objects Command Group
Dear All,
Can you please do let me know that how I can get data from Global Objects --> Commands Groups using API from command line.
It will be great if you have any sample commands.
Kind Regards,
Ghulam
#AllImperva
#API Security
------------------------------
Ghulam Mallah
Security Database Consultant
Hook
------------------------------