PATCH
/
cloud
/
v1
/
caas
/
secrets
/
{project_id}
/
{region_id}
/
{secret_name}
Update pull secret
curl --request PATCH \
  --url https://api.gcore.com/cloud/v1/caas/secrets/{project_id}/{region_id}/{secret_name} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "login": "login",
  "password": "password",
  "registry": "some.registry.com"
}'
{
  "login": "login",
  "name": "my-secret",
  "registry": "some.registry.com",
  "updated_at": "2021-01-01T00:00:00Z"
}

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

region_id
integer
required

Region ID

secret_name
string
required

Pull secret name

Body

application/json
login
string | null

Pull secret login

Required string length: 1 - 100
Examples:

"login"

password
string<password> | null

Pull secret password

Required string length: 1 - 5000
Examples:

"password"

registry
string | null

Pull secret registry

Required string length: 1 - 400
Examples:

"some.registry.com"

Response

Pull secret

login
string
required

Pull secret login

Examples:

"login"

name
string
required

Pull secret name

Examples:

"my-secret"

registry
string
required

Pull secret registry

Examples:

"some.registry.com"

updated_at
string
required

Pull secret updated at

Examples:

"2021-01-01T00:00:00Z"