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.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
organizationId
The ID of the Organization in which to create the environment object.
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
Errors
401
Create Environment Object Body Unauthorized Error
403
Create Environment Object Body Forbidden Error
404
Create Environment Object Body Not Found Error
405
Create Environment Object Body Method Not Allowed Error
409
Create Environment Object Body Conflict Error
500
Create Environment Object Body Internal Server Error