POSThttps://api.astronomer.io/platform/v1beta1/organizations/organizationId/deployments/deploymentId
Path Parameters
Body
View in API Reference
Request
$curl -X POST https://api.astronomer.io/platform/v1beta1/organizations/organizationId/deployments/deploymentId \
> -H "Authorization: Bearer " \
> -H "Content-Type: application/json" \
> -d '{
> "contactEmails": [
> "user1@company.com"
> ],
> "defaultTaskPodCpu": "0.5",
> "defaultTaskPodMemory": "1Gi",
> "description": "My deployment description",
> "environmentVariables": [
> {
> "isSecret": false,
> "key": "my-var",
> "value": "my-var-value"
> }
> ],
> "executor": "CELERY",
> "isCicdEnforced": true,
> "isDagDeployEnabled": true,
> "isDevelopmentMode": false,
> "isHighAvailability": true,
> "name": "My deployment",
> "resourceQuotaCpu": "160",
> "resourceQuotaMemory": "320Gi",
> "scalingSpec": {
> "hibernationSpec": {
> "override": {
> "isHibernating": false,
> "overrideUntil": "overrideUntil"
> },
> "schedules": [
> {
> "description": "description",
> "hibernateAtCron": "hibernateAtCron",
> "isEnabled": false,
> "wakeAtCron": "wakeAtCron"
> }
> ]
> }
> },
> "schedulerSize": "MEDIUM",
> "type": "DEDICATED",
> "workerQueues": [
> {
> "astroMachine": "A5",
> "id": "clmha1mzc000b08mi96n182au",
> "isDefault": true,
> "maxWorkerCount": 0,
> "minWorkerCount": 0,
> "name": "My worker queue",
> "workerConcurrency": 0
> }
> ],
> "workloadIdentity": "arn:aws:iam::123456789:role/AirflowS3Logs-clmk2qqia000008mhff3ndjr0",
> "workspaceId": "clmh7vdf4000008lhhlnk9t6o"
>}'
Response