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

neon.getBranchRoles

Explore with Pulumi AI

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

    Fetch Branch Roles.

    Using getBranchRoles

    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 getBranchRoles(args: GetBranchRolesArgs, opts?: InvokeOptions): Promise<GetBranchRolesResult>
    function getBranchRolesOutput(args: GetBranchRolesOutputArgs, opts?: InvokeOptions): Output<GetBranchRolesResult>
    def get_branch_roles(branch_id: Optional[str] = None,
                         id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         roles: Optional[Sequence[GetBranchRolesRole]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetBranchRolesResult
    def get_branch_roles_output(branch_id: Optional[pulumi.Input[str]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         roles: Optional[pulumi.Input[Sequence[pulumi.Input[GetBranchRolesRoleArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetBranchRolesResult]
    func GetBranchRoles(ctx *Context, args *GetBranchRolesArgs, opts ...InvokeOption) (*GetBranchRolesResult, error)
    func GetBranchRolesOutput(ctx *Context, args *GetBranchRolesOutputArgs, opts ...InvokeOption) GetBranchRolesResultOutput

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

    public static class GetBranchRoles 
    {
        public static Task<GetBranchRolesResult> InvokeAsync(GetBranchRolesArgs args, InvokeOptions? opts = null)
        public static Output<GetBranchRolesResult> Invoke(GetBranchRolesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBranchRolesResult> getBranchRoles(GetBranchRolesArgs args, InvokeOptions options)
    public static Output<GetBranchRolesResult> getBranchRoles(GetBranchRolesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: neon:index/getBranchRoles:getBranchRoles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BranchId string
    Branch ID.
    ProjectId string
    Project ID.
    Id string
    The ID of this resource.
    Roles List<GetBranchRolesRole>
    BranchId string
    Branch ID.
    ProjectId string
    Project ID.
    Id string
    The ID of this resource.
    Roles []GetBranchRolesRole
    branchId String
    Branch ID.
    projectId String
    Project ID.
    id String
    The ID of this resource.
    roles List<GetBranchRolesRole>
    branchId string
    Branch ID.
    projectId string
    Project ID.
    id string
    The ID of this resource.
    roles GetBranchRolesRole[]
    branch_id str
    Branch ID.
    project_id str
    Project ID.
    id str
    The ID of this resource.
    roles Sequence[GetBranchRolesRole]
    branchId String
    Branch ID.
    projectId String
    Project ID.
    id String
    The ID of this resource.
    roles List<Property Map>

    getBranchRoles Result

    The following output properties are available:

    BranchId string
    Branch ID.
    Id string
    The ID of this resource.
    ProjectId string
    Project ID.
    Roles List<GetBranchRolesRole>
    BranchId string
    Branch ID.
    Id string
    The ID of this resource.
    ProjectId string
    Project ID.
    Roles []GetBranchRolesRole
    branchId String
    Branch ID.
    id String
    The ID of this resource.
    projectId String
    Project ID.
    roles List<GetBranchRolesRole>
    branchId string
    Branch ID.
    id string
    The ID of this resource.
    projectId string
    Project ID.
    roles GetBranchRolesRole[]
    branch_id str
    Branch ID.
    id str
    The ID of this resource.
    project_id str
    Project ID.
    roles Sequence[GetBranchRolesRole]
    branchId String
    Branch ID.
    id String
    The ID of this resource.
    projectId String
    Project ID.
    roles List<Property Map>

    Supporting Types

    GetBranchRolesRole

    Name string
    Role name.
    Protected bool
    Name string
    Role name.
    Protected bool
    name String
    Role name.
    protected_ Boolean
    name string
    Role name.
    protected boolean
    name str
    Role name.
    protected bool
    name String
    Role name.
    protected 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