paradime.admin.integrations manages three kinds of connections of a workspace:
- Credential integrations: BI tools such as Looker, Tableau and Power BI, ETL tools such as Fivetran and Airbyte, and observability tools such as Datadog and PagerDuty.
- DinoAI agent integrations, such as Notion, Jira and Google Drive. A person connects these in a browser.
- External secret managers (AWS, Azure and GCP), which connection secrets and environment variables can reference.
Prerequisites
- These operations are part of the Enterprise plan. On other plans, they raise
AdminPlanUpgradeRequiredException. - For credential integrations and DinoAI agent integrations, your API key needs the Integrations admin capability group.
- For external secret managers, your API key needs the External secret managers admin capability group, and the company needs external secret managers turned on.
- The admin client of the
paradime-iopackage. See Admin client.
Credential integrations
List integrations
Iterates over the workspace’s credential integrations, connected or not. Secrets show only as set or not set.Set an integration
Tests the credentials, then saves them, and starts what connecting starts in the settings page, such as the first import. Credentials that the tool refuses raiseAdminConnectionTestFailedException, and nothing is saved. Sending the same credentials again tests them and saves nothing new. A secret you leave out keeps the saved value, unless an endpoint setting such as the host changes.
One integration’s settings, such as
MetabaseIntegrationInput, or an IntegrationConfigInput with one integration set. See Integration inputs.Test an integration
Checks that the tool accepts the credentials, and saves nothing. Refused credentials raiseAdminConnectionTestFailedException.
One integration’s settings. See Integration inputs.
Disconnect an integration
Clears an integration’s credentials, as the settings page does.Integration inputs
Import the inputs fromparadime.apis.admin.integrations.types. A secret is optional in Python because a secret you leave out keeps the saved value. Text fields take strings only, so pass a New Relic account id as "1234567".
Every setting in the Settings column is required, except
project_ids (Tableau) and domain (DataHub). A Datadog site or PagerDuty region that the SDK doesn’t know raises a validation error before any request.
DinoAI agent integrations
DinoAI agents connect tools such as Notion, Jira and Google Drive through integrations that belong to the workspace, not to a user. A person connects each one in a browser. The API can list them, give that person a connect link, and disconnect them.List agent integrations
Iterates over the integrations that the workspace’s DinoAI agents can connect, connected or not, ordered by name. APENDING_USER_ACTION integration waits for a person to connect it in a browser.
Also read
install_url, a connect link that a person opens to connect a PENDING_USER_ACTION integration, and install_url_expires_at. Each read makes new links, which work for 30 minutes. Anyone who opens a link can connect an account to the workspace’s agents, so share each link only with that person. Reading the links needs the integration_settings:write capability, which Integrations admin includes. A key without it reads None for the links.Disconnect an agent integration
Disconnects one of the workspace’s DinoAI agent integrations and deletes its connection. Disconnecting it again is not an error.AgentIntegrationName values: ASANA, AZURE_DEVOPS, BITBUCKET, BOX, CLICKUP, DROPBOX, FIGJAM, GITLAB, GOOGLE_DOCS, GOOGLE_DRIVE, GOOGLE_SHEETS, GOOGLE_SLIDES, HUBSPOT, JIRA_CLOUD, JIRA_CLOUD_SERVICE_ACCOUNT, JIRA_DATA_CENTER, MICROSOFT_TEAMS, MIRO, NOTION, ONEDRIVE, SHAREPOINT, SLACK.
External secret managers
List secret managers
Iterates over the secret managers that the workspace reads secrets from. Secrets are never returned.Set a secret manager
Saves a secret manager’s settings. Withtest_reference, the API first reads that secret reference with the new settings: a failed read raises AdminConnectionTestFailedException, and nothing is saved.
One provider’s settings:
AwsSecretsManagerConfigInput, AzureKeyVaultConfigInput or GcpSecretManagerConfigInput, or an ExternalSecretsProviderConfigInput with one provider set.A secret reference of the same provider to read before saving, such as
arn:aws:secretsmanager:eu-west-1:123456789012:secret:dbt. last_validated_at records when this last succeeded. Saving without it clears last_validated_at.Test a secret reference
Reads a secret reference with the saved provider settings, and returns no value. A failed read raisesAdminConnectionTestFailedException.
The provider that resolved the reference (
provider) and when (tested_at).Delete a secret manager
Removes a secret manager’s saved settings. References to it stop resolving.Types
Import the models and enums fromparadime.apis.admin.integrations.types.