1. Packages
  2. Bitbucket Provider
  3. API Docs
  4. Repository
bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92

bitbucket.Repository

Explore with Pulumi AI

bitbucket logo
bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92

    Provides a Bitbucket repository resource.

    This resource allows you manage your repositories such as scm type, if it is private, how to fork the repository and other options.

    OAuth2 Scopes: repository, repository:admin, and repository:delete

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bitbucket from "@pulumi/bitbucket";
    
    const infrastructure = new bitbucket.Repository("infrastructure", {owner: "myteam"});
    
    import pulumi
    import pulumi_bitbucket as bitbucket
    
    infrastructure = bitbucket.Repository("infrastructure", owner="myteam")
    
    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.NewRepository(ctx, "infrastructure", &bitbucket.RepositoryArgs{
    			Owner: pulumi.String("myteam"),
    		})
    		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 infrastructure = new Bitbucket.Repository("infrastructure", new()
        {
            Owner = "myteam",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.bitbucket.Repository;
    import com.pulumi.bitbucket.RepositoryArgs;
    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) {
            var infrastructure = new Repository("infrastructure", RepositoryArgs.builder()
                .owner("myteam")
                .build());
    
        }
    }
    
    resources:
      infrastructure:
        type: bitbucket:Repository
        properties:
          owner: myteam
    

    If you want to create a repository with a CamelCase name, you should provide a separate slug

    import * as pulumi from "@pulumi/pulumi";
    import * as bitbucket from "@pulumi/bitbucket";
    
    const infrastructure = new bitbucket.Repository("infrastructure", {
        owner: "myteam",
        slug: "terraform-code",
    });
    
    import pulumi
    import pulumi_bitbucket as bitbucket
    
    infrastructure = bitbucket.Repository("infrastructure",
        owner="myteam",
        slug="terraform-code")
    
    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.NewRepository(ctx, "infrastructure", &bitbucket.RepositoryArgs{
    			Owner: pulumi.String("myteam"),
    			Slug:  pulumi.String("terraform-code"),
    		})
    		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 infrastructure = new Bitbucket.Repository("infrastructure", new()
        {
            Owner = "myteam",
            Slug = "terraform-code",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.bitbucket.Repository;
    import com.pulumi.bitbucket.RepositoryArgs;
    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) {
            var infrastructure = new Repository("infrastructure", RepositoryArgs.builder()
                .owner("myteam")
                .slug("terraform-code")
                .build());
    
        }
    }
    
    resources:
      infrastructure:
        type: bitbucket:Repository
        properties:
          owner: myteam
          slug: terraform-code
    

    Create Repository Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def Repository(resource_name: str,
                   args: RepositoryArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Repository(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   owner: Optional[str] = None,
                   link: Optional[RepositoryLinkArgs] = None,
                   fork_policy: Optional[str] = None,
                   has_wiki: Optional[bool] = None,
                   inherit_branching_model: Optional[bool] = None,
                   inherit_default_merge_strategy: Optional[bool] = None,
                   is_private: Optional[bool] = None,
                   has_issues: Optional[bool] = None,
                   language: Optional[str] = None,
                   name: Optional[str] = None,
                   description: Optional[str] = None,
                   pipelines_enabled: Optional[bool] = None,
                   project_key: Optional[str] = None,
                   repository_id: Optional[str] = None,
                   scm: Optional[str] = None,
                   slug: Optional[str] = None,
                   website: Optional[str] = None)
    func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
    public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
    public Repository(String name, RepositoryArgs args)
    public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
    
    type: bitbucket:Repository
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var repositoryResource = new Bitbucket.Repository("repositoryResource", new()
    {
        Owner = "string",
        Link = new Bitbucket.Inputs.RepositoryLinkArgs
        {
            Avatar = new Bitbucket.Inputs.RepositoryLinkAvatarArgs
            {
                Href = "string",
            },
        },
        ForkPolicy = "string",
        HasWiki = false,
        InheritBranchingModel = false,
        InheritDefaultMergeStrategy = false,
        IsPrivate = false,
        HasIssues = false,
        Language = "string",
        Name = "string",
        Description = "string",
        PipelinesEnabled = false,
        ProjectKey = "string",
        RepositoryId = "string",
        Scm = "string",
        Slug = "string",
        Website = "string",
    });
    
    example, err := bitbucket.NewRepository(ctx, "repositoryResource", &bitbucket.RepositoryArgs{
    	Owner: pulumi.String("string"),
    	Link: &bitbucket.RepositoryLinkArgs{
    		Avatar: &bitbucket.RepositoryLinkAvatarArgs{
    			Href: pulumi.String("string"),
    		},
    	},
    	ForkPolicy:                  pulumi.String("string"),
    	HasWiki:                     pulumi.Bool(false),
    	InheritBranchingModel:       pulumi.Bool(false),
    	InheritDefaultMergeStrategy: pulumi.Bool(false),
    	IsPrivate:                   pulumi.Bool(false),
    	HasIssues:                   pulumi.Bool(false),
    	Language:                    pulumi.String("string"),
    	Name:                        pulumi.String("string"),
    	Description:                 pulumi.String("string"),
    	PipelinesEnabled:            pulumi.Bool(false),
    	ProjectKey:                  pulumi.String("string"),
    	RepositoryId:                pulumi.String("string"),
    	Scm:                         pulumi.String("string"),
    	Slug:                        pulumi.String("string"),
    	Website:                     pulumi.String("string"),
    })
    
    var repositoryResource = new Repository("repositoryResource", RepositoryArgs.builder()
        .owner("string")
        .link(RepositoryLinkArgs.builder()
            .avatar(RepositoryLinkAvatarArgs.builder()
                .href("string")
                .build())
            .build())
        .forkPolicy("string")
        .hasWiki(false)
        .inheritBranchingModel(false)
        .inheritDefaultMergeStrategy(false)
        .isPrivate(false)
        .hasIssues(false)
        .language("string")
        .name("string")
        .description("string")
        .pipelinesEnabled(false)
        .projectKey("string")
        .repositoryId("string")
        .scm("string")
        .slug("string")
        .website("string")
        .build());
    
    repository_resource = bitbucket.Repository("repositoryResource",
        owner="string",
        link={
            "avatar": {
                "href": "string",
            },
        },
        fork_policy="string",
        has_wiki=False,
        inherit_branching_model=False,
        inherit_default_merge_strategy=False,
        is_private=False,
        has_issues=False,
        language="string",
        name="string",
        description="string",
        pipelines_enabled=False,
        project_key="string",
        repository_id="string",
        scm="string",
        slug="string",
        website="string")
    
    const repositoryResource = new bitbucket.Repository("repositoryResource", {
        owner: "string",
        link: {
            avatar: {
                href: "string",
            },
        },
        forkPolicy: "string",
        hasWiki: false,
        inheritBranchingModel: false,
        inheritDefaultMergeStrategy: false,
        isPrivate: false,
        hasIssues: false,
        language: "string",
        name: "string",
        description: "string",
        pipelinesEnabled: false,
        projectKey: "string",
        repositoryId: "string",
        scm: "string",
        slug: "string",
        website: "string",
    });
    
    type: bitbucket:Repository
    properties:
        description: string
        forkPolicy: string
        hasIssues: false
        hasWiki: false
        inheritBranchingModel: false
        inheritDefaultMergeStrategy: false
        isPrivate: false
        language: string
        link:
            avatar:
                href: string
        name: string
        owner: string
        pipelinesEnabled: false
        projectKey: string
        repositoryId: string
        scm: string
        slug: string
        website: string
    

    Repository Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Repository resource accepts the following input properties:

    Owner string
    The owner of this repository. Can be you or any team you have write access to.
    Description string
    What the description of the repo is.
    ForkPolicy string
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    HasIssues bool
    If this should have issues turned on or not.
    HasWiki bool
    If this should have wiki turned on or not.
    InheritBranchingModel bool
    Whether to inherit branching model from project.
    InheritDefaultMergeStrategy bool
    Whether to inherit default merge strategy from project.
    IsPrivate bool
    If this should be private or not. Defaults to true.
    Language string
    What the language of this repository should be.
    Link RepositoryLink
    A set of links to a resource related to this object. See Link Below.
    Name string
    The name of the repository.
    PipelinesEnabled bool
    Turn on to enable pipelines support.
    ProjectKey string
    If you want to have this repo associated with a project.
    RepositoryId string
    Scm string
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    Slug string
    The slug of the repository.
    Website string
    URL of website associated with this repository.
    Owner string
    The owner of this repository. Can be you or any team you have write access to.
    Description string
    What the description of the repo is.
    ForkPolicy string
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    HasIssues bool
    If this should have issues turned on or not.
    HasWiki bool
    If this should have wiki turned on or not.
    InheritBranchingModel bool
    Whether to inherit branching model from project.
    InheritDefaultMergeStrategy bool
    Whether to inherit default merge strategy from project.
    IsPrivate bool
    If this should be private or not. Defaults to true.
    Language string
    What the language of this repository should be.
    Link RepositoryLinkArgs
    A set of links to a resource related to this object. See Link Below.
    Name string
    The name of the repository.
    PipelinesEnabled bool
    Turn on to enable pipelines support.
    ProjectKey string
    If you want to have this repo associated with a project.
    RepositoryId string
    Scm string
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    Slug string
    The slug of the repository.
    Website string
    URL of website associated with this repository.
    owner String
    The owner of this repository. Can be you or any team you have write access to.
    description String
    What the description of the repo is.
    forkPolicy String
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    hasIssues Boolean
    If this should have issues turned on or not.
    hasWiki Boolean
    If this should have wiki turned on or not.
    inheritBranchingModel Boolean
    Whether to inherit branching model from project.
    inheritDefaultMergeStrategy Boolean
    Whether to inherit default merge strategy from project.
    isPrivate Boolean
    If this should be private or not. Defaults to true.
    language String
    What the language of this repository should be.
    link RepositoryLink
    A set of links to a resource related to this object. See Link Below.
    name String
    The name of the repository.
    pipelinesEnabled Boolean
    Turn on to enable pipelines support.
    projectKey String
    If you want to have this repo associated with a project.
    repositoryId String
    scm String
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug String
    The slug of the repository.
    website String
    URL of website associated with this repository.
    owner string
    The owner of this repository. Can be you or any team you have write access to.
    description string
    What the description of the repo is.
    forkPolicy string
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    hasIssues boolean
    If this should have issues turned on or not.
    hasWiki boolean
    If this should have wiki turned on or not.
    inheritBranchingModel boolean
    Whether to inherit branching model from project.
    inheritDefaultMergeStrategy boolean
    Whether to inherit default merge strategy from project.
    isPrivate boolean
    If this should be private or not. Defaults to true.
    language string
    What the language of this repository should be.
    link RepositoryLink
    A set of links to a resource related to this object. See Link Below.
    name string
    The name of the repository.
    pipelinesEnabled boolean
    Turn on to enable pipelines support.
    projectKey string
    If you want to have this repo associated with a project.
    repositoryId string
    scm string
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug string
    The slug of the repository.
    website string
    URL of website associated with this repository.
    owner str
    The owner of this repository. Can be you or any team you have write access to.
    description str
    What the description of the repo is.
    fork_policy str
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    has_issues bool
    If this should have issues turned on or not.
    has_wiki bool
    If this should have wiki turned on or not.
    inherit_branching_model bool
    Whether to inherit branching model from project.
    inherit_default_merge_strategy bool
    Whether to inherit default merge strategy from project.
    is_private bool
    If this should be private or not. Defaults to true.
    language str
    What the language of this repository should be.
    link RepositoryLinkArgs
    A set of links to a resource related to this object. See Link Below.
    name str
    The name of the repository.
    pipelines_enabled bool
    Turn on to enable pipelines support.
    project_key str
    If you want to have this repo associated with a project.
    repository_id str
    scm str
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug str
    The slug of the repository.
    website str
    URL of website associated with this repository.
    owner String
    The owner of this repository. Can be you or any team you have write access to.
    description String
    What the description of the repo is.
    forkPolicy String
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    hasIssues Boolean
    If this should have issues turned on or not.
    hasWiki Boolean
    If this should have wiki turned on or not.
    inheritBranchingModel Boolean
    Whether to inherit branching model from project.
    inheritDefaultMergeStrategy Boolean
    Whether to inherit default merge strategy from project.
    isPrivate Boolean
    If this should be private or not. Defaults to true.
    language String
    What the language of this repository should be.
    link Property Map
    A set of links to a resource related to this object. See Link Below.
    name String
    The name of the repository.
    pipelinesEnabled Boolean
    Turn on to enable pipelines support.
    projectKey String
    If you want to have this repo associated with a project.
    repositoryId String
    scm String
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug String
    The slug of the repository.
    website String
    URL of website associated with this repository.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:

    CloneHttps string
    The HTTPS clone URL.
    CloneSsh string
    The SSH clone URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    the uuid of the repository resource.
    CloneHttps string
    The HTTPS clone URL.
    CloneSsh string
    The SSH clone URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    the uuid of the repository resource.
    cloneHttps String
    The HTTPS clone URL.
    cloneSsh String
    The SSH clone URL.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    the uuid of the repository resource.
    cloneHttps string
    The HTTPS clone URL.
    cloneSsh string
    The SSH clone URL.
    id string
    The provider-assigned unique ID for this managed resource.
    uuid string
    the uuid of the repository resource.
    clone_https str
    The HTTPS clone URL.
    clone_ssh str
    The SSH clone URL.
    id str
    The provider-assigned unique ID for this managed resource.
    uuid str
    the uuid of the repository resource.
    cloneHttps String
    The HTTPS clone URL.
    cloneSsh String
    The SSH clone URL.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    the uuid of the repository resource.

    Look up Existing Repository Resource

    Get an existing Repository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RepositoryState, opts?: CustomResourceOptions): Repository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            clone_https: Optional[str] = None,
            clone_ssh: Optional[str] = None,
            description: Optional[str] = None,
            fork_policy: Optional[str] = None,
            has_issues: Optional[bool] = None,
            has_wiki: Optional[bool] = None,
            inherit_branching_model: Optional[bool] = None,
            inherit_default_merge_strategy: Optional[bool] = None,
            is_private: Optional[bool] = None,
            language: Optional[str] = None,
            link: Optional[RepositoryLinkArgs] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            pipelines_enabled: Optional[bool] = None,
            project_key: Optional[str] = None,
            repository_id: Optional[str] = None,
            scm: Optional[str] = None,
            slug: Optional[str] = None,
            uuid: Optional[str] = None,
            website: Optional[str] = None) -> Repository
    func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
    public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
    public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)
    resources:  _:    type: bitbucket:Repository    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CloneHttps string
    The HTTPS clone URL.
    CloneSsh string
    The SSH clone URL.
    Description string
    What the description of the repo is.
    ForkPolicy string
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    HasIssues bool
    If this should have issues turned on or not.
    HasWiki bool
    If this should have wiki turned on or not.
    InheritBranchingModel bool
    Whether to inherit branching model from project.
    InheritDefaultMergeStrategy bool
    Whether to inherit default merge strategy from project.
    IsPrivate bool
    If this should be private or not. Defaults to true.
    Language string
    What the language of this repository should be.
    Link RepositoryLink
    A set of links to a resource related to this object. See Link Below.
    Name string
    The name of the repository.
    Owner string
    The owner of this repository. Can be you or any team you have write access to.
    PipelinesEnabled bool
    Turn on to enable pipelines support.
    ProjectKey string
    If you want to have this repo associated with a project.
    RepositoryId string
    Scm string
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    Slug string
    The slug of the repository.
    Uuid string
    the uuid of the repository resource.
    Website string
    URL of website associated with this repository.
    CloneHttps string
    The HTTPS clone URL.
    CloneSsh string
    The SSH clone URL.
    Description string
    What the description of the repo is.
    ForkPolicy string
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    HasIssues bool
    If this should have issues turned on or not.
    HasWiki bool
    If this should have wiki turned on or not.
    InheritBranchingModel bool
    Whether to inherit branching model from project.
    InheritDefaultMergeStrategy bool
    Whether to inherit default merge strategy from project.
    IsPrivate bool
    If this should be private or not. Defaults to true.
    Language string
    What the language of this repository should be.
    Link RepositoryLinkArgs
    A set of links to a resource related to this object. See Link Below.
    Name string
    The name of the repository.
    Owner string
    The owner of this repository. Can be you or any team you have write access to.
    PipelinesEnabled bool
    Turn on to enable pipelines support.
    ProjectKey string
    If you want to have this repo associated with a project.
    RepositoryId string
    Scm string
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    Slug string
    The slug of the repository.
    Uuid string
    the uuid of the repository resource.
    Website string
    URL of website associated with this repository.
    cloneHttps String
    The HTTPS clone URL.
    cloneSsh String
    The SSH clone URL.
    description String
    What the description of the repo is.
    forkPolicy String
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    hasIssues Boolean
    If this should have issues turned on or not.
    hasWiki Boolean
    If this should have wiki turned on or not.
    inheritBranchingModel Boolean
    Whether to inherit branching model from project.
    inheritDefaultMergeStrategy Boolean
    Whether to inherit default merge strategy from project.
    isPrivate Boolean
    If this should be private or not. Defaults to true.
    language String
    What the language of this repository should be.
    link RepositoryLink
    A set of links to a resource related to this object. See Link Below.
    name String
    The name of the repository.
    owner String
    The owner of this repository. Can be you or any team you have write access to.
    pipelinesEnabled Boolean
    Turn on to enable pipelines support.
    projectKey String
    If you want to have this repo associated with a project.
    repositoryId String
    scm String
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug String
    The slug of the repository.
    uuid String
    the uuid of the repository resource.
    website String
    URL of website associated with this repository.
    cloneHttps string
    The HTTPS clone URL.
    cloneSsh string
    The SSH clone URL.
    description string
    What the description of the repo is.
    forkPolicy string
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    hasIssues boolean
    If this should have issues turned on or not.
    hasWiki boolean
    If this should have wiki turned on or not.
    inheritBranchingModel boolean
    Whether to inherit branching model from project.
    inheritDefaultMergeStrategy boolean
    Whether to inherit default merge strategy from project.
    isPrivate boolean
    If this should be private or not. Defaults to true.
    language string
    What the language of this repository should be.
    link RepositoryLink
    A set of links to a resource related to this object. See Link Below.
    name string
    The name of the repository.
    owner string
    The owner of this repository. Can be you or any team you have write access to.
    pipelinesEnabled boolean
    Turn on to enable pipelines support.
    projectKey string
    If you want to have this repo associated with a project.
    repositoryId string
    scm string
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug string
    The slug of the repository.
    uuid string
    the uuid of the repository resource.
    website string
    URL of website associated with this repository.
    clone_https str
    The HTTPS clone URL.
    clone_ssh str
    The SSH clone URL.
    description str
    What the description of the repo is.
    fork_policy str
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    has_issues bool
    If this should have issues turned on or not.
    has_wiki bool
    If this should have wiki turned on or not.
    inherit_branching_model bool
    Whether to inherit branching model from project.
    inherit_default_merge_strategy bool
    Whether to inherit default merge strategy from project.
    is_private bool
    If this should be private or not. Defaults to true.
    language str
    What the language of this repository should be.
    link RepositoryLinkArgs
    A set of links to a resource related to this object. See Link Below.
    name str
    The name of the repository.
    owner str
    The owner of this repository. Can be you or any team you have write access to.
    pipelines_enabled bool
    Turn on to enable pipelines support.
    project_key str
    If you want to have this repo associated with a project.
    repository_id str
    scm str
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug str
    The slug of the repository.
    uuid str
    the uuid of the repository resource.
    website str
    URL of website associated with this repository.
    cloneHttps String
    The HTTPS clone URL.
    cloneSsh String
    The SSH clone URL.
    description String
    What the description of the repo is.
    forkPolicy String
    What the fork policy should be. Defaults to allow_forks. Valid values are allow_forks, no_public_forks, no_forks.
    hasIssues Boolean
    If this should have issues turned on or not.
    hasWiki Boolean
    If this should have wiki turned on or not.
    inheritBranchingModel Boolean
    Whether to inherit branching model from project.
    inheritDefaultMergeStrategy Boolean
    Whether to inherit default merge strategy from project.
    isPrivate Boolean
    If this should be private or not. Defaults to true.
    language String
    What the language of this repository should be.
    link Property Map
    A set of links to a resource related to this object. See Link Below.
    name String
    The name of the repository.
    owner String
    The owner of this repository. Can be you or any team you have write access to.
    pipelinesEnabled Boolean
    Turn on to enable pipelines support.
    projectKey String
    If you want to have this repo associated with a project.
    repositoryId String
    scm String
    What SCM you want to use. Valid options are hg or git. Defaults to git.
    slug String
    The slug of the repository.
    uuid String
    the uuid of the repository resource.
    website String
    URL of website associated with this repository.

    Supporting Types

    Avatar RepositoryLinkAvatar
    An avatar link to a resource related to this object. See Avatar Below.
    Avatar RepositoryLinkAvatar
    An avatar link to a resource related to this object. See Avatar Below.
    avatar RepositoryLinkAvatar
    An avatar link to a resource related to this object. See Avatar Below.
    avatar RepositoryLinkAvatar
    An avatar link to a resource related to this object. See Avatar Below.
    avatar RepositoryLinkAvatar
    An avatar link to a resource related to this object. See Avatar Below.
    avatar Property Map
    An avatar link to a resource related to this object. See Avatar Below.

    RepositoryLinkAvatar, RepositoryLinkAvatarArgs

    Href string
    href of the avatar.
    Href string
    href of the avatar.
    href String
    href of the avatar.
    href string
    href of the avatar.
    href str
    href of the avatar.
    href String
    href of the avatar.

    Import

    Repositories can be imported using their owner/name ID, e.g.

    $ pulumi import bitbucket:index/repository:Repository my-repo my-account/my-repo
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bitbucket drfaust92/terraform-provider-bitbucket
    License
    Notes
    This Pulumi package is based on the bitbucket Terraform Provider.
    bitbucket logo
    bitbucket 2.46.0 published on Monday, Apr 14, 2025 by drfaust92