Okta v6.1.0 published on Wednesday, Oct 29, 2025 by Pulumi
okta.getEmailCustomizations
Get the email customizations of an email template belonging to a brand in an Okta organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const test = okta.getBrands({});
const forgotPassword = test.then(test => okta.getEmailCustomizations({
brandId: test.brands?.[0]?.id,
templateName: "ForgotPassword",
}));
import pulumi
import pulumi_okta as okta
test = okta.get_brands()
forgot_password = okta.get_email_customizations(brand_id=test.brands[0].id,
template_name="ForgotPassword")
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v6/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := okta.GetBrands(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
_, err = okta.GetEmailCustomizations(ctx, &okta.GetEmailCustomizationsArgs{
BrandId: test.Brands[0].Id,
TemplateName: "ForgotPassword",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var test = Okta.GetBrands.Invoke();
var forgotPassword = Okta.GetEmailCustomizations.Invoke(new()
{
BrandId = test.Apply(getBrandsResult => getBrandsResult.Brands[0]?.Id),
TemplateName = "ForgotPassword",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.OktaFunctions;
import com.pulumi.okta.inputs.GetEmailCustomizationsArgs;
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 test = OktaFunctions.getBrands(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
final var forgotPassword = OktaFunctions.getEmailCustomizations(GetEmailCustomizationsArgs.builder()
.brandId(test.brands()[0].id())
.templateName("ForgotPassword")
.build());
}
}
variables:
test:
fn::invoke:
function: okta:getBrands
arguments: {}
forgotPassword:
fn::invoke:
function: okta:getEmailCustomizations
arguments:
brandId: ${test.brands[0].id}
templateName: ForgotPassword
Using getEmailCustomizations
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 getEmailCustomizations(args: GetEmailCustomizationsArgs, opts?: InvokeOptions): Promise<GetEmailCustomizationsResult>
function getEmailCustomizationsOutput(args: GetEmailCustomizationsOutputArgs, opts?: InvokeOptions): Output<GetEmailCustomizationsResult>def get_email_customizations(brand_id: Optional[str] = None,
template_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEmailCustomizationsResult
def get_email_customizations_output(brand_id: Optional[pulumi.Input[str]] = None,
template_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEmailCustomizationsResult]func GetEmailCustomizations(ctx *Context, args *GetEmailCustomizationsArgs, opts ...InvokeOption) (*GetEmailCustomizationsResult, error)
func GetEmailCustomizationsOutput(ctx *Context, args *GetEmailCustomizationsOutputArgs, opts ...InvokeOption) GetEmailCustomizationsResultOutput> Note: This function is named GetEmailCustomizations in the Go SDK.
public static class GetEmailCustomizations
{
public static Task<GetEmailCustomizationsResult> InvokeAsync(GetEmailCustomizationsArgs args, InvokeOptions? opts = null)
public static Output<GetEmailCustomizationsResult> Invoke(GetEmailCustomizationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEmailCustomizationsResult> getEmailCustomizations(GetEmailCustomizationsArgs args, InvokeOptions options)
public static Output<GetEmailCustomizationsResult> getEmailCustomizations(GetEmailCustomizationsArgs args, InvokeOptions options)
fn::invoke:
function: okta:index/getEmailCustomizations:getEmailCustomizations
arguments:
# arguments dictionaryThe following arguments are supported:
- Brand
Id string - Brand ID
- Template
Name string - Template Name
- Brand
Id string - Brand ID
- Template
Name string - Template Name
- brand
Id String - Brand ID
- template
Name String - Template Name
- brand
Id string - Brand ID
- template
Name string - Template Name
- brand_
id str - Brand ID
- template_
name str - Template Name
- brand
Id String - Brand ID
- template
Name String - Template Name
getEmailCustomizations Result
The following output properties are available:
- Brand
Id string - Brand ID
- Email
Customizations List<GetEmail Customizations Email Customization> - List of
okta.EmailCustomizationbelonging to the named email template of the brand in the organization - Id string
- The provider-assigned unique ID for this managed resource.
- Template
Name string - Template Name
- Brand
Id string - Brand ID
- Email
Customizations []GetEmail Customizations Email Customization - List of
okta.EmailCustomizationbelonging to the named email template of the brand in the organization - Id string
- The provider-assigned unique ID for this managed resource.
- Template
Name string - Template Name
- brand
Id String - Brand ID
- email
Customizations List<GetEmail Customizations Email Customization> - List of
okta.EmailCustomizationbelonging to the named email template of the brand in the organization - id String
- The provider-assigned unique ID for this managed resource.
- template
Name String - Template Name
- brand
Id string - Brand ID
- email
Customizations GetEmail Customizations Email Customization[] - List of
okta.EmailCustomizationbelonging to the named email template of the brand in the organization - id string
- The provider-assigned unique ID for this managed resource.
- template
Name string - Template Name
- brand_
id str - Brand ID
- email_
customizations Sequence[GetEmail Customizations Email Customization] - List of
okta.EmailCustomizationbelonging to the named email template of the brand in the organization - id str
- The provider-assigned unique ID for this managed resource.
- template_
name str - Template Name
- brand
Id String - Brand ID
- email
Customizations List<Property Map> - List of
okta.EmailCustomizationbelonging to the named email template of the brand in the organization - id String
- The provider-assigned unique ID for this managed resource.
- template
Name String - Template Name
Supporting Types
GetEmailCustomizationsEmailCustomization
- Body string
- The body of the customization
- Id string
- The ID of the customization
- Is
Default bool - Whether the customization is the default
- Language string
- The language supported by the customization
- Links string
- Link relations for this object - JSON HAL - Discoverable resources related to the email template
- Subject string
- The subject of the customization
- Body string
- The body of the customization
- Id string
- The ID of the customization
- Is
Default bool - Whether the customization is the default
- Language string
- The language supported by the customization
- Links string
- Link relations for this object - JSON HAL - Discoverable resources related to the email template
- Subject string
- The subject of the customization
- body String
- The body of the customization
- id String
- The ID of the customization
- is
Default Boolean - Whether the customization is the default
- language String
- The language supported by the customization
- links String
- Link relations for this object - JSON HAL - Discoverable resources related to the email template
- subject String
- The subject of the customization
- body string
- The body of the customization
- id string
- The ID of the customization
- is
Default boolean - Whether the customization is the default
- language string
- The language supported by the customization
- links string
- Link relations for this object - JSON HAL - Discoverable resources related to the email template
- subject string
- The subject of the customization
- body str
- The body of the customization
- id str
- The ID of the customization
- is_
default bool - Whether the customization is the default
- language str
- The language supported by the customization
- links str
- Link relations for this object - JSON HAL - Discoverable resources related to the email template
- subject str
- The subject of the customization
- body String
- The body of the customization
- id String
- The ID of the customization
- is
Default Boolean - Whether the customization is the default
- language String
- The language supported by the customization
- links String
- Link relations for this object - JSON HAL - Discoverable resources related to the email template
- subject String
- The subject of the customization
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
