BatchConfigRuntimeChannel

Updated at:

Configures third-party channels for multiple agent runtimes in batches, supports delivering different channel configurations to different runtimes, and returns the configuration result for each configuration item.

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:BatchConfigRuntimeChannel

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RuntimeType

string

Yes

The agent runtime type, such as CloudDesktop (Cloud Desktop).

CloudDesktop

AgentPlatform

string

Yes

The agent platform, such as ENTERPRISE. If the value is invalid, the error code InvalidParameter.AgentPlatform is returned.

ENTERPRISE

AgentProvider

string

Yes

The agent provider.

  • JVS Computer: Specify OpenClaw.

  • OpenClaw: Specify OpenClaw.

  • Hermes Agent: Specify HermesAgent.

OpenClaw

ChannelConfigs

array<object>

Yes

The list of channel configurations. A maximum of 200 items are supported. Each configuration item specifies an agent runtime and the third-party channel to be configured for it. Different channel configurations can be delivered to different runtimes. Multiple configuration items for the same runtime are processed sequentially.

object

Yes

The channel configuration item.

RuntimeId

string

Yes

The agent runtime ID. The ID mappings are as follows:

  • JVS Computer: the JVS Computer ID, in the format of jvs-xxxx.

  • OpenClaw: the cloud desktop ID, in the format of ecd-xxxx.

  • Hermes Agent: the Hermes Agent ID, in the format of jvs-xxxx.

ecd-xgads

Code

string

Yes

The third-party channel code, such as dingtalk-connector (DingTalk), feishu (Lark), and wecom (WeCom). System channel codes are case-insensitive. Configuring wechat and jvsclaw is not supported. If these values are passed, the entire request fails and the error code ChannelConfig.NotSupported is returned.

dingtalk-connector

Name

string

No

The channel name.

If this parameter is not specified, the system automatically uses the code as the name.

DingTalk

ConfigMode

string

Yes

The configuration mode. Valid values:

  • Simple: simple configuration mode.

  • Custom: custom configuration mode.

Simple

Config

string

Yes

The JSON string for channel configuration.

  • Simple mode: only appKey and appSecret are allowed.

  • Custom mode: all configuration items required for the channel under the current agent provider must be included.

If the string is not valid JSON, the error code InvalidParameter.ValueInvalid is returned.

{"appKey":"testKey","appSecret":"testSecret"}

Response elements

Element

Type

Description

Example

object

The request result.

Data

array<object>

The list of batch configuration results. Each channel configuration item corresponds to one result.

object

RuntimeId

string

The agent runtime ID.

ecd-xgads

Code

string

The third-party channel code.

dingtalk-connector

Success

boolean

Specifies whether the channel configuration item is configured successfully. Valid values:

  • true: The configuration is successful.

  • false: The configuration failed. For the cause of the failure, see ErrorCode and Message.

ErrorCode

string

The error code returned when the configuration fails. This parameter is returned only when Success is false.

ConfigFailed

Message

string

The error message returned when the configuration fails. This parameter is returned only when Success is false.

The runtime is not found.

TotalCount

integer

The total number of configuration results, which is the same as the number of configuration items in ChannelConfigs.

1

RequestId

string

The request ID.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

Examples

Success response

JSON format

{
  "Data": [
    {
      "RuntimeId": "ecd-xgads",
      "Code": "dingtalk-connector",
      "Success": false,
      "ErrorCode": "ConfigFailed",
      "Message": "The runtime is not found."
    }
  ],
  "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.