GetInstanceIpWhitelist
Queries the information about the IP address whitelist of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetInstanceIpWhitelist |
get |
*IpWhitelist
|
None | None |
Request syntax
GET /instances/{instanceId}/ip/whitelists 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 |
| ipWhitelists |
array |
No |
The filter IP address whitelists. |
|
|
string |
No |
The filter IP address whitelist. |
0.0.0.0/0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
0B962390-D84B-5D44-8C11-79DF40299D41 |
| success |
boolean |
Indicates whether the call was successful. |
true |
| data |
object |
The data returned. |
|
| regionId |
string |
The region ID. |
cn-hangzhou |
| instanceId |
string |
The instance ID. |
rmq-cn-7e22ody**** |
| ipWhitelists |
array |
The IP address whitelists. |
|
|
string |
The IP address whitelist. |
0.0.0.0/0 |
|
| code |
string |
The error code. |
Instance.NotFound |
| message |
string |
The error message. |
xxx |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
Examples
Success response
JSON format
{
"requestId": "0B962390-D84B-5D44-8C11-79DF40299D41",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"ipWhitelists": [
"0.0.0.0/0"
]
},
"code": "Instance.NotFound",
"message": "xxx",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.