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 @[deleted]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.