Microsoft Azure如何从REST ARM API获取位置列表? [英] Microsoft Azure how to get a list of locations from the REST ARM API?
问题描述
Azure ARM REST API是否提供一种获取可用区域列表的方法?
Does Azure ARM REST API provide a way to get a list of available regions?
我可以看到经典的REST API提供了如下所示的列表:
I can see that the classic REST API provides such a list as described here:
https://msdn.microsoft.com/en-us/library/azure/gg441293.aspx
但是我看不到它与ARM等效.
But I can't see its equivalent for ARM.
推荐答案
要列出使用ARM API的Azure订阅的位置,请参见以下链接:
To list the locations for an Azure Subscription using ARM API, please see this link: https://msdn.microsoft.com/en-us/library/azure/dn790540.aspx.
但是请记住,并非在所有位置都可以使用所有资源.如果要查找特定资源类型可用的位置,则需要获取有关该资源类型的提供程序的信息.为此,请参见以下链接: https://msdn.microsoft.com/en-us/library/azure/dn790524.aspx
However please keep in mind that not all resources are available in all locations. If you want to find out the locations where a particular resource type is available, you would need to fetch information about the provider of that resource type. For this, please see this link: https://msdn.microsoft.com/en-us/library/azure/dn790524.aspx
这篇关于Microsoft Azure如何从REST ARM API获取位置列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!