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
organizationId
The ID of the Organization in which to create the environment object.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
objectKey
The key for the environment object
objectType
The type of environment object
Allowed values:
scope
The scope of the environment object
Allowed values:
scopeEntityId
The ID of the scope entity where the environment object is created
airflowVariable
autoLinkDeployments
Whether or not to automatically link Deployments to the environment object. Only applicable for WORKSPACE scope
connection
excludeLinks
The links to exclude from the environment object. Only applicable for WORKSPACE scope
links
The Deployments that Astro links to the environment object. Only applicable for WORKSPACE scope
metricsExport
Response
OK
id
The ID of the environment object