paradime.admin.environment_variables manages the environment variables of a workspace, or of one of its Bolt or agent environments when you pass environment_slug. Values are write-only: only reveal reads one. For the GraphQL operations, see Environment variables.
Prerequisites
- These operations are part of the Enterprise plan. On other plans, they raise
AdminPlanUpgradeRequiredException. - Your API key needs the Environment variables admin capability group. To read a value with
reveal, the key needs Environment variable values viewer. - The admin client of the
paradime-iopackage. See Admin client.
environment_slug. Leave it out for the workspace’s own variables. Pass an environment’s slug for that environment’s variables. An empty slug raises ValueError.
List variables
Iterates over the variables’ names, ordered by name. Values are never returned.An environment’s slug, for its variables. Leave it out for the workspace’s own variables.
Set variables
Sets variables in one call. Sending the same variables again changes nothing. A change to the workspace’s variables or a Bolt environment’s variables redeploys the Bolt schedules. A change to the workspace’s variables also rewrites the workspace’s editor settings.Names and values. A value can’t be empty: delete a variable with
delete.The names that were added, changed or deleted (
changed_names), and how many variables the scope holds now (total_count).Delete variables
Deletes variables, with the same redeploys asset. Names that don’t exist are ignored.
Rename a variable
Renames a variable and keeps its value, with the same redeploys asset. Retrying a rename that already finished succeeds.
Reveal a variable
Reads a variable’s value. Needs the Environment variable values viewer capability group. Paradime writes every reveal to the audit log.Types
Import the models fromparadime.apis.admin.environment_variables.types.