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 dictionary
The following arguments are supported:
- Parent
Project stringRef - Parent project ref
- Parent
Project stringRef - Parent project ref
- parent
Project StringRef - Parent project ref
- parent
Project stringRef - Parent project ref
- parent_
project_ strref - Parent project ref
- parent
Project StringRef - Parent project ref
getBranch Result
The following output properties are available:
- Branches
List<Get
Branch Branch> - Branch databases
- Id string
- The provider-assigned unique ID for this managed resource.
- Parent
Project stringRef - Parent project ref
- Branches
[]Get
Branch Branch - Branch databases
- Id string
- The provider-assigned unique ID for this managed resource.
- Parent
Project stringRef - Parent project ref
- branches
List<Get
Branch Branch> - Branch databases
- id String
- The provider-assigned unique ID for this managed resource.
- parent
Project StringRef - Parent project ref
- branches
Get
Branch Branch[] - Branch databases
- id string
- The provider-assigned unique ID for this managed resource.
- parent
Project stringRef - Parent project ref
- branches
Sequence[Get
Branch 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.
- parent
Project StringRef - Parent project ref
Supporting Types
GetBranchBranch
- Git
Branch string - Git branch
- Id string
- Branch identifier
- Project
Ref string - Branch project ref
- Git
Branch string - Git branch
- Id string
- Branch identifier
- Project
Ref string - Branch project ref
- git
Branch String - Git branch
- id String
- Branch identifier
- project
Ref String - Branch project ref
- git
Branch string - Git branch
- id string
- Branch identifier
- project
Ref string - Branch project ref
- git_
branch str - Git branch
- id str
- Branch identifier
- project_
ref str - Branch project ref
- git
Branch String - Git branch
- id String
- Branch identifier
- project
Ref 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 1.5.1 published on Wednesday, Jan 15, 2025 by supabase