artifact_product_shares
Creates, updates, deletes, gets or lists an artifact_product_shares resource.
Overview​
| Name | artifact_product_shares |
| Type | Resource |
| Id | nvidia.private_registry.artifact_product_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 | Publish artifact to product | |
add | insert | artifact_type, artifact_name | Publish artifact to product | |
remove_by_team | delete | team_name, artifact_type, artifact_name | Undo publishing of product artifacts | |
remove | delete | artifact_type, artifact_name | Undo publishing of product artifacts |
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 |
team_name | string (UTF-8) | Team name |
INSERT examples​
- add_by_team
- add
- Manifest
Publish artifact to product
INSERT INTO nvidia.private_registry.artifact_product_shares (
access_type,
can_guest_pull,
can_public_list,
is_public,
license_terms,
product_names,
team_name,
artifact_type,
artifact_name
)
SELECT
'{{ access_type }}',
{{ can_guest_pull }},
{{ can_public_list }},
{{ is_public }},
'{{ license_terms }}',
'{{ product_names }}',
'{{ team_name }}',
'{{ artifact_type }}',
'{{ artifact_name }}'
RETURNING
request_status
;
Publish artifact to product
INSERT INTO nvidia.private_registry.artifact_product_shares (
access_type,
can_guest_pull,
can_public_list,
is_public,
license_terms,
product_names,
artifact_type,
artifact_name
)
SELECT
'{{ access_type }}',
{{ can_guest_pull }},
{{ can_public_list }},
{{ is_public }},
'{{ license_terms }}',
'{{ product_names }}',
'{{ artifact_type }}',
'{{ artifact_name }}'
RETURNING
request_status
;
# Description fields are for documentation purposes
- name: artifact_product_shares
props:
- name: team_name
value: "{{ team_name }}"
description: Required parameter for the artifact_product_shares resource.
- name: artifact_type
value: "{{ artifact_type }}"
description: Required parameter for the artifact_product_shares resource.
- name: artifact_name
value: "{{ artifact_name }}"
description: Required parameter for the artifact_product_shares resource.
- name: access_type
value: "{{ access_type }}"
valid_values: ['LISTED', 'EXCLUSIVE', 'NOT_LISTED']
- name: can_guest_pull
value: {{ can_guest_pull }}
- name: can_public_list
value: {{ can_public_list }}
- name: is_public
value: {{ is_public }}
- name: license_terms
value:
- configuredLicenseTerms:
download:
artifactType: "{{ artifactType }}"
generatedHtml: "{{ generatedHtml }}"
tags:
- category: "{{ category }}"
key: "{{ key }}"
label: "{{ label }}"
tag: "{{ tag }}"
url: "{{ url }}"
hosting:
artifactType: "{{ artifactType }}"
generatedHtml: "{{ generatedHtml }}"
tags:
- category: "{{ category }}"
key: "{{ key }}"
label: "{{ label }}"
tag: "{{ tag }}"
url: "{{ url }}"
governingTerms: "{{ governingTerms }}"
licenseId: "{{ licenseId }}"
licenseVersion: "{{ licenseVersion }}"
needsAcceptance: {{ needsAcceptance }}
- name: product_names
value:
- "{{ product_names }}"
DELETE examples​
- remove_by_team
- remove
Undo publishing of product artifacts
DELETE FROM nvidia.private_registry.artifact_product_shares
WHERE team_name = '{{ team_name }}' --required
AND artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
;
Undo publishing of product artifacts
DELETE FROM nvidia.private_registry.artifact_product_shares
WHERE artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
;