Queries the whitelist templates associated with an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:ListWhitelistTemplates |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| TemplateName |
string |
No |
The whitelist template name. Fuzzy search is supported. |
default |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
25 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
1234567890 |
| Data |
object |
The query results. |
|
| TotalCount |
integer |
The total number of templates. |
30 |
| PageSize |
integer |
The number of entries per page. |
20 |
| CurrPageNumbers |
integer |
The current page number. |
1 |
| TotalPageNumbers |
integer |
The total number of pages. |
2 |
| HasPrev |
boolean |
Whether a previous page exists. |
false |
| HasNext |
boolean |
Whether a next page exists. |
true |
| Templates |
array<object> |
The list of whitelist templates. |
|
|
array<object> |
The details of a whitelist template. |
||
| TemplateId |
string |
The whitelist template ID. |
g-asdfwem |
| TemplateName |
string |
The whitelist template name. |
g-asdfwem |
| SecurityIPList |
string |
The IP address whitelist. |
192.168.1.1,10.0.0.1 |
| DbInstances |
array<object> |
The list of associated instances. |
|
|
object |
The details of an associated instance. |
||
| DBInstanceId |
string |
The instance ID. |
cc-asdfwef |
Examples
Success response
JSON format
{
"RequestId": "1234567890",
"Data": {
"TotalCount": 30,
"PageSize": 20,
"CurrPageNumbers": 1,
"TotalPageNumbers": 2,
"HasPrev": false,
"HasNext": true,
"Templates": [
{
"TemplateId": "g-asdfwem",
"TemplateName": "g-asdfwem",
"SecurityIPList": "192.168.1.1,10.0.0.1",
"DbInstances": [
{
"DBInstanceId": "cc-asdfwef"
}
]
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.