Create Private Registry
Create a private registry in a specific provider belonging to an organization. The id of the organization is fetched from CSP token
It contains details about the registry requested
Show optional properties
{
"name": "My registry",
"description": "Registry for storing container releases",
"provider": "HARBOR",
"url": "https://harbor.mydomain.com",
"access_secret": "p4ssw0rd1234"
}
{
"name": "My registry",
"description": "Registry for storing container releases",
"provider": "HARBOR",
"url": "https://harbor.mydomain.com",
"access_key": "robot$user123",
"access_secret": "p4ssw0rd1234",
"containers_organization": "my-containers-org",
"charts_organization": "my-charts-org"
}
Name of the registry
Description of the registry
Provider of the registry (platform that hosts it). Supported values are: AMAZON_ELASTIC_CONTAINER_REGISTRY, HARBOR, NEXUS_CONTAINER_REGISTRY, AZURE_CONTAINER_REGISTRY, JFROG_CONTAINER_REGISTRY, GITHUB_CONTAINER_REGISTRY, GOOGLE_ARTIFACT_REGISTRY, DOCKERHUB, IONOS
Url of the registry
Access key to authenticate to the registry
Access secret to authenticate to the registry
Dockerhub organization where the containers will be published (Only for DOCKERHUB registry provider)
Dockerhub organization where the charts will be published (Only for DOCKERHUB registry provider)
The private registry has been created
Response Headers
URL to the created private registry
An error related to the request
{
"type": "https://example.com/probs/validation-error",
"title": "Validation error",
"status": 400,
"detail": "There was an error validating the request",
"violations": [
{
"field": "amount",
"message": "It should be greater than zero"
}
]
}
It represents a constraints violation error
The requesting user is not authorized to create registries
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
An internal server error object
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
The server is temporarily unavailable
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/2217eb9c-f042-11eb-9a03-0242ac130003/msgs/abc"
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"access_secret:"string","description:"string","name:"string","provider:"string","url:"string"}' https://{api_host}/v1/registries