Domain name for API request: mqtt.intl.tencentcloudapi.com.
Modify the device signature
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: ModifyDeviceIdentity. |
| Version | Yes | String | Common Params. The value used for this API: 2024-05-16. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Tencent Cloud MQTT instance ID can be obtained from the DescribeInstanceList api or the console. |
| DeviceId | Yes | String | Device ID |
| Status | No | String | 1:ENABLED-Available 2: DISABLED - Unavailable |
| PrimaryKey | No | String | Primary signature key, Base64 encode is required. |
| SecondaryKey | No | String | Secondary signature key, must be Base64 encoded. |
| PropagatingProperties.N | No | Array of PropagatingProperty | Device id spread attribute setting |
| Parameter Name | Type | Description |
|---|---|---|
| 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. |
Example
POST / HTTP/1.1
Host: mqtt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyDeviceIdentity
<Common request parameters>
{
"InstanceId": "mqtt-qzgaq8bk",
"DeviceId": "device-1",
"PropagatingProperties": [
{
"Key": "key1",
"Value": "value1"
}
]
}
{
"Error": null,
"RequestId": null,
"Response": {
"RequestId": "dbe406c9-8d46-4b54-b12f-b58be26d0e96"
}
}
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 |
|---|---|
| FailedOperation.InstanceNotReady | FailedOperation.InstanceNotReady |
| UnsupportedOperation.ResourceAlreadyExists | UnsupportedOperation.ResourceAlreadyExists |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan