Creates an IP address whitelist for access control.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:CreateInstanceIpWhitelist |
create |
*Instance
|
None | None |
Request syntax
POST /instances/{instanceId}/ip/whitelist HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
rmq-cn-7e22ody**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| ipWhitelists |
array |
Yes |
The list of IP address whitelists. |
|
|
string |
Yes |
The IP address whitelist. |
0.0.0.0/0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
The request ID. |
A07B41BD-6DD3-5349-9E76-00303DF04BBE |
| success |
boolean |
Indicates whether the request is successful. |
true |
| data |
boolean |
The returned data. |
true |
| code |
string |
The error code. |
MissingInstanceId |
| message |
string |
The error message. |
The instance cannot be found. |
| httpStatusCode |
integer |
The HTTP status code. |
400 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
InstanceId |
| accessDeniedDetail |
string |
The details about the access denial. This field is returned only when access is denied due to insufficient RAM permissions. |
xxx |
Examples
Success response
JSON format
{
"requestId": "A07B41BD-6DD3-5349-9E76-00303DF04BBE",
"success": true,
"data": true,
"code": "MissingInstanceId",
"message": "The instance cannot be found.",
"httpStatusCode": 400,
"dynamicCode": "InstanceId",
"dynamicMessage": "InstanceId",
"accessDeniedDetail": "xxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.