Resource Catalog
ResourceCatalogService ¶
Service for searching and discovering UiPath resources across folders.
The Resource Catalog Service provides a centralized way to search and retrieve UiPath resources (assets, queues, processes, storage buckets, etc.) across tenant and folder scopes. It enables programmatic discovery of resources with flexible filtering by resource type, name, and folder location.
See Also
https://docs.uipath.com/orchestrator/standalone/2024.10/user-guide/about-resource-catalog-service
Version Availability
This service is available starting from uipath version 2.1.168.
list ¶
list(
*,
resource_types=None,
resource_sub_types=None,
folder_path=None,
folder_key=None,
page_size=_DEFAULT_PAGE_SIZE,
)
Get tenant scoped resources and folder scoped resources (accessible to the user).
If no folder identifier is provided (path or key) only tenant resources will be retrieved. This method automatically handles pagination and yields resources one by one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_types
|
list[ResourceType] | None
|
Optional list of resource types to filter by |
None
|
resource_sub_types
|
list[str] | None
|
Optional list of resource subtypes to filter by |
None
|
folder_path
|
str | None
|
Optional folder path to scope the results |
None
|
folder_key
|
str | None
|
Optional folder key to scope the results |
None
|
page_size
|
int
|
Number of resources to fetch per API call (default: 20, max: 100) |
_DEFAULT_PAGE_SIZE
|
Yields:
| Name | Type | Description |
|---|---|---|
Resource |
Resource
|
Each resource matching the criteria |
Examples:
>>> # Get all resources
>>> for resource in uipath.resource_catalog.list():
... print(f"{resource.name}: {resource.resource_type}")
list_async
async
¶
list_async(
*,
resource_types=None,
resource_sub_types=None,
folder_path=None,
folder_key=None,
page_size=_DEFAULT_PAGE_SIZE,
)
Asynchronously get tenant scoped resources and folder scoped resources (accessible to the user).
If no folder identifier is provided (path or key) only tenant resources will be retrieved. This method automatically handles pagination and yields resources one by one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_types
|
list[ResourceType] | None
|
Optional list of resource types to filter by |
None
|
resource_sub_types
|
list[str] | None
|
Optional list of resource subtypes to filter by |
None
|
folder_path
|
str | None
|
Optional folder path to scope the results |
None
|
folder_key
|
str | None
|
Optional folder key to scope the results |
None
|
page_size
|
int
|
Number of resources to fetch per API call (default: 20, max: 100) |
_DEFAULT_PAGE_SIZE
|
Yields:
| Name | Type | Description |
|---|---|---|
Resource |
AsyncIterator[Resource]
|
Each resource matching the criteria |
Examples:
>>> # Get all resources
>>> async for resource in uipath.resource_catalog.list_async():
... print(f"{resource.name}: {resource.resource_type}")
list_by_type ¶
list_by_type(
*,
resource_type,
name=None,
resource_sub_types=None,
folder_path=None,
folder_key=None,
page_size=_DEFAULT_PAGE_SIZE,
)
Get resources of a specific type (tenant scoped or folder scoped).
If no folder identifier is provided (path or key) only tenant resources will be retrieved. This method automatically handles pagination and yields resources one by one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_type
|
ResourceType
|
The specific resource type to filter by |
required |
name
|
str | None
|
Optional name filter for resources |
None
|
resource_sub_types
|
list[str] | None
|
Optional list of resource subtypes to filter by |
None
|
folder_path
|
str | None
|
Optional folder path to scope the results |
None
|
folder_key
|
str | None
|
Optional folder key to scope the results |
None
|
page_size
|
int
|
Number of resources to fetch per API call (default: 20, max: 100) |
_DEFAULT_PAGE_SIZE
|
Yields:
| Name | Type | Description |
|---|---|---|
Resource |
Resource
|
Each resource matching the criteria |
Examples:
>>> # Get all assets
>>> for resource in uipath.resource_catalog.list_by_type(resource_type=ResourceType.ASSET):
... print(f"{resource.name}: {resource.resource_sub_type}")
list_by_type_async
async
¶
list_by_type_async(
*,
resource_type,
name=None,
resource_sub_types=None,
folder_path=None,
folder_key=None,
page_size=_DEFAULT_PAGE_SIZE,
)
Asynchronously get resources of a specific type (tenant scoped or folder scoped).
If no folder identifier is provided (path or key) only tenant resources will be retrieved. This method automatically handles pagination and yields resources one by one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resource_type
|
ResourceType
|
The specific resource type to filter by |
required |
name
|
str | None
|
Optional name filter for resources |
None
|
resource_sub_types
|
list[str] | None
|
Optional list of resource subtypes to filter by |
None
|
folder_path
|
str | None
|
Optional folder path to scope the results |
None
|
folder_key
|
str | None
|
Optional folder key to scope the results |
None
|
page_size
|
int
|
Number of resources to fetch per API call (default: 20, max: 100) |
_DEFAULT_PAGE_SIZE
|
Yields:
| Name | Type | Description |
|---|---|---|
Resource |
AsyncIterator[Resource]
|
Each resource matching the criteria |
Examples:
>>> # Get all assets asynchronously
>>> async for resource in uipath.resource_catalog.list_by_type_async(resource_type=ResourceType.ASSET):
... print(f"{resource.name}: {resource.resource_sub_type}")
search ¶
Search for tenant scoped resources and folder scoped resources (accessible to the user).
This method automatically handles pagination and yields resources one by one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str | None
|
Optional name filter for resources |
None
|
resource_types
|
list[ResourceType] | None
|
Optional list of resource types to filter by |
None
|
resource_sub_types
|
list[str] | None
|
Optional list of resource subtypes to filter by |
None
|
page_size
|
int
|
Number of resources to fetch per API call (default: 20, max: 100) |
_DEFAULT_PAGE_SIZE
|
Yields:
| Name | Type | Description |
|---|---|---|
Resource |
Resource
|
Each resource matching the search criteria |
Examples:
search_async
async
¶
search_async(
*,
name=None,
resource_types=None,
resource_sub_types=None,
page_size=_DEFAULT_PAGE_SIZE,
)
Asynchronously search for tenant scoped resources and folder scoped resources (accessible to the user).
This method automatically handles pagination and yields resources one by one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str | None
|
Optional name filter for resources |
None
|
resource_types
|
list[ResourceType] | None
|
Optional list of resource types to filter by |
None
|
resource_sub_types
|
list[str] | None
|
Optional list of resource subtypes to filter by |
None
|
page_size
|
int
|
Number of resources to fetch per API call (default: 20, max: 100) |
_DEFAULT_PAGE_SIZE
|
Yields:
| Name | Type | Description |
|---|---|---|
Resource |
AsyncIterator[Resource]
|
Each resource matching the search criteria |
Examples: