取得閘道驗證清單。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
mse:ListGatewayAuth |
get |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PageNumber |
integer |
否 |
頁碼。 |
1 |
| PageSize |
integer |
否 |
每頁顯示的執行個體數量。 |
10 |
| OrderItem |
string |
否 |
尚未開放使用。 |
{} |
| DescSort |
boolean |
否 |
排序。 |
false |
| FilterParams |
object |
否 |
篩選條件,請參考範例。 |
|
| Name |
string |
否 |
參數名稱。 |
rutain-test |
| Type |
string |
否 |
類型。 |
JWT |
| Status |
boolean |
否 |
啟用。 |
true |
| IsWhite |
boolean |
否 |
白名單模式。 |
true |
| GatewayUniqueId |
string |
否 |
閘道唯一識別碼 ID。 |
gw-5017305290e14centbrveca**** |
|
否 |
傳回結果顯示的語言。取值:zh(預設值):中文,en:英文。 |
zh |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
EC1EED4A-B147-597B-B949-FD3131AB4298 |
| HttpStatusCode |
integer |
HTTP 狀態碼。 |
200 |
| Message |
string |
錯誤訊息。 |
請求處理成功。 |
| Code |
integer |
狀態碼。說明:200 表示成功。 |
200 |
| Success |
boolean |
請求結果,取值如下:
|
true |
| Data |
object |
傳回資料。 |
|
| TotalSize |
integer |
總筆數。 |
9 |
| PageNumber |
integer |
頁數。 |
1 |
| PageSize |
integer |
每頁筆數。 |
10 |
| Result |
array<object> |
傳回結果。 |
|
|
array<object> |
傳回結果。 |
||
| Id |
integer |
549 |
|
| Name |
string |
test |
|
| GatewayUniqueId |
string |
gw-e2d226bba4b2445c9e29fa7f8216**** |
|
| GatewayId |
integer |
1 |
|
| Type |
string |
JWT |
|
| Issuer |
string |
https://example.com/auth |
|
| Jwks |
string |
{\"keys\":[{\"kty\":\"oct\",\"k\":\"9V9lpiuAQsME1efQChI0kEQz6fdVlJbDRFFa1lvEB_A\",\"alg\":\"HS256\"}]} |
|
| TokenPosition |
string |
HEADER |
|
| TokenName |
string |
Authorization |
|
| TokenNamePrefix |
string |
Bearer |
|
| GmtCreate |
string |
2021-09-13 19:24:23 |
|
| GmtModified |
string |
2021-09-13 19:24:23 |
|
| TokenPass |
boolean |
true |
|
| IsWhite |
boolean |
true |
|
| Status |
boolean |
true |
|
| RedirectUrl |
string |
http://test.com/oauth2/callback |
|
| ClientId |
string |
app_mnvxaavggw7hcdcnr6usi6*** |
|
| ClientSecret |
string |
CS6EYfx3k9yTRR9EtQ2MXWP97P6UAUwFg4teoWJ19Z**** |
|
| CookieDomain |
string |
test.com |
|
| ScopesList |
string |
["openid"] |
|
| LoginUrl |
string |
https://daxxxxcn.aliyunidaas.com/ |
|
| Sub |
string |
example-app |
|
| ExternalAuthZ |
object |
||
| ServiceId |
integer |
45186 |
|
| PrefixPath |
string |
/auth |
|
| TokenKey |
string |
Authorization |
|
| AllowRequestHeaders |
array |
||
|
string |
x-req |
||
| AllowUpstreamHeaders |
array |
||
|
string |
x-resp |
||
| Timeout |
integer |
30 |
|
| WithRequestBody |
boolean |
true |
|
| WithRematchRoute |
boolean |
true |
|
| BodyMaxBytes |
integer |
1024 |
|
| IsRestrict |
boolean |
true |
|
| Service |
object |
||
| Name |
string |
updatetime |
|
| SourceType |
string |
MSE |
|
| GroupName |
string |
com.mse.console.test.3YXO |
|
| Namespace |
string |
default |
|
| AuthResourceMode |
integer |
0 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "EC1EED4A-B147-597B-B949-FD3131AB4298",
"HttpStatusCode": 200,
"Message": "请求处理成功",
"Code": 200,
"Success": true,
"Data": {
"TotalSize": 9,
"PageNumber": 1,
"PageSize": 10,
"Result": [
{
"Id": 549,
"Name": "test",
"GatewayUniqueId": "gw-e2d226bba4b2445c9e29fa7f8216****",
"GatewayId": 1,
"Type": "JWT",
"Issuer": "https://example.com/auth",
"Jwks": "{\\\"keys\\\":[{\\\"kty\\\":\\\"oct\\\",\\\"k\\\":\\\"9V9lpiuAQsME1efQChI0kEQz6fdVlJbDRFFa1lvEB_A\\\",\\\"alg\\\":\\\"HS256\\\"}]}",
"TokenPosition": "HEADER",
"TokenName": "Authorization",
"TokenNamePrefix": "Bearer",
"GmtCreate": "2021-09-13 19:24:23",
"GmtModified": "2021-09-13 19:24:23",
"TokenPass": true,
"IsWhite": true,
"Status": true,
"RedirectUrl": "http://test.com/oauth2/callback",
"ClientId": "app_mnvxaavggw7hcdcnr6usi6***",
"ClientSecret": "CS6EYfx3k9yTRR9EtQ2MXWP97P6UAUwFg4teoWJ19Z****",
"CookieDomain": "test.com",
"ScopesList": "[\"openid\"]",
"LoginUrl": "\t\nhttps://daxxxxcn.aliyunidaas.com/",
"Sub": "example-app",
"ExternalAuthZ": {
"ServiceId": 45186,
"PrefixPath": "/auth",
"TokenKey": "Authorization",
"AllowRequestHeaders": [
"x-req"
],
"AllowUpstreamHeaders": [
"x-resp"
],
"Timeout": 30,
"WithRequestBody": true,
"WithRematchRoute": true,
"BodyMaxBytes": 1024,
"IsRestrict": true,
"Service": {
"Name": "updatetime",
"SourceType": "MSE",
"GroupName": "com.mse.console.test.3YXO",
"Namespace": "default"
}
},
"AuthResourceMode": 0
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。