Obtains the registration code of a specific certificate authority (CA) certificate. When you register a CA certificate with an ApsaraMQ for MQTT broker, you must upload the validation certificate of the CA certificate to verify whether you have the private key of the CA certificate. The validation certificate must be generated by using the registration code of the CA certificate.
Operation description
-
Only ApsaraMQ for MQTT Enterprise Platinum Edition instances support this operation.
-
Each Alibaba Cloud account can call this operation up to 500 times per second. To request a higher limit, join DingTalk group 35228338 to contact ApsaraMQ for MQTT technical support.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:GetRegisterCode |
get |
*Instance
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MqttInstanceId |
string |
Yes |
The ID of the ApsaraMQ for MQTT instance. |
post-cn-7mz2d****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
020F6A43-19E6-4B6E-B846-44EB31DF**** |
| RegisterCode |
string |
The registration code of the CA certificate. |
13274673-8f90-4630-bea1-9cccb25756ad2089****** |
Examples
Success response
JSON format
{
"RequestId": "020F6A43-19E6-4B6E-B846-44EB31DF****",
"RegisterCode": "13274673-8f90-4630-bea1-9cccb25756ad2089******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MqttOwnerCheckError | Failed to validate the instance permission | |
| 500 | ParameterFieldCheckFailed | Failed to validate the parameters. The parameters may be missing or invalid. | |
| 500 | MqttInstanceNotFound | Specified instance is not found | |
| 403 | PermissionCheckFailed | Failed to verify API permissions. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.