Troubleshooting
Problem
I am trying to use RestApi to list all the available reports i.e. pre-defined and user-defined reports. How do I do that? This technote assumes that you have knowledge of working with RestApi. For more information, refer to: http://www.ibm.com/developerworks/data/library/techarticle/dm-1404guard…
Environment
v10
Resolving The Problem
1. Invoking Guardium API command to register client application
![](/support/pages/system/files/support/swg/sectech.nsf/0/3c3396f479b6bd96852580d50063151e/Content/0.13A.gif)
2. Request an access token
![](/support/pages/system/files/support/swg/sectech.nsf/0/3c3396f479b6bd96852580d50063151e/Content/0.F24.gif)
3. List all the reports ( pre-defined & user-defined )
![](/support/pages/system/files/support/swg/sectech.nsf/0/3c3396f479b6bd96852580d50063151e/Content/0.230C.gif)
Conclusive RestAPI :
curl -k --header "Authorization:Bearer a9e9997b-c668-43fb-bb85-f506c9f045c1" -i -H "Content-Type:application/json" -X POST -d"{"dataSet":"Report"}" https://<applianceName>:8443/restAPI/get_definitions_items
Related Information
[{"Product":{"code":"SSMPHH","label":"IBM Security Guardium"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"10.1;10.1.2","Edition":"All Editions","Line of Business":{"code":"LOB24","label":"Security Software"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21999575