collections
Creates, updates, deletes, gets or lists a collections resource.
Overview​
| Name | collections |
| Type | Resource |
| Id | nvidia.catalog.collections |
Fields​
The following fields are returned by SELECT queries:
- get_by_team
- get
- 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) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_by_team | select | org_name, team_name, collection_name | resolve_labels, remove_unresolved_labels | Get collection details in team as guest |
get | select | org_name, collection_name | resolve_labels, remove_unresolved_labels | Get collection details in org as guest |
list | select | page_size, page_number | List public collections |
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 |
org_name | string (UTF-8) | Organization name |
team_name | string (UTF-8) | Team name |
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
Get collection details in team as guest
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.catalog.collections
WHERE org_name = '{{ org_name }}' -- required
AND 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 as guest
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.catalog.collections
WHERE org_name = '{{ org_name }}' -- required
AND collection_name = '{{ collection_name }}' -- required
AND resolve_labels = '{{ resolve_labels }}'
AND remove_unresolved_labels = '{{ remove_unresolved_labels }}'
;
List public collections
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.catalog.collections
WHERE page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
;