admin管理员组文章数量:1404458
I need to run a query to establish which VPC_LINK (id or name) that each of our API Resources are associated with .. We have hundreds of API's defined, each with multiple resources, and I need to programatically retrieve information about which VPC_LINK has been associated with each integration/resource
I used the following to get the resources of each API
$ aws apigateway get-resources --rest-api-id 123abcxyz
and then the following to give details of the integration for that resource
$ aws apigateway get-integration --rest-api-id 123abcxyz --resource-id abcz1 --http-method POST
but this only gives me information that the connectionType
is VPC_LINK
....but it doesnt tell me what actual VPC_LINK (id or name) it is using
i.e.
{
"type": "HTTP_PROXY",
"httpMethod": "POST",
"uri": ":8443/api/v1/stuff/{version}/morestuff",
"connectionType": "VPC_LINK",
"connectionId": "xcvbn",
"passthroughBehavior": "WHEN_NO_MATCH",
"timeoutInMillis": 29000,
"cacheNamespace": "fsdfsd",
"cacheKeyParameters": [],
"integrationResponses": {
"200": {
"statusCode": "200"
}
}
}
Does anyone know how i can retrieve this data without clicking through the console for eternity :-)
thanks
本文标签: amazon web servicesAWS CLIHow to get the VPCLINK associated to an API ResourceStack Overflow
版权声明:本文标题:amazon web services - AWS CLI : How to get the VPC_LINK associated to an API Resource - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744817815a2626805.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论