Create a new environment object

Create an environment object for a Deployment or Workspace. An environment object represents a connection, Airflow variable, or metrics export resource that is managed by the Astro Environment Manager.

Path parameters

organizationIdstringRequired

The ID of the Organization in which to create the environment object.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
objectKeystringRequired

The key for the environment object

objectTypeenumRequired

The type of environment object

Allowed values:
scopeenumRequired

The scope of the environment object

Allowed values:
scopeEntityIdstringRequired

The ID of the scope entity where the environment object is created

airflowVariableobjectOptional
autoLinkDeploymentsbooleanOptional

Whether or not to automatically link Deployments to the environment object. Only applicable for WORKSPACE scope

connectionobjectOptional
metricsExportobjectOptional

Response

OK

idstring

The ID of the environment object

Errors