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
stageId
string | nullmin length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$environmentId
stringspec
{object}description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$
Response body
- {object}Response object.
data
{object} requiredResult data.stageId
string | nullmin length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$environmentId
stringspec
{object}description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$name
string requiredmin length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$
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","integrationId":"string"},"google":{"region":"us-central1","zone":"us-central1-c","project":"string","integrationId":"string"}},"resourceType":"s3","config":{}},"name":"string"}' \
"https://api.northflank.com/v1/projects/{projectId}/external-addons"Example response
200 OK
Details about the created external addon.
JSON
{
"data": {
"spec": {
"provider": {
"aws": {
"region": "eu-west-1",
"integrationId": "string"
},
"google": {
"region": "us-central1",
"zone": "us-central1-c",
"project": "string",
"integrationId": "string"
}
},
"resourceType": "s3",
"config": {}
},
"name": "string"
}
}