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

Is it guaranteed that UUIDs assigned to bitbucket resources are not reused even after the resources are removed?

Shinya Kawaguchi Oct 21, 2015

As mentioned in the documentation below, UUIDs are assigned to some kinds of Bitbucket resources, such as users, teams, and repositories.
https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html#UsetheBitbucketCloudRESTAPIs-uuid-mainUniversallyUniqueIdentifier%28UUID%29

I'd like to know if UUIDs assigned to resources are not reused even after the resources are removed just in case.

FYI, in the case of GitHub, each resource has a numeric ID and it is never reused after the resource is removed.
So I am expecting Bitbucket to do the same.

Thanks in advance.

1 answer

1 accepted

2 votes
Answer accepted
Abhin Chhabra Oct 21, 2015

Hi @Shinya Kawaguchi,

Yes, Bitbucket Cloud's UUIDs are unique and will not be recycled. You can safely assume that a UUID for a repo is unique to it even though repos get deleted.

P.S. Technically, there is a exceedingly small possibility of a UUID showing up again, but the odds are so minuscule that you can safely ignore that possibility. Bitbucket Cloud uses Version 4 UUIDs, which according to this wikipedia calculation is many order of magnitudes less likely to collide than the chances of a person getting hit by a meteorite in a given year. To quote from that section "...only after generating 1 billion UUIDs every second for the next 100 years, the probability of creating just one duplicate would be about 50%."

Shinya Kawaguchi Oct 21, 2015

Thanks a lot @Abhin Chhabra for your prompt response. I was able to have much confidence in my implementation.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,801 views 1 19
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