Mengkueri informasi daftar putih alamat IP instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetInstanceIpWhitelist |
get |
*IpWhitelist
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/ip/whitelists HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-7e22ody**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ipWhitelists |
array |
No |
Daftar putih alamat IP filter. |
|
|
string |
No |
The filter IP address whitelist. |
0.0.0.0/0 |
Elemen respons
|
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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.