AddRobots
Description: Adds service robots in batches using specified Elastic Desktop Service accounts.
Endpoint: rpa/openapi/raas/resource/AddRobots
HTTP Method: POST
Usage Notes:
You can add a maximum of 50 cloud resources per API call. If you have more than 50 resources, you must make multiple calls.
A successful response from the API only indicates that the server has received the request. Adding a robot is an asynchronous process. To check the result, view the status in the console or query the results by using the ListRobots operation.
Usage Limits:
For information about API call limits, see Call Limits.
Request Parameters:
Parameter | Type | Required | Example | Description |
RegionId | String | Yes | cn-hangzhou | The ID of the region that contains the Elastic Desktop Service instances. Supported region IDs include:
|
InitInfo | Array of JSON objects. The serialization style is | Yes | [{"DesktopId": "ecd-9jhz****m08lsxs9e","EndUserId":"example_account"}, {"DesktopId": "ecd-3gqs****m08lasd9e","EndUserId":"example_account"}] |
|
PackId | String | No | bv***rDl | The robot group ID. If you do not specify this parameter, the robots are added to the default group. |
WuyingConfigId | String | No | RA-0S****X5 |
|
ConnectConfigAutoWrite | Boolean | No | false |
|
ConnectConfigId | String | No | RC-p***EiYe |
|
ConnectConfigAutoCreate | Boolean | No | false |
|
Response Parameters:
For a description of common response parameters, see Response Structure. The data field in the response is null.
Sample Request:
https://console-rpa.aliyun.com/rpa/openapi/raas/resource/AddRobots?
&InitInfo=%5B%7B%22DesktopId%22%3A%22ecd-9jhz6***l15u0unio%22%2C%20%22UserId%22%3A%22jinyun2%22%7D%5D
&PackId=9uB***vBS
&RegionId=cn-hangzhou
&CommonRequestParametersSample Response:
{
"requestId": "f0375921-****-****-****-6a682d2f9d4e",
"success": true,
"code": 0,
"msg": "Request successful",
"msgCode": "result.success",
"data": null,
"pager": null,
"instanceId": null
}