'GitLab API Namespace plan options
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.
Solution 1:[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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | sytech |
