Domain name for API request: mna.intl.tencentcloudapi.com.
This API is used to get device information list.
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: GetDevices. |
| 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. |
| PageSize | Yes | Integer | Display records per page. When both PageSize and PageNumber are -1, match all devices with unlimited entries on one page. |
| PageNumber | Yes | Integer | Currently viewed page number. When PageSize and PageNumber are both -1, match all devices with unlimited entries on one page. |
| Keyword | No | String | Search for a device by keyword (ID or device name). Leave it empty to match all devices. |
| DeviceType | No | Integer | DeviceType Leave it blank: Return all devices. 1: Your own equipment; 2: Third-party device |
| Parameter Name | Type | Description |
|---|---|---|
| DeviceInfos | Array of DeviceBaseInfo | List of Device Information |
| Length | Integer | Total number of devices |
| TotalPage | Integer | Total pages |
| 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. |
POST / HTTP/1.1
Host: mna.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetDevices
<Common request parameters>
{
"PageSize": 1,
"PageNumber": 1
}
{
"Response": {
"DeviceInfos": [
{
"AccessScope": 0,
"CreateTime": "1663310188000",
"DeviceId": "mna-w795bzezug",
"DeviceName": "dev2233",
"FlowTrunc": 0,
"GroupId": "",
"GroupName": "",
"LastTime": "1719454676000",
"LicensePayMode": 0,
"Payer": 0,
"Remark": "",
"Sn": "",
"Vendor": ""
}
],
"Length": 899,
"RequestId": "8fbce821-acbb-49db-ad70-345b5d353324",
"TotalPage": 899
}
}
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. |
| InternalError.ControlRequestError | Request controller encounters an error. |
| InvalidParameterValue | Parameter value error. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan