You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi All,
I'm trying to get the list of variables available on our Deployments Environments Variable. unfortunately, The newly created variable and its value does not show up. other existing variable are all showing on the output.
Also tried to update the existing one and test if I could get the updated value and it works fine.
Here's the api endpoint im using :
There's no issue on uuid, were getting it fine. Is there something should be done before the variable get registered on the API of BB?
Hi Patrick,
I've just tested this on my end and was able to view my own deployment variables for my deployment environment regardless of whether or not they were secured or not. The variable registers instantly and will show on this endpoint.
If there is a large number of variables you may need to check subsequent results pages of that endpoint:
/2.0/repositories/{workspaceID}/{reposlug}/deployments_config/environments/{uuid}/variables?page=2
I would also suggest making sure the UUID is correct, you can view a list of environments and their associated UUID values with the following endpoint:
/2.0/repositories/{workspaceID}/{reposlug}/environments/
Cheers!
- Ben (Bitbucket Cloud Support)
?page=2
this was the only missing piece I needed. I can now get the correct data needed. thanks @ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.