Request details about files, folders and bots
- ์ต์ข ์ ๋ฐ์ดํธ2022/05/18
Request details about files, folders and bots
Request details about bots, folders, and files by searching by names, relative paths, and ids in the Control Room where they are stored.
Prerequisites
- Roles and license
-
You need to authenticate as a user that has a Bot runner (Run time with TaskBots and MetaBots) license.
-
URL:
http://<your_control_room_url>/v2/repository/file/list
- Method: POST
- path
-
This example searches for the string Finance in the path parameter. This search is not case sensitive. It finds Finance or finance.
- Field: path
- Type: string
{ "filter": { "operator": "substring", "value": "Finance", "field": "path" } }
- name
-
Retrieve all the bots with 'HR' in their name. For example, Automation Anywhere\My Tasks\Bots\HR-daily.atmx
- Field: name
- Type: string
{ "filter": { "operator": "substring", "field": "name", "value": "HR" } }
- directory
-
The value false will get all files (and not directories); if the value is true, then it will return all the directories
- Field: directory
- Type: boolean
{ "filter": { "operator": "eq", "field": "directory", "value": "false" } }
- parentId
-
This will get all the bots/files with parentid as 7
- Field: parentid
- Type: long
{ "filter": { "operator": "eq", "field": "parentid", "value": "7" } }
- lastModified
-
This will get all the bots/files which were last modified at that date-time
- Field: lastModified
- Type: date-time
{ "filter": { "operator": "gt", "field": "lastModified", "value": "2022-01-07T18:00:00Z" } }
Use the following fields to filter the response.
name: The partial or full name of a bot. You can search on the exact name (eq) or a text string (substring) that is contained in the bots name.
The following request returns a detailed list of all the bots that are in any folder that contains Finance in the folder path.
Procedure
Parameter | Type | Description |
---|---|---|
offset | Integer | The starting list offset, used for pagination. |
total | Integer | Total number of records. |
totalFilter | Integer | Number of records after applying the filter. |
List | Array | The array of List files object. |
List files object | ||
id | Integer | The unique Id of a file. |
name | String | Name of file. |
lastModifiedBy | Integer | Id of the user who last modified the file. |
path | String | The path of the file. |
size | Integer | The size of the file. |
Next steps
To deploy a specific bot, use the numeric id of the bot. Here are some additional requests for retrieving detailed bot information.