When I request environments via the API I only get the UUIDs, not the names.
It has worked before, might something been changed?
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
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.