Accessing GDPR reports through REST API

To authenticate to the Guardium REST API, a client ID must be registered in Guardium and the associated client secret retrieved. Registering a client ID is done by using the grdapi command line utility of Guardium.

Procedure

  1. Create a client ID.
    1. Log in to Guardium command line interface by using SSH.
    2. Run the grdapi command line utility of Guardium.
      grdapi register_oauth_client client_id=gdpr ID=0
      {"client_id":"gdpr","client_secret":"164ae54e-b03c-
      4366-bd43-9e38bdd562f1",
      "grant_types":"password","scope":"read,write","redirect_uri"
      :"https://someApp"}
      ok
    3. Save the client secret.
  2. Provide the client_id and client_secret in the HTTP URL for Guardium appliance.
    For example,
    https://<Guardium_Host><Port_Number>/oauth/token?
    client_id=<client_ID>&grant_type=password&client_secret=<Client_Secret>&username=<Admin_Account>&password=<Password>