artifact_deployment_params
Creates, updates, deletes, gets or lists an artifact_deployment_params resource.
Overview​
| Name | artifact_deployment_params |
| Type | Resource |
| Id | nvidia.private_registry.artifact_deployment_params |
Fields​
The following fields are returned by SELECT queries:
- get_by_team
- list_by_team
- get
- list
| Name | Datatype | Description |
|---|---|---|
container | object | Deployment Artifact Parameters object |
cpu | object | Deployment CPU Parameters object |
csp | string | Cloud Service Provider name |
gpu | object | Deployment GPU Parameters object |
memory | object | Deployment Memory Parameters object |
model | object | Deployment Artifact Parameters object |
resource | object | Deployment Artifact Parameters object |
storage | object | Deployment Storage Parameters object |
| Name | Datatype | Description |
|---|---|---|
container | object | Deployment Artifact Parameters object |
cpu | object | Deployment CPU Parameters object |
csp | string | Cloud Service Provider name |
gpu | object | Deployment GPU Parameters object |
memory | object | Deployment Memory Parameters object |
model | object | Deployment Artifact Parameters object |
resource | object | Deployment Artifact Parameters object |
storage | object | Deployment Storage Parameters object |
| Name | Datatype | Description |
|---|---|---|
container | object | Deployment Artifact Parameters object |
cpu | object | Deployment CPU Parameters object |
csp | string | Cloud Service Provider name |
gpu | object | Deployment GPU Parameters object |
memory | object | Deployment Memory Parameters object |
model | object | Deployment Artifact Parameters object |
resource | object | Deployment Artifact Parameters object |
storage | object | Deployment Storage Parameters object |
| Name | Datatype | Description |
|---|---|---|
container | object | Deployment Artifact Parameters object |
cpu | object | Deployment CPU Parameters object |
csp | string | Cloud Service Provider name |
gpu | object | Deployment GPU Parameters object |
memory | object | Deployment Memory Parameters object |
model | object | Deployment Artifact Parameters object |
resource | object | Deployment Artifact Parameters object |
storage | object | Deployment Storage Parameters object |
Methods​
The following methods are available for this resource:
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 |
inherit_csp_parameters | boolean | Inherit CSP parameters |
merge_csp_parameters | boolean | Merge CSP parameters in response |
no_auto_labels | boolean | No auto labels |
SELECT examples​
- get_by_team
- list_by_team
- get
- list
Get artifact deployment parameters details in team
SELECT
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage
FROM nvidia.private_registry.artifact_deployment_params
WHERE team_name = '{{ team_name }}' -- required
AND artifact_type = '{{ artifact_type }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND csp_name = '{{ csp_name }}' -- required
AND inherit_csp_parameters = '{{ inherit_csp_parameters }}'
;
List artifact deployment parameters in team
SELECT
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage
FROM nvidia.private_registry.artifact_deployment_params
WHERE team_name = '{{ team_name }}' -- required
AND artifact_type = '{{ artifact_type }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND inherit_csp_parameters = '{{ inherit_csp_parameters }}'
;
Get artifact deployment parameters details in org
SELECT
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage
FROM nvidia.private_registry.artifact_deployment_params
WHERE artifact_type = '{{ artifact_type }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND csp_name = '{{ csp_name }}' -- required
AND inherit_csp_parameters = '{{ inherit_csp_parameters }}'
;
List artifact deployment parameters in org
SELECT
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage
FROM nvidia.private_registry.artifact_deployment_params
WHERE artifact_type = '{{ artifact_type }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND inherit_csp_parameters = '{{ inherit_csp_parameters }}'
;
INSERT examples​
- create_by_team
- create
- Manifest
Create artifact deployment parameters in team
INSERT INTO nvidia.private_registry.artifact_deployment_params (
container,
cpu,
gpu,
memory,
model,
resource,
storage,
team_name,
artifact_type,
artifact_name,
csp_name,
no_auto_labels,
merge_csp_parameters
)
SELECT
'{{ container }}',
'{{ cpu }}',
'{{ gpu }}',
'{{ memory }}',
'{{ model }}',
'{{ resource }}',
'{{ storage }}',
'{{ team_name }}',
'{{ artifact_type }}',
'{{ artifact_name }}',
'{{ csp_name }}',
'{{ no_auto_labels }}',
'{{ merge_csp_parameters }}'
RETURNING
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage
;
Create artifact deployment parameters in org
INSERT INTO nvidia.private_registry.artifact_deployment_params (
container,
cpu,
gpu,
memory,
model,
resource,
storage,
artifact_type,
artifact_name,
csp_name,
no_auto_labels,
merge_csp_parameters
)
SELECT
'{{ container }}',
'{{ cpu }}',
'{{ gpu }}',
'{{ memory }}',
'{{ model }}',
'{{ resource }}',
'{{ storage }}',
'{{ artifact_type }}',
'{{ artifact_name }}',
'{{ csp_name }}',
'{{ no_auto_labels }}',
'{{ merge_csp_parameters }}'
RETURNING
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage
;
# Description fields are for documentation purposes
- name: artifact_deployment_params
props:
- name: team_name
value: "{{ team_name }}"
description: Required parameter for the artifact_deployment_params resource.
- name: artifact_type
value: "{{ artifact_type }}"
description: Required parameter for the artifact_deployment_params resource.
- name: artifact_name
value: "{{ artifact_name }}"
description: Required parameter for the artifact_deployment_params resource.
- name: csp_name
value: "{{ csp_name }}"
description: Required parameter for the artifact_deployment_params 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 }}
- name: no_auto_labels
value: {{ no_auto_labels }}
description: No auto labels
description: No auto labels
- name: merge_csp_parameters
value: {{ merge_csp_parameters }}
description: Merge CSP parameters in response
description: Merge CSP parameters in response
UPDATE examples​
- update_by_team
- update
Update artifact deployment parameters in team
UPDATE nvidia.private_registry.artifact_deployment_params
SET
container = '{{ container }}',
cpu = '{{ cpu }}',
gpu = '{{ gpu }}',
memory = '{{ memory }}',
model = '{{ model }}',
resource = '{{ resource }}',
storage = '{{ storage }}'
WHERE
team_name = '{{ team_name }}' --required
AND artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
AND csp_name = '{{ csp_name }}' --required
AND merge-csp-parameters = {{ merge-csp-parameters}}
RETURNING
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage;
Update artifact deployment parameters in org
UPDATE nvidia.private_registry.artifact_deployment_params
SET
container = '{{ container }}',
cpu = '{{ cpu }}',
gpu = '{{ gpu }}',
memory = '{{ memory }}',
model = '{{ model }}',
resource = '{{ resource }}',
storage = '{{ storage }}'
WHERE
artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
AND csp_name = '{{ csp_name }}' --required
AND merge-csp-parameters = {{ merge-csp-parameters}}
RETURNING
container,
cpu,
csp,
gpu,
memory,
model,
resource,
storage;
DELETE examples​
- delete_by_team
- delete
Delete artifact deployment parameters in team
DELETE FROM nvidia.private_registry.artifact_deployment_params
WHERE team_name = '{{ team_name }}' --required
AND artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
AND csp_name = '{{ csp_name }}' --required
;
Delete artifact deployment parameters in org
DELETE FROM nvidia.private_registry.artifact_deployment_params
WHERE artifact_type = '{{ artifact_type }}' --required
AND artifact_name = '{{ artifact_name }}' --required
AND csp_name = '{{ csp_name }}' --required
;