1. Packages
  2. FusionAuth
  3. API Docs
  4. getForm
FusionAuth v6.0.2 published on Sunday, Feb 9, 2025 by Theo Gravity

fusionauth.getForm

Explore with Pulumi AI

FusionAuth v6.0.2 published on Sunday, Feb 9, 2025 by Theo Gravity

# Form Resource

A FusionAuth Form is a customizable object that contains one-to-many ordered steps. Each step is comprised of one or more Form Fields.

Forms API

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "@pulumi/fusionauth";

const default = fusionauth.getForm({
    name: "Default User Self Service provided by FusionAuth",
});
Copy
import pulumi
import pulumi_fusionauth as fusionauth

default = fusionauth.get_form(name="Default User Self Service provided by FusionAuth")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fusionauth.GetForm(ctx, &fusionauth.GetFormArgs{
			Name: pulumi.StringRef("Default User Self Service provided by FusionAuth"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fusionauth = Pulumi.Fusionauth;

return await Deployment.RunAsync(() => 
{
    var @default = Fusionauth.GetForm.Invoke(new()
    {
        Name = "Default User Self Service provided by FusionAuth",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fusionauth.FusionauthFunctions;
import com.pulumi.fusionauth.inputs.GetFormArgs;
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 default = FusionauthFunctions.getForm(GetFormArgs.builder()
            .name("Default User Self Service provided by FusionAuth")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      function: fusionauth:getForm
      arguments:
        name: Default User Self Service provided by FusionAuth
Copy

Using getForm

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 getForm(args: GetFormArgs, opts?: InvokeOptions): Promise<GetFormResult>
function getFormOutput(args: GetFormOutputArgs, opts?: InvokeOptions): Output<GetFormResult>
Copy
def get_form(data: Optional[Mapping[str, str]] = None,
             form_id: Optional[str] = None,
             name: Optional[str] = None,
             steps: Optional[Sequence[GetFormStep]] = None,
             type: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetFormResult
def get_form_output(data: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
             form_id: Optional[pulumi.Input[str]] = None,
             name: Optional[pulumi.Input[str]] = None,
             steps: Optional[pulumi.Input[Sequence[pulumi.Input[GetFormStepArgs]]]] = None,
             type: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetFormResult]
Copy
func GetForm(ctx *Context, args *GetFormArgs, opts ...InvokeOption) (*GetFormResult, error)
func GetFormOutput(ctx *Context, args *GetFormOutputArgs, opts ...InvokeOption) GetFormResultOutput
Copy

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

public static class GetForm 
{
    public static Task<GetFormResult> InvokeAsync(GetFormArgs args, InvokeOptions? opts = null)
    public static Output<GetFormResult> Invoke(GetFormInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFormResult> getForm(GetFormArgs args, InvokeOptions options)
public static Output<GetFormResult> getForm(GetFormArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: fusionauth:index/getForm:getForm
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Data Dictionary<string, string>
An object that can hold any information about the Form that should be persisted.
FormId string
The unique id of the Form. Either form_id or name must be specified.
Name string
The name of the Form. Either form_id or name must be specified.
Steps List<theogravity.Fusionauth.Inputs.GetFormStep>
An ordered list of objects containing one or more Form Fields.
Type Changes to this property will trigger replacement. string
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
Data map[string]string
An object that can hold any information about the Form that should be persisted.
FormId string
The unique id of the Form. Either form_id or name must be specified.
Name string
The name of the Form. Either form_id or name must be specified.
Steps []GetFormStep
An ordered list of objects containing one or more Form Fields.
Type Changes to this property will trigger replacement. string
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
data Map<String,String>
An object that can hold any information about the Form that should be persisted.
formId String
The unique id of the Form. Either form_id or name must be specified.
name String
The name of the Form. Either form_id or name must be specified.
steps List<GetFormStep>
An ordered list of objects containing one or more Form Fields.
type Changes to this property will trigger replacement. String
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
data {[key: string]: string}
An object that can hold any information about the Form that should be persisted.
formId string
The unique id of the Form. Either form_id or name must be specified.
name string
The name of the Form. Either form_id or name must be specified.
steps GetFormStep[]
An ordered list of objects containing one or more Form Fields.
type Changes to this property will trigger replacement. string
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
data Mapping[str, str]
An object that can hold any information about the Form that should be persisted.
form_id str
The unique id of the Form. Either form_id or name must be specified.
name str
The name of the Form. Either form_id or name must be specified.
steps Sequence[GetFormStep]
An ordered list of objects containing one or more Form Fields.
type Changes to this property will trigger replacement. str
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
data Map<String>
An object that can hold any information about the Form that should be persisted.
formId String
The unique id of the Form. Either form_id or name must be specified.
name String
The name of the Form. Either form_id or name must be specified.
steps List<Property Map>
An ordered list of objects containing one or more Form Fields.
type Changes to this property will trigger replacement. String
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.

getForm Result

The following output properties are available:

FormId string
Id string
The provider-assigned unique ID for this managed resource.
Data Dictionary<string, string>
An object that can hold any information about the Form that should be persisted.
Name string
The unique name of the Form.
Steps List<theogravity.Fusionauth.Outputs.GetFormStep>
An ordered list of objects containing one or more Form Fields.
Type string
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
FormId string
Id string
The provider-assigned unique ID for this managed resource.
Data map[string]string
An object that can hold any information about the Form that should be persisted.
Name string
The unique name of the Form.
Steps []GetFormStep
An ordered list of objects containing one or more Form Fields.
Type string
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
formId String
id String
The provider-assigned unique ID for this managed resource.
data Map<String,String>
An object that can hold any information about the Form that should be persisted.
name String
The unique name of the Form.
steps List<GetFormStep>
An ordered list of objects containing one or more Form Fields.
type String
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
formId string
id string
The provider-assigned unique ID for this managed resource.
data {[key: string]: string}
An object that can hold any information about the Form that should be persisted.
name string
The unique name of the Form.
steps GetFormStep[]
An ordered list of objects containing one or more Form Fields.
type string
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
form_id str
id str
The provider-assigned unique ID for this managed resource.
data Mapping[str, str]
An object that can hold any information about the Form that should be persisted.
name str
The unique name of the Form.
steps Sequence[GetFormStep]
An ordered list of objects containing one or more Form Fields.
type str
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.
formId String
id String
The provider-assigned unique ID for this managed resource.
data Map<String>
An object that can hold any information about the Form that should be persisted.
name String
The unique name of the Form.
steps List<Property Map>
An ordered list of objects containing one or more Form Fields.
type String
The form type. The possible values are:

  • adminRegistration - This form be used to customize the add and edit User Registration form in the FusionAuth UI.
  • adminUser - This form can be used to customize the add and edit User form in the FusionAuth UI.

Supporting Types

GetFormStep

Fields This property is required. List<string>
An ordered list of Form Field Ids assigned to this step.
Fields This property is required. []string
An ordered list of Form Field Ids assigned to this step.
fields This property is required. List<String>
An ordered list of Form Field Ids assigned to this step.
fields This property is required. string[]
An ordered list of Form Field Ids assigned to this step.
fields This property is required. Sequence[str]
An ordered list of Form Field Ids assigned to this step.
fields This property is required. List<String>
An ordered list of Form Field Ids assigned to this step.

Package Details

Repository
fusionauth theogravity/pulumi-fusionauth
License
MIT
Notes
This Pulumi package is based on the fusionauth Terraform Provider.
FusionAuth v6.0.2 published on Sunday, Feb 9, 2025 by Theo Gravity