ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getAppidCloudDirectoryTemplate
Explore with Pulumi AI
Retrieve information about an IBM Cloud AppID Management Services Cloud Directory Email Template. For more information, see customizing emails
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const tpl = ibm.getAppidCloudDirectoryTemplate({
tenantId: _var.tenant_id,
templateName: "USER_VERIFICATION",
});
import pulumi
import pulumi_ibm as ibm
tpl = ibm.get_appid_cloud_directory_template(tenant_id=var["tenant_id"],
template_name="USER_VERIFICATION")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.LookupAppidCloudDirectoryTemplate(ctx, &ibm.LookupAppidCloudDirectoryTemplateArgs{
TenantId: _var.Tenant_id,
TemplateName: "USER_VERIFICATION",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var tpl = Ibm.GetAppidCloudDirectoryTemplate.Invoke(new()
{
TenantId = @var.Tenant_id,
TemplateName = "USER_VERIFICATION",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetAppidCloudDirectoryTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var tpl = IbmFunctions.getAppidCloudDirectoryTemplate(GetAppidCloudDirectoryTemplateArgs.builder()
.tenantId(var_.tenant_id())
.templateName("USER_VERIFICATION")
.build());
}
}
variables:
tpl:
fn::invoke:
function: ibm:getAppidCloudDirectoryTemplate
arguments:
tenantId: ${var.tenant_id}
templateName: USER_VERIFICATION
Using getAppidCloudDirectoryTemplate
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 getAppidCloudDirectoryTemplate(args: GetAppidCloudDirectoryTemplateArgs, opts?: InvokeOptions): Promise<GetAppidCloudDirectoryTemplateResult>
function getAppidCloudDirectoryTemplateOutput(args: GetAppidCloudDirectoryTemplateOutputArgs, opts?: InvokeOptions): Output<GetAppidCloudDirectoryTemplateResult>
def get_appid_cloud_directory_template(id: Optional[str] = None,
language: Optional[str] = None,
template_name: Optional[str] = None,
tenant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppidCloudDirectoryTemplateResult
def get_appid_cloud_directory_template_output(id: Optional[pulumi.Input[str]] = None,
language: Optional[pulumi.Input[str]] = None,
template_name: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppidCloudDirectoryTemplateResult]
func LookupAppidCloudDirectoryTemplate(ctx *Context, args *LookupAppidCloudDirectoryTemplateArgs, opts ...InvokeOption) (*LookupAppidCloudDirectoryTemplateResult, error)
func LookupAppidCloudDirectoryTemplateOutput(ctx *Context, args *LookupAppidCloudDirectoryTemplateOutputArgs, opts ...InvokeOption) LookupAppidCloudDirectoryTemplateResultOutput
> Note: This function is named LookupAppidCloudDirectoryTemplate
in the Go SDK.
public static class GetAppidCloudDirectoryTemplate
{
public static Task<GetAppidCloudDirectoryTemplateResult> InvokeAsync(GetAppidCloudDirectoryTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetAppidCloudDirectoryTemplateResult> Invoke(GetAppidCloudDirectoryTemplateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppidCloudDirectoryTemplateResult> getAppidCloudDirectoryTemplate(GetAppidCloudDirectoryTemplateArgs args, InvokeOptions options)
public static Output<GetAppidCloudDirectoryTemplateResult> getAppidCloudDirectoryTemplate(GetAppidCloudDirectoryTemplateArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getAppidCloudDirectoryTemplate:getAppidCloudDirectoryTemplate
arguments:
# arguments dictionary
The following arguments are supported:
- Template
Name string - The type of email template. This can be
USER_VERIFICATION
,WELCOME
,PASSWORD_CHANGED
,RESET_PASSWORD
orMFA_VERIFICATION
- Tenant
Id string - The AppID instance GUID
- Id string
- Language string
- Preferred language for resource. Format as described at RFC5646. Default:
en
- Template
Name string - The type of email template. This can be
USER_VERIFICATION
,WELCOME
,PASSWORD_CHANGED
,RESET_PASSWORD
orMFA_VERIFICATION
- Tenant
Id string - The AppID instance GUID
- Id string
- Language string
- Preferred language for resource. Format as described at RFC5646. Default:
en
- template
Name String - The type of email template. This can be
USER_VERIFICATION
,WELCOME
,PASSWORD_CHANGED
,RESET_PASSWORD
orMFA_VERIFICATION
- tenant
Id String - The AppID instance GUID
- id String
- language String
- Preferred language for resource. Format as described at RFC5646. Default:
en
- template
Name string - The type of email template. This can be
USER_VERIFICATION
,WELCOME
,PASSWORD_CHANGED
,RESET_PASSWORD
orMFA_VERIFICATION
- tenant
Id string - The AppID instance GUID
- id string
- language string
- Preferred language for resource. Format as described at RFC5646. Default:
en
- template_
name str - The type of email template. This can be
USER_VERIFICATION
,WELCOME
,PASSWORD_CHANGED
,RESET_PASSWORD
orMFA_VERIFICATION
- tenant_
id str - The AppID instance GUID
- id str
- language str
- Preferred language for resource. Format as described at RFC5646. Default:
en
- template
Name String - The type of email template. This can be
USER_VERIFICATION
,WELCOME
,PASSWORD_CHANGED
,RESET_PASSWORD
orMFA_VERIFICATION
- tenant
Id String - The AppID instance GUID
- id String
- language String
- Preferred language for resource. Format as described at RFC5646. Default:
en
getAppidCloudDirectoryTemplate Result
The following output properties are available:
- Base64Encoded
Html stringBody - (String) The HTML body of the email encoded in Base64
- Html
Body string - (String) The HTML body of the email
- Id string
- Plain
Text stringBody - (String) The text body of the email
- Subject string
- (String) The subject of the email
- Template
Name string - Tenant
Id string - Language string
- Base64Encoded
Html stringBody - (String) The HTML body of the email encoded in Base64
- Html
Body string - (String) The HTML body of the email
- Id string
- Plain
Text stringBody - (String) The text body of the email
- Subject string
- (String) The subject of the email
- Template
Name string - Tenant
Id string - Language string
- base64Encoded
Html StringBody - (String) The HTML body of the email encoded in Base64
- html
Body String - (String) The HTML body of the email
- id String
- plain
Text StringBody - (String) The text body of the email
- subject String
- (String) The subject of the email
- template
Name String - tenant
Id String - language String
- base64Encoded
Html stringBody - (String) The HTML body of the email encoded in Base64
- html
Body string - (String) The HTML body of the email
- id string
- plain
Text stringBody - (String) The text body of the email
- subject string
- (String) The subject of the email
- template
Name string - tenant
Id string - language string
- base64_
encoded_ strhtml_ body - (String) The HTML body of the email encoded in Base64
- html_
body str - (String) The HTML body of the email
- id str
- plain_
text_ strbody - (String) The text body of the email
- subject str
- (String) The subject of the email
- template_
name str - tenant_
id str - language str
- base64Encoded
Html StringBody - (String) The HTML body of the email encoded in Base64
- html
Body String - (String) The HTML body of the email
- id String
- plain
Text StringBody - (String) The text body of the email
- subject String
- (String) The subject of the email
- template
Name String - tenant
Id String - language String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.