SendRuntimeQrCodeConfigChannelMessage
Initiates the third-party channel QR code configuration process in batches for specified cloud desktop runtimes, generates QR code configuration page URLs, and notifies the authorized users of the runtimes by email and SMS.
Operation description
You can use this API operation to initiate the third-party channel QR code configuration process in batches for managed cloud desktop runtimes in the Wuying Agent Management Center. The system generates a QR code configuration page URL for each runtime and notifies the authorized user of the runtime by email and SMS. The user can complete the channel configuration by opening the page and scanning the QR code.
Usage notes:
Currently, only CloudDesktop is supported for RuntimeType. You can specify up to 200 runtime IDs in a single request.
Each runtime must have one and only one authorized user. Otherwise, the sending result for the runtime returns the error code Runtime.UserNotSupported.
The taskId in the QR code configuration page URL is valid for 1 hour. After it expires, you must call this API operation again to initiate the process.
If the sending fails for some runtimes, the API operation still returns a success response overall. Check the Success, Code, and Message fields for each runtime in Data. If the sending fails for all runtimes, the API operation returns a failure response. If the error codes for all runtimes are the same, that error code is returned. Otherwise, SendQrCodeConfigMessage.SendFailed is returned.
Email and SMS notifications are sent on a best-effort basis. Notification failures do not affect the API response. After initiation, you can call GetRuntimeChannelQrCodeDetail to query the details of the QR code configuration process.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:SendRuntimeQrCodeConfigChannelMessage |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuntimeType |
string |
Yes |
The runtime environment type of the runtime resource. Currently, only CloudDesktop is supported. |
CloudDesktop |
| RuntimeIds |
array |
Yes |
The list of runtime resource IDs, such as cloud desktop IDs. You can specify 1 to 200 IDs. |
|
|
string |
Yes |
The ID of the runtime, such as a cloud desktop ID. |
ecd-xgads |
|
| AgentPlatform |
string |
Yes |
The agent platform type. |
ENTERPRISE |
| AgentProvider |
string |
Yes |
The agent provider. |
OpenClaw |
| Code |
string |
Yes |
The third-party channel code, such as dingtalk-connector (DingTalk), feishu (Lark), or wecom (WeCom). If the current agent platform and provider do not support the channel, the error code ChannelConfig.NotSupported is returned, and no messages are sent. |
feishu |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response for sending QR code configuration channel messages in batches. |
||
| Data |
array<object> |
The list of sending results for each runtime. Each runtime corresponds to one result. The return order is not guaranteed to be the same as the order of RuntimeIds in the request. Match the results by RuntimeId. |
|
|
object |
|||
| RuntimeId |
string |
The ID of the runtime resource. |
ecd-xgads |
| QrCodeNotifyUrl |
string |
The access URL of the QR code configuration channel page. It carries the taskId, channel code, and region parameters for the current process, and has been sent to the authorized user of the runtime by email and SMS. This parameter is returned only when the sending is successful. The taskId is valid for 1 hour. |
https://eds.console.aliyun.com/public/scan-pair?taskId=8f14e45f-ceea-4672-9f6e-3c5b2a1d****&code=feishu®ion=cn-shanghai |
| Success |
boolean |
Indicates whether the QR code configuration channel message for the runtime was initiated successfully. If the value is false, you can check the Code and Message fields for the cause of the failure. |
|
| Code |
string |
The error code when the sending fails, such as Runtime.NotFound (the runtime does not exist) or Runtime.UserNotSupported (the runtime has no authorized users or has multiple authorized users). This parameter is not returned when the sending is successful. |
Runtime.UserNotSupported |
| Message |
string |
The error message when the sending fails. This parameter is not returned when the sending is successful. |
Runtime has no authorized user |
| TotalCount |
integer |
The total number of returned sending results, which is the same as the number of results in Data. |
1 |
| RequestId |
string |
The ID of the request. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"Data": [
{
"RuntimeId": "ecd-xgads",
"QrCodeNotifyUrl": "https://eds.console.aliyun.com/public/scan-pair?taskId=8f14e45f-ceea-4672-9f6e-3c5b2a1d****&code=feishu®ion=cn-shanghai",
"Success": false,
"Code": "Runtime.UserNotSupported",
"Message": "Runtime has no authorized user"
}
],
"TotalCount": 1,
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.