1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. apimanagement
  6. EmailTemplate

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a API Management Email Template.

    Create EmailTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EmailTemplate(name: string, args: EmailTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def EmailTemplate(resource_name: str,
                      args: EmailTemplateArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmailTemplate(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      api_management_name: Optional[str] = None,
                      body: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      subject: Optional[str] = None,
                      template_name: Optional[str] = None)
    func NewEmailTemplate(ctx *Context, name string, args EmailTemplateArgs, opts ...ResourceOption) (*EmailTemplate, error)
    public EmailTemplate(string name, EmailTemplateArgs args, CustomResourceOptions? opts = null)
    public EmailTemplate(String name, EmailTemplateArgs args)
    public EmailTemplate(String name, EmailTemplateArgs args, CustomResourceOptions options)
    
    type: azure:apimanagement:EmailTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EmailTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EmailTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EmailTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var emailTemplateResource = new Azure.ApiManagement.EmailTemplate("emailTemplateResource", new()
    {
        ApiManagementName = "string",
        Body = "string",
        ResourceGroupName = "string",
        Subject = "string",
        TemplateName = "string",
    });
    
    example, err := apimanagement.NewEmailTemplate(ctx, "emailTemplateResource", &apimanagement.EmailTemplateArgs{
    	ApiManagementName: pulumi.String("string"),
    	Body:              pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	Subject:           pulumi.String("string"),
    	TemplateName:      pulumi.String("string"),
    })
    
    var emailTemplateResource = new EmailTemplate("emailTemplateResource", EmailTemplateArgs.builder()
        .apiManagementName("string")
        .body("string")
        .resourceGroupName("string")
        .subject("string")
        .templateName("string")
        .build());
    
    email_template_resource = azure.apimanagement.EmailTemplate("emailTemplateResource",
        api_management_name="string",
        body="string",
        resource_group_name="string",
        subject="string",
        template_name="string")
    
    const emailTemplateResource = new azure.apimanagement.EmailTemplate("emailTemplateResource", {
        apiManagementName: "string",
        body: "string",
        resourceGroupName: "string",
        subject: "string",
        templateName: "string",
    });
    
    type: azure:apimanagement:EmailTemplate
    properties:
        apiManagementName: string
        body: string
        resourceGroupName: string
        subject: string
        templateName: string
    

    EmailTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EmailTemplate resource accepts the following input properties:

    ApiManagementName string
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Body string
    The body of the Email. Its format has to be a well-formed HTML document.
    ResourceGroupName string
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Subject string
    The subject of the Email.
    TemplateName string
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    ApiManagementName string
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Body string
    The body of the Email. Its format has to be a well-formed HTML document.
    ResourceGroupName string
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Subject string
    The subject of the Email.
    TemplateName string
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    apiManagementName String
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body String
    The body of the Email. Its format has to be a well-formed HTML document.
    resourceGroupName String
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject String
    The subject of the Email.
    templateName String
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    apiManagementName string
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body string
    The body of the Email. Its format has to be a well-formed HTML document.
    resourceGroupName string
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject string
    The subject of the Email.
    templateName string
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    api_management_name str
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body str
    The body of the Email. Its format has to be a well-formed HTML document.
    resource_group_name str
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject str
    The subject of the Email.
    template_name str
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    apiManagementName String
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body String
    The body of the Email. Its format has to be a well-formed HTML document.
    resourceGroupName String
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject String
    The subject of the Email.
    templateName String
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EmailTemplate resource produces the following output properties:

    Description string
    The description of the Email Template.
    Id string
    The provider-assigned unique ID for this managed resource.
    Title string
    The title of the Email Template.
    Description string
    The description of the Email Template.
    Id string
    The provider-assigned unique ID for this managed resource.
    Title string
    The title of the Email Template.
    description String
    The description of the Email Template.
    id String
    The provider-assigned unique ID for this managed resource.
    title String
    The title of the Email Template.
    description string
    The description of the Email Template.
    id string
    The provider-assigned unique ID for this managed resource.
    title string
    The title of the Email Template.
    description str
    The description of the Email Template.
    id str
    The provider-assigned unique ID for this managed resource.
    title str
    The title of the Email Template.
    description String
    The description of the Email Template.
    id String
    The provider-assigned unique ID for this managed resource.
    title String
    The title of the Email Template.

    Look up Existing EmailTemplate Resource

    Get an existing EmailTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EmailTemplateState, opts?: CustomResourceOptions): EmailTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_management_name: Optional[str] = None,
            body: Optional[str] = None,
            description: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            subject: Optional[str] = None,
            template_name: Optional[str] = None,
            title: Optional[str] = None) -> EmailTemplate
    func GetEmailTemplate(ctx *Context, name string, id IDInput, state *EmailTemplateState, opts ...ResourceOption) (*EmailTemplate, error)
    public static EmailTemplate Get(string name, Input<string> id, EmailTemplateState? state, CustomResourceOptions? opts = null)
    public static EmailTemplate get(String name, Output<String> id, EmailTemplateState state, CustomResourceOptions options)
    resources:  _:    type: azure:apimanagement:EmailTemplate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApiManagementName string
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Body string
    The body of the Email. Its format has to be a well-formed HTML document.
    Description string
    The description of the Email Template.
    ResourceGroupName string
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Subject string
    The subject of the Email.
    TemplateName string
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    Title string
    The title of the Email Template.
    ApiManagementName string
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Body string
    The body of the Email. Its format has to be a well-formed HTML document.
    Description string
    The description of the Email Template.
    ResourceGroupName string
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    Subject string
    The subject of the Email.
    TemplateName string
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    Title string
    The title of the Email Template.
    apiManagementName String
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body String
    The body of the Email. Its format has to be a well-formed HTML document.
    description String
    The description of the Email Template.
    resourceGroupName String
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject String
    The subject of the Email.
    templateName String
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    title String
    The title of the Email Template.
    apiManagementName string
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body string
    The body of the Email. Its format has to be a well-formed HTML document.
    description string
    The description of the Email Template.
    resourceGroupName string
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject string
    The subject of the Email.
    templateName string
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    title string
    The title of the Email Template.
    api_management_name str
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body str
    The body of the Email. Its format has to be a well-formed HTML document.
    description str
    The description of the Email Template.
    resource_group_name str
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject str
    The subject of the Email.
    template_name str
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    title str
    The title of the Email Template.
    apiManagementName String
    The name of the API Management Service in which the Email Template should exist. Changing this forces a new API Management Email Template to be created.
    body String
    The body of the Email. Its format has to be a well-formed HTML document.
    description String
    The description of the Email Template.
    resourceGroupName String
    The name of the Resource Group where the API Management Email Template should exist. Changing this forces a new API Management Email Template to be created.
    subject String
    The subject of the Email.
    templateName String
    The name of the Email Template. Possible values are AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage. Changing this forces a new API Management Email Template to be created.
    title String
    The title of the Email Template.

    Import

    API Management Email Templates can be imported using the resource id, e.g.

     $ pulumi import azure:apimanagement/emailTemplate:EmailTemplate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/templates/template1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial