collections
Creates, updates, deletes, gets or lists a collections resource.
Overview​
| Name | collections |
| Type | Resource |
| Id | nvidia.private_registry.collections |
Fields​
The following fields are returned by SELECT queries:
- get_by_team
- get
- list_by_team
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Unique name of the collection |
display_name | string | Display name (wire: displayName) |
org_name | string | Name of the org that the collection belongs to (wire: orgName) |
owner_name | string | Name of the user who owns this version (wire: ownerName) |
team_name | string | Name of the team that the collection belongs to (wire: teamName) |
access_type | string | (LISTED, EXCLUSIVE, NOT_LISTED) (wire: accessType) |
attributes | array | |
built_by | string | Organization that built the collection (wire: builtBy) |
can_guest_download | boolean | Indicates if a guest user can download (wire: canGuestDownload) |
category | string | (HEALTHCARE, SMART_CITIES, RETAIL, MANUFACTURING, SUPERCOMPUTING, ROBOTICS, AUTOMOTIVE, TELECOMMUNICATIONS, FINANCE, OIL_AND_GAS, NATURAL_LANGUAGE_PROCESSING, AUTOMATIC_SPEECH_RECOGNITION, INTELLIGENT_VIDEO_ANALYTICS, OBJECT_DETECTION, IMAGE_CLASSIFICATION, ANNOTATION, IMAGE_SYNTHESIS, MACHINE_LEARNING, DEEP_LEARNING, INFRASTRUCTURE, HIGH_PERFORMANCE_COMPUTING, WINDOWS_RTX_ACCELERATED_MODELS, BEGINNER, ADVANCED) |
created_date | string | Creation 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) |
description | string | Description of the collection |
is_public | boolean | Determines if this collection is publicly accessible (wire: isPublic) |
is_read_only | boolean | indicate if current user has read only permissions (deprecated) (wire: isReadOnly) |
labels | array | |
logo | string | URL for the logo image |
policy_labels | array | (wire: policyLabels) |
product_names | array | (wire: productNames) |
publisher | string | Organization that published this collection |
short_description | string | Short description of the collection (wire: shortDescription) |
size | integer (int64) | Total count of collection items |
updated_date | string | Updated 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) |
| Name | Datatype | Description |
|---|---|---|
name | string | Unique name of the collection |
display_name | string | Display name (wire: displayName) |
org_name | string | Name of the org that the collection belongs to (wire: orgName) |
owner_name | string | Name of the user who owns this version (wire: ownerName) |
team_name | string | Name of the team that the collection belongs to (wire: teamName) |
access_type | string | (LISTED, EXCLUSIVE, NOT_LISTED) (wire: accessType) |
attributes | array | |
built_by | string | Organization that built the collection (wire: builtBy) |
can_guest_download | boolean | Indicates if a guest user can download (wire: canGuestDownload) |
category | string | (HEALTHCARE, SMART_CITIES, RETAIL, MANUFACTURING, SUPERCOMPUTING, ROBOTICS, AUTOMOTIVE, TELECOMMUNICATIONS, FINANCE, OIL_AND_GAS, NATURAL_LANGUAGE_PROCESSING, AUTOMATIC_SPEECH_RECOGNITION, INTELLIGENT_VIDEO_ANALYTICS, OBJECT_DETECTION, IMAGE_CLASSIFICATION, ANNOTATION, IMAGE_SYNTHESIS, MACHINE_LEARNING, DEEP_LEARNING, INFRASTRUCTURE, HIGH_PERFORMANCE_COMPUTING, WINDOWS_RTX_ACCELERATED_MODELS, BEGINNER, ADVANCED) |
created_date | string | Creation 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) |
description | string | Description of the collection |
is_public | boolean | Determines if this collection is publicly accessible (wire: isPublic) |
is_read_only | boolean | indicate if current user has read only permissions (deprecated) (wire: isReadOnly) |
labels | array | |
logo | string | URL for the logo image |
policy_labels | array | (wire: policyLabels) |
product_names | array | (wire: productNames) |
publisher | string | Organization that published this collection |
short_description | string | Short description of the collection (wire: shortDescription) |
size | integer (int64) | Total count of collection items |
updated_date | string | Updated 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) |
| Name | Datatype | Description |
|---|---|---|
name | string | Unique name of the collection |
display_name | string | Display name (wire: displayName) |
org_name | string | Name of the org that the collection belongs to (wire: orgName) |
owner_name | string | Name of the user who owns this version (wire: ownerName) |
team_name | string | Name of the team that the collection belongs to (wire: teamName) |
access_type | string | (LISTED, EXCLUSIVE, NOT_LISTED) (wire: accessType) |
attributes | array | |
built_by | string | Organization that built the collection (wire: builtBy) |
can_guest_download | boolean | Indicates if a guest user can download (wire: canGuestDownload) |
category | string | (HEALTHCARE, SMART_CITIES, RETAIL, MANUFACTURING, SUPERCOMPUTING, ROBOTICS, AUTOMOTIVE, TELECOMMUNICATIONS, FINANCE, OIL_AND_GAS, NATURAL_LANGUAGE_PROCESSING, AUTOMATIC_SPEECH_RECOGNITION, INTELLIGENT_VIDEO_ANALYTICS, OBJECT_DETECTION, IMAGE_CLASSIFICATION, ANNOTATION, IMAGE_SYNTHESIS, MACHINE_LEARNING, DEEP_LEARNING, INFRASTRUCTURE, HIGH_PERFORMANCE_COMPUTING, WINDOWS_RTX_ACCELERATED_MODELS, BEGINNER, ADVANCED) |
created_date | string | Creation 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) |
description | string | Description of the collection |
is_public | boolean | Determines if this collection is publicly accessible (wire: isPublic) |
is_read_only | boolean | indicate if current user has read only permissions (deprecated) (wire: isReadOnly) |
labels | array | |
logo | string | URL for the logo image |
policy_labels | array | (wire: policyLabels) |
product_names | array | (wire: productNames) |
publisher | string | Organization that published this collection |
short_description | string | Short description of the collection (wire: shortDescription) |
size | integer (int64) | Total count of collection items |
updated_date | string | Updated 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) |
| Name | Datatype | Description |
|---|---|---|
name | string | Unique name of the collection |
display_name | string | Display name (wire: displayName) |
org_name | string | Name of the org that the collection belongs to (wire: orgName) |
owner_name | string | Name of the user who owns this version (wire: ownerName) |
team_name | string | Name of the team that the collection belongs to (wire: teamName) |
access_type | string | (LISTED, EXCLUSIVE, NOT_LISTED) (wire: accessType) |
attributes | array | |
built_by | string | Organization that built the collection (wire: builtBy) |
can_guest_download | boolean | Indicates if a guest user can download (wire: canGuestDownload) |
category | string | (HEALTHCARE, SMART_CITIES, RETAIL, MANUFACTURING, SUPERCOMPUTING, ROBOTICS, AUTOMOTIVE, TELECOMMUNICATIONS, FINANCE, OIL_AND_GAS, NATURAL_LANGUAGE_PROCESSING, AUTOMATIC_SPEECH_RECOGNITION, INTELLIGENT_VIDEO_ANALYTICS, OBJECT_DETECTION, IMAGE_CLASSIFICATION, ANNOTATION, IMAGE_SYNTHESIS, MACHINE_LEARNING, DEEP_LEARNING, INFRASTRUCTURE, HIGH_PERFORMANCE_COMPUTING, WINDOWS_RTX_ACCELERATED_MODELS, BEGINNER, ADVANCED) |
created_date | string | Creation 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) |
description | string | Description of the collection |
is_public | boolean | Determines if this collection is publicly accessible (wire: isPublic) |
is_read_only | boolean | indicate if current user has read only permissions (deprecated) (wire: isReadOnly) |
labels | array | |
logo | string | URL for the logo image |
policy_labels | array | (wire: policyLabels) |
product_names | array | (wire: productNames) |
publisher | string | Organization that published this collection |
short_description | string | Short description of the collection (wire: shortDescription) |
size | integer (int64) | Total count of collection items |
updated_date | string | Updated 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_by_team | select | team_name, collection_name | resolve_labels, remove_unresolved_labels | Get collection details in team |
get | select | collection_name | resolve_labels, remove_unresolved_labels | Get collection details in org |
list_by_team | select | team_name | page_size, page_number, order_by, resolve_labels, remove_unresolved_labels | List collections the user can access in the specified org and team |
list | select | page_size, page_number, order_by | List collections the user can access in the specified org | |
create_by_team | insert | team_name, category, name, short_description | Create collection in org and team | |
create | insert | category, name, short_description | Create collection in org | |
update_by_team | update | team_name, collection_name | Update collection details in team | |
update | update | collection_name | Update collection details in org | |
delete_by_team | delete | team_name, collection_name | Delete collection in the specified org and team | |
delete | delete | collection_name | Delete collection in the specified 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 |
|---|---|---|
collection_name | string (UTF-8) | Collection name |
team_name | string (UTF-8) | Team name |
order_by | string (UTF-8) | Order by |
page_number | string (UTF-8) | Page number - zero based index |
page_size | string (UTF-8) | Page size |
remove_unresolved_labels | boolean | Remove unresolved labels |
resolve_labels | boolean | Resolve labels |
SELECT examples​
- get_by_team
- get
- list_by_team
- list
Get collection details in team
SELECT
name,
display_name,
org_name,
owner_name,
team_name,
access_type,
attributes,
built_by,
can_guest_download,
category,
created_date,
description,
is_public,
is_read_only,
labels,
logo,
policy_labels,
product_names,
publisher,
short_description,
size,
updated_date
FROM nvidia.private_registry.collections
WHERE team_name = '{{ team_name }}' -- required
AND collection_name = '{{ collection_name }}' -- required
AND resolve_labels = '{{ resolve_labels }}'
AND remove_unresolved_labels = '{{ remove_unresolved_labels }}'
;
Get collection details in org
SELECT
name,
display_name,
org_name,
owner_name,
team_name,
access_type,
attributes,
built_by,
can_guest_download,
category,
created_date,
description,
is_public,
is_read_only,
labels,
logo,
policy_labels,
product_names,
publisher,
short_description,
size,
updated_date
FROM nvidia.private_registry.collections
WHERE collection_name = '{{ collection_name }}' -- required
AND resolve_labels = '{{ resolve_labels }}'
AND remove_unresolved_labels = '{{ remove_unresolved_labels }}'
;
List collections the user can access in the specified org and team
SELECT
name,
display_name,
org_name,
owner_name,
team_name,
access_type,
attributes,
built_by,
can_guest_download,
category,
created_date,
description,
is_public,
is_read_only,
labels,
logo,
policy_labels,
product_names,
publisher,
short_description,
size,
updated_date
FROM nvidia.private_registry.collections
WHERE team_name = '{{ team_name }}' -- required
AND page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
AND order_by = '{{ order_by }}'
AND resolve_labels = '{{ resolve_labels }}'
AND remove_unresolved_labels = '{{ remove_unresolved_labels }}'
;
List collections the user can access in the specified org
SELECT
name,
display_name,
org_name,
owner_name,
team_name,
access_type,
attributes,
built_by,
can_guest_download,
category,
created_date,
description,
is_public,
is_read_only,
labels,
logo,
policy_labels,
product_names,
publisher,
short_description,
size,
updated_date
FROM nvidia.private_registry.collections
WHERE page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
AND order_by = '{{ order_by }}'
;
INSERT examples​
- create_by_team
- create
- Manifest
Create collection in org and team
INSERT INTO nvidia.private_registry.collections (
attributes,
built_by,
category,
description,
display_name,
labels,
labels_v2,
logo,
name,
owner_name,
publisher,
short_description,
team_name
)
SELECT
'{{ attributes }}',
'{{ built_by }}',
'{{ category }}' /* required */,
'{{ description }}',
'{{ display_name }}',
'{{ labels }}',
'{{ labels_v2 }}',
'{{ logo }}',
'{{ name }}' /* required */,
'{{ owner_name }}',
'{{ publisher }}',
'{{ short_description }}' /* required */,
'{{ team_name }}'
RETURNING
collection,
request_status
;
Create collection in org
INSERT INTO nvidia.private_registry.collections (
attributes,
built_by,
category,
description,
display_name,
labels,
labels_v2,
logo,
name,
owner_name,
publisher,
short_description
)
SELECT
'{{ attributes }}',
'{{ built_by }}',
'{{ category }}' /* required */,
'{{ description }}',
'{{ display_name }}',
'{{ labels }}',
'{{ labels_v2 }}',
'{{ logo }}',
'{{ name }}' /* required */,
'{{ owner_name }}',
'{{ publisher }}',
'{{ short_description }}' /* required */
RETURNING
collection,
request_status
;
# Description fields are for documentation purposes
- name: collections
props:
- name: team_name
value: "{{ team_name }}"
description: Required parameter for the collections resource.
- name: attributes
value:
- key: "{{ key }}"
value: "{{ value }}"
- name: built_by
value: "{{ built_by }}"
description: |
organization that built the collection
- name: category
value: "{{ category }}"
valid_values: ['HEALTHCARE', 'SMART_CITIES', 'RETAIL', 'MANUFACTURING', 'SUPERCOMPUTING', 'ROBOTICS', 'AUTOMOTIVE', 'TELECOMMUNICATIONS', 'FINANCE', 'OIL_AND_GAS', 'NATURAL_LANGUAGE_PROCESSING', 'AUTOMATIC_SPEECH_RECOGNITION', 'INTELLIGENT_VIDEO_ANALYTICS', 'OBJECT_DETECTION', 'IMAGE_CLASSIFICATION', 'ANNOTATION', 'IMAGE_SYNTHESIS', 'MACHINE_LEARNING', 'DEEP_LEARNING', 'INFRASTRUCTURE', 'HIGH_PERFORMANCE_COMPUTING', 'WINDOWS_RTX_ACCELERATED_MODELS', 'BEGINNER', 'ADVANCED']
- name: description
value: "{{ description }}"
description: |
Description of the collection
- name: display_name
value: "{{ display_name }}"
description: |
Display name
- name: labels
value:
- "{{ labels }}"
- name: labels_v2
value:
- "{{ labels_v2 }}"
- name: logo
value: "{{ logo }}"
description: |
URL for the logo image
- name: name
value: "{{ name }}"
description: |
Unique name of the collection
- name: owner_name
value: "{{ owner_name }}"
description: |
Name of the user who owns this collection
- name: publisher
value: "{{ publisher }}"
description: |
organization that published the collection
- name: short_description
value: "{{ short_description }}"
description: |
Short description of the collection
UPDATE examples​
- update_by_team
- update
Update collection details in team
UPDATE nvidia.private_registry.collections
SET
attributes = '{{ attributes }}',
built_by = '{{ built_by }}',
category = '{{ category }}',
description = '{{ description }}',
display_name = '{{ display_name }}',
labels = '{{ labels }}',
labels_v2 = '{{ labels_v2 }}',
logo = '{{ logo }}',
owner_name = '{{ owner_name }}',
publisher = '{{ publisher }}',
short_description = '{{ short_description }}'
WHERE
team_name = '{{ team_name }}' --required
AND collection_name = '{{ collection_name }}' --required
RETURNING
collection,
request_status;
Update collection details in org
UPDATE nvidia.private_registry.collections
SET
attributes = '{{ attributes }}',
built_by = '{{ built_by }}',
category = '{{ category }}',
description = '{{ description }}',
display_name = '{{ display_name }}',
labels = '{{ labels }}',
labels_v2 = '{{ labels_v2 }}',
logo = '{{ logo }}',
owner_name = '{{ owner_name }}',
publisher = '{{ publisher }}',
short_description = '{{ short_description }}'
WHERE
collection_name = '{{ collection_name }}' --required
RETURNING
collection,
request_status;
DELETE examples​
- delete_by_team
- delete
Delete collection in the specified org and team
DELETE FROM nvidia.private_registry.collections
WHERE team_name = '{{ team_name }}' --required
AND collection_name = '{{ collection_name }}' --required
;
Delete collection in the specified org
DELETE FROM nvidia.private_registry.collections
WHERE collection_name = '{{ collection_name }}' --required
;