1. Packages
  2. Azure Native v1
  3. API Docs
  4. apimanagement
  5. getEmailTemplate
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.apimanagement.getEmailTemplate

Explore with Pulumi AI

These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

Gets the details of the email template specified by its identifier. API Version: 2020-12-01.

Using getEmailTemplate

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 getEmailTemplate(args: GetEmailTemplateArgs, opts?: InvokeOptions): Promise<GetEmailTemplateResult>
function getEmailTemplateOutput(args: GetEmailTemplateOutputArgs, opts?: InvokeOptions): Output<GetEmailTemplateResult>
Copy
def get_email_template(resource_group_name: Optional[str] = None,
                       service_name: Optional[str] = None,
                       template_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetEmailTemplateResult
def get_email_template_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                       service_name: Optional[pulumi.Input[str]] = None,
                       template_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetEmailTemplateResult]
Copy
func LookupEmailTemplate(ctx *Context, args *LookupEmailTemplateArgs, opts ...InvokeOption) (*LookupEmailTemplateResult, error)
func LookupEmailTemplateOutput(ctx *Context, args *LookupEmailTemplateOutputArgs, opts ...InvokeOption) LookupEmailTemplateResultOutput
Copy

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

public static class GetEmailTemplate 
{
    public static Task<GetEmailTemplateResult> InvokeAsync(GetEmailTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetEmailTemplateResult> Invoke(GetEmailTemplateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetEmailTemplateResult> getEmailTemplate(GetEmailTemplateArgs args, InvokeOptions options)
public static Output<GetEmailTemplateResult> getEmailTemplate(GetEmailTemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:apimanagement:getEmailTemplate
  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.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
TemplateName
This property is required.
Changes to this property will trigger replacement.
string
Email Template Name Identifier.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
TemplateName
This property is required.
Changes to this property will trigger replacement.
string
Email Template Name Identifier.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
templateName
This property is required.
Changes to this property will trigger replacement.
String
Email Template Name Identifier.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
templateName
This property is required.
Changes to this property will trigger replacement.
string
Email Template Name Identifier.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the API Management service.
template_name
This property is required.
Changes to this property will trigger replacement.
str
Email Template Name Identifier.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
templateName
This property is required.
Changes to this property will trigger replacement.
String
Email Template Name Identifier.

getEmailTemplate Result

The following output properties are available:

Body string
Email Template Body. This should be a valid XDocument
Id string
Resource ID.
IsDefault bool
Whether the template is the default template provided by Api Management or has been edited.
Name string
Resource name.
Subject string
Subject of the Template.
Type string
Resource type for API Management resource.
Description string
Description of the Email Template.
Parameters List<Pulumi.AzureNative.ApiManagement.Outputs.EmailTemplateParametersContractPropertiesResponse>
Email Template Parameter values.
Title string
Title of the Template.
Body string
Email Template Body. This should be a valid XDocument
Id string
Resource ID.
IsDefault bool
Whether the template is the default template provided by Api Management or has been edited.
Name string
Resource name.
Subject string
Subject of the Template.
Type string
Resource type for API Management resource.
Description string
Description of the Email Template.
Parameters []EmailTemplateParametersContractPropertiesResponse
Email Template Parameter values.
Title string
Title of the Template.
body String
Email Template Body. This should be a valid XDocument
id String
Resource ID.
isDefault Boolean
Whether the template is the default template provided by Api Management or has been edited.
name String
Resource name.
subject String
Subject of the Template.
type String
Resource type for API Management resource.
description String
Description of the Email Template.
parameters List<EmailTemplateParametersContractPropertiesResponse>
Email Template Parameter values.
title String
Title of the Template.
body string
Email Template Body. This should be a valid XDocument
id string
Resource ID.
isDefault boolean
Whether the template is the default template provided by Api Management or has been edited.
name string
Resource name.
subject string
Subject of the Template.
type string
Resource type for API Management resource.
description string
Description of the Email Template.
parameters EmailTemplateParametersContractPropertiesResponse[]
Email Template Parameter values.
title string
Title of the Template.
body str
Email Template Body. This should be a valid XDocument
id str
Resource ID.
is_default bool
Whether the template is the default template provided by Api Management or has been edited.
name str
Resource name.
subject str
Subject of the Template.
type str
Resource type for API Management resource.
description str
Description of the Email Template.
parameters Sequence[EmailTemplateParametersContractPropertiesResponse]
Email Template Parameter values.
title str
Title of the Template.
body String
Email Template Body. This should be a valid XDocument
id String
Resource ID.
isDefault Boolean
Whether the template is the default template provided by Api Management or has been edited.
name String
Resource name.
subject String
Subject of the Template.
type String
Resource type for API Management resource.
description String
Description of the Email Template.
parameters List<Property Map>
Email Template Parameter values.
title String
Title of the Template.

Supporting Types

EmailTemplateParametersContractPropertiesResponse

Description string
Template parameter description.
Name string
Template parameter name.
Title string
Template parameter title.
Description string
Template parameter description.
Name string
Template parameter name.
Title string
Template parameter title.
description String
Template parameter description.
name String
Template parameter name.
title String
Template parameter title.
description string
Template parameter description.
name string
Template parameter name.
title string
Template parameter title.
description str
Template parameter description.
name str
Template parameter name.
title str
Template parameter title.
description String
Template parameter description.
name String
Template parameter name.
title String
Template parameter title.

Package Details

Repository
azure-native-v1 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi