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

Environments API not listing the names

Olof Larsson November 25, 2019

When I request environments via the API I only get the UUIDs, not the names.

It has worked before, might something been changed?

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/environments/#get

 

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2020

Hi Olof,

Is this still happening to you? I just tested this out and it seems to work fine for me: https://api.bitbucket.org/2.0/repositories/phodder/prod-test/environments/

{
category: {
name: "Production"
},
restrictions: {
admin_only: false,
type: "deployment_restrictions_configuration"
},
uuid: "{188497c7-12e0-43b0-929e-4fea70686a61}",
environment_lock_enabled: true,
lock: {
type: "deployment_environment_lock_open",
name: "OPEN",
lock_opener: {
type: "PIPELINES_DEPLOYMENT",
pipeline_uuid: "{40952c4f-1aed-45a5-9513-0d9c05f94c26}",
step_uuid: "{d2c0689a-947b-437e-bbc6-8c542ff77f0d}"
}
},
deployment_gate_enabled: false,
rank: 0,
hidden: false,
type: "deployment_environment",
slug: "production",
environment_type: {
type: "deployment_environment_type",
name: "Production",
rank: 2
},
name: "Production"
},

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events