Template Spec Versions - Get
Gets a Template Spec version from a specific Template Spec.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}?api-version=2021-05-01
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. Regex pattern: |
subscription
|
path | True |
string |
Subscription Id which forms part of the URI for every service call. |
template
|
path | True |
string |
Name of the Template Spec. Regex pattern: |
template
|
path | True |
string |
The version of the Template Spec. Regex pattern: |
api-version
|
query | True |
string |
Client Api version. |
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns information about the Template Spec version. |
|
Other Status Codes |
Error response describing why the operation failed. |
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Sample request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0?api-version=2021-05-01
Sample response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0",
"type": "Microsoft.Resources/templateSpecs/versions",
"name": "v1.0",
"location": "eastus",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2020-02-01T01:01:01.1075056Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2020-02-02T02:03:01.1974346Z"
},
"properties": {
"description": "This is version v1.0 of our template content",
"mainTemplate": {
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": []
}
}
}
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
Error Response |
Linked |
Represents a Template Spec artifact containing an embedded Azure Resource Manager template for use as a linked template. |
system |
Metadata pertaining to creation and last modification of the resource. |
Template |
Template Specs error response. |
Template |
Template Spec Version object. |
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
Error Response
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
Represents a Template Spec artifact containing an embedded Azure Resource Manager template for use as a linked template.
Name | Type | Description |
---|---|---|
path |
string |
A filesystem safe relative path of the artifact. |
template |
object |
The Azure Resource Manager template. |
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
Template Specs error response.
Name | Type | Description |
---|---|---|
error |
Error Response |
Template Spec Version object.
Name | Type | Description |
---|---|---|
id |
string |
String Id used to locate any resource on Azure. |
location |
string |
The location of the Template Spec Version. It must match the location of the parent Template Spec. |
name |
string |
Name of this resource. |
properties.description |
string |
Template Spec version description. |
properties.linkedTemplates |
An array of linked template artifacts. |
|
properties.mainTemplate |
object |
The main Azure Resource Manager template content. |
properties.metadata |
object |
The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. |
properties.uiFormDefinition |
object |
The Azure Resource Manager template UI definition content. |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Resource tags. |
type |
string |
Type of this resource. |