Skip to main content

artifact_specs

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

Overview​

Nameartifact_specs
TypeResource
Idnvidia.private_registry.artifact_specs

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
nvcf_function_idstringNVCF function id for the model playground (wire: nvcfFunctionId)
artifact_namestringUnique name of the model (wire: artifactName)
artifact_typestringArtifactTypeEnum of the artifact (wire: artifactType)
attributesstringMetadata json string
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)
namespacestringorg/team of the model
nvcf_inference_pathstringNVCF inference path (invocation route) for the model playground (wire: nvcfInferencePath)
open_api_specstringOpenAPI specification for this model (wire: openAPISpec)
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
get_by_teamselectteam_name, artifact_type, artifact_nameGet AI Playground for artifactType
getselectartifact_type, artifact_nameGet AI Playground for artifactType
create_by_teaminsertteam_name, artifact_type, artifact_name, nvcf_function_idCreate AI Playground for artifactType
createinsertartifact_type, artifact_name, nvcf_function_idCreate AI Playground for artifactType
update_by_teamupdateteam_name, artifact_type, artifact_nameUpdate AI Playground for artifactType
updateupdateartifact_type, artifact_nameUpdate AI Playground for artifactType
delete_by_teamdeleteteam_name, artifact_type, artifact_nameDelete AI Playground for artifactType
deletedeleteartifact_type, artifact_nameDelete AI Playground for artifactType

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)Model name
artifact_typestring (UTF-8)Artifact type
team_namestring (UTF-8)Team name

SELECT examples​

Get AI Playground for artifactType

SELECT
nvcf_function_id,
artifact_name,
artifact_type,
attributes,
created_date,
namespace,
nvcf_inference_path,
open_api_spec,
updated_date
FROM nvidia.private_registry.artifact_specs
WHERE team_name = '{{ team_name }}' -- required
AND artifact_type = '{{ artifact_type }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
;

INSERT examples​

Create AI Playground for artifactType

INSERT INTO nvidia.private_registry.artifact_specs (
artifact_name,
attributes,
nvcf_function_id,
nvcf_inference_path,
open_api_spec,
team_name,
artifact_type
)
SELECT
'{{ artifact_name }}' /* required */,
'{{ attributes }}',
'{{ nvcf_function_id }}' /* required */,
'{{ nvcf_inference_path }}',
'{{ open_api_spec }}',
'{{ team_name }}',
'{{ artifact_type }}'
RETURNING
nvcf_function_id,
artifact_name,
artifact_type,
attributes,
created_date,
namespace,
nvcf_inference_path,
open_api_spec,
updated_date
;

UPDATE examples​

Update AI Playground for artifactType

UPDATE nvidia.private_registry.artifact_specs
SET
attributes = '{{ attributes }}',
nvcf_function_id = '{{ nvcf_function_id }}',
nvcf_inference_path = '{{ nvcf_inference_path }}',
open_api_spec = '{{ open_api_spec }}'
WHERE
team_name = '{{ team_name }}' --required
AND artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
RETURNING
nvcf_function_id,
artifact_name,
artifact_type,
attributes,
created_date,
namespace,
nvcf_inference_path,
open_api_spec,
updated_date;

DELETE examples​

Delete AI Playground for artifactType

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