Creates a new external addon (third-party cloud resource provisioned via OpenTofu)
Required permission
Project > ExternalAddons > General > Create
Path parameters
projectId
string requiredID of the project
Request body
- {object}Request body for creating an external addon
description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$environmentId
stringspec
{object}name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$
Response body
- {object}Response object.
data
{object} requiredResult data.description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$environmentId
stringspec
{object}name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$
API
CLI
JS Client
POST /v1/projects/{projectId}/external-addons
POST /v1/teams/{teamId}/projects/{projectId}/external-addons
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"spec":{"provider":{"aws":{"region":"eu-west-1"},"google":{"region":"us-central1","zone":"us-central1-c"}}}}' \
https://api.northflank.com/v1/projects/{projectId}/external-addonsExample response
200 OK
Details about the created external addon.
JSON
{
"data": {
"spec": {
"provider": {
"aws": {
"region": "eu-west-1"
},
"google": {
"region": "us-central1",
"zone": "us-central1-c"
}
}
}
}
}