DisconnectAndroidInstance

Updated at:

Disconnects a connected instance or disassociates an instance that is associated with another user.

Operation description

Connections to instances are established using the Web SDK. After a connection is closed with session.stop(), the system maintains the user-instance association for 5 minutes. During this time, other users cannot connect. The DisconnectAndroidInstance operation lets you disassociate the instance immediately. If you use the Cloud Phone Matrix Edition and the instance stream pattern is collaborative mode, you can specify EndUserId to disconnect a specific user and invalidate the corresponding ticket.

Try it now

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceIds

array

No

A list of instance IDs. You can specify 1 to 100 IDs.

string

No

An instance ID.

acp-5hh4a31emkt6u****

EndUserId

string

No

If you use the Cloud Phone Matrix Edition and the instance stream pattern is collaborative mode, you can specify EndUserId to disconnect a specific user and invalidate the corresponding ticket.

user1

Response elements

Element

Type

Description

Example

object

The response elements.

RequestId

string

The request ID.

E5138F7E-46B5-526A-8C99-82DEAE6B****

Examples

Success response

JSON format

{
  "RequestId": "E5138F7E-46B5-526A-8C99-82DEAE6B****"
}

Error codes

See for a complete list.

Release notes

See 变更详情 for a complete list.