Queries the details of session instances in a delivery group, including instance IDs, instance statuses, creation time, update time, session statuses, and public IP addresses of primary network interfaces.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:ListAppInstances |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppInstanceGroupId |
string |
Yes |
The delivery group ID. |
aig-4p5f8tj16yb8b**** |
| AppInstanceId |
string |
No |
The application instance ID. |
ai-azn3kmwruh1vl**** |
| Status |
array |
No |
The list of application instance statuses. |
|
|
string |
Yes |
The application instance status. Valid values:
|
INIT |
|
| AppInstanceIdList |
array |
No |
The list of application instance IDs. A maximum of 100 IDs can be specified. |
|
|
string |
Yes |
The application instance ID. |
ai-azn3kmwruh1vl**** |
|
| PageSize |
integer |
No |
The number of query results per page. Maximum value: |
20 |
| PageNumber |
integer |
No |
The page number of the query results to display. Default value: |
1 |
| IncludeDeleted |
boolean |
No |
Specifies whether to query information about deleted instances. If this parameter is set to true, the AppInstanceIdList parameter is required. Otherwise, a parameter error is returned. Valid values:
|
true |
| UserIdList |
array |
No |
The list of user IDs. A maximum of 100 IDs can be specified. |
|
|
string |
No |
The user ID. |
Alice |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| TotalCount |
integer |
The total number of query results. |
18 |
| PageSize |
integer |
The number of query results per page. Maximum value: |
10 |
| PageNumber |
integer |
The page number of the query results to display. Specify this parameter. |
1 |
| AppInstanceModels |
array<object> |
The list of queried application instances. |
|
|
array<object> |
The queried application instance. |
||
| AppInstanceId |
string |
The application instance ID. |
ai-8dl7dzchklmka**** |
| AppInstanceGroupId |
string |
The delivery group ID. |
aig-dk8p95irqfst9**** |
| Status |
string |
The application instance status. |
BOUND |
| MainEthPublicIp |
string |
The public IP address of the primary network interface controller (NIC). This value is returned only when the network policy ( |
10.13.13.211 |
| NetworkInterfaceIp |
string |
||
| GmtCreate |
string |
The creation time. |
2023-03-07T20:29:19.000+08:00 |
| GmtModified |
string |
The update time. |
2023-03-07T20:29:19.000+08:00 |
| SessionStatus |
string |
The session connection status. This value is returned only when the instance status is running ( Valid values:
|
connect |
| BindInfo |
object |
The binding information between the instance and the user. |
|
| EndUserId |
string |
The ID of the end user that is bound to the application instance. |
app.test |
| UsageDuration |
integer |
The use duration of the application instance. Unit: seconds. |
2000 |
| NodeId |
string |
The ID of the node on which the instance runs. Note
This parameter is returned only when the billing mode of the delivery group to which the instance belongs is set to resource-based billing (ChargeResourceMode=Node). |
i-bp13******** |
| ChargeType |
string |
The billing method of the instance. Valid values:
Note
This parameter is returned only when the billing mode of the delivery group to which the instance belongs is set to resource-based billing (ChargeResourceMode=Node). Valid values:
|
PostPaid |
| NetworkInterfaceId |
string |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"TotalCount": 18,
"PageSize": 10,
"PageNumber": 1,
"AppInstanceModels": [
{
"AppInstanceId": "ai-8dl7dzchklmka****",
"AppInstanceGroupId": "aig-dk8p95irqfst9****",
"Status": "BOUND",
"MainEthPublicIp": "10.13.13.211",
"NetworkInterfaceIp": "",
"GmtCreate": "2023-03-07T20:29:19.000+08:00",
"GmtModified": "2023-03-07T20:29:19.000+08:00",
"SessionStatus": "connect",
"BindInfo": {
"EndUserId": "app.test",
"UsageDuration": 2000
},
"NodeId": "i-bp13********",
"ChargeType": "PostPaid",
"NetworkInterfaceId": ""
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.