AddRobots

Updated at:

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:

Important

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:

  • cn-hangzhou

  • cn-shanghai

  • cn-qingdao

  • cn-beijing

  • cn-zhangjiakou

  • cn-shenzhen

  • cn-chengdu

  • cn-hongkong

  • ap-southeast-1

InitInfo

Array of JSON objects. The serialization style is simple.

Yes

[{"DesktopId": "ecd-9jhz****m08lsxs9e","EndUserId":"example_account"}, {"DesktopId": "ecd-3gqs****m08lasd9e","EndUserId":"example_account"}]

  • Information about the service robots to be added. You can specify up to 50 Elastic Desktop Service instance IDs per call.

  • DesktopId is the ID of the Elastic Desktop Service instance. This parameter is required.

  • EndUserId is the end user's account for the Elastic Desktop Service instance. The end user must already be associated with the instance. This parameter is optional.

  • If EndUserId is not specified, the system uses the account specified in Default Windows Logon Account. This setting is located in the Alibaba Cloud RPA console under Service Robots > Configuration > Cloud Resource Management Configuration.

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

  • The cloud resource management configuration ID. The RPA service uses the authorization associated with this ID to call Elastic Desktop Service APIs.

  • If your tenant has only one cloud resource management configuration, this parameter is optional.

  • If your tenant has multiple cloud resource management configurations, this parameter is required.

  • You can find this ID in the Alibaba Cloud RPA console under Service Robots > Configuration > Cloud Resource Management Configuration.

ConnectConfigAutoWrite

Boolean

No

false

  • Specifies whether to automatically add the connection configuration file to the client on the Elastic Desktop Service instance during onboarding.

  • The default value is false. In this case, you must manually import the connection configuration file into the service robot client.

  • We recommend setting this parameter to true and using it with the ConnectConfigId parameter. This automatically adds the connection configuration file to the client and completes the onboarding process.

ConnectConfigId

String

No

RC-p***EiYe

  • The robot connection configuration ID. This parameter is required when ConnectConfigAutoWrite is set to true.

  • You can find this ID in the Alibaba Cloud RPA console under Service Robots > Configuration > Robot Connection Configuration.

ConnectConfigAutoCreate

Boolean

No

false

  • If this parameter is not specified, the default value is false.

  • This parameter applies only if your tenant does not have a connection configuration file. To automatically create one, set this parameter and ConnectConfigAutoWrite to true.

  • In most cases, the system has already generated a connection configuration file if you have already added a service robot through the RPA console. In this case, you do not need to use this parameter.

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
&CommonRequestParameters

Sample Response:

{
	"requestId": "f0375921-****-****-****-6a682d2f9d4e",
	"success": true,
	"code": 0,
	"msg": "Request successful",
	"msgCode": "result.success",
	"data": null,
	"pager": null,
	"instanceId": null
}