bitbucket 2.50.0 published on Wednesday, Oct 8, 2025 by drfaust92
bitbucket.getRepository
Start a Neo task
Explain and create a bitbucket.getRepository resource
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:
- Repo
Slug string - Repository slug or UUID
- Workspace string
- Workspace slug or UUID
- Id string
- The ID of this resource.
- Is
Private bool - If project is private
- Links
List<Get
Repository Link> - Repository links (see below for nested schema)
- Projects
List<Get
Repository Project> - Project information (see below for nested schema)
- Repo
Slug string - Repository slug or UUID
- Workspace string
- Workspace slug or UUID
- Id string
- The ID of this resource.
- Is
Private bool - If project is private
- Links
[]Get
Repository Link - Repository links (see below for nested schema)
- Projects
[]Get
Repository Project - Project information (see below for nested schema)
- repo
Slug String - Repository slug or UUID
- workspace String
- Workspace slug or UUID
- id String
- The ID of this resource.
- is
Private Boolean - If project is private
- links
List<Get
Repository Link> - Repository links (see below for nested schema)
- projects
List<Get
Repository Project> - Project information (see below for nested schema)
- repo
Slug string - Repository slug or UUID
- workspace string
- Workspace slug or UUID
- id string
- The ID of this resource.
- is
Private boolean - If project is private
- links
Get
Repository Link[] - Repository links (see below for nested schema)
- projects
Get
Repository 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[Get
Repository Link] - Repository links (see below for nested schema)
- projects
Sequence[Get
Repository Project] - Project information (see below for nested schema)
- repo
Slug String - Repository slug or UUID
- workspace String
- Workspace slug or UUID
- id String
- The ID of this resource.
- is
Private 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
- Fork
Policy string - Repository fork policy
- Full
Name string - Repository full name
- Has
Issues bool - If repository currently has JIRA issues assigned to it
- Has
Wiki bool - Repository has a Confluence page
- Id string
- The ID of this resource.
- Is
Private bool - If project is private
- Language string
- Repository language
- Main
Branch string - Main branch name
- Name string
- Project name
- Owners
List<Get
Repository Owner> - Repository owner information (see below for nested schema)
- Repo
Slug string - Scm string
- Repository SCM
- Uuid string
- Owner UUID
- Workspace string
- Links
List<Get
Repository Link> - Repository links (see below for nested schema)
- Projects
List<Get
Repository Project> - Project information (see below for nested schema)
- Description string
- Project description
- Fork
Policy string - Repository fork policy
- Full
Name string - Repository full name
- Has
Issues bool - If repository currently has JIRA issues assigned to it
- Has
Wiki bool - Repository has a Confluence page
- Id string
- The ID of this resource.
- Is
Private bool - If project is private
- Language string
- Repository language
- Main
Branch string - Main branch name
- Name string
- Project name
- Owners
[]Get
Repository Owner - Repository owner information (see below for nested schema)
- Repo
Slug string - Scm string
- Repository SCM
- Uuid string
- Owner UUID
- Workspace string
- Links
[]Get
Repository Link - Repository links (see below for nested schema)
- Projects
[]Get
Repository Project - Project information (see below for nested schema)
- description String
- Project description
- fork
Policy String - Repository fork policy
- full
Name String - Repository full name
- has
Issues Boolean - If repository currently has JIRA issues assigned to it
- has
Wiki Boolean - Repository has a Confluence page
- id String
- The ID of this resource.
- is
Private Boolean - If project is private
- language String
- Repository language
- main
Branch String - Main branch name
- name String
- Project name
- owners
List<Get
Repository Owner> - Repository owner information (see below for nested schema)
- repo
Slug String - scm String
- Repository SCM
- uuid String
- Owner UUID
- workspace String
- links
List<Get
Repository Link> - Repository links (see below for nested schema)
- projects
List<Get
Repository Project> - Project information (see below for nested schema)
- description string
- Project description
- fork
Policy string - Repository fork policy
- full
Name string - Repository full name
- has
Issues boolean - If repository currently has JIRA issues assigned to it
- has
Wiki boolean - Repository has a Confluence page
- id string
- The ID of this resource.
- is
Private boolean - If project is private
- language string
- Repository language
- main
Branch string - Main branch name
- name string
- Project name
- owners
Get
Repository Owner[] - Repository owner information (see below for nested schema)
- repo
Slug string - scm string
- Repository SCM
- uuid string
- Owner UUID
- workspace string
- links
Get
Repository Link[] - Repository links (see below for nested schema)
- projects
Get
Repository 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[Get
Repository Owner] - Repository owner information (see below for nested schema)
- repo_
slug str - scm str
- Repository SCM
- uuid str
- Owner UUID
- workspace str
- links
Sequence[Get
Repository Link] - Repository links (see below for nested schema)
- projects
Sequence[Get
Repository Project] - Project information (see below for nested schema)
- description String
- Project description
- fork
Policy String - Repository fork policy
- full
Name String - Repository full name
- has
Issues Boolean - If repository currently has JIRA issues assigned to it
- has
Wiki Boolean - Repository has a Confluence page
- id String
- The ID of this resource.
- is
Private Boolean - If project is private
- language String
- Repository language
- main
Branch String - Main branch name
- name String
- Project name
- owners List<Property Map>
- Repository owner information (see below for nested schema)
- repo
Slug 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<Get
Repository Link Avatar> - Repository avatar (see below for nested schema)
- Avatars
[]Get
Repository Link Avatar - Repository avatar (see below for nested schema)
- avatars
List<Get
Repository Link Avatar> - Repository avatar (see below for nested schema)
- avatars
Get
Repository Link Avatar[] - Repository avatar (see below for nested schema)
- avatars
Sequence[Get
Repository 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
- Display
Name string - Owner display name
- Username string
- Owner username
- Uuid string
- Owner UUID
- Display
Name string - Owner display name
- Username string
- Owner username
- Uuid string
- Owner UUID
- display
Name String - Owner display name
- username String
- Owner username
- uuid String
- Owner UUID
- display
Name 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
- display
Name String - Owner display name
- username String
- Owner username
- uuid String
- Owner UUID
GetRepositoryProject
- Description string
- Project description
- Is
Private bool - If project is private
- Key string
- Project key
- Name string
- Project name
- Description string
- Project description
- Is
Private bool - If project is private
- Key string
- Project key
- Name string
- Project name
- description String
- Project description
- is
Private Boolean - If project is private
- key String
- Project key
- name String
- Project name
- description string
- Project description
- is
Private 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
- is
Private 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
