1. Packages
  2. Formal Provider
  3. API Docs
  4. getSpace
Formal v1.1.0 published on Sunday, Mar 1, 2026 by Formal
formal logo
Formal v1.1.0 published on Sunday, Mar 1, 2026 by Formal

    Data source for looking up a Space by ID or by name. Use either id or name, but not both.

    Using getSpace

    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 getSpace(args: GetSpaceArgs, opts?: InvokeOptions): Promise<GetSpaceResult>
    function getSpaceOutput(args: GetSpaceOutputArgs, opts?: InvokeOptions): Output<GetSpaceResult>
    def get_space(id: Optional[str] = None,
                  name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetSpaceResult
    def get_space_output(id: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetSpaceResult]
    func LookupSpace(ctx *Context, args *LookupSpaceArgs, opts ...InvokeOption) (*LookupSpaceResult, error)
    func LookupSpaceOutput(ctx *Context, args *LookupSpaceOutputArgs, opts ...InvokeOption) LookupSpaceResultOutput

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

    public static class GetSpace 
    {
        public static Task<GetSpaceResult> InvokeAsync(GetSpaceArgs args, InvokeOptions? opts = null)
        public static Output<GetSpaceResult> Invoke(GetSpaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSpaceResult> getSpace(GetSpaceArgs args, InvokeOptions options)
    public static Output<GetSpaceResult> getSpace(GetSpaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: formal:index/getSpace:getSpace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The Formal ID for this Space.
    Name string
    The name of the Space to look up. Use this to fetch a space by name.
    Id string
    The Formal ID for this Space.
    Name string
    The name of the Space to look up. Use this to fetch a space by name.
    id String
    The Formal ID for this Space.
    name String
    The name of the Space to look up. Use this to fetch a space by name.
    id string
    The Formal ID for this Space.
    name string
    The name of the Space to look up. Use this to fetch a space by name.
    id str
    The Formal ID for this Space.
    name str
    The name of the Space to look up. Use this to fetch a space by name.
    id String
    The Formal ID for this Space.
    name String
    The name of the Space to look up. Use this to fetch a space by name.

    getSpace Result

    The following output properties are available:

    CreatedAt int
    Creation time of the Space.
    Description string
    Description of the Space.
    TerminationProtection bool
    If set to true, this Space cannot be deleted.
    Id string
    The Formal ID for this Space.
    Name string
    The name of the Space to look up. Use this to fetch a space by name.
    CreatedAt int
    Creation time of the Space.
    Description string
    Description of the Space.
    TerminationProtection bool
    If set to true, this Space cannot be deleted.
    Id string
    The Formal ID for this Space.
    Name string
    The name of the Space to look up. Use this to fetch a space by name.
    createdAt Integer
    Creation time of the Space.
    description String
    Description of the Space.
    terminationProtection Boolean
    If set to true, this Space cannot be deleted.
    id String
    The Formal ID for this Space.
    name String
    The name of the Space to look up. Use this to fetch a space by name.
    createdAt number
    Creation time of the Space.
    description string
    Description of the Space.
    terminationProtection boolean
    If set to true, this Space cannot be deleted.
    id string
    The Formal ID for this Space.
    name string
    The name of the Space to look up. Use this to fetch a space by name.
    created_at int
    Creation time of the Space.
    description str
    Description of the Space.
    termination_protection bool
    If set to true, this Space cannot be deleted.
    id str
    The Formal ID for this Space.
    name str
    The name of the Space to look up. Use this to fetch a space by name.
    createdAt Number
    Creation time of the Space.
    description String
    Description of the Space.
    terminationProtection Boolean
    If set to true, this Space cannot be deleted.
    id String
    The Formal ID for this Space.
    name String
    The name of the Space to look up. Use this to fetch a space by name.

    Package Details

    Repository
    formal formalco/pulumi-formal
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the formal Terraform Provider.
    formal logo
    Formal v1.1.0 published on Sunday, Mar 1, 2026 by Formal
      Meet Neo: Your AI Platform Teammate