Cloud Providers /
Create docker registry
Creates a new docker registry.
Required permission
Account > Cloud > Registries > 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 resourceone ofaws, azure, civo, gcp, oci, byokregion
string requiredintegrationId
stringExisting integration to use for this registry.min length3max length39pattern^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$type
stringThe type of provider integration.one ofbyoc, byoc-static-egress, byoc-custom-vpc, cloudfront, self-hosted-registry, route53, self-hosted-logs-metrics, docker-registry-credential
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredIdentifier for the docker registry.name
string requiredThe name of the docker registry.description
stringA short description of the docker registry.provider
stringThe cloud provider to which this docker registry belongs to.region
stringThe region in which this registry was created.createdAt
string requiredThe time the registry was created.
API
CLI
JS Client
POST /v1/cloud-providers/docker-registries
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"Example Integration","description":"This is a new cloud provider integration.","region":"eu-west-1","integrationId":"gcp-integration","type":"byoc"}' \
https://api.northflank.com/v1/cloud-providers/docker-registries
Example response
200 OK
Details about the created docker registry.
JSON
{
"data": {
"id": "gcp-integration",
"name": "GCP integration",
"description": "The registry description",
"provider": "aws",
"region": "eu-west-1",
"createdAt": "2021-01-20T11:19:53.175Z"
}
}