1. Packages
  2. Neon Provider
  3. API Docs
  4. getBranches
neon 0.9.0 published on Tuesday, May 6, 2025 by kislerdm

neon.getBranches

Explore with Pulumi AI

neon logo
neon 0.9.0 published on Tuesday, May 6, 2025 by kislerdm

    Fetch Project Branches.

    Using getBranches

    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 getBranches(args: GetBranchesArgs, opts?: InvokeOptions): Promise<GetBranchesResult>
    function getBranchesOutput(args: GetBranchesOutputArgs, opts?: InvokeOptions): Output<GetBranchesResult>
    def get_branches(id: Optional[str] = None,
                     project_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetBranchesResult
    def get_branches_output(id: Optional[pulumi.Input[str]] = None,
                     project_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetBranchesResult]
    func GetBranches(ctx *Context, args *GetBranchesArgs, opts ...InvokeOption) (*GetBranchesResult, error)
    func GetBranchesOutput(ctx *Context, args *GetBranchesOutputArgs, opts ...InvokeOption) GetBranchesResultOutput

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

    public static class GetBranches 
    {
        public static Task<GetBranchesResult> InvokeAsync(GetBranchesArgs args, InvokeOptions? opts = null)
        public static Output<GetBranchesResult> Invoke(GetBranchesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBranchesResult> getBranches(GetBranchesArgs args, InvokeOptions options)
    public static Output<GetBranchesResult> getBranches(GetBranchesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: neon:index/getBranches:getBranches
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Project ID.
    Id string
    The ID of this resource.
    ProjectId string
    Project ID.
    Id string
    The ID of this resource.
    projectId String
    Project ID.
    id String
    The ID of this resource.
    projectId string
    Project ID.
    id string
    The ID of this resource.
    project_id str
    Project ID.
    id str
    The ID of this resource.
    projectId String
    Project ID.
    id String
    The ID of this resource.

    getBranches Result

    The following output properties are available:

    Branches List<GetBranchesBranch>
    Id string
    The ID of this resource.
    ProjectId string
    Project ID.
    Branches []GetBranchesBranch
    Id string
    The ID of this resource.
    ProjectId string
    Project ID.
    branches List<GetBranchesBranch>
    id String
    The ID of this resource.
    projectId String
    Project ID.
    branches GetBranchesBranch[]
    id string
    The ID of this resource.
    projectId string
    Project ID.
    branches Sequence[GetBranchesBranch]
    id str
    The ID of this resource.
    project_id str
    Project ID.
    branches List<Property Map>
    id String
    The ID of this resource.
    projectId String
    Project ID.

    Supporting Types

    GetBranchesBranch

    Id string
    LogicalSize double
    Name string
    ParentId string
    Primary bool
    Id string
    LogicalSize float64
    Name string
    ParentId string
    Primary bool
    id String
    logicalSize Double
    name String
    parentId String
    primary Boolean
    id string
    logicalSize number
    name string
    parentId string
    primary boolean
    id str
    logical_size float
    name str
    parent_id str
    primary bool
    id String
    logicalSize Number
    name String
    parentId String
    primary Boolean

    Package Details

    Repository
    neon kislerdm/terraform-provider-neon
    License
    Notes
    This Pulumi package is based on the neon Terraform Provider.
    neon logo
    neon 0.9.0 published on Tuesday, May 6, 2025 by kislerdm