StopApp

Updated at:

Stops a specified application.

Operation description

Credential retrieval

To obtain LoginToken and SessionId by using GetLoginToken, call the GetLoginToken operation of the appstream-center 2021-02-20 version. The 2021-09-03 version does not provide this operation. You can also call RefreshLoginToken to update and obtain the LoginToken.

Required parameters and authentication invoke flow for GetLoginToken (2021-02-20 version)

API documentation: GetLoginToken (2021-02-20)

Required metric description:

  • ClientId: Required. The unique ID generated by the client to serve as the identity of the client that initiates the logon. Reuse the same value within the same session.

  • LoginIdentifier: The enterprise identifier, which is the enterprise alias. This parameter is required when you use the enterprise identifier logon method. Note that the parameter name is LoginIdentifier, not TenantAlias.

  • When you use a convenience account or an AD domain account for authentication, change the Settings of CurrentStage to ADPassword and provide both EndUserId (username) and Password (password).

Complete authentication invoke flow:

  1. Invoke GetLoginToken for the first time (with ClientId, LoginIdentifier, and CurrentStage along with the corresponding credentials based on the logon method), and save the returned LoginToken and SessionId. The system returns SessionId only when you invoke the operation for the first time in the same session. You must reuse this value when you invoke the operation in subsequent stages.

  2. If NextStage (such as MFAVerify, TokenVerify, or ChangePassword) is returned, carry the same SessionId and ClientId, change the Settings of CurrentStage to the value of NextStage, and provide the parameters required for this stage (such as AuthenticationCode for the MFAVerify stage and TokenCode for the TokenVerify stage). Invoke the operation repeatedly until you obtain the final LoginToken.

  3. Use the final LoginToken and SessionId to invoke this operation (StopApp).

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

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

Request parameters

Parameter

Type

Required

Description

Example

AppInstanceGroupId

string

No

The delivery group ID. You can obtain this ID by calling the ListRunningApps operation and using the AppInstanceGroupId parameter. This parameter is required. Although it is marked as required:false in the OpenAPI metadata, you must provide it in actual calls. If you do not provide this parameter or the specified delivery group does not exist, the service returns a 400 error with the error code InvalidAppInstanceGroup.NotFound.

aig-89ibriac2wudyph38

AppInstanceId

string

No

The instance ID. You can obtain this ID by calling the ListRunningApps operation and using the AppInstanceId parameter.

ai-d297eyf83g5niwnjl

AppId

string

No

The application ID. You can obtain this ID by calling the ListRunningApps operation and using the AppId parameter.

ca-fxwp4koywsglzvvex

ProductType

string

No

The product type. Valid values:

  • CloudApp: Cloud application (WUYING Cloud Application).

  • CloudBrowser: Cloud browser.

  • AndroidCloud: Cloud phone. This parameter is required. Although it is marked as required:false in the OpenAPI metadata, you must provide it in actual calls. If you do not provide this parameter or the value is invalid, the service returns a 400 error with the error code ProductTypeInvalid.

Valid values:

  • CloudApp :

    Cloud application.

CloudApp

ForceStop

boolean

No

Specifies whether to force stop the application.

Valid values:

  • false :

    Do not force stop.

  • true :

    Force stop.

false

ApiType

string

No

The API type. The value can only be AnonymousUserAPI, which indicates that the client calls the API.

Valid values:

  • AnonymousUserAPI :

    AnonymousUserAPI

AnonymousUserAPI

ClientId

string

No

The unique ID generated by the client.

91b79184-51d0-42ad-8475-78cae95b0aa6

LoginToken

string

No

The logon credential. You can obtain this credential by calling the GetLoginToken operation to log on, or by calling the RefreshLoginToken operation to update it after logon. Response parameter: LoginToken. This parameter is required. Although it is marked as required:false in the OpenAPI metadata, you must provide it in actual calls. If you do not provide this parameter, the service returns a 400 error with the error code InvalidParameter.loginToken.

v185fdd7f6d39fa7861981639366085772e150a390a5bb7b43c4e62440d94fc392b945770e1596cebe90085ce0af4d330e

EndUserId

string

No

The username of the convenience account.

test.test

SessionId

string

No

The session ID. You can obtain this ID by calling the GetLoginToken logon operation. Response parameter: SessionId. This parameter is required. Although it is marked as required:false in the OpenAPI metadata, you must provide it in actual calls. If you do not provide this parameter, the service returns a 400 error with the error code InvalidParameter.sessionId.

597e869d-ea14-4b83-9490-714f68bfe935

ClientOS

string

No

The client operating system.

windows_"Windows 10 Enterprise" 10.0 (Build 19042)

ClientVersion

string

No

The client version.

3.1.1-R-20211022.144255

ClientIp

string

No

The client IP address.

22.21.2.79

BizRegionId

string

No

The region ID of the delivery group. You can obtain this ID by calling the ListRunningApps operation and using the RegionId parameter.

cn-hangzhou

LoginRegionId

string

No

The region ID for logon. The region ID of the workspace selected by the user during logon.

cn-hangzhou

ClientChannel

string

No

The application client identifier, which is used to distinguish different applications.

Valid values:

  • pc :

    pc

  • web :

    web

  • mobile :

    mobile

pc

Uuid

string

No

The device UUID.

2943802884B27030B6759F9132B26903

WyId

string

No

The WUYING user ID. You can obtain this ID by calling the GetLoginToken logon operation. Response parameter: WyId.

ac3cb49059261898

IdpId

string

No

The logon authentication service ID. You can obtain this ID by calling the FindIdpListByLoginName operation.

idp-9ie5smicnct2xodn2

AliUid

integer

No

The tenant ID. You can obtain this ID by calling the GetLoginToken logon operation. Response parameter: TenantId.

1924794279035094

RegionId

string

No

The region ID of the delivery group. You can obtain this ID by calling the ListRunningApps operation and using the RegionId parameter.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

BaseResult

RequestId

string

The request ID.

83A9075B-C646-59A9-8232-CAE41AF4B9E3

Examples

Success response

JSON format

{
  "RequestId": "83A9075B-C646-59A9-8232-CAE41AF4B9E3"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.