Cloud Providers /
Create integration
Required permission
Account > Cloud > Integrations > Create
Request body
- {object}
name
string requiredThe name of the cloud provider integration.
min length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$description
stringThe description of the integration.
max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$provider
string requiredCloud provider to be used for the selected resource
one ofaws, azure, civo, gcp, byoktype
stringThe type of provider integration.
one ofcluster, domain, registry, cdncredentials
{object} requiredCloud provider credential input, required fields dependent on which provider is chosen.
keyfileJson
stringContents of a GCP key file.
accessKey
stringAWS access key.
secretKey
stringAWS secret key.
apiKey
stringDO API key.
gcp
{object}GCP specific data. Required when
provider
isgcp
.projectId
string requiredProject ID
Response body
- {object}
Response object.
data
{object} requiredResult data.
id
string requiredIdentifier for the integration.
name
string requiredThe name of the integration.
description
stringA short description of the integration.
credentials
{object} requiredCloud provider credential input, required fields dependent on which provider is chosen.
keyfileJson
stringContents of a GCP key file.
accessKey
stringAWS access key.
secretKey
stringAWS secret key.
apiKey
stringDO API key.
createdAt
string requiredThe time the integration was created.
POST /v1/cloud-providers/integrations
Example request
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"New Integration","description":"This is a new cloud provider integration.","provider":"gcp","type":"cluster"}' \
https://api.northflank.com/v1/cloud-providers/integrations
Example response
200 OK
JSON
{
"data": {
"id": "gcp-integration",
"name": "GCP integration",
"description": "The integration description",
"createdAt": "2021-01-20T11:19:53.175Z"
}
}