查詢微隔離攔截記錄。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-sas:ListInterceptionHistory |
get |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| HistoryName |
string |
否 |
告警名稱。 |
异常访问。 |
| StartTime |
integer |
否 |
查詢開始時間戳。 |
1651290987000 |
| EndTime |
integer |
否 |
查詢結束時間戳。 |
1635575219000 |
| PageSize |
integer |
否 |
分頁查詢時,顯示的每頁資料的最大條數。 |
20 |
| CurrentPage |
integer |
否 |
分頁查詢時,當前頁的頁碼。 |
1 |
| InterceptionTypes |
array |
否 |
異常事件的類型。 |
|
|
integer |
否 |
異常事件的類型。取值:
|
1 |
|
| ClusterId |
string |
否 |
需要查詢的容器叢集 ID。 |
c7c190a82d9a048be9038d352840f**** |
| Lang |
string |
否 |
設定請求和接收訊息的語言類型。預設值 zh。取值:
|
zh |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
回應體。 |
||
| RequestId |
string |
本次呼叫請求的 ID,是由阿里雲為該請求生成的唯一識別碼,可用於排查和定位問題。 |
D81DD78E-E006-5C65-A171-C8CB0904**** |
| PageInfo |
object |
分頁資訊。 |
|
| CurrentPage |
integer |
分頁查詢時,當前頁的頁碼。 |
1 |
| PageSize |
integer |
分頁查詢時,顯示的每頁資料的最大條數。 |
20 |
| TotalCount |
integer |
查詢到的資料總條數。 |
45 |
| Count |
integer |
分頁查詢時,當前頁顯示的資料條數。 |
10 |
| InterceptionHistoryList |
array<object> |
微隔離攔截記錄。 |
|
|
object |
微隔離攔截記錄。 |
||
| SrcNamespace |
string |
來源執行個體的命名空間。 |
service**** |
| SrcRuleTargetName |
string |
規則的來源目標物件名。 |
sas-web**** |
| RiskLevel |
integer |
風險等級。取值:
|
1 |
| Status |
integer |
處理狀態。取值:
|
1 |
| DstPort |
integer |
規則設定的目的連接埠號。 |
33 |
| FirstTime |
integer |
當日首次時間戳。 |
1639718858000 |
| SrcAppName |
string |
規則設定的來源應用名稱。 |
sas-web**** |
| RuleId |
integer |
對應的規則 ID。 |
136 |
| RuleName |
string |
規則名稱。 |
all**** |
| InterceptionName |
integer |
告警名稱。 |
异常访问。 |
| DstNamespace |
string |
規則設定的目的命名空間。 |
service**** |
| LastTime |
integer |
當日最新時間戳。 |
1639731078000 |
| DstAppName |
string |
規則設定的目的應用名稱。 |
sas-web**** |
| DstRuleTargetName |
string |
規則的目的目標物件名。 |
sas-web**** |
| ClusterName |
string |
叢集名稱。 |
opa-terway-nonet**** |
| TryCount |
integer |
嘗試次數。 |
34 |
| InterceptionType |
integer |
處理類型。取值:
|
0 |
| RealInterceptionType |
integer |
實際命中的處理類型。取值:
|
0 |
| Id |
integer |
告警的 ID。 |
1126 |
| ClusterId |
string |
容器叢集的 ID。 |
c556c8133b5ad4378b7fc533ddbda**** |
| RealSrcAppName |
string |
來源應用名稱。 |
sas-service**** |
| RealSrcPodName |
string |
來源容器組。 |
sas-service-757b9d**** |
| RealDstAppName |
string |
目的應用名稱。 |
sas-service**** |
| RealDstPodName |
string |
目的容器組。 |
sas-web-84cc7dd9**** |
| RealDstNamespace |
string |
目的命名空間。 |
service**** |
| RealDstImageName |
string |
目的映像名稱。 |
sas-servi**** |
| RealSrcNamespace |
string |
來源命名空間。 |
service**** |
| RealSrcImageName |
string |
來源映像名稱。 |
sas-servi**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "D81DD78E-E006-5C65-A171-C8CB0904****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 45,
"Count": 10
},
"InterceptionHistoryList": [
{
"SrcNamespace": "service****",
"SrcRuleTargetName": "sas-web****",
"RiskLevel": 1,
"Status": 1,
"DstPort": 33,
"FirstTime": 1639718858000,
"SrcAppName": "sas-web****",
"RuleId": 136,
"RuleName": "all****",
"InterceptionName": 0,
"DstNamespace": "service****",
"LastTime": 1639731078000,
"DstAppName": "sas-web****",
"DstRuleTargetName": "sas-web****",
"ClusterName": "opa-terway-nonet****",
"TryCount": 34,
"InterceptionType": 0,
"RealInterceptionType": 0,
"Id": 1126,
"ClusterId": "c556c8133b5ad4378b7fc533ddbda****",
"RealSrcAppName": "sas-service****",
"RealSrcPodName": "sas-service-757b9d****",
"RealDstAppName": "sas-service****",
"RealDstPodName": "sas-web-84cc7dd9****",
"RealDstNamespace": "service****",
"RealDstImageName": "sas-servi****",
"RealSrcNamespace": "service****",
"RealSrcImageName": "sas-servi****\n"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。