Querying Client Version User Statistics
Function
Collects statistics on the number of users of each version based on the tenant ID and client version list. The data comes from the offline statistics table and is updated every hour.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
workspace:clientVersion:listStatistics
List
-
-
-
-
URI
POST /v2/{project_id}/users/statistics/by-version
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| client_version_filters | Yes | Array of ClientVersionOsType objects | List of combinations of client versions and OS types. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| statistics | Array of ClientVersionStatistic objects | Version user statistics list. |
| Parameter | Type | Description |
|---|---|---|
| client_version | String | Client version. |
| os_type | String | OS type. |
| user_count | Long | Number of users who use this version. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Example Requests
POST /v2/0e69423d4400f4a82f67c0059a1e4cc8/users/statistics/by-version
{
"client_version_filters" : [ {
"client_version" : "25.2.1.0",
"os_type" : "Windows"
}, {
"client_version" : "26.3.0.0",
"os_type" : "Linux"
} ]
} Example Responses
Status code: 200
{
"statistics" : [ {
"client_version" : "25.2.1.0",
"os_type" : "Windows",
"user_count" : 128
}, {
"client_version" : "26.3.0.0",
"os_type" : "Linux",
"user_count" : 56
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 500 | Internal Server Error |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot