It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get deployment environments variables?

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.

2 answers

2 accepted

Peter Plewa Atlassian Team Oct 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

Do you know if there is a estimate for release?

Peter Plewa Atlassian Team Oct 14, 2019

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

0 votes
Answer accepted

@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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,031 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you