简体   繁体   English

REST API:使用REST API列出所有Azure ARM模板

[英]REST API : List all Azure ARM Templates using REST API

In Azure ARM Portal, we have predefined and working Azure ARM Templates. 在Azure ARM门户中,我们具有预定义的并且可以工作的Azure ARM模板。 But we are unable to find the REST API to retrieve all the Azure ARM Templates. 但是我们无法找到REST API来检索所有Azure ARM模板。 Let me know if we have REST API for the same. 让我知道我们是否有相同的REST API。 Also I want to know these templates are stored under any storage account ? 我也想知道这些模板存储在任何存储帐户下吗?

But we are unable to find the REST API to retrieve all the Azure ARM Templates 但是我们无法找到REST API来检索所有Azure ARM模板

We can retrieve all the Azure ARM Templates in a resource group. 我们可以检索资源组中的所有Azure ARM模板。 Following is the way to do it. 以下是做到这一点的方法。

Method and URL. 方法和URL。

POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resourcegroup-name}/exportTemplate?api-version=2017-05-10

Sample request headers: 样本请求标头:

Host: management.azure.com
Authorization: Bearer your-token
Content-Type: application/json

Sample request body: 样品请求正文:

{
  "resources": [
    "*"
    ],
  "options": "IncludeParameterDefaultValue, IncludeComments"
}

Also I want to know these templates are stored under any storage account ? 我也想知道这些模板存储在任何存储帐户下吗?

It is not announced whether these templates will stored under any storage account or not. 尚未宣布这些模板是否将存储在任何存储帐户下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM