該命令aws apigateway get-rest-apis僅回傳REST API's. 正如您在以下螢屏截圖中看到的,我有 3 個 API。但該命令僅回傳一個 API(REST 協議 API)。
如何獲得所有 3 個 API?

aws apigateway get-rest-apis
{
"items": [
{
"id": "xxxxxxxx",
"name": "zabbixPy-API",
"description": "Created by AWS Lambda",
"createdDate": "2021-10-31T10:16:23 00:00",
"apiKeySource": "HEADER",
"endpointConfiguration": {
"types": [
"REGIONAL"
]
},
"disableExecuteApiEndpoint": false
}
]
}
uj5u.com熱心網友回復:
對于 HTTP api,您必須使用apigatewayv2:
aws apigatewayv2 get-apis
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/346258.html
