1

I want to check if a specific namespace has a premium or above plan usint the GitLab Namespace API. However I am not sure what values I should consider as premium or above as the list of possible values are not listed.

From the doc, I can see only "default", "gold", "silver" and I am not sure what it represents.

Martin Faucheux
  • 884
  • 9
  • 26

1 Answers1

1

The naming has changed over time. The possible values also depend on whether you are using self-hosted GitLab or cloud-hosted on gitlab.com

You can find the various plan codes described in the GitLab source code here.

So, today, the possible values are:

      FREE = 'free'
      BRONZE = 'bronze'
      SILVER = 'silver'
      PREMIUM = 'premium'
      GOLD = 'gold'
      ULTIMATE = 'ultimate'
      ULTIMATE_TRIAL = 'ultimate_trial'
      PREMIUM_TRIAL = 'premium_trial'
      OPEN_SOURCE = 'opensource'

For the most part, silver == premium and gold == ultimate. open source is considered an ultimate level entitlement.

sytech
  • 29,298
  • 3
  • 45
  • 86