RegistryCredential

A registry credential is used to authenticate against a registry.

Resource Fields

Writeable Fields

Field Type Create Update Default Notes
description string Optional Yes -  
name string Optional Yes -  
publicValue string Optional Yes - The public value of the registryCredential
registryId registry Yes - -  
secretValue password Optional Yes - The secret value of the registryCredential

Read Only Fields

Field Type Notes
data map[json]  
id int The unique identifier for the registryCredential


Please read more about the common resource fields. These fields are read only and applicable to almost every resource. We have segregated them from the list above.

Actions

activate POST: /v2-beta/projects/${PROJECT_ID}/registryCredentials/${ID}?action=activate

Input:This action has no inputs
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/registryCredentials/${ID}?action=activate'

Output: An updated copy of the credential resource
deactivate POST: /v2-beta/projects/${PROJECT_ID}/registryCredentials/${ID}?action=deactivate

Input:This action has no inputs
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/registryCredentials/${ID}?action=deactivate'

Output: An updated copy of the credential resource
Edit this page