1. Packages
  2. Azure Native
  3. API Docs
  4. apimanagement
  5. getEmailTemplate
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.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.apimanagement.getEmailTemplate

Explore with Pulumi AI

azure-native logo
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.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Gets the details of the email template specified by its identifier. Azure REST API version: 2022-08-01.

    Other available API versions: 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview.

    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>
    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]
    func LookupEmailTemplate(ctx *Context, args *LookupEmailTemplateArgs, opts ...InvokeOption) (*LookupEmailTemplateResult, error)
    func LookupEmailTemplateOutput(ctx *Context, args *LookupEmailTemplateOutputArgs, opts ...InvokeOption) LookupEmailTemplateResultOutput

    > 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)
    }
    public static CompletableFuture<GetEmailTemplateResult> getEmailTemplate(GetEmailTemplateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:apimanagement:getEmailTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceName string
    The name of the API Management service.
    TemplateName string
    Email Template Name Identifier.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceName string
    The name of the API Management service.
    TemplateName string
    Email Template Name Identifier.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceName String
    The name of the API Management service.
    templateName String
    Email Template Name Identifier.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    serviceName string
    The name of the API Management service.
    templateName string
    Email Template Name Identifier.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    service_name str
    The name of the API Management service.
    template_name str
    Email Template Name Identifier.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceName String
    The name of the API Management service.
    templateName 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
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    IsDefault bool
    Whether the template is the default template provided by API Management or has been edited.
    Name string
    The name of the resource
    Subject string
    Subject of the Template.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    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
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    IsDefault bool
    Whether the template is the default template provided by API Management or has been edited.
    Name string
    The name of the resource
    Subject string
    Subject of the Template.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    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
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    isDefault Boolean
    Whether the template is the default template provided by API Management or has been edited.
    name String
    The name of the resource
    subject String
    Subject of the Template.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    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
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    isDefault boolean
    Whether the template is the default template provided by API Management or has been edited.
    name string
    The name of the resource
    subject string
    Subject of the Template.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    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
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    is_default bool
    Whether the template is the default template provided by API Management or has been edited.
    name str
    The name of the resource
    subject str
    Subject of the Template.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    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
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    isDefault Boolean
    Whether the template is the default template provided by API Management or has been edited.
    name String
    The name of the resource
    subject String
    Subject of the Template.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    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 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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.47.1 published on Monday, Jun 24, 2024 by Pulumi