ListRobots
Description: Retrieves a list of robots.
Path: /rpa/openapi/raas/resource/ListRobots
Method: GET
Usage notes:
This operation makes synchronous calls to cloud product APIs, which can increase latency. We recommend setting the NeedCloudResourceStatus parameter to false to reduce request latency.
Limitations:
For API call limits, see Call limits.
Request parameters:
Parameter | Type | Required | Example | Description |
RobotRunStatus | String | No | idle |
|
PackId | String | No | bv2XPrDl |
|
RobotIds | Array of String, serialization method: simple | No | ["6579633...D178CAC2FCBD5BD0B4EC", "11DC817...4E463B1E538436035653"] |
|
CurrentPage | Integer | No | 1 | The current page number. Default: 1. |
PageSize | Integer | No | 20 | The number of entries per page. Default: 20. Maximum: 100. |
RobotAuthorizedStatus | String | No | authorized |
|
RobotConnectStatus | String | No | connected |
|
MachineInstanceId | String | No | ecd-******og6wmjf6xuz |
|
NeedCloudResourceStatus | String | No | true |
|
Response parameters:
For information about common response parameters, refer to the response structure. The following table describes the fields in the data object.
Parameter | Type | Example | Description |
RobotId | String | 11DC817A...4E463B1E538436035653 | The robot ID. |
RobotName | String | exampleName | The robot name. |
PackId | String | bv2XPrDl | The robot group ID. |
MachineType | String | EDS | The type of the cloud resource. Currently, only Elastic Desktop Service (EDS) is supported. |
MachineInstanceId | String | ecd-9s...yzo5y7i8 | The ID of the cloud resource instance. Currently, this is the ID ( |
RobotRunStatus | String | idle | The running status of the robot. Valid values: |
RobotConnectStatus | String | connected | The connection status of the robot. Valid values: |
RobotAuthorizedStatus | String | authorized | The authorization status of the robot. Valid values: |
CloudResourceStatus | String | Running | The status of the cloud resource. Possible values:
The system obtains the value of this field by calling cloud resource APIs, such as the Elastic Desktop Service API. If the API call fails, the value is If |
WuyingConfigId | String | RA-7yZBppUZ | The ID of the cloud resource management configuration. |
RobotRemark | String | Finance department robot | A custom remark for the robot. The value is |
Request example:
https://console-rpa.aliyun.com/rpa/openapi/raas/resource/ListRobots?
&RobotRunStatus=idle
&PageSize=20
&CurrentPage=1
&<common request parameters>Response example:
{
"code": 0,
"data": [{
"RobotId": "6579633385******CAC2FCBD5BD0B4EC",
"RobotName": "hz6m****u0unio",
"PackId": "Qq****m3t",
"MachineType": "EDS",
"MachineInstanceId": "ecd-9jh******15u0unio",
"RobotRunStatus": "-",
"RobotConnectStatus": "notConnected",
"RobotAuthorizedStatus": "authorized",
"CloudResourceStatus": "Running",
"WuyingConfigId": "RA-7yZBppUZ",
"RobotRemark": null
}],
"msg": "Success",
"msgCode": "result.success",
"pager": {
"currentPage": 1,
"limit": 100,
"offset": 0,
"pageSize": 100,
"total": 1,
"totalPage": 1
},
"success": true
}