Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,818
Community Members
 
Community Events
168
Community Groups

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

 

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

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 May 03, 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

Atlassian Community Events