Skip to main content

artifact_shares

Creates, updates, deletes, gets or lists an artifact_shares resource.

Overview​

Nameartifact_shares
TypeResource
Idnvidia.private_registry.artifact_shares

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
add_by_teaminsertteam_name, artifact_type, artifact_name, guest_can_downloadpublic_can_listPublish artifact to public
addinsertartifact_type, artifact_name, guest_can_downloadpublic_can_listPublish artifact to public
remove_by_teamdeleteteam_name, artifact_type, artifact_nameUndo publishing of artifact to public
removedeleteartifact_type, artifact_nameUndo publishing of artifact to public

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_typestring (UTF-8)Artifact type
guest_can_downloadbooleanIndicates if guest users can download this artifact
team_namestring (UTF-8)Team name
public_can_listbooleanIndicates if artifact is listed publicly

INSERT examples​

Publish artifact to public

INSERT INTO nvidia.private_registry.artifact_shares (
team_name,
artifact_type,
artifact_name,
guest_can_download,
public_can_list
)
SELECT
'{{ team_name }}',
'{{ artifact_type }}',
'{{ artifact_name }}',
'{{ guest_can_download }}',
'{{ public_can_list }}'
RETURNING
request_status
;

DELETE examples​

Undo publishing of artifact to public

DELETE FROM nvidia.private_registry.artifact_shares
WHERE team_name = '{{ team_name }}' --required
AND artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
;