Queries the list of cluster interception rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListClusterInterceptionConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterCNNFStatus |
integer |
No |
The container firewall status of the cluster. Valid values:
|
1 |
| ClusterName |
string |
No |
The cluster name. |
sas |
| PageSize |
integer |
No |
The maximum number of entries per page in a paged query. Default value: 20. |
20 |
| CurrentPage |
integer |
No |
The page number of the page to return. Default value: 1, which indicates the first page. |
1 |
| ClusterId |
string |
No |
The ID of the container cluster. Note
You can call the DescribeContainerInstances operation to obtain this parameter. |
c22143730ab6e40b09ec7c1c51d4d**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. Alibaba Cloud generates a unique identifier for each request. You can use the ID to troubleshoot issues. |
49FDE92F-A0B8-56CC-B7A8-23B17646**** |
| ClusterConfigList |
array<object> |
The list of cluster configuration information. |
|
|
object |
The cluster configuration information. |
||
| ClusterName |
string |
The cluster name. |
container-opa-kill-02 |
| InterceptionSwitch |
integer |
The status of the rule interception switch. Valid values:
|
1 |
| ClusterId |
string |
The cluster ID. |
c9051d30d8a044b4d99e1cb5d25ac**** |
| ClusterCNNFStatus |
integer |
The container firewall status of the cluster. Valid values:
|
0 |
| OpenRuleCount |
integer |
The number of active rules. |
12 |
| TotalRuleCount |
integer |
The total number of rules. |
123 |
| SupportCNNF |
boolean |
Indicates whether the container firewall is supported. |
false |
| ClusterType |
string |
The cluster type. Valid values:
|
ManagedKubernetes |
| PageInfo |
object |
The paging information for a paged query. |
|
| TotalCount |
integer |
The total number of cluster interception rules. |
11 |
| Count |
integer |
The number of cluster interception rules on the current page. |
11 |
| CurrrentPage |
integer |
The page number of the current page in a paged query. |
1 |
| PageSize |
integer |
The number of cluster interception rules per page in a paged query. |
20 |
Examples
Success response
JSON format
{
"RequestId": "49FDE92F-A0B8-56CC-B7A8-23B17646****",
"ClusterConfigList": [
{
"ClusterName": "container-opa-kill-02",
"InterceptionSwitch": 1,
"ClusterId": "c9051d30d8a044b4d99e1cb5d25ac****",
"ClusterCNNFStatus": 0,
"OpenRuleCount": 12,
"TotalRuleCount": 123,
"SupportCNNF": false,
"ClusterType": "ManagedKubernetes"
}
],
"PageInfo": {
"TotalCount": 11,
"Count": 11,
"CurrrentPage": 1,
"PageSize": 20
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.