Skip to main content

collection_artifacts

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

Overview​

Namecollection_artifacts
TypeResource
Idnvidia.private_registry.collection_artifacts

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringUnique name of the helm chart
encryption_key_idstringID of the customer managed encryption key associated with this artifact (wire: encryptionKeyId)
latest_version_idstringID of the latest version (wire: latestVersionId)
display_namestringDisplay name (wire: displayName)
org_namestringName of the org that the helm chart belongs to (wire: orgName)
owner_namestringName of the user who owns this version (wire: ownerName)
team_namestringName of the team that the helm chart belongs to (wire: teamName)
access_typestring (LISTED, EXCLUSIVE, NOT_LISTED) (wire: accessType)
artifact_typestringArtifact type (MODEL, MODEL_SCRIPT, HELM_CHART, REPOSITORY, COLLECTION, ENDPOINT, BLUEPRINT, PLAYBOOK, AGENT, API, SKILL) (wire: artifactType)
attributesarray
biasstringText describing bias in the artifact
built_bystringOrganization that built the helm chart (wire: builtBy)
can_guest_downloadbooleanIndicates if a guest user can download (wire: canGuestDownload)
created_datestringCreation date in ISO-8601 format (pattern: <code>\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z</code>) (wire: createdDate)
descriptionstringDescription of the helm chart
explainabilitystringText describing the explainability for this artifact
has_signed_versionbooleanIndicates if the artifact has any signed versions (wire: hasSignedVersion)
is_favouritebooleanFlag indicating if helm chart is user's favorite (wire: isFavourite)
is_publicbooleanDetermines if this helm chart is publicly accessible (wire: isPublic)
is_read_onlybooleanindicate if current user has read only permissions (deprecated) (wire: isReadOnly)
labelsarray
latest_version_size_in_bytesinteger (int64)Size of the latest version in bytes (wire: latestVersionSizeInBytes)
license_termsarray (wire: licenseTerms)
logostringURL for the logo image
policy_labelsarray (wire: policyLabels)
privacystringText describing the privacy for this artifact
product_namesarray (wire: productNames)
publisherstringOrganization that published this helm chart
safety_and_securitystringText for describing the safety and security in the artifact (wire: safetyAndSecurity)
short_descriptionstringShort description of the helm chart (wire: shortDescription)
updated_datestringUpdated date in ISO-8601 format (pattern: <code>\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z</code>) (wire: updatedDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_teamselectteam_name, collection_name, artifact_typepage_size, page_number, order_by, resolve_labels, remove_unresolved_labelsList collection artifacts the user can access in the specified org and team
listselectcollection_name, artifact_typepage_size, page_number, order_by, resolve_labels, remove_unresolved_labelsList collection artifacts the user can access in the specified org
add_cross_org_team_by_teaminsertteam_name, collection_name, artifact_org_name, artifact_team_name, artifact_type, artifact_nameAdd artifact to the specified collection in the specified org and team from another org and team
add_cross_org_teaminsertcollection_name, artifact_org_name, artifact_team_name, artifact_type, artifact_nameAdd artifact to the specified collection in the specified org from another org and team
add_cross_org_by_teaminsertteam_name, collection_name, artifact_org_name, artifact_type, artifact_nameAdd artifact to the specified collection in the specified org and team from another org
add_cross_orginsertcollection_name, artifact_org_name, artifact_type, artifact_nameAdd artifact to the specified collection in the specified org from another org
add_by_teaminsertteam_name, collection_name, artifact_type, artifact_nameAdd artifact to the specified collection in the specified org and team
addinsertcollection_name, artifact_type, artifact_nameAdd artifact to the specified collection in the specified org
update_bulk_by_teamupdateteam_name, collection_namePatch collection in the specified org and team
update_bulkupdatecollection_namePatch collection in the specified org
remove_cross_org_team_by_teamdeleteteam_name, collection_name, artifact_org_name, artifact_team_name, artifact_type, artifact_nameRemove artifact from the specified collection in the specified org and team from another org and team
remove_cross_org_teamdeletecollection_name, artifact_org_name, artifact_team_name, artifact_type, artifact_nameRemove artifact from the specified collection in the specified org from another org
remove_cross_org_by_teamdeleteteam_name, collection_name, artifact_org_name, artifact_type, artifact_nameRemove artifact from the specified collection in the specified org and team from another org
remove_cross_orgdeletecollection_name, artifact_org_name, artifact_type, artifact_nameRemove artifact from the specified collection in the specified org from another org
remove_by_teamdeleteteam_name, collection_name, artifact_type, artifact_nameRemove artifact from the specified collection in the specified org and team
removedeletecollection_name, artifact_type, artifact_nameRemove artifact from the specified collection in the specified org

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
artifact_namestring (UTF-8)Artifact name
artifact_org_namestring (UTF-8)Artifact organization name
artifact_team_namestring (UTF-8)Artifact team name
artifact_typestring (UTF-8)Artifact type
collection_namestring (UTF-8)Collection name
team_namestring (UTF-8)Team name
order_bystring (UTF-8)Order by
page_numberstring (UTF-8)Page number - zero based index
page_sizestring (UTF-8)Page size
remove_unresolved_labelsbooleanRemove unresolved labels
resolve_labelsbooleanResolve labels

SELECT examples​

List collection artifacts the user can access in the specified org and team

SELECT
name,
encryption_key_id,
latest_version_id,
display_name,
org_name,
owner_name,
team_name,
access_type,
artifact_type,
attributes,
bias,
built_by,
can_guest_download,
created_date,
description,
explainability,
has_signed_version,
is_favourite,
is_public,
is_read_only,
labels,
latest_version_size_in_bytes,
license_terms,
logo,
policy_labels,
privacy,
product_names,
publisher,
safety_and_security,
short_description,
updated_date
FROM nvidia.private_registry.collection_artifacts
WHERE team_name = '{{ team_name }}' -- required
AND collection_name = '{{ collection_name }}' -- required
AND artifact_type = '{{ artifact_type }}' -- required
AND page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
AND order_by = '{{ order_by }}'
AND resolve_labels = '{{ resolve_labels }}'
AND remove_unresolved_labels = '{{ remove_unresolved_labels }}'
;

INSERT examples​

Add artifact to the specified collection in the specified org and team from another org and team

INSERT INTO nvidia.private_registry.collection_artifacts (
team_name,
collection_name,
artifact_org_name,
artifact_team_name,
artifact_type,
artifact_name
)
SELECT
'{{ team_name }}',
'{{ collection_name }}',
'{{ artifact_org_name }}',
'{{ artifact_team_name }}',
'{{ artifact_type }}',
'{{ artifact_name }}'
RETURNING
request_status
;

UPDATE examples​

Patch collection in the specified org and team

UPDATE nvidia.private_registry.collection_artifacts
SET
operations = '{{ operations }}'
WHERE
team_name = '{{ team_name }}' --required
AND collection_name = '{{ collection_name }}' --required
RETURNING
request_status;

DELETE examples​

Remove artifact from the specified collection in the specified org and team from another org and team

DELETE FROM nvidia.private_registry.collection_artifacts
WHERE team_name = '{{ team_name }}' --required
AND collection_name = '{{ collection_name }}' --required
AND artifact_org_name = '{{ artifact_org_name }}' --required
AND artifact_team_name = '{{ artifact_team_name }}' --required
AND artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
;