Domain name for API request: mna.intl.tencentcloudapi.com.
Activate hardware device
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: ActivateHardware. |
| 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. |
| Hardware.N | Yes | Array of ActivateHardware | Device list to be activated |
| Parameter Name | Type | Description |
|---|---|---|
| HardwareInfo | Array of ActivateHardware | Device information after activation |
| 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. |
Batch activate devices
POST / HTTP/1.1
Host: mna.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ActivateHardware
<Common request parameters>
{
"Hardware": [
{
"Vendor": "vendor",
"SN": "AN",
"DeviceName": "name",
"Description": "activateHardware info",
"DataKey": "keys"
}
]
}
{
"Response": {
"HardwareInfo": [
{
"Vendor": "vendor",
"SN": "AN",
"DeviceName": "name",
"Description": "activateHardware info",
"DataKey": "keys",
"LicensePayMode": 1,
"AccessScope": 1
}
],
"RequestId": "edd378f7-2511-4692-a029-5ca3d22c1884"
}
}
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. |
| InternalError.DuplicateDeviceName | Device name already exists. |
| InvalidParameterValue | Parameter value error. |
| OperationDenied.HardwareHasActivated | Hardware corresponding to SN has been activated |
| OperationDenied.HardwareNotExist | The hardware corresponding to the input SN does not exist. |
| OperationDenied.VendorNotRegister | The current account is not yet registered as a manufacturer. |
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