1. Packages
  2. Supabase Provider
  3. API Docs
  4. getBranch
supabase 1.5.1 published on Wednesday, Jan 15, 2025 by supabase

supabase.getBranch

Explore with Pulumi AI

supabase logo
supabase 1.5.1 published on Wednesday, Jan 15, 2025 by supabase

    Branch data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as supabase from "@pulumi/supabase";
    
    const all = supabase.getBranch({
        parentProjectRef: "mayuaycdtijbctgqbycg",
    });
    
    import pulumi
    import pulumi_supabase as supabase
    
    all = supabase.get_branch(parent_project_ref="mayuaycdtijbctgqbycg")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/supabase/supabase"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := supabase.LookupBranch(ctx, &supabase.LookupBranchArgs{
    			ParentProjectRef: "mayuaycdtijbctgqbycg",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Supabase = Pulumi.Supabase;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Supabase.GetBranch.Invoke(new()
        {
            ParentProjectRef = "mayuaycdtijbctgqbycg",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.supabase.SupabaseFunctions;
    import com.pulumi.supabase.inputs.GetBranchArgs;
    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 all = SupabaseFunctions.getBranch(GetBranchArgs.builder()
                .parentProjectRef("mayuaycdtijbctgqbycg")
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: supabase:getBranch
          arguments:
            parentProjectRef: mayuaycdtijbctgqbycg
    

    Using getBranch

    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 getBranch(args: GetBranchArgs, opts?: InvokeOptions): Promise<GetBranchResult>
    function getBranchOutput(args: GetBranchOutputArgs, opts?: InvokeOptions): Output<GetBranchResult>
    def get_branch(parent_project_ref: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetBranchResult
    def get_branch_output(parent_project_ref: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetBranchResult]
    func LookupBranch(ctx *Context, args *LookupBranchArgs, opts ...InvokeOption) (*LookupBranchResult, error)
    func LookupBranchOutput(ctx *Context, args *LookupBranchOutputArgs, opts ...InvokeOption) LookupBranchResultOutput

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

    public static class GetBranch 
    {
        public static Task<GetBranchResult> InvokeAsync(GetBranchArgs args, InvokeOptions? opts = null)
        public static Output<GetBranchResult> Invoke(GetBranchInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBranchResult> getBranch(GetBranchArgs args, InvokeOptions options)
    public static Output<GetBranchResult> getBranch(GetBranchArgs args, InvokeOptions options)
    
    fn::invoke:
      function: supabase:index/getBranch:getBranch
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ParentProjectRef string
    Parent project ref
    ParentProjectRef string
    Parent project ref
    parentProjectRef String
    Parent project ref
    parentProjectRef string
    Parent project ref
    parent_project_ref str
    Parent project ref
    parentProjectRef String
    Parent project ref

    getBranch Result

    The following output properties are available:

    Branches List<GetBranchBranch>
    Branch databases
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentProjectRef string
    Parent project ref
    Branches []GetBranchBranch
    Branch databases
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentProjectRef string
    Parent project ref
    branches List<GetBranchBranch>
    Branch databases
    id String
    The provider-assigned unique ID for this managed resource.
    parentProjectRef String
    Parent project ref
    branches GetBranchBranch[]
    Branch databases
    id string
    The provider-assigned unique ID for this managed resource.
    parentProjectRef string
    Parent project ref
    branches Sequence[GetBranchBranch]
    Branch databases
    id str
    The provider-assigned unique ID for this managed resource.
    parent_project_ref str
    Parent project ref
    branches List<Property Map>
    Branch databases
    id String
    The provider-assigned unique ID for this managed resource.
    parentProjectRef String
    Parent project ref

    Supporting Types

    GetBranchBranch

    GitBranch string
    Git branch
    Id string
    Branch identifier
    ProjectRef string
    Branch project ref
    GitBranch string
    Git branch
    Id string
    Branch identifier
    ProjectRef string
    Branch project ref
    gitBranch String
    Git branch
    id String
    Branch identifier
    projectRef String
    Branch project ref
    gitBranch string
    Git branch
    id string
    Branch identifier
    projectRef string
    Branch project ref
    git_branch str
    Git branch
    id str
    Branch identifier
    project_ref str
    Branch project ref
    gitBranch String
    Git branch
    id String
    Branch identifier
    projectRef String
    Branch project ref

    Package Details

    Repository
    supabase supabase/terraform-provider-supabase
    License
    Notes
    This Pulumi package is based on the supabase Terraform Provider.
    supabase logo
    supabase 1.5.1 published on Wednesday, Jan 15, 2025 by supabase