SendRuntimeQrCodeConfigChannelMessage

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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&region=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&region=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.