如何找到api网关阶段的arn? [英] How can I find the arn of an api gateway stage?

查看:101
本文介绍了如何找到api网关阶段的arn?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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 stage https://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?

推荐答案

我终于在 ARN的格式为arn:aws:apigateway:{region}::/restapis/{rest_api_id}/stages/{stage_name}

这篇关于如何找到api网关阶段的arn?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆