StopApp
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 isLoginIdentifier, notTenantAlias.When you use a convenience account or an AD domain account for authentication, change the Settings of
CurrentStagetoADPasswordand provide bothEndUserId(username) andPassword(password).
Complete authentication invoke flow:
Invoke
GetLoginTokenfor the first time (withClientId,LoginIdentifier, andCurrentStagealong with the corresponding credentials based on the logon method), and save the returnedLoginTokenandSessionId. The system returnsSessionIdonly 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.If
NextStage(such asMFAVerify,TokenVerify, orChangePassword) is returned, carry the sameSessionIdandClientId, change the Settings ofCurrentStageto the value ofNextStage, and provide the parameters required for this stage (such asAuthenticationCodefor theMFAVerifystage andTokenCodefor theTokenVerifystage). Invoke the operation repeatedly until you obtain the finalLoginToken.Use the final
LoginTokenandSessionIdto invoke this operation (StopApp).
Try it now
Test
RAM authorization
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 |
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:
Valid values:
|
CloudApp |
| ForceStop |
boolean |
No |
Specifies whether to force stop the application. Valid values:
|
false |
| ApiType |
string |
No |
The API type. The value can only be AnonymousUserAPI, which indicates that the client calls the API. Valid values:
|
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 |
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 |
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 |
| 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.