Skip to main content

artifact_files

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

Overview​

Nameartifact_files
TypeResource
Idnvidia.catalog.artifact_files

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
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 file
pathstringRelative file path from the root of the object
size_in_bytesinteger (int64)Size of the file in bytes (wire: sizeInBytes)
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_teamselectartifact_type, org_name, team_name, artifact_name, version_idpage_size, page_numberList files of the artifact version in team as guest
listselectartifact_type, org_name, artifact_name, version_idpage_size, page_reference, page_numberList files of the artifact version in org as guest

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
org_namestring (UTF-8)Organization name
team_namestring (UTF-8)Team name
version_idstring (UTF-8)Version ID
page_numberstring (UTF-8)Page number - zero based index
page_referencestring (UTF-8)Page reference
page_sizestring (UTF-8)Page size

SELECT examples​

List files of the artifact version in team as guest

SELECT
created_date,
description,
path,
size_in_bytes,
updated_date
FROM nvidia.catalog.artifact_files
WHERE artifact_type = '{{ artifact_type }}' -- required
AND org_name = '{{ org_name }}' -- required
AND team_name = '{{ team_name }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND version_id = '{{ version_id }}' -- required
AND page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
;