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

GET Bamboo project level variables via API

Toby.Matherly December 6, 2022

According to this documentation there is an endpoint to GET project variables:

https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-project-projectkey-variables-get

 

But according to this documentation only POST is avaiable?
https://docs.atlassian.com/atlassian-bamboo/REST/8.0.4/#d2e271

 

I'm getting a 403 but able to hit other endpoints on the project like repositories.  Any ideas on what my issue is or if GET is even supported for this endpoint?

1 answer

1 accepted

1 vote
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2022

Hello @Toby_Matherly

The /project/<project_name>/variables endpoint was introduced in Bamboo 8.1  and supports GET normally:

# curl -s -u admin:admin --request GET \
--url 'https://bamboo819.mydomain.net/rest/api/latest/project/ABC/variables' \
-X GET \
--header 'Accept: application/json' | jq
[
{
"name": "Foo123",
"value": "123"
}
]

The Bamboo RESPI API documentation found on developer.atlassian.com will always revert to the latest API version. For specific versions, check docs.atlassian.com. The latter can be deprecated at any time.

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

 

--please don't forget to Accept the answer if the reply is helpful-- 

Toby.Matherly December 7, 2022

Thank you @Eduardo Alvarenga !  This is very helpful.  We are currently on 8.04 so that explains why the GET endpoint is still not available.

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events