问题描述
我正在尝试使用awscli将标签添加到我的api网关阶段 https://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html
I am trying to use awscli to add tags to my api gateway stagehttps://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html
我需要为舞台提供--resource-arn
,但是我无法确定该值.
I am required to supply the --resource-arn
for the stage, however I am unable to ascertain this value.
我尝试同时使用awscli和控制台来确定此值,但是无法找到api网关阶段的arn.我也尝试过基于arn模式/格式进行猜测.
I have tried using both awscli and the console to determine this value, but have been unable to find what the arn for the api gateway stage is. I have also tried guessing based off arn pattern/formats.
如何确定该值,或者该arn的格式是什么?
How can I determine this value, or alternatively what is the format for this arn?
推荐答案
我终于在查看用于通过API网关REST API设置标签的文档.
ARN的格式为arn:aws:apigateway:{region}::/restapis/{rest_api_id}/stages/{stage_name}
这篇关于如何找到api网关阶段的arn?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!