API
  • 06 Dec 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

API

  • Dark
    Light
  • PDF

All API information can be found here.

Example API call - Exporting a ruleset

  1. If you have not already created a ruleset, create one with the selected sandbox/connector
  2. Get an API token from a browser session
    • For Chrome 
      • go to “More Tools” -> “Developer Tools”
      • Click “Application” on the top panel
      • On the left pane select Select “Local Storage” on the “Storage” Section
      • Copy the Value that corresponds to the <>.idtoken key and use it as the <TOKEN> for the API calls described below
    • For Firefox
      • go to “More Tools” -> “Web Developer Tools”
      • Click “Storage” on the top panel
      • Click on “Local Storage”
      • Select apps.delphix.com
      • Copy the Value that corresponds to the <>.idtoken key and use it as the <TOKEN> for the API calls described below
  3. Access https://api-docs.apps.delphix.com/ and look for the ruleset API
  4. API call to get all rulesets:
    curl --request GET
         --url 'https://api.apps.delphix.com/v1/compliance/rulesets'
         --header 'Authorization: Bearer <TOKEN>'
         --header 'Content-Type: application/json'
  5. Find the UUID of the ruleset you just created
  6. API call to get all the rules in the ruleset:
    curl --request GET
         --url 'https://api.apps.delphix.com/v1/compliance/rulesets/<UUID>/rules?page_size=1000&page_number=1'
         --header 'Authorization: Bearer <TOKEN>'
         --header 'Content-Type: application/json'
  7. Continue calling API for all pages

Was this article helpful?