paradime.admin.environments manages a workspace’s Bolt (SCHEDULER) and DinoAI agent (AGENT) environments. Environments are named by slug. For the GraphQL operations, see Environments.
Prerequisites
- These operations are part of the Enterprise plan. On other plans, they raise
AdminPlanUpgradeRequiredException. - Your API key needs the Environment admin capability group. To read an agent environment’s
defer_schedule, the key also needs a Bolt group that lists schedules, such as Bolt admin. - The admin client of the
paradime-iopackage. See Admin client.
Every new workspace has a default Bolt environment named Production and a default agent environment named Agent, which defers to it. In a workspace created through the API, their slugs are generated. Read them with
list before you add connections or variables to them.List environments
Iterates over the workspace’s environments, ordered by slug.Get an environment
Finds an environment by slug.Create an environment
Creates an environment. With aslug, sending the same input again returns the same environment. Without one, every call creates another environment. A new agent environment defers to the default Bolt environment.
The slug to give it. Generated when left out. A slug is lowercase letters and digits in groups joined by single hyphens, at most 80 characters, and is not
production.The git branch its runs use. The workspace’s default branch when left out.
The dbt™ version its runs use, one of the workspace’s
supported_dbt_versions. The workspace’s dbt™ version when left out.Update an environment
Changes an environment. A setting you leave out keeps its value.None for branch or dbt_version falls back to the workspace’s branch or dbt™ version. name can’t be None.
Delete an environment
Deletes an environment with its warehouse connections and variables. Deleting it again is not an error. These environments can’t be deleted, and the call raisesAdminConflictException:
- The built-in
productionenvironment. - The default environment of each type.
- A Bolt environment that an agent environment defers to.
Set the default environment
Makes an environment the default of its type. Runs of that type use the default environment when they name none.Set an agent environment’s defer target
Sets what an agent environment’s runs defer to: the latest run of a Bolt environment, or the runs of a Bolt schedule. Give neither to clear the target. Giving both raisesValueError before any request.
Types
Import the model and enum fromparadime.apis.admin.environments.types.