supabase 1.5.1 published on Wednesday, Jan 15, 2025 by supabase
supabase.getBranch
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- ParentProject stringRef 
- Parent project ref
- ParentProject stringRef 
- Parent project ref
- parentProject StringRef 
- Parent project ref
- parentProject stringRef 
- Parent project ref
- parent_project_ strref 
- Parent project ref
- parentProject StringRef 
- Parent project ref
getBranch Result
The following output properties are available:
- Branches
List<GetBranch Branch> 
- Branch databases
- Id string
- The provider-assigned unique ID for this managed resource.
- ParentProject stringRef 
- Parent project ref
- Branches
[]GetBranch Branch 
- Branch databases
- Id string
- The provider-assigned unique ID for this managed resource.
- ParentProject stringRef 
- Parent project ref
- branches
List<GetBranch Branch> 
- Branch databases
- id String
- The provider-assigned unique ID for this managed resource.
- parentProject StringRef 
- Parent project ref
- branches
GetBranch Branch[] 
- Branch databases
- id string
- The provider-assigned unique ID for this managed resource.
- parentProject stringRef 
- Parent project ref
- branches
Sequence[GetBranch Branch] 
- Branch databases
- id str
- The provider-assigned unique ID for this managed resource.
- parent_project_ strref 
- Parent project ref
- branches List<Property Map>
- Branch databases
- id String
- The provider-assigned unique ID for this managed resource.
- parentProject StringRef 
- 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 supabaseTerraform Provider.
supabase 1.5.1 published on Wednesday, Jan 15, 2025 by supabase