artifact_shares
Creates, updates, deletes, gets or lists an artifact_shares resource.
Overview​
| Name | artifact_shares |
| Type | Resource |
| Id | nvidia.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
add_by_team | insert | team_name, artifact_type, artifact_name, guest_can_download | public_can_list | Publish artifact to public |
add | insert | artifact_type, artifact_name, guest_can_download | public_can_list | Publish artifact to public |
remove_by_team | delete | team_name, artifact_type, artifact_name | Undo publishing of artifact to public | |
remove | delete | artifact_type, artifact_name | Undo 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.
| Name | Datatype | Description |
|---|---|---|
artifact_name | string (UTF-8) | Artifact name |
artifact_type | string (UTF-8) | Artifact type |
guest_can_download | boolean | Indicates if guest users can download this artifact |
team_name | string (UTF-8) | Team name |
public_can_list | boolean | Indicates if artifact is listed publicly |
INSERT examples​
- add_by_team
- add
- Manifest
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
;
Publish artifact to public
INSERT INTO nvidia.private_registry.artifact_shares (
artifact_type,
artifact_name,
guest_can_download,
public_can_list
)
SELECT
'{{ artifact_type }}',
'{{ artifact_name }}',
'{{ guest_can_download }}',
'{{ public_can_list }}'
RETURNING
request_status
;
# Description fields are for documentation purposes
- name: artifact_shares
props:
- name: team_name
value: "{{ team_name }}"
description: Required parameter for the artifact_shares resource.
- name: artifact_type
value: "{{ artifact_type }}"
description: Required parameter for the artifact_shares resource.
- name: artifact_name
value: "{{ artifact_name }}"
description: Required parameter for the artifact_shares resource.
- name: guest_can_download
value: {{ guest_can_download }}
description: Required parameter for the artifact_shares resource.
- name: public_can_list
value: {{ public_can_list }}
description: Indicates if artifact is listed publicly
description: Indicates if artifact is listed publicly
DELETE examples​
- remove_by_team
- remove
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
;
Undo publishing of artifact to public
DELETE FROM nvidia.private_registry.artifact_shares
WHERE artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
;