-
In the AWS Console I can navigate to an Amazon API Gateway and then select its Stages. When view Stages I am presented with an Invoke URL. e.g. Is there a way to programmatically get this URL using If there isn't a way to do this then such might be a nice addition to |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Have you found a solution? |
Beta Was this translation helpful? Give feedback.
-
Hi @mfulton26 , If you didn't know, all the AWS SDKs are code-generated from the API model of the various AWS Services. In this case, the APIGATEWAY API Model does not expose a method that returns the invoke URL so the SDK will not have any way of supporting this. In other words, this is a feature that only exists on console as a courtesy. You can construct the API Gateway endpoint yourself if you know the id and the stage name: Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @mfulton26 ,
If you didn't know, all the AWS SDKs are code-generated from the API model of the various AWS Services. In this case, the APIGATEWAY API Model does not expose a method that returns the invoke URL so the SDK will not have any way of supporting this. In other words, this is a feature that only exists on console as a courtesy.
You can construct the API Gateway endpoint yourself if you know the id and the stage name:
https://{{restApiId}}.execute-api.{{region}}.amazonaws.com/{{stageName}}
Thanks,
Ran~