【发布时间】:2020-07-04 08:57:38
【问题描述】:
我在 AWS 中制作了一些 API 网关。
此时,我想 curl 到每个 API 网关的端点以开始测试。但是,我找不到端点 URL:
例如,我通过 CLI 运行:
aws --profile dev apigateway get-rest-apis --output json
我得到:(没有端点 URL)
"apiKeySource": "HEADER",
"description": "API one",
"endpointConfiguration": {
"types": [
"REGIONAL"
]
},
"createdDate": 1570655986,
"policy": "{\\\"Version\\\":\\\"2012-10-17\\\",\\\"Statement\\\":[{\\\"Effect\\\":\\\"Allow\\\",\\\"Principal\\\":\\\"*\\\",\\\"Action\\\":\\\"execute-api:Invoke\\\",\\\"Resource\\\":\\\"arn:aws:FOOBAR\\/*\\/*\\/*\\\",\\\"Condition\\\":{\\\"IpAddress\\\":{\\\"aws:SourceIp\\\":[\\\"0.0.0.0\\/0\\\""]}}}]}",
"id": "foobar",
"name": "foobar"
}
【问题讨论】:
标签: amazon-web-services aws-api-gateway api-gateway