查詢微隔離防禦規則。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-sas:ListInterceptionRulePage |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
指定要查詢的容器叢集的 ID。 |
cc41de13ab5474210bc0ce772a009**** |
| Criteria |
string |
否 |
查詢條件。 |
80 |
| CriteriaType |
string |
否 |
搜尋條件類型。取值:
|
DST_PORT |
| CurrentPage |
integer |
是 |
分頁查詢時,顯示的當前頁的頁碼。 |
1 |
| PageSize |
integer |
是 |
分頁查詢時,當前頁顯示資料條數。 |
50 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
本次調用請求的 ID,是由阿里雲為該請求產生的唯一識別碼,可用於排查和定位問題。 |
ACF97412-FD09-4D1F-994F-34DF12BR**** |
| PageInfo |
object |
查詢結果頁面的資訊。 |
|
| CurrentPage |
integer |
分頁查詢時,當前頁的頁碼。 |
19 |
| PageSize |
integer |
分頁查詢時,顯示的每頁資料的最大條數。 |
20 |
| TotalCount |
integer |
查詢結果的總記錄數。 |
2 |
| Count |
integer |
分頁查詢時,當前頁顯示的資料條數。 |
20 |
| InterceptionRuleList |
array<object> |
查詢到的規則資訊。 |
|
|
array<object> |
查詢到的規則資訊。 |
||
| RuleType |
string |
規則類型。 |
customize |
| RuleSwitch |
integer |
調度規則的開關狀態。取值:
|
1 |
| RuleId |
integer |
規則 ID。 |
30**** |
| RuleName |
string |
規則名稱。 |
test |
| SrcTarget |
object |
來源物件。 |
|
| AppName |
string |
應用程式名稱。 |
ack-jenkins-lawr**** |
| RuleType |
string |
規則類型。取值:
|
customize |
| TargetId |
integer |
網路對象的 ID。 |
40**** |
| TargetName |
string |
網路對象的名稱。 |
mhh-te**** |
| Namespace |
string |
命名空間。 |
jenkins |
| TargetType |
string |
受影響的資產類型。 |
containerId |
| ImageList |
array |
對應鏡像列表。 |
|
|
string |
對應鏡像列表。 |
nginx:1.**** |
|
| TagList |
array |
網路對象源標籤列表。 |
|
|
string |
網路對象源標籤列表。 |
bpm |
|
| DstTarget |
object |
目標對象。 |
|
| AppName |
string |
應用程式名稱。 |
console |
| RuleType |
string |
規則類型。取值:
|
customize |
| TargetId |
integer |
網路對象的 ID。 |
302001 |
| TargetName |
string |
網路對象的名稱。 |
demo4**** |
| Namespace |
string |
命名空間。 |
test |
| TargetType |
string |
網路對象的類型。 |
IMAGE |
| Ports |
array |
目標伺服器的連接埠資訊。 |
|
|
string |
連接埠資訊。 |
{"tcp":"1234","udp":"5555"} |
|
| ImageList |
array |
受影響的鏡像列表。 |
|
|
string |
受影響的鏡像列表。 |
nacos:v2.0**** |
|
| TagList |
array |
網路對象目標標籤列表。 |
|
|
string |
網路對象目標標籤列表。 |
111 |
|
| OrderIndex |
integer |
排序。 |
1 |
| InterceptType |
integer |
攔截模式。取值:
|
1 |
樣本
正常返回樣本
JSON格式
{
"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
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | 服務故障,請稍後重試! |
| 403 | NoPermission | caller has no permission | 當前操作未被授權,請聯絡主帳號在RAM控制台進行授權後再執行操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。