Skip to main content

registry_credentials

Creates, updates, deletes, gets or lists a registry_credentials resource.

Overview​

Nameregistry_credentials
TypeResource
Idnvidia.nvcf_deployments.registry_credentials

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
nca_idstring (UTF-8)NVIDIA Cloud Account Id owning the Registry Credential (wire: ncaId)
registry_credential_idstring (uuid)Registry Credential Id (wire: registryCredentialId)
registry_credential_namestring (UTF-8)Registry Credential name (wire: registryCredentialName)
registry_namestring (UTF-8)Recognized registry name (wire: registryName)
artifact_typesarrayRegistry type (wire: artifactTypes)
created_atstring (date_time)Timestamp for registry credential creation (wire: createdAt)
descriptionstring (UTF-8)Registry credential description
key_typestring (UTF-8)Optional registry credential key type (wire: keyType)
last_updated_atstring (date_time)Timestamp for last registry credential update (wire: lastUpdatedAt)
provisioned_bystring (UTF-8)Registry credential provisioned by system or user (SYSTEM, USER) (wire: provisionedBy)
registry_hostnamestring (UTF-8)Registry hostname (wire: registryHostname)
tagsarrayOptional set of tags

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectregistry_credential_idRetrieves detailed information of the specified registry credential associated with the authenticated NVIDIA Cloud Account. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.
listselectartifact_type, provisioned_byLists all the registry credentials associated with the authenticated NVIDIA Cloud Account. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.
createinsertartifact_types, registry_hostname, secretAdds a new registry credential to the account. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.
updateupdateregistry_credential_idUpdates the secret and/or the artifact types associated with the specified registry credential. Artifact types specified in the request body are added to the set of artifact types that already exist for the specified registry credential. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.
deletedeleteregistry_credential_idDeletes the specified registry credential associated with the authenticated NVIDIA Cloud Account. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
registry_credential_idstring (uuid)Registry Credential id
artifact_typearrayFilters registry credentials using the specified 'artifactType' query param. (wire: artifactType)
provisioned_byarrayFilters registry credentials using the specified 'provisionedBy' query param. (wire: provisionedBy)

SELECT examples​

Retrieves detailed information of the specified registry credential associated with the authenticated NVIDIA Cloud Account. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.

SELECT
nca_id,
registry_credential_id,
registry_credential_name,
registry_name,
artifact_types,
created_at,
description,
key_type,
last_updated_at,
provisioned_by,
registry_hostname,
tags
FROM nvidia.nvcf_deployments.registry_credentials
WHERE registry_credential_id = '{{ registry_credential_id }}' -- required
;

INSERT examples​

Adds a new registry credential to the account. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.

INSERT INTO nvidia.nvcf_deployments.registry_credentials (
artifact_types,
description,
registry_hostname,
secret,
tags
)
SELECT
'{{ artifact_types }}' /* required */,
'{{ description }}',
'{{ registry_hostname }}' /* required */,
'{{ secret }}' /* required */,
'{{ tags }}'
RETURNING
registry_credential
;

UPDATE examples​

Updates the secret and/or the artifact types associated with the specified registry credential. Artifact types specified in the request body are added to the set of artifact types that already exist for the specified registry credential. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.

UPDATE nvidia.nvcf_deployments.registry_credentials
SET
artifact_type_enums = '{{ artifact_type_enums }}',
secret = '{{ secret }}'
WHERE
registry_credential_id = '{{ registry_credential_id }}' --required
RETURNING
registry_credential;

DELETE examples​

Deletes the specified registry credential associated with the authenticated NVIDIA Cloud Account. Requires a bearer token in the HTTP Authorization header with 'manage_registries' scope.

DELETE FROM nvidia.nvcf_deployments.registry_credentials
WHERE registry_credential_id = '{{ registry_credential_id }}' --required
;