Queries micro-segmentation defense rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListInterceptionRulePage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the container cluster to query. This parameter must be the ID of an ACK cluster that has the container firewall feature enabled. Call DescribeClusterInfoList with Type set to interceptionSwitch, or call ListClusterInterceptionConfig to query available clusters. |
cc41de13ab5474210bc0ce772a009**** |
| Criteria |
string |
No |
The query condition. |
80 |
| CriteriaType |
string |
No |
The type of the search condition. Valid values:
|
DST_PORT |
| CurrentPage |
integer |
Yes |
The page number of the current page when using paging. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page when using paging. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for this request. You can use it to troubleshoot issues. |
ACF97412-FD09-4D1F-994F-34DF12BR**** |
| PageInfo |
object |
The pagination information of the query result. |
|
| CurrentPage |
integer |
The page number of the current page when using paging. |
19 |
| PageSize |
integer |
The maximum number of entries per page when using paging. |
20 |
| TotalCount |
integer |
The total number of records in the query result. |
2 |
| Count |
integer |
The number of entries on the current page when using paging. |
20 |
| InterceptionRuleList |
array<object> |
The list of queried rules. |
|
|
array<object> |
The list of queried rules. |
||
| RuleType |
string |
The rule type. |
customize |
| RuleSwitch |
integer |
The switch status of the scheduling rule. Valid values:
|
1 |
| RuleId |
integer |
The rule ID. |
30**** |
| RuleName |
string |
The rule name. |
test |
| SrcTarget |
object |
The source object. |
|
| AppName |
string |
The application name. |
ack-jenkins-lawr**** |
| RuleType |
string |
The rule type. Valid values:
|
customize |
| TargetId |
integer |
The ID of the network object. |
40**** |
| TargetName |
string |
The name of the network object. |
mhh-te**** |
| Namespace |
string |
The namespace. |
jenkins |
| TargetType |
string |
The type of the affected asset. |
containerId |
| ImageList |
array |
The list of associated images. |
|
|
string |
The list of associated images. |
nginx:1.**** |
|
| TagList |
array |
The list of source tags for the network object. |
|
|
string |
The list of source tags for the network object. |
bpm |
|
| DstTarget |
object |
The destination object. |
|
| AppName |
string |
The application name. |
console |
| RuleType |
string |
The rule type. Valid values:
|
customize |
| TargetId |
integer |
The ID of the network object. |
302001 |
| TargetName |
string |
The name of the network object. |
demo4**** |
| Namespace |
string |
The namespace. |
test |
| TargetType |
string |
The type of the network object. |
IMAGE |
| Ports |
array |
The port information of the destination server. |
|
|
string |
The port information. |
{"tcp":"1234","udp":"5555"} |
|
| ImageList |
array |
The list of affected images. |
|
|
string |
The list of affected images. |
nacos:v2.0**** |
|
| TagList |
array |
The list of destination tags for the network object. |
|
|
string |
The list of destination tags for the network object. |
111 |
|
| OrderIndex |
integer |
The sort order. |
1 |
| InterceptType |
integer |
The interception mode. Valid values:
|
1 |
Examples
Success response
JSON format
{
"RequestId": "ACF97412-FD09-4D1F-994F-34DF12BR****",
"PageInfo": {
"CurrentPage": 19,
"PageSize": 20,
"TotalCount": 2,
"Count": 20
},
"InterceptionRuleList": [
{
"RuleType": "customize",
"RuleSwitch": 1,
"RuleId": 0,
"RuleName": "test",
"SrcTarget": {
"AppName": "ack-jenkins-lawr****",
"RuleType": "customize",
"TargetId": 0,
"TargetName": "mhh-te****",
"Namespace": "jenkins",
"TargetType": "containerId",
"ImageList": [
"nginx:1.****"
],
"TagList": [
"bpm"
]
},
"DstTarget": {
"AppName": "console",
"RuleType": "customize",
"TargetId": 302001,
"TargetName": "demo4****",
"Namespace": "test",
"TargetType": "IMAGE",
"Ports": [
"{\"tcp\":\"1234\",\"udp\":\"5555\"}"
],
"ImageList": [
"nacos:v2.0****"
],
"TagList": [
"111"
]
},
"OrderIndex": 1,
"InterceptType": 1
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.