Skip to main content
POST
/
cloud
/
v3
/
inference
/
{project_id}
/
registry_credentials
Create inference registry credential
curl --request POST \
  --url https://api.gcore.com/cloud/v3/inference/{project_id}/registry_credentials \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "docker-io",
  "password": "password",
  "registry_url": "registry.example.com",
  "username": "username"
}
'
{
  "name": "docker-io",
  "project_id": 1,
  "registry_url": "registry.example.com",
  "username": "username"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Example:

1

Body

application/json
name
string
required

Registry credential name.

Minimum string length: 4
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Example:

"docker-io"

password
string
required

Registry password.

Minimum string length: 1
Example:

"password"

registry_url
string
required

Registry URL.

Minimum string length: 1
Example:

"registry.example.com"

username
string
required

Registry username.

Minimum string length: 1
Example:

"username"

Response

200 - application/json

OK

name
string
required

Registry credential name.

Minimum string length: 4
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Example:

"docker-io"

project_id
integer
required

Project ID to which the inference registry credentials belongs.

Example:

1

registry_url
string
required

Registry URL.

Example:

"registry.example.com"

username
string
required

Registry username.

Example:

"username"