A device certificate is a digital certificate that a root Certificate Authority (CA) issues to a client device. The service uses this certificate to authenticate the client during connection. If authentication is successful, the service and the client can communicate securely using the encryption key in the certificate. If authentication fails, the service denies the client's connection. Should you need to temporarily disable a device certificate, you can call this operation to inactivate it, setting its status to inactive.
Operation description
Only Platinum Edition instances support the InactivateDeviceCertificate operation.
The request frequency for a single user is limited to 500 calls per second. For special requirements, join the DingTalk group (ID: 35228338) to contact ApsaraMQ for MQTT technical support.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
mq:UnregisterDeviceCertificate | none | *Instance
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
MqttInstanceId | string | Yes | The ID of the ApsaraMQ for MQTT instance to which the device certificate is attached. | post-cn-7mz2d****** |
DeviceSn | string | Yes | The serial number (SN) of the device certificate that you want to inactivate. The SN uniquely identifies a device certificate. | 356217374433****** |
CaSn | string | Yes | The SN of the CA certificate to which the device certificate belongs. The SN uniquely identifies a CA certificate. The value can be up to 128 bytes in length. | 007269004887****** |
Response elements
Parameter | Type | Description | Example |
object | Schema of Response | ||
RequestId | string | The ID of the request. This common parameter is unique to each request. Use this ID to troubleshoot issues. | 020F6A43-19E6-4B6E-B846-44EB31DF**** |
DeviceSn | string | The SN of the inactivated device certificate. The SN uniquely identifies a device certificate. | 356217374433****** |
Examples
Success response
JSON format
{
"RequestId": "020F6A43-19E6-4B6E-B846-44EB31DF****",
"DeviceSn": "356217374433******"
}Error codes
HTTP status code | Error code | Error message | Description |
400 | ParameterFieldCheckFailed | Failed to validate the parameters. The parameters may be missing or invalid. | |
500 | ParameterFieldCheckFailed | Failed to validate the parameters. The parameters may be missing or invalid. | |
500 | FindDeviceBySnError | Failed to find the device certificate by the SN. Please check sn is valid | |
500 | MqttInstanceNotFound | Specified instance is not found | |
403 | PermissionCheckFailed | Failed to verify API permissions. | ram permission check failed |
403 | MqttOwnerCheckError | Failed to validate the instance permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.