How to get deployment environments variables?

Rafael Chebel October 3, 2019

Hi!

I would like to extract deployment environment variables through the Rest API, but I can't find a route to do that, just a url to list environments, like this:

/repositories/{workspace}/{repo_slug}/environments/

I need to list all variables by environment, how can I do?

Thanks.

3 answers

2 accepted

0 votes
Answer accepted
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2019

@Rafael Chebel we've released these to the public API now: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/deployments_config/environments/%7Benvironment_uuid%7D/variables

Our internal endpoints do not have a deprecation policy. So please move to the official API when possible.

Thanks,

Phil

Rafael Chebel November 12, 2019

Thanks!

0 votes
Answer accepted
Rafael Chebel October 8, 2019
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 13, 2019

Hi @Rafael Chebel,

This is currently using undocumented internal API, feel free to use it but be aware that it ma change.

Thanks,
Peter

Rafael Chebel October 14, 2019

Do you know if there is a estimate for release?

Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 14, 2019

Hi @Rafael Chebel, unfortunately we don't have estimates for this.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events