POSThttps://api.astronomer.io/platform/v1beta1/organizations/organizationId/environment-objects/environmentObjectId
Path Parameters
Body Parameters
View in API Reference
Request
$curl -X POST https://api.astronomer.io/platform/v1beta1/organizations/organizationId/environment-objects/environmentObjectId \
> -H "Authorization: Bearer " \
> -H "Content-Type: application/json" \
> -d '{
> "airflowVariable": {
> "value": "value"
> },
> "autoLinkDeployments": false,
> "connection": {
> "authTypeId": "authTypeId",
> "extra": {},
> "host": "host",
> "login": "login",
> "password": "password",
> "port": 0,
> "schema": "schema",
> "type": "type"
> },
> "excludeLinks": [
> {
> "scope": "DEPLOYMENT",
> "scopeEntityId": "scopeEntityId"
> }
> ],
> "links": [
> {
> "overrides": {
> "airflowVariable": {
> "value": "value"
> },
> "connection": {
> "extra": {},
> "host": "host",
> "login": "login",
> "password": "password",
> "port": 0,
> "schema": "schema",
> "type": "type"
> },
> "metricsExport": {
> "basicToken": "basicToken",
> "endpoint": "endpoint",
> "exporterType": "PROMETHEUS",
> "headers": {},
> "labels": {},
> "password": "password",
> "username": "username"
> }
> },
> "scope": "DEPLOYMENT",
> "scopeEntityId": "scopeEntityId"
> }
> ],
> "metricsExport": {
> "basicToken": "basicToken",
> "endpoint": "endpoint",
> "exporterType": "PROMETHEUS",
> "headers": {},
> "labels": {},
> "password": "password",
> "username": "username"
> }
>}'
Response