Docs

Create Manager

POST
/v1/managers

Create a new manager.

Authorization

AuthorizationBearer <token>

API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys

In: header

Query Parameters

workspace?string

Workspace name or ID. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must identify the key's workspace.

Match^(?:ws_[0-9a-zA-Z]{24}|(?!ws[-_])[a-z0-9](-?[a-z0-9])*)$
Length4 <= length <= 100

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/managers" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "cloud": "aws",    "region": "string"  }'
{  "managerId": "mgr_enxscjrqiiu2lrc672hwwuc5",  "setupStatus": "pending",  "setupToken": "string",  "setupTokenId": "string",  "deploymentLink": "string",  "setupConfig": {    "metadata": {      "property1": null,      "property2": null    },    "policy": {      "allowedPlatforms": [        "aws"      ],      "allowedAIProviders": [        "aws-bedrock"      ],      "allowedKubernetesBasePlatforms": [        "aws"      ],      "allowedKubernetesClusterSources": [        "create"      ],      "allowedSetupMethods": [        "cloudformation"      ],      "configurationProfile": "standard",      "allowReleasePinning": true,      "stackSettings": {        "defaults": {          "compute": {            "containers": {              "property1": {                "cpu": 0,                "memory": "string",                "volumeSizeGib": 0              },              "property2": {                "cpu": 0,                "memory": "string",                "volumeSizeGib": 0              }            },            "pools": {              "property1": {                "failure_domains": {                  "selectedFailureDomains": [                    "string"                  ],                  "spread": 0                },                "machine": "string",                "machines": 0,                "mode": "fixed"              },              "property2": {                "failure_domains": {                  "selectedFailureDomains": [                    "string"                  ],                  "spread": 0                },                "machine": "string",                "machines": 0,                "mode": "fixed"              }            }          },          "deploymentModel": "push",          "domains": {            "customDomains": {              "property1": {                "certificate": {                  "aws": {                    "certificateArn": "string"                  },                  "azure": {                    "keyVaultCertificateId": "string",                    "keyVaultResourceId": "string"                  },                  "gcp": {                    "certificateName": "string"                  },                  "kubernetes": {                    "tlsSecretRef": {                      "namespace": "string",                      "secretName": "string"                    }                  }                },                "domain": "string"              },              "property2": {                "certificate": {                  "aws": {                    "certificateArn": "string"                  },                  "azure": {                    "keyVaultCertificateId": "string",                    "keyVaultResourceId": "string"                  },                  "gcp": {                    "certificateName": "string"                  },                  "kubernetes": {                    "tlsSecretRef": {                      "namespace": "string",                      "secretName": "string"                    }                  }                },                "domain": "string"              }            },            "publicEndpointTarget": {              "mode": "machineAddresses"            }          },          "endpointAccess": "internet",          "externalBindings": {            "property1": {              "accessKeyId": null,              "bucketName": null,              "endpoint": null,              "forcePathStyle": true,              "region": null,              "secretAccessKey": null,              "service": "s3",              "type": "storage"            },            "property2": {              "accessKeyId": null,              "bucketName": null,              "endpoint": null,              "forcePathStyle": true,              "region": null,              "secretAccessKey": null,              "service": "s3",              "type": "storage"            }          },          "heartbeats": "off",          "kubernetes": {            "cluster": {              "cloud": {                "accountId": "string",                "clusterId": "string",                "clusterName": "string",                "projectId": "string",                "region": "string",                "resourceGroup": "string",                "subscriptionId": "string"              },              "namespace": "string",              "ownership": "managed"            },            "exposure": {              "mode": "disabled"            }          },          "network": {            "type": "use-default"          },          "publicEndpoints": {            "property1": {              "property1": "string",              "property2": "string"            },            "property2": {              "property1": "string",              "property2": "string"            }          },          "quotaWarningOverrides": [            "string"          ],          "setupManagement": "manual",          "telemetry": "off",          "updates": "auto"        },        "allowedDeploymentModels": [          "push"        ],        "allowedNetworkModes": [          "none"        ],        "allowedUpdatesModes": [          "auto"        ],        "allowedTelemetryModes": [          "auto"        ],        "allowedHeartbeatsModes": [          "on"        ],        "allowExternalBindings": true,        "allowCustomRegistry": true      }    },    "inputValues": {},    "validatedReleaseSelection": {      "releaseId": "rel_WbhQgksrawSKIpEN0NAssHX9",      "releaseChannel": "string",      "platform": "aws"    },    "items": [      {        "item": "deployment",        "source": {          "type": "project-release",          "releaseChannel": "string",          "releaseId": "rel_WbhQgksrawSKIpEN0NAssHX9",          "resourceId": "string"        },        "required": true,        "configuration": {          "allowedProviders": [            "aws-bedrock"          ],          "providerAllowlist": [            "aws-bedrock"          ],          "modelRequirements": [            {              "publicModelId": "string",              "clientApis": [                "openai-chat"              ],              "required": true            }          ]        }      }    ],    "publicSubdomain": "string",    "environmentVariables": [      {        "name": "string",        "type": "plain",        "targetResources": [          "string"        ]      }    ]  },  "setup": {    "method": "cloudformation",    "deploymentPortalUrl": "string",    "launchUrl": "string",    "templateUrl": "string",    "stackName": "string",    "region": "string",    "stackSettings": {      "compute": {        "containers": {          "property1": {            "cpu": 0,            "memory": "string",            "volumeSizeGib": 0          },          "property2": {            "cpu": 0,            "memory": "string",            "volumeSizeGib": 0          }        },        "pools": {          "property1": {            "failure_domains": {              "selectedFailureDomains": [                "string"              ],              "spread": 0            },            "machine": "string",            "machines": 0,            "mode": "fixed"          },          "property2": {            "failure_domains": {              "selectedFailureDomains": [                "string"              ],              "spread": 0            },            "machine": "string",            "machines": 0,            "mode": "fixed"          }        }      },      "deploymentModel": "push",      "domains": {        "customDomains": {          "property1": {            "certificate": {              "aws": {                "certificateArn": "string"              },              "azure": {                "keyVaultCertificateId": "string",                "keyVaultResourceId": "string"              },              "gcp": {                "certificateName": "string"              },              "kubernetes": {                "tlsSecretRef": {                  "namespace": "string",                  "secretName": "string"                }              }            },            "domain": "string"          },          "property2": {            "certificate": {              "aws": {                "certificateArn": "string"              },              "azure": {                "keyVaultCertificateId": "string",                "keyVaultResourceId": "string"              },              "gcp": {                "certificateName": "string"              },              "kubernetes": {                "tlsSecretRef": {                  "namespace": "string",                  "secretName": "string"                }              }            },            "domain": "string"          }        },        "publicEndpointTarget": {          "mode": "machineAddresses"        }      },      "endpointAccess": "internet",      "externalBindings": {        "property1": {          "accessKeyId": null,          "bucketName": null,          "endpoint": null,          "forcePathStyle": true,          "region": null,          "secretAccessKey": null,          "service": "s3",          "type": "storage"        },        "property2": {          "accessKeyId": null,          "bucketName": null,          "endpoint": null,          "forcePathStyle": true,          "region": null,          "secretAccessKey": null,          "service": "s3",          "type": "storage"        }      },      "heartbeats": "off",      "kubernetes": {        "cluster": {          "cloud": {            "accountId": "string",            "clusterId": "string",            "clusterName": "string",            "projectId": "string",            "region": "string",            "resourceGroup": "string",            "subscriptionId": "string"          },          "namespace": "string",          "ownership": "managed"        },        "exposure": {          "mode": "disabled"        }      },      "network": {        "type": "use-default"      },      "publicEndpoints": {        "property1": {          "property1": "string",          "property2": "string"        },        "property2": {          "property1": "string",          "property2": "string"        }      },      "quotaWarningOverrides": [        "string"      ],      "setupManagement": "manual",      "telemetry": "off",      "updates": "auto"    }  }}