Domain name for API request: mna.intl.tencentcloudapi.com.
Number of active devices statistics
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: GetActiveDeviceCount. |
| Version | Yes | String | Common Params. The value used for this API: 2021-01-19. |
| Region | No | String | Common Params. This parameter is not required for this API. |
| Period | No | Integer | Query granularity. Valid values: 0: day, 1: week, 2: month. Default is day. |
| StartTime | No | Integer | Start time. In seconds. |
| EndTime | No | Integer | End time. In seconds. |
| DevGroup | No | String | device group, if not passed, query all |
| LicenseType | No | Integer | License type. If not passed, query all. 1: Tenant monthly payment, 2: Manufacturer monthly payment, 3: Permanent license. |
| Parameter Name | Type | Description |
|---|---|---|
| ActiveDeviceList | Array of ActiveDeviceList | Activate device statistics |
| Period | Integer | Query granularity. Valid values: 0: day, 1: week, 2: month. Default is day. |
| StartTime | String | Start time. |
| EndTime | String | End time. |
| DevGroup | String | device group |
| LicenseType | String | License type. If not passed, query all. 1: Tenant monthly payment, 2: Manufacturer monthly payment, 3: Permanent license. |
| AppId | String | tenant ID |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Query the number of active devices statistics
POST / HTTP/1.1
Host: mna.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetActiveDeviceCount
<Common request parameters>
{
"Period": 0,
"StartTime": 1732176361,
"EndTime": 1732176362,
"DevGroup": "comollit",
"LicenseType": 3
}
{
"Response": {
"ActiveDeviceList": [
{
"Count": 1,
"Time": "2024-11-20"
}
],
"DevGroup": "group1",
"EndTime": "2024-11-20",
"LicenseType": "1",
"Period": 0,
"StartTime": "2024-11-20",
"RequestId": "3c140219-cfe9-470e-b241-907877d6fb03"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | Internal error. |
| InvalidParameterValue | Parameter value error. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback