Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Manage/Automate Bitbucket Repos "As Code" (IaC)

traiano July 27, 2023

I have a requirement to automate creation of Bitbucket repos using code and manage permissions and repo settings.

 

I have tested a terraform provider for bitbucket but it is frankly defective.: https://registry.terraform.io/providers/zahiar/bitbucket/latest/docs/resources/bitbucket_repository

 

Is there another tested approach for automating the management of BB repos along the same lines as the above terraform concept?

 

Thanks in advance!

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2023

Hi @traiano,

We offer API endpoints that you could use for this purpose.

This is the documentation of our API:

You can navigate from the left sidebar on the different endpoints.

We also provide temporary support for certain 1.0 endpoints, until we have an implementation in v. 2.0 of our API:

Please feel free to reach out if you have any questions!

Kind regards,
Theodora

traiano July 31, 2023

Thanks @Theodora Boudale  - regarding the users and groups endpoints: I see user and group management is available via the 1.0 API, however, how long will this functionality be available?

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 2, 2023

Hi @traiano,

It will be available until we have equivalent endpoints in v 2.0. I will reach out internally to find out if we have a rough estimate on when that will be, I will let you know as soon as I have an update.

Kind regards,
Theodora

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2023

Hi @traiano,

We haven't set the deprecation date for these endpoints so I don't have a date to share. However, we will give a few months notice when we do and we will communicate updates via a community article and also on this page:

Just a heads up, if you get an Atlassian Access subscription and you link your Bitbucket workspace in http://admin.atlassian.com/ from Products > ... > Link products, these endpoints will stop working (if you don't do this, you can continue to use these endpoints until we deprecate them).

This is mentioned in the second to last (at the moment) announcement of the page I shared:

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events