Create a Container Registry
- Name
post
- Type
- /v1/registry
- Description
Send a
POST
request to create a container registry.
Request
Required Attributes
- Name
name
- Type
- string
- Description
A globally unique name for the container registry. Must be lowercase and be composed only of numbers, letters and -, up to a limit of 63 characters.
- Name
subscription
- Type
- string ('starter' | 'basic' | 'professional)
- Description
The slug of the subscription plan.
Example
curl -X POST "https://api.simplystack.com/v1/registry" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
-d '{"name": "personal-registry", "subscription": "professional"}'
Response
Attributes
Example
json
{
"registry": {
"name": "personal-registry",
"created_at": "2023-09-26T07:24:49.760470Z",
"storage_usage": 0,
"subscription": {
"slug": "professional",
"name": "Professional",
"storage": 107374182400,
"bandwidth": 107374182400,
"available": true,
"repositories": 0,
"price_hourly": 0.028,
"price_monthly": 20.0
}
}
}