API
- 06 Dec 2022
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
API
- Updated on 06 Dec 2022
- 1 Minute to read
-
Print
-
DarkLight
-
PDF
All API information can be found here.
Example API call - Exporting a ruleset
- If you have not already created a ruleset, create one with the selected sandbox/connector
- 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
- For Chrome
- Access https://api-docs.apps.delphix.com/ and look for the ruleset API
- 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' - Find the UUID of the ruleset you just created
- 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' - Continue calling API for all pages
Was this article helpful?