1. Packages
  2. Azure Native v2
  3. API Docs
  4. resources
  5. getTemplateSpec
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.resources.getTemplateSpec

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets a Template Spec with a given name. Azure REST API version: 2022-02-01.

Using getTemplateSpec

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 getTemplateSpec(args: GetTemplateSpecArgs, opts?: InvokeOptions): Promise<GetTemplateSpecResult>
function getTemplateSpecOutput(args: GetTemplateSpecOutputArgs, opts?: InvokeOptions): Output<GetTemplateSpecResult>
Copy
def get_template_spec(expand: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      template_spec_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetTemplateSpecResult
def get_template_spec_output(expand: Optional[pulumi.Input[str]] = None,
                      resource_group_name: Optional[pulumi.Input[str]] = None,
                      template_spec_name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetTemplateSpecResult]
Copy
func LookupTemplateSpec(ctx *Context, args *LookupTemplateSpecArgs, opts ...InvokeOption) (*LookupTemplateSpecResult, error)
func LookupTemplateSpecOutput(ctx *Context, args *LookupTemplateSpecOutputArgs, opts ...InvokeOption) LookupTemplateSpecResultOutput
Copy

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

public static class GetTemplateSpec 
{
    public static Task<GetTemplateSpecResult> InvokeAsync(GetTemplateSpecArgs args, InvokeOptions? opts = null)
    public static Output<GetTemplateSpecResult> Invoke(GetTemplateSpecInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTemplateSpecResult> getTemplateSpec(GetTemplateSpecArgs args, InvokeOptions options)
public static Output<GetTemplateSpecResult> getTemplateSpec(GetTemplateSpecArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:resources:getTemplateSpec
  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.
Expand string
Allows for expansion of additional Template Spec details in the response. Optional.
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.
Expand string
Allows for expansion of additional Template Spec details in the response. Optional.
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.
expand String
Allows for expansion of additional Template Spec details in the response. Optional.
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.
expand string
Allows for expansion of additional Template Spec details in the response. Optional.
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.
expand str
Allows for expansion of additional Template Spec details in the response. Optional.
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.
expand String
Allows for expansion of additional Template Spec details in the response. Optional.

getTemplateSpec Result

The following output properties are available:

Id string
String Id used to locate any resource on Azure.
Location string
The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
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.
Versions Dictionary<string, Pulumi.AzureNative.Resources.Outputs.TemplateSpecVersionInfoResponse>
High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
Description string
Template Spec description.
DisplayName string
Template Spec display name.
Metadata object
The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
Tags Dictionary<string, string>
Resource tags.
Id string
String Id used to locate any resource on Azure.
Location string
The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
Name string
Name of this resource.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
Type of this resource.
Versions map[string]TemplateSpecVersionInfoResponse
High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
Description string
Template Spec description.
DisplayName string
Template Spec display name.
Metadata interface{}
The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
Tags map[string]string
Resource tags.
id String
String Id used to locate any resource on Azure.
location String
The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
name String
Name of this resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
Type of this resource.
versions Map<String,TemplateSpecVersionInfoResponse>
High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
description String
Template Spec description.
displayName String
Template Spec display name.
metadata Object
The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags Map<String,String>
Resource tags.
id string
String Id used to locate any resource on Azure.
location string
The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
name string
Name of this resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
Type of this resource.
versions {[key: string]: TemplateSpecVersionInfoResponse}
High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
description string
Template Spec description.
displayName string
Template Spec display name.
metadata any
The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags {[key: string]: string}
Resource tags.
id str
String Id used to locate any resource on Azure.
location str
The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
name str
Name of this resource.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
Type of this resource.
versions Mapping[str, TemplateSpecVersionInfoResponse]
High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
description str
Template Spec description.
display_name str
Template Spec display name.
metadata Any
The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags Mapping[str, str]
Resource tags.
id String
String Id used to locate any resource on Azure.
location String
The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
name String
Name of this resource.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
Type of this resource.
versions Map<Property Map>
High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
description String
Template Spec description.
displayName String
Template Spec display name.
metadata Any
The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
tags Map<String>
Resource tags.

Supporting Types

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.

TemplateSpecVersionInfoResponse

Description This property is required. string
Template Spec version description.
TimeCreated This property is required. string
The timestamp of when the version was created.
TimeModified This property is required. string
The timestamp of when the version was last modified.
Description This property is required. string
Template Spec version description.
TimeCreated This property is required. string
The timestamp of when the version was created.
TimeModified This property is required. string
The timestamp of when the version was last modified.
description This property is required. String
Template Spec version description.
timeCreated This property is required. String
The timestamp of when the version was created.
timeModified This property is required. String
The timestamp of when the version was last modified.
description This property is required. string
Template Spec version description.
timeCreated This property is required. string
The timestamp of when the version was created.
timeModified This property is required. string
The timestamp of when the version was last modified.
description This property is required. str
Template Spec version description.
time_created This property is required. str
The timestamp of when the version was created.
time_modified This property is required. str
The timestamp of when the version was last modified.
description This property is required. String
Template Spec version description.
timeCreated This property is required. String
The timestamp of when the version was created.
timeModified This property is required. String
The timestamp of when the version was last modified.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi