User Tools

Site Tools


wiki:atlassian_server_rest_api_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:atlassian_server_rest_api_examples [2020/11/28 14:23] – external edit 127.0.0.1wiki:atlassian_server_rest_api_examples [2020/12/14 10:10] (current) – add see also links antisa
Line 1: Line 1:
 +{{tag>atlassian bamboo api}}
 +====== Atlassian Bamboo API ======
 +
 Example for Atlassian Bamboo, running on port 8085. Example for Atlassian Bamboo, running on port 8085.
  
-== Get list of all plans ==+===== Get list of all plans ===== 
  curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/plan | jq  curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/plan | jq
  
-== Get plan info ==+===== Get plan info ===== 
  curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/plan/PLAN | jq  curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/plan/PLAN | jq
  
-== Get list of all branches inside of plan ==+===== Get list of all branches inside of plan ===== 
  curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/plan/PLAN/branch | jq  curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/plan/PLAN/branch | jq
  
-== Get server status == +===== Get server status =====
- curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/server | jq +
  
 + curl -s -H "Content-Type:application/json" -H "Accept:application/json" -u user:pass -X GET http://localhost:8085/rest/api/latest/server | jq
  
-== See also == 
  
  
-== References ==+====== See also ====== 
 +  * [[wiki:bitbucket_cloud_api_steps|Bitbucket Cloud API steps]] 
 +  * [[wiki:bitbucket_server_api_steps|Bitbucket Server API steps]] 
 +====== References ======
  
-https://docs.atlassian.com/atlassian-bamboo/REST/6.10.3+https://docs.atlassian.com/atlassian-bamboo/REST/6.10.3
wiki/atlassian_server_rest_api_examples.1606569795.txt.gz · Last modified: 2020/11/28 14:23 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki