You can call this operation to query the number of clients that are connected to Alibaba Cloud through a specific Smart Access Gateway (SAG) APP instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No DescribeSagOnlineClientStatistics

The operation that you want to perform.

Set the value to DescribeSagOnlineClientStatistics.

RegionId String Yes cn-shanghai

The region where the SAG APP instance is deployed.

SmartAGIds.N RepeatList No sag-va03wf4l4idaj*****

The list of IDs of SAG instances. Maximum value of N: 50.

Response parameters

Parameter Type Example Description
RequestId String 9EC839B6-0EA5-4F19-A4B7-A9E465D057AE

The ID of the request.

SagStatistics Array

The information about clients that are connected to Alibaba Cloud.

SmartAGId String sag-va03wf4l4idaj*****

The ID of the SAG APP instance.

OnlineCount String 0

The number of clients that are connected to Alibaba Cloud through the specified SAG APP instance.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DescribeSagOnlineClientStatistics
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<DescribeSagOnlineClientStatisticsResponse>
	  <RequestId>9EC839B6-0EA5-4F19-A4B7-A9E465D057AE</RequestId>
	  <SagStatistics>
		    <Statistics>
			      <SmartAGId>sag-va03wf4l4idaj0***</SmartAGId>
			      <OnlineCount>0</OnlineCount>
		    </Statistics>
	  </SagStatistics>
    </DescribeSagOnlineClientStatisticsResponse>

JSON format

{
    "RequestId": "9EC839B6-0EA5-4F19-A4B7-A9E465D057AE", 
    "SagStatistics": {
        "Statistics": [
            {
                "SmartAGId": "sag-va03wf4l4idaj00***", 
                "OnlineCount": 0
            }
        ]
    }
}

Error codes

For a list of error codes, visit the API Error Center.