This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.resources.getTemplateSpec
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 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>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]func LookupTemplateSpec(ctx *Context, args *LookupTemplateSpecArgs, opts ...InvokeOption) (*LookupTemplateSpecResult, error)
func LookupTemplateSpecOutput(ctx *Context, args *LookupTemplateSpecOutputArgs, opts ...InvokeOption) LookupTemplateSpecResultOutput> 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)
}public static CompletableFuture<GetTemplateSpecResult> getTemplateSpec(GetTemplateSpecArgs args, InvokeOptions options)
public static Output<GetTemplateSpecResult> getTemplateSpec(GetTemplateSpecArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:resources:getTemplateSpec
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- TemplateSpec stringName 
- Name of the Template Spec.
- Expand string
- Allows for expansion of additional Template Spec details in the response. Optional.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- TemplateSpec stringName 
- Name of the Template Spec.
- Expand string
- Allows for expansion of additional Template Spec details in the response. Optional.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- templateSpec StringName 
- Name of the Template Spec.
- expand String
- Allows for expansion of additional Template Spec details in the response. Optional.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- templateSpec stringName 
- Name of the Template Spec.
- expand string
- Allows for expansion of additional Template Spec details in the response. Optional.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- template_spec_ strname 
- Name of the Template Spec.
- expand str
- Allows for expansion of additional Template Spec details in the response. Optional.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- templateSpec StringName 
- 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.Azure Native. Resources. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of this resource.
- Versions
Dictionary<string, Pulumi.Azure Native. Resources. Outputs. Template Spec Version Info Response> 
- 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.
- 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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of this resource.
- Versions
map[string]TemplateSpec Version Info Response 
- 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.
- 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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Type of this resource.
- versions
Map<String,TemplateSpec Version Info Response> 
- 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.
- 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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Type of this resource.
- versions
{[key: string]: TemplateSpec Version Info Response} 
- 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.
- {[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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Type of this resource.
- versions
Mapping[str, TemplateSpec Version Info Response] 
- 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.
- 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.
- Map<String>
- Resource tags.
Supporting Types
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
TemplateSpecVersionInfoResponse    
- Description string
- Template Spec version description.
- TimeCreated string
- The timestamp of when the version was created.
- TimeModified string
- The timestamp of when the version was last modified.
- Description string
- Template Spec version description.
- TimeCreated string
- The timestamp of when the version was created.
- TimeModified string
- The timestamp of when the version was last modified.
- description String
- Template Spec version description.
- timeCreated String
- The timestamp of when the version was created.
- timeModified String
- The timestamp of when the version was last modified.
- description string
- Template Spec version description.
- timeCreated string
- The timestamp of when the version was created.
- timeModified string
- The timestamp of when the version was last modified.
- description str
- Template Spec version description.
- time_created str
- The timestamp of when the version was created.
- time_modified str
- The timestamp of when the version was last modified.
- description String
- Template Spec version description.
- timeCreated String
- The timestamp of when the version was created.
- timeModified String
- The timestamp of when the version was last modified.
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 v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi