1. Packages
  2. Azure Native
  3. API Docs
  4. resources
  5. getTemplateSpecVersion
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.resources.getTemplateSpecVersion

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Gets a Template Spec version from a specific Template Spec.

Uses Azure REST API version 2022-02-01.

Other available API versions: 2021-03-01-preview, 2021-05-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native resources [ApiVersion]. See the version guide for details.

Using getTemplateSpecVersion

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getTemplateSpecVersion(args: GetTemplateSpecVersionArgs, opts?: InvokeOptions): Promise<GetTemplateSpecVersionResult>
function getTemplateSpecVersionOutput(args: GetTemplateSpecVersionOutputArgs, opts?: InvokeOptions): Output<GetTemplateSpecVersionResult>
Copy
def get_template_spec_version(resource_group_name: Optional[str] = None,
                              template_spec_name: Optional[str] = None,
                              template_spec_version: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetTemplateSpecVersionResult
def get_template_spec_version_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                              template_spec_name: Optional[pulumi.Input[str]] = None,
                              template_spec_version: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetTemplateSpecVersionResult]
Copy
func LookupTemplateSpecVersion(ctx *Context, args *LookupTemplateSpecVersionArgs, opts ...InvokeOption) (*LookupTemplateSpecVersionResult, error)
func LookupTemplateSpecVersionOutput(ctx *Context, args *LookupTemplateSpecVersionOutputArgs, opts ...InvokeOption) LookupTemplateSpecVersionResultOutput
Copy

> Note: This function is named LookupTemplateSpecVersion in the Go SDK.

public static class GetTemplateSpecVersion 
{
    public static Task<GetTemplateSpecVersionResult> InvokeAsync(GetTemplateSpecVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetTemplateSpecVersionResult> Invoke(GetTemplateSpecVersionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTemplateSpecVersionResult> getTemplateSpecVersion(GetTemplateSpecVersionArgs args, InvokeOptions options)
public static Output<GetTemplateSpecVersionResult> getTemplateSpecVersion(GetTemplateSpecVersionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:resources:getTemplateSpecVersion
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
TemplateSpecName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Template Spec.
TemplateSpecVersion
This property is required.
Changes to this property will trigger replacement.
string
The version of the Template Spec.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
TemplateSpecName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Template Spec.
TemplateSpecVersion
This property is required.
Changes to this property will trigger replacement.
string
The version of the Template Spec.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
templateSpecName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Template Spec.
templateSpecVersion
This property is required.
Changes to this property will trigger replacement.
String
The version of the Template Spec.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
templateSpecName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Template Spec.
templateSpecVersion
This property is required.
Changes to this property will trigger replacement.
string
The version of the Template Spec.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
template_spec_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Template Spec.
template_spec_version
This property is required.
Changes to this property will trigger replacement.
str
The version of the Template Spec.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
templateSpecName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Template Spec.
templateSpecVersion
This property is required.
Changes to this property will trigger replacement.
String
The version of the Template Spec.

getTemplateSpecVersion Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
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.
SystemData Pulumi.AzureNative.Resources.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
Type of this resource.
Description string
Template Spec version description.
LinkedTemplates List<Pulumi.AzureNative.Resources.Outputs.LinkedTemplateArtifactResponse>
An array of linked template artifacts.
MainTemplate object
The main Azure Resource Manager template content.
Metadata object
The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
Tags Dictionary<string, string>
Resource tags.
UiFormDefinition object
The Azure Resource Manager template UI definition content.
AzureApiVersion string
The Azure API version of the resource.
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.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
Type of this resource.
Description string
Template Spec version description.
LinkedTemplates []LinkedTemplateArtifactResponse
An array of linked template artifacts.
MainTemplate interface{}
The main Azure Resource Manager template content.
Metadata interface{}
The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
Tags map[string]string
Resource tags.
UiFormDefinition interface{}
The Azure Resource Manager template UI definition content.
azureApiVersion String
The Azure API version of the resource.
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.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
Type of this resource.
description String
Template Spec version description.
linkedTemplates List<LinkedTemplateArtifactResponse>
An array of linked template artifacts.
mainTemplate Object
The main Azure Resource Manager template content.
metadata Object
The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags Map<String,String>
Resource tags.
uiFormDefinition Object
The Azure Resource Manager template UI definition content.
azureApiVersion string
The Azure API version of the resource.
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.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
Type of this resource.
description string
Template Spec version description.
linkedTemplates LinkedTemplateArtifactResponse[]
An array of linked template artifacts.
mainTemplate any
The main Azure Resource Manager template content.
metadata any
The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags {[key: string]: string}
Resource tags.
uiFormDefinition any
The Azure Resource Manager template UI definition content.
azure_api_version str
The Azure API version of the resource.
id str
String Id used to locate any resource on Azure.
location str
The location of the Template Spec Version. It must match the location of the parent Template Spec.
name str
Name of this resource.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
Type of this resource.
description str
Template Spec version description.
linked_templates Sequence[LinkedTemplateArtifactResponse]
An array of linked template artifacts.
main_template Any
The main Azure Resource Manager template content.
metadata Any
The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags Mapping[str, str]
Resource tags.
ui_form_definition Any
The Azure Resource Manager template UI definition content.
azureApiVersion String
The Azure API version of the resource.
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.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
Type of this resource.
description String
Template Spec version description.
linkedTemplates List<Property Map>
An array of linked template artifacts.
mainTemplate Any
The main Azure Resource Manager template content.
metadata Any
The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags Map<String>
Resource tags.
uiFormDefinition Any
The Azure Resource Manager template UI definition content.

Supporting Types

LinkedTemplateArtifactResponse

Path This property is required. string
A filesystem safe relative path of the artifact.
Template This property is required. object
The Azure Resource Manager template.
Path This property is required. string
A filesystem safe relative path of the artifact.
Template This property is required. interface{}
The Azure Resource Manager template.
path This property is required. String
A filesystem safe relative path of the artifact.
template This property is required. Object
The Azure Resource Manager template.
path This property is required. string
A filesystem safe relative path of the artifact.
template This property is required. any
The Azure Resource Manager template.
path This property is required. str
A filesystem safe relative path of the artifact.
template This property is required. Any
The Azure Resource Manager template.
path This property is required. String
A filesystem safe relative path of the artifact.
template This property is required. Any
The Azure Resource Manager template.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
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 string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
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 string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
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 String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
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 string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
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 String
The type of identity that last modified the resource.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi