curl --request POST \
--url https://api.cnap.tech/v1/registry/credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "GitHub Container Registry",
"registry_url": "ghcr.io",
"type": "basic",
"credentials": {
"username": "<string>",
"password": "<string>",
"token": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"token_url": "<string>"
}
}
'{
"error": {
"code": "not_found",
"message": "Resource not found",
"param": "name",
"suggestion": "Run `cnap clusters list` to see available clusters",
"details": "<unknown>"
}
}Adds a registry credential to the workspace for OCI proxy authentication.
curl --request POST \
--url https://api.cnap.tech/v1/registry/credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "GitHub Container Registry",
"registry_url": "ghcr.io",
"type": "basic",
"credentials": {
"username": "<string>",
"password": "<string>",
"token": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"token_url": "<string>"
}
}
'{
"error": {
"code": "not_found",
"message": "Resource not found",
"param": "name",
"suggestion": "Run `cnap clusters list` to see available clusters",
"details": "<unknown>"
}
}Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://dash.cnap.tech/account/tokens
1 - 100"GitHub Container Registry"
1 - 2048"ghcr.io"
Auth type
basic, token, oauth Auth credentials (type-dependent)
Show child attributes
Credential created