Adds a device to the connection blacklist to block its connections.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:AddCustomAuthConnectBlack |
create |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for MQTT instance. |
mqtt-cn-i7m26mf**** |
| ClientId |
string |
Yes |
The client ID of the device whose connections you want to disable. |
GID_test@@@test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
82B9E503-F4A1-4F30-976F-C6999FF9**** |
| Code |
integer |
The HTTP status code. A value of 200 indicates success. |
200 |
| Success |
boolean |
Indicates whether the operation succeeded. Valid values: true and false. |
True |
| Message |
string |
The response message. |
operation success. |
Examples
Success response
JSON format
{
"RequestId": "82B9E503-F4A1-4F30-976F-C6999FF9****",
"Code": 200,
"Success": true,
"Message": "operation success."
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstancePermissionCheckFailed | An error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings. | |
| 400 | InvalidParameter.%s | An error occurred while validating the parameter. The parameter may be missing or invalid. | |
| 400 | Customauth.over.capacity | Over custom auth capacity. | The number of custom authentication rules exceeds the limit. |
| 404 | ApiNotSupport | The specified API is not supported. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.