IBM Support

How to list all available reports via RestApi in Guardium

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


2. Request an access token




3. List all the reports ( pre-defined & user-defined )


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

[{"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"}}]

Document Information

Modified date:
16 June 2018

UID

swg21999575