IBM Security Guardium

Expand all | Collapse all

Creating a web interface for Guardium's REST API

  • 1.  Creating a web interface for Guardium's REST API

    Posted 8 days ago
    I've have been trying to make a simple web interface using JS to send POST and GET requests to the REST API of a local Guardium appliance, but I have encountered a problem with the CORS policy not allowing any of the requests. Using postman I have been able to use the API just fine but I can't get around the CORS policy in the browser. I have seen many Guardium API website POC even from IBM but couldn't find any code examples or guide. To summarize the question, is there a way to get around the CORS policy using JS or is there a different method I could take to create a simple web interface for sending GET and POST request to the appliance?

    ------------------------------
    Ron Shleif
    ------------------------------


  • 2.  RE: Creating a web interface for Guardium's REST API

    Posted 7 days ago

    Ron,

    What you are describing seems very much like Swagger, which is on Guardium Data Protection's roadmap for 11.4 release.  A couple years ago I wrote a python script which takes the output of '/restAPI/restapi' and converts it to OpenAPI format.

    As far as getting around CORS policy, there is a way to disable it in Chrome (I'm not sure which browser you are using) I found here.



    ------------------------------
    JOSHUA KLAHN
    ------------------------------



  • 3.  RE: Creating a web interface for Guardium's REST API

    Posted 4 days ago
    Hello Joshua, 
    Is there a possibility you can share the script? 

    Thanks, Alexey.

    ------------------------------
    Sincerely,
    Alexey Saltovski
    Tech Department Manager
    Tangram-Soft LTD
    Israel

    IBM Champion
    ------------------------------