With unique-certificate-per-device authentication, each device connects to ApsaraMQ for MQTT using its own access credential. Your application server manages these credentials through the following API operations.
Credential lifecycle
The four API operations cover the full credential lifecycle:
Register a credential when you provision a new device.
Query a credential to retrieve its current details.
Refresh a credential to generate updated access information.
Delete a credential to revoke a device's access.
API operations
| Operation | Description |
|---|---|
| RegisterDeviceCredential | Creates an access credential for a device. |
| GetDeviceCredential | Queries the access credential of a device. |
| UnRegisterDeviceCredential | Deletes the access credential of a device. |
| RefreshDeviceCredential | Updates the access credential of a device. |
Set request parameters and handle return values according to each operation's API reference page. Otherwise, the call may fail. For detailed parameter descriptions, request syntax, and error codes, see the linked API reference for each operation.