bitbucket 2.50.0 published on Wednesday, Oct 8, 2025 by drfaust92
bitbucket.getRepository
bitbucket 2.50.0 published on Wednesday, Oct 8, 2025 by drfaust92
Datasource to retrieve repository information
OAuth2 Scopes: repository
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const test = bitbucket.getRepository({
    repoSlug: "{2c3a2eee-fa63-4b60-afd4-97319245e79e}",
    workspace: "{f772f004-c268-4698-b49f-9d8415981464}",
});
import pulumi
import pulumi_bitbucket as bitbucket
test = bitbucket.get_repository(repo_slug="{2c3a2eee-fa63-4b60-afd4-97319245e79e}",
    workspace="{f772f004-c268-4698-b49f-9d8415981464}")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bitbucket.LookupRepository(ctx, &bitbucket.LookupRepositoryArgs{
			RepoSlug:  "{2c3a2eee-fa63-4b60-afd4-97319245e79e}",
			Workspace: "{f772f004-c268-4698-b49f-9d8415981464}",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() => 
{
    var test = Bitbucket.GetRepository.Invoke(new()
    {
        RepoSlug = "{2c3a2eee-fa63-4b60-afd4-97319245e79e}",
        Workspace = "{f772f004-c268-4698-b49f-9d8415981464}",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.BitbucketFunctions;
import com.pulumi.bitbucket.inputs.GetRepositoryArgs;
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 test = BitbucketFunctions.getRepository(GetRepositoryArgs.builder()
            .repoSlug("{2c3a2eee-fa63-4b60-afd4-97319245e79e}")
            .workspace("{f772f004-c268-4698-b49f-9d8415981464}")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: bitbucket:getRepository
      arguments:
        repoSlug: '{2c3a2eee-fa63-4b60-afd4-97319245e79e}'
        workspace: '{f772f004-c268-4698-b49f-9d8415981464}'
Using getRepository
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 getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>def get_repository(id: Optional[str] = None,
                   is_private: Optional[bool] = None,
                   links: Optional[Sequence[GetRepositoryLink]] = None,
                   projects: Optional[Sequence[GetRepositoryProject]] = None,
                   repo_slug: Optional[str] = None,
                   workspace: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
def get_repository_output(id: Optional[pulumi.Input[str]] = None,
                   is_private: Optional[pulumi.Input[bool]] = None,
                   links: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepositoryLinkArgs]]]] = None,
                   projects: Optional[pulumi.Input[Sequence[pulumi.Input[GetRepositoryProjectArgs]]]] = None,
                   repo_slug: Optional[pulumi.Input[str]] = None,
                   workspace: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput> Note: This function is named LookupRepository in the Go SDK.
public static class GetRepository 
{
    public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
public static Output<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
fn::invoke:
  function: bitbucket:index/getRepository:getRepository
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RepoSlug string
- Repository slug or UUID
- Workspace string
- Workspace slug or UUID
- Id string
- The ID of this resource.
- IsPrivate bool
- If project is private
- Links
List<GetRepository Link> 
- Repository links (see below for nested schema)
- Projects
List<GetRepository Project> 
- Project information (see below for nested schema)
- RepoSlug string
- Repository slug or UUID
- Workspace string
- Workspace slug or UUID
- Id string
- The ID of this resource.
- IsPrivate bool
- If project is private
- Links
[]GetRepository Link 
- Repository links (see below for nested schema)
- Projects
[]GetRepository Project 
- Project information (see below for nested schema)
- repoSlug String
- Repository slug or UUID
- workspace String
- Workspace slug or UUID
- id String
- The ID of this resource.
- isPrivate Boolean
- If project is private
- links
List<GetRepository Link> 
- Repository links (see below for nested schema)
- projects
List<GetRepository Project> 
- Project information (see below for nested schema)
- repoSlug string
- Repository slug or UUID
- workspace string
- Workspace slug or UUID
- id string
- The ID of this resource.
- isPrivate boolean
- If project is private
- links
GetRepository Link[] 
- Repository links (see below for nested schema)
- projects
GetRepository Project[] 
- Project information (see below for nested schema)
- repo_slug str
- Repository slug or UUID
- workspace str
- Workspace slug or UUID
- id str
- The ID of this resource.
- is_private bool
- If project is private
- links
Sequence[GetRepository Link] 
- Repository links (see below for nested schema)
- projects
Sequence[GetRepository Project] 
- Project information (see below for nested schema)
- repoSlug String
- Repository slug or UUID
- workspace String
- Workspace slug or UUID
- id String
- The ID of this resource.
- isPrivate Boolean
- If project is private
- links List<Property Map>
- Repository links (see below for nested schema)
- projects List<Property Map>
- Project information (see below for nested schema)
getRepository Result
The following output properties are available:
- Description string
- Project description
- ForkPolicy string
- Repository fork policy
- FullName string
- Repository full name
- HasIssues bool
- If repository currently has JIRA issues assigned to it
- HasWiki bool
- Repository has a Confluence page
- Id string
- The ID of this resource.
- IsPrivate bool
- If project is private
- Language string
- Repository language
- MainBranch string
- Main branch name
- Name string
- Project name
- Owners
List<GetRepository Owner> 
- Repository owner information (see below for nested schema)
- RepoSlug string
- Scm string
- Repository SCM
- Uuid string
- Owner UUID
- Workspace string
- Links
List<GetRepository Link> 
- Repository links (see below for nested schema)
- Projects
List<GetRepository Project> 
- Project information (see below for nested schema)
- Description string
- Project description
- ForkPolicy string
- Repository fork policy
- FullName string
- Repository full name
- HasIssues bool
- If repository currently has JIRA issues assigned to it
- HasWiki bool
- Repository has a Confluence page
- Id string
- The ID of this resource.
- IsPrivate bool
- If project is private
- Language string
- Repository language
- MainBranch string
- Main branch name
- Name string
- Project name
- Owners
[]GetRepository Owner 
- Repository owner information (see below for nested schema)
- RepoSlug string
- Scm string
- Repository SCM
- Uuid string
- Owner UUID
- Workspace string
- Links
[]GetRepository Link 
- Repository links (see below for nested schema)
- Projects
[]GetRepository Project 
- Project information (see below for nested schema)
- description String
- Project description
- forkPolicy String
- Repository fork policy
- fullName String
- Repository full name
- hasIssues Boolean
- If repository currently has JIRA issues assigned to it
- hasWiki Boolean
- Repository has a Confluence page
- id String
- The ID of this resource.
- isPrivate Boolean
- If project is private
- language String
- Repository language
- mainBranch String
- Main branch name
- name String
- Project name
- owners
List<GetRepository Owner> 
- Repository owner information (see below for nested schema)
- repoSlug String
- scm String
- Repository SCM
- uuid String
- Owner UUID
- workspace String
- links
List<GetRepository Link> 
- Repository links (see below for nested schema)
- projects
List<GetRepository Project> 
- Project information (see below for nested schema)
- description string
- Project description
- forkPolicy string
- Repository fork policy
- fullName string
- Repository full name
- hasIssues boolean
- If repository currently has JIRA issues assigned to it
- hasWiki boolean
- Repository has a Confluence page
- id string
- The ID of this resource.
- isPrivate boolean
- If project is private
- language string
- Repository language
- mainBranch string
- Main branch name
- name string
- Project name
- owners
GetRepository Owner[] 
- Repository owner information (see below for nested schema)
- repoSlug string
- scm string
- Repository SCM
- uuid string
- Owner UUID
- workspace string
- links
GetRepository Link[] 
- Repository links (see below for nested schema)
- projects
GetRepository Project[] 
- Project information (see below for nested schema)
- description str
- Project description
- fork_policy str
- Repository fork policy
- full_name str
- Repository full name
- has_issues bool
- If repository currently has JIRA issues assigned to it
- has_wiki bool
- Repository has a Confluence page
- id str
- The ID of this resource.
- is_private bool
- If project is private
- language str
- Repository language
- main_branch str
- Main branch name
- name str
- Project name
- owners
Sequence[GetRepository Owner] 
- Repository owner information (see below for nested schema)
- repo_slug str
- scm str
- Repository SCM
- uuid str
- Owner UUID
- workspace str
- links
Sequence[GetRepository Link] 
- Repository links (see below for nested schema)
- projects
Sequence[GetRepository Project] 
- Project information (see below for nested schema)
- description String
- Project description
- forkPolicy String
- Repository fork policy
- fullName String
- Repository full name
- hasIssues Boolean
- If repository currently has JIRA issues assigned to it
- hasWiki Boolean
- Repository has a Confluence page
- id String
- The ID of this resource.
- isPrivate Boolean
- If project is private
- language String
- Repository language
- mainBranch String
- Main branch name
- name String
- Project name
- owners List<Property Map>
- Repository owner information (see below for nested schema)
- repoSlug String
- scm String
- Repository SCM
- uuid String
- Owner UUID
- workspace String
- links List<Property Map>
- Repository links (see below for nested schema)
- projects List<Property Map>
- Project information (see below for nested schema)
Supporting Types
GetRepositoryLink  
- Avatars
List<GetRepository Link Avatar> 
- Repository avatar (see below for nested schema)
- Avatars
[]GetRepository Link Avatar 
- Repository avatar (see below for nested schema)
- avatars
List<GetRepository Link Avatar> 
- Repository avatar (see below for nested schema)
- avatars
GetRepository Link Avatar[] 
- Repository avatar (see below for nested schema)
- avatars
Sequence[GetRepository Link Avatar] 
- Repository avatar (see below for nested schema)
- avatars List<Property Map>
- Repository avatar (see below for nested schema)
GetRepositoryLinkAvatar   
- Href string
- URL link
- Href string
- URL link
- href String
- URL link
- href string
- URL link
- href str
- URL link
- href String
- URL link
GetRepositoryOwner  
- DisplayName string
- Owner display name
- Username string
- Owner username
- Uuid string
- Owner UUID
- DisplayName string
- Owner display name
- Username string
- Owner username
- Uuid string
- Owner UUID
- displayName String
- Owner display name
- username String
- Owner username
- uuid String
- Owner UUID
- displayName string
- Owner display name
- username string
- Owner username
- uuid string
- Owner UUID
- display_name str
- Owner display name
- username str
- Owner username
- uuid str
- Owner UUID
- displayName String
- Owner display name
- username String
- Owner username
- uuid String
- Owner UUID
GetRepositoryProject  
- Description string
- Project description
- IsPrivate bool
- If project is private
- Key string
- Project key
- Name string
- Project name
- Description string
- Project description
- IsPrivate bool
- If project is private
- Key string
- Project key
- Name string
- Project name
- description String
- Project description
- isPrivate Boolean
- If project is private
- key String
- Project key
- name String
- Project name
- description string
- Project description
- isPrivate boolean
- If project is private
- key string
- Project key
- name string
- Project name
- description str
- Project description
- is_private bool
- If project is private
- key str
- Project key
- name str
- Project name
- description String
- Project description
- isPrivate Boolean
- If project is private
- key String
- Project key
- name String
- Project name
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the bitbucketTerraform Provider.
bitbucket 2.50.0 published on Wednesday, Oct 8, 2025 by drfaust92
