1. Packages
  2. Auth0 Provider
  3. API Docs
  4. getActionModuleVersions
Viewing docs for Auth0 v3.38.0
published on Friday, Feb 20, 2026 by Pulumi
auth0 logo
Viewing docs for Auth0 v3.38.0
published on Friday, Feb 20, 2026 by Pulumi

    Data source to retrieve all published versions of a specific Auth0 action module.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    
    // Example: Retrieve all published versions of an action module
    // Create and publish an action module
    const myModule = new auth0.ActionModule("my_module", {
        name: "My Shared Module",
        publish: true,
        code: `module.exports = {
      greet: function(name) {
        return \\"Hello, \\" + name + \\"!\\";
      }
    };
    `,
    });
    // Retrieve all published versions of the module
    const myModuleVersions = auth0.getActionModuleVersionsOutput({
        moduleId: myModule.id,
    });
    export const totalVersions = myModuleVersions.apply(myModuleVersions => myModuleVersions.versions).length;
    export const latestVersionNumber = myModuleVersions.apply(myModuleVersions => myModuleVersions.versions?.[0]?.versionNumber);
    export const versionIds = myModuleVersions.apply(myModuleVersions => .map(v => (v.id)));
    
    import pulumi
    import pulumi_auth0 as auth0
    
    # Example: Retrieve all published versions of an action module
    # Create and publish an action module
    my_module = auth0.ActionModule("my_module",
        name="My Shared Module",
        publish=True,
        code="""module.exports = {
      greet: function(name) {
        return \"Hello, \" + name + \"!\";
      }
    };
    """)
    # Retrieve all published versions of the module
    my_module_versions = auth0.get_action_module_versions_output(module_id=my_module.id)
    pulumi.export("totalVersions", len(my_module_versions.versions))
    pulumi.export("latestVersionNumber", my_module_versions.versions[0].version_number)
    pulumi.export("versionIds", my_module_versions.apply(lambda my_module_versions: [v.id for v in my_module_versions.versions]))
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Auth0 = Pulumi.Auth0;
    
    return await Deployment.RunAsync(() => 
    {
        // Example: Retrieve all published versions of an action module
        // Create and publish an action module
        var myModule = new Auth0.ActionModule("my_module", new()
        {
            Name = "My Shared Module",
            Publish = true,
            Code = @"module.exports = {
      greet: function(name) {
        return \""Hello, \"" + name + \""!\"";
      }
    };
    ",
        });
    
        // Retrieve all published versions of the module
        var myModuleVersions = Auth0.GetActionModuleVersions.Invoke(new()
        {
            ModuleId = myModule.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["totalVersions"] = myModuleVersions.Apply(getActionModuleVersionsResult => getActionModuleVersionsResult.Versions).Length,
            ["latestVersionNumber"] = myModuleVersions.Apply(getActionModuleVersionsResult => getActionModuleVersionsResult.Versions[0]?.VersionNumber),
            ["versionIds"] = .Select(v => 
            {
                return v.Id;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    

    Using getActionModuleVersions

    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 getActionModuleVersions(args: GetActionModuleVersionsArgs, opts?: InvokeOptions): Promise<GetActionModuleVersionsResult>
    function getActionModuleVersionsOutput(args: GetActionModuleVersionsOutputArgs, opts?: InvokeOptions): Output<GetActionModuleVersionsResult>
    def get_action_module_versions(module_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetActionModuleVersionsResult
    def get_action_module_versions_output(module_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetActionModuleVersionsResult]
    func GetActionModuleVersions(ctx *Context, args *GetActionModuleVersionsArgs, opts ...InvokeOption) (*GetActionModuleVersionsResult, error)
    func GetActionModuleVersionsOutput(ctx *Context, args *GetActionModuleVersionsOutputArgs, opts ...InvokeOption) GetActionModuleVersionsResultOutput

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

    public static class GetActionModuleVersions 
    {
        public static Task<GetActionModuleVersionsResult> InvokeAsync(GetActionModuleVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetActionModuleVersionsResult> Invoke(GetActionModuleVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetActionModuleVersionsResult> getActionModuleVersions(GetActionModuleVersionsArgs args, InvokeOptions options)
    public static Output<GetActionModuleVersionsResult> getActionModuleVersions(GetActionModuleVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: auth0:index/getActionModuleVersions:getActionModuleVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ModuleId string
    The ID of the action module.
    ModuleId string
    The ID of the action module.
    moduleId String
    The ID of the action module.
    moduleId string
    The ID of the action module.
    module_id str
    The ID of the action module.
    moduleId String
    The ID of the action module.

    getActionModuleVersions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ModuleId string
    The ID of the action module.
    Versions List<GetActionModuleVersionsVersion>
    List of all published versions of the action module.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModuleId string
    The ID of the action module.
    Versions []GetActionModuleVersionsVersion
    List of all published versions of the action module.
    id String
    The provider-assigned unique ID for this managed resource.
    moduleId String
    The ID of the action module.
    versions List<GetActionModuleVersionsVersion>
    List of all published versions of the action module.
    id string
    The provider-assigned unique ID for this managed resource.
    moduleId string
    The ID of the action module.
    versions GetActionModuleVersionsVersion[]
    List of all published versions of the action module.
    id str
    The provider-assigned unique ID for this managed resource.
    module_id str
    The ID of the action module.
    versions Sequence[GetActionModuleVersionsVersion]
    List of all published versions of the action module.
    id String
    The provider-assigned unique ID for this managed resource.
    moduleId String
    The ID of the action module.
    versions List<Property Map>
    List of all published versions of the action module.

    Supporting Types

    GetActionModuleVersionsVersion

    Code string
    The exact source code that was published with this version.
    CreatedAt string
    The timestamp when this version was created.
    Dependencies List<GetActionModuleVersionsVersionDependency>
    Dependencies locked to this version.
    Id string
    The unique identifier of the version.
    ModuleId string
    The ID of the parent module.
    Secrets List<GetActionModuleVersionsVersionSecret>
    Secrets available to this version (name and updated_at only, values never returned).
    VersionNumber int
    The sequential version number.
    Code string
    The exact source code that was published with this version.
    CreatedAt string
    The timestamp when this version was created.
    Dependencies []GetActionModuleVersionsVersionDependency
    Dependencies locked to this version.
    Id string
    The unique identifier of the version.
    ModuleId string
    The ID of the parent module.
    Secrets []GetActionModuleVersionsVersionSecret
    Secrets available to this version (name and updated_at only, values never returned).
    VersionNumber int
    The sequential version number.
    code String
    The exact source code that was published with this version.
    createdAt String
    The timestamp when this version was created.
    dependencies List<GetActionModuleVersionsVersionDependency>
    Dependencies locked to this version.
    id String
    The unique identifier of the version.
    moduleId String
    The ID of the parent module.
    secrets List<GetActionModuleVersionsVersionSecret>
    Secrets available to this version (name and updated_at only, values never returned).
    versionNumber Integer
    The sequential version number.
    code string
    The exact source code that was published with this version.
    createdAt string
    The timestamp when this version was created.
    dependencies GetActionModuleVersionsVersionDependency[]
    Dependencies locked to this version.
    id string
    The unique identifier of the version.
    moduleId string
    The ID of the parent module.
    secrets GetActionModuleVersionsVersionSecret[]
    Secrets available to this version (name and updated_at only, values never returned).
    versionNumber number
    The sequential version number.
    code str
    The exact source code that was published with this version.
    created_at str
    The timestamp when this version was created.
    dependencies Sequence[GetActionModuleVersionsVersionDependency]
    Dependencies locked to this version.
    id str
    The unique identifier of the version.
    module_id str
    The ID of the parent module.
    secrets Sequence[GetActionModuleVersionsVersionSecret]
    Secrets available to this version (name and updated_at only, values never returned).
    version_number int
    The sequential version number.
    code String
    The exact source code that was published with this version.
    createdAt String
    The timestamp when this version was created.
    dependencies List<Property Map>
    Dependencies locked to this version.
    id String
    The unique identifier of the version.
    moduleId String
    The ID of the parent module.
    secrets List<Property Map>
    Secrets available to this version (name and updated_at only, values never returned).
    versionNumber Number
    The sequential version number.

    GetActionModuleVersionsVersionDependency

    Name string
    Dependency name.
    Version string
    Dependency version.
    Name string
    Dependency name.
    Version string
    Dependency version.
    name String
    Dependency name.
    version String
    Dependency version.
    name string
    Dependency name.
    version string
    Dependency version.
    name str
    Dependency name.
    version str
    Dependency version.
    name String
    Dependency name.
    version String
    Dependency version.

    GetActionModuleVersionsVersionSecret

    Name string
    Secret name.
    UpdatedAt string
    The time when this secret was last updated.
    Name string
    Secret name.
    UpdatedAt string
    The time when this secret was last updated.
    name String
    Secret name.
    updatedAt String
    The time when this secret was last updated.
    name string
    Secret name.
    updatedAt string
    The time when this secret was last updated.
    name str
    Secret name.
    updated_at str
    The time when this secret was last updated.
    name String
    Secret name.
    updatedAt String
    The time when this secret was last updated.

    Package Details

    Repository
    Auth0 pulumi/pulumi-auth0
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the auth0 Terraform Provider.
    auth0 logo
    Viewing docs for Auth0 v3.38.0
    published on Friday, Feb 20, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.