查詢 API 安全範例資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-waf:DescribeApisecExamples |
list |
*All Resource
|
|
無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InstanceId |
string |
是 |
WAF 執行個體 ID。 說明
您可以透過呼叫 DescribeInstance 介面查看目前 WAF 執行個體 ID。 |
waf_elasticity-cn-0xldbqtm005 |
| RegionId |
string |
否 |
WAF 執行個體所屬地域。取值:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
否 |
阿里雲資源群組 ID。 |
rg-acfm***q |
| ApiId |
string |
是 |
API 的 ID。 |
867ade***24ee6e205b8da82b8f84 |
| ExampleType |
string |
否 |
範例的類型。 枚舉值:
|
sensitive |
| RequestSensitiveTypeList |
array |
否 |
請求敏感資訊類型清單。 |
|
|
string |
否 |
請求敏感資訊類型。 |
1001 |
|
| ResponseSensitiveTypeList |
array |
否 |
回應敏感資訊類型清單。 |
|
|
string |
否 |
回應敏感資訊類型。 |
1001 |
|
| AbnormalTag |
string |
否 |
風險類型。 |
LackOfSpeedLimit |
| NextToken |
string |
否 |
下一頁查詢憑證(Token)。 |
AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS |
| MaxResults |
integer |
否 |
分頁查詢時每頁個數。取值範圍為:1-5,預設值為 5。 |
5 |
| ClusterId |
string |
否 |
混合雲叢集 ID。 說明
僅針對混合雲情境,您可以呼叫 DescribeHybridCloudClusters 取得混合雲叢集資訊。 |
176 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
請求結果。 |
||
| RequestId |
string |
本次請求的 ID。 |
D7861F61-5B61-46CE-A47C-6B19160D5EB0 |
| Examples |
array<object> |
範例清單。 |
|
|
array<object> |
範例資訊。 |
||
| Protocol |
string |
通訊協定的類型。取值:
|
http |
| ApiUrl |
string |
完整請求路徑。 |
http://www.test.com/api/v1/hello.php?token=TkJGQw |
| PocPayload |
string |
驗證請求。 |
curl -X GET -H 'Accept: */*' -H 'Connection: keep-alive' -H 'User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64)' -H 'Host: www.test.com' -H 'Accept-encoding: gzip, deflate' -H 'Eagleeye-rpcid: 0.1' 'http://www.test.com/api/v1/hello.php?token=TkJGQw' |
| RequestSensitiveData |
array<object> |
請求敏感資料資訊清單。 |
|
|
object |
請求敏感資料資訊。 |
||
| SensitiveCode |
string |
敏感資訊類型。 |
1000 |
| SensitiveDataList |
array |
敏感資訊資料列表。 |
|
|
string |
敏感資訊資料。 |
90.88.49.19 |
|
| ResponseSensitiveData |
array<object> |
回應敏感資料資訊清單。 |
|
|
object |
回應敏感資料資訊。 |
||
| SensitiveCode |
string |
敏感資訊類型。 |
1000 |
| SensitiveDataList |
array |
敏感資訊資料列表。 |
|
|
string |
敏感資訊資料。 |
90.88.49.19 |
|
| Request |
string |
範例請求內容,以一系列參數建構的 JSON 格式轉化成字串。包含的欄位如下:
說明
當 body 內容超過 16K,僅返回部分內容。 |
{ "method": "GET", "host": "www.test.com", "header": { "Accept": "*/*", "Connection": "keep-alive" }, "server_port": "80", "body": "-", "url": "/api/v1/hello.php?token=TkJGQw", "server_protocol": "HTTP/1.1" } |
| Response |
string |
範例回應內容,以一系列參數建構的 JSON 格式轉化成字串。包含的欄位如下:
說明
當 body 內容超過 16K,僅返回部分內容。 |
{ "header": { "Connection": "keep-alive", "Content-Encoding": "gzip", "Content-Type": "text/html; charset=UTF-8" }, "body": "xxxx", "status": 200 } |
| NextToken |
string |
下一頁查詢憑證(Token)。 |
AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS |
| MaxResults |
integer |
分頁查詢時每頁個數。取值範圍為:1-5,預設值為 5。 |
5 |
| TotalCount |
integer |
結果的總數。 |
5 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "D7861F61-5B61-46CE-A47C-6B19160D5EB0",
"Examples": [
{
"Protocol": "http",
"ApiUrl": "http://www.test.com/api/v1/hello.php?token=TkJGQw",
"PocPayload": "curl -X GET -H 'Accept: */*' -H 'Connection: keep-alive' -H 'User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64)' -H 'Host: www.test.com' -H 'Accept-encoding: gzip, deflate' -H 'Eagleeye-rpcid: 0.1' 'http://www.test.com/api/v1/hello.php?token=TkJGQw'",
"RequestSensitiveData": [
{
"SensitiveCode": "1000",
"SensitiveDataList": [
"90.88.49.19"
]
}
],
"ResponseSensitiveData": [
{
"SensitiveCode": "1000",
"SensitiveDataList": [
"90.88.49.19"
]
}
],
"Request": "{\n \"method\": \"GET\",\n \"host\": \"www.test.com\",\n \"header\": {\n \"Accept\": \"*/*\",\n \"Connection\": \"keep-alive\"\n },\n \"server_port\": \"80\",\n \"body\": \"-\",\n \"url\": \"/api/v1/hello.php?token=TkJGQw\",\n \"server_protocol\": \"HTTP/1.1\"\n}",
"Response": "{\n \"header\": {\n \"Connection\": \"keep-alive\",\n \"Content-Encoding\": \"gzip\",\n \"Content-Type\": \"text/html; charset=UTF-8\"\n },\n \"body\": \"xxxx\",\n \"status\": 200\n}"
}
],
"NextToken": "AAAAAGBgV9tolsLfijC4wam2htS*****D/46H3X2wIS",
"MaxResults": 5,
"TotalCount": 5
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。