artifact_deployments
Creates, updates, deletes, gets or lists an artifact_deployments resource.
Overview​
| Name | artifact_deployments |
| Type | Resource |
| Id | nvidia.private_registry.artifact_deployments |
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 |
|---|---|---|---|---|
create_by_team | insert | team_name, artifact_type, artifact_name, version_id, csp_name | Create artifact version deployment url in team | |
create | insert | artifact_type, artifact_name, version_id, csp_name | Create artifact version deployment url in org |
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 |
csp_name | string (UTF-8) | Cloud service provider name |
team_name | string (UTF-8) | Team name |
version_id | string (UTF-8) | Version ID |
INSERT examples​
- create_by_team
- create
- Manifest
Create artifact version deployment url in team
INSERT INTO nvidia.private_registry.artifact_deployments (
container,
cpu,
gpu,
memory,
model,
resource,
storage,
team_name,
artifact_type,
artifact_name,
version_id,
csp_name
)
SELECT
'{{ container }}',
'{{ cpu }}',
'{{ gpu }}',
'{{ memory }}',
'{{ model }}',
'{{ resource }}',
'{{ storage }}',
'{{ team_name }}',
'{{ artifact_type }}',
'{{ artifact_name }}',
'{{ version_id }}',
'{{ csp_name }}'
RETURNING
csp,
deployment_parameters,
deployment_url,
request_status
;
Create artifact version deployment url in org
INSERT INTO nvidia.private_registry.artifact_deployments (
container,
cpu,
gpu,
memory,
model,
resource,
storage,
artifact_type,
artifact_name,
version_id,
csp_name
)
SELECT
'{{ container }}',
'{{ cpu }}',
'{{ gpu }}',
'{{ memory }}',
'{{ model }}',
'{{ resource }}',
'{{ storage }}',
'{{ artifact_type }}',
'{{ artifact_name }}',
'{{ version_id }}',
'{{ csp_name }}'
RETURNING
csp,
deployment_parameters,
deployment_url,
request_status
;
# Description fields are for documentation purposes
- name: artifact_deployments
props:
- name: team_name
value: "{{ team_name }}"
description: Required parameter for the artifact_deployments resource.
- name: artifact_type
value: "{{ artifact_type }}"
description: Required parameter for the artifact_deployments resource.
- name: artifact_name
value: "{{ artifact_name }}"
description: Required parameter for the artifact_deployments resource.
- name: version_id
value: "{{ version_id }}"
description: Required parameter for the artifact_deployments resource.
- name: csp_name
value: "{{ csp_name }}"
description: Required parameter for the artifact_deployments resource.
- name: container
description: |
Deployment Artifact Parameters object
value:
artifactType: "{{ artifactType }}"
displayName: "{{ displayName }}"
filePath: "{{ filePath }}"
name: "{{ name }}"
orgName: "{{ orgName }}"
teamName: "{{ teamName }}"
versionId: "{{ versionId }}"
- name: cpu
description: |
Deployment CPU Parameters object
value:
count: {{ count }}
- name: gpu
description: |
Deployment GPU Parameters object
value:
count: {{ count }}
type: "{{ type }}"
- name: memory
description: |
Deployment Memory Parameters object
value:
capacityInGB: {{ capacityInGB }}
- name: model
description: |
Deployment Artifact Parameters object
value:
artifactType: "{{ artifactType }}"
displayName: "{{ displayName }}"
filePath: "{{ filePath }}"
name: "{{ name }}"
orgName: "{{ orgName }}"
teamName: "{{ teamName }}"
versionId: "{{ versionId }}"
- name: resource
description: |
Deployment Artifact Parameters object
value:
artifactType: "{{ artifactType }}"
displayName: "{{ displayName }}"
filePath: "{{ filePath }}"
name: "{{ name }}"
orgName: "{{ orgName }}"
teamName: "{{ teamName }}"
versionId: "{{ versionId }}"
- name: storage
description: |
Deployment Storage Parameters object
value:
capacityInGB: {{ capacityInGB }}