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

How to create project in bit bucket using REST API or ansible playbook?

Shubham Gupta May 3, 2021

 

I was trying to find documents to guide me to create project in bitbucket using Rest API or ansible playbook but i am unable to find such documents please help.

2 answers

0 votes
Paweł Smolarz September 14, 2021

Hi,

For Ansible please try use Ansible collection: https://galaxy.ansible.com/esp/bitbucket with modules for :

  • bitbucket_application_link
  • bitbucket_application_link_info
  • bitbucket_branch
  • bitbucket_branch_info
  • bitbucket_branch_permissions
  • bitbucket_branch_permissions_info
  • bitbucket_clone
  • bitbucket_copy
  • bitbucket_default_branch
  • bitbucket_directory_sync
  • bitbucket_find
  • bitbucket_project
  • bitbucket_project_info
  • bitbucket_project_permissions
  • bitbucket_project_permissions_info
  • bitbucket_project_reviewer
  • bitbucket_pull_request
  • bitbucket_pull_request_info
  • bitbucket_push
  • bitbucket_repo
  • bitbucket_repo_info
  • bitbucket_repo_permissions
  • bitbucket_repo_permissions_info
  • bitbucket_repo_reviewer
  • bitbucket_slurp
  • bitbucket_webhook

 

Regards,

Pawel

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 3, 2021

Hi Shubham,

Welcome to the Atlassian Community!

The REST API of Bitbucket Server is documented. The main page can be found here.

But here is a direct link to the POST endpoint for creating projects: https://docs.atlassian.com/bitbucket-server/rest/7.12.1/bitbucket-rest.html#idp147

With Ansible I can't help you

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events