GitLab API
application/settings
Get the current application settings
GET
Modify application settings
PUT
dockerfiles
Get the list of the available template
GET
Get the text for a specific template present in local filesystem
GET
gitignores
Get the list of the available template
GET
Get the text for a specific template present in local filesystem
GET
gitlab ci ymls
Get the list of the available template
GET
Get the text for a specific template present in local filesystem
GET
groups
{id}
Get a groups list
GET
Create a group. Available only for users who can create groups.
POST
Get list of owned groups for authenticated user
GET
hooks
{id}
Get the list of system hooks
GET
Create a new system hook
POST
internal
post V3Internal Allowed
POST
get V3Internal Broadcast Message
GET
get V3Internal Check
GET
get V3Internal Discover
GET
post V3Internal Lfs Authenticate
POST
get V3Internal Merge Request Urls
GET
post V3Internal Two Factor Recovery Codes
POST
licenses
Get the list of the available license template
GET
Get the text for a specific license
GET
notification settings
Get global notification level settings and email, defaults to Participate
GET
Update global notification level settings and email, defaults to Participate
PUT
projects
{id}
Get a projects list for authenticated user
GET
Create new project
POST
Get all projects for admin user
GET
Fork new project for the current user or provided namespace.
POST
Get an owned projects list for authenticated user
GET
Search for projects the current user has access to
GET
Gets starred project for the authenticated user
GET
Create new project for a specified user. Only available to admin users.
POST
Get a list of visible projects for authenticated user
GET
runners
{id}
Get runners available for user
GET
Get all runners - shared and specific
GET
sidekiq
Get the Sidekiq Compound metrics. Includes queue, process, and job statistics
GET
Get the Sidekiq job statistics
GET
Get the Sidekiq process metrics
GET
Get the Sidekiq queue metrics
GET
snippets
{id}
Get a snippets list for authenticated user
GET
Create new snippet
POST
List all public snippets current_user has access to
GET
templates
dockerfiles
gitignores
gitlab ci ymls
licenses
todos
Mark all todos as done
DELETE
Get a todo list
GET
Mark a todo as done
DELETE
user
emails
keys
Get the currently authenticated user
GET
users
{id}
Get the list of users
GET
Create a user. Available only for admins.
POST
Validation of .gitlab-ci.yml content
POST
get V3Deploy Keys
GET
Get currently authenticated user's issues
GET
Get single ssh key by id. Only available to admin users
GET
Get a namespaces list
GET
Login to get token
POST
Get the version information of the GitLab instance.
GET
Modify application settings开发中
PUT{{baseUrl}}/v3/application/settings
创建时间: 2025-05-28 14:50
请求参数
Header 参数
参数名示例值是否必填参数类型描述说明
Content-Typeapplication/x-www-form-urlencodedstring-
Body 参数
参数名示例值是否必填参数类型描述说明
domain_blacklist<string>stringUsers with e-mail addresses that match these domain(s) will NOT be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com
two_factor_grace_period<integer>stringAmount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication
shared_runners_text<string>stringShared runners text
metrics_host<string>stringThe InfluxDB host
metrics_port<integer>stringThe UDP port to use for connecting to InfluxDB
metrics_pool_size<integer>stringThe amount of InfluxDB connections to open
metrics_timeout<integer>stringThe amount of seconds after which an InfluxDB connection will time out
metrics_method_call_threshold<integer>stringA method call is only tracked when it takes longer to complete than the given amount of milliseconds.
metrics_sample_interval<integer>stringThe sampling interval in seconds
metrics_packet_size<integer>stringThe amount of points to store in a single UDP packet
sidekiq_throttling_queus["<string>","<string>"]stringChoose which queues you wish to throttle
sidekiq_throttling_factor<float>stringThe factor by which the queues should be throttled. A value between 0.0 and 1.0, exclusive.
recaptcha_site_key<string>stringGenerate site key at http://www.google.com/recaptcha
recaptcha_private_key<string>stringGenerate private key at http://www.google.com/recaptcha
akismet_api_key<string>stringGenerate API key at http://www.akismet.com
sentry_dsn<string>stringSentry Data Source Name
koding_url<string>stringThe Koding team URL
plantuml_url<string>stringThe PlantUML server URL
housekeeping_bitmaps_enabled<boolean>stringCreating pack file bitmaps makes housekeeping take a little longer but bitmaps should accelerate 'git clone' performance.
housekeeping_incremental_repack_period<integer>stringNumber of Git pushes after which an incremental 'git repack' is run.
housekeeping_full_repack_period<integer>stringNumber of Git pushes after which a full 'git repack' is run.
housekeeping_gc_period<integer>stringNumber of Git pushes after which 'git gc' is run.
default_branch_protection<integer>stringDetermine if developers can push to master (This can only be one of 0,1,2)
default_project_visibility<integer>stringThe default project visibility (This can only be one of 0,10,20)
default_snippet_visibility<integer>stringThe default snippet visibility (This can only be one of 0,10,20)
default_group_visibility<integer>stringThe default group visibility (This can only be one of 0,10,20)
restricted_visibility_levels["<string>","<string>"]stringSelected levels cannot be used by non-admin users for projects or snippets. If the public level is restricted, user profiles are only visible to logged in users.
import_sourcesfogbugzstringEnabled sources for code import during project creation. OmniAuth must be configured for GitHub, Bitbucket, and GitLab.com (This can only be one of github,bitbucket,gitlab,google_code,fogbugz,git,gitlab_project)
disabled_oauth_sign_in_sources["<string>","<string>"]stringDisable certain OAuth sign-in sources
enabled_git_access_protocol<string>stringAllow only the selected protocols to be used for Git access. (This can only be one of ssh,http,nil)
gravatar_enabled<boolean>stringFlag indicating if the Gravatar service is enabled
default_projects_limit<integer>stringThe maximum number of personal projects
max_attachment_size<integer>stringMaximum attachment size in MB
session_expire_delay<integer>stringSession duration in minutes. GitLab restart is required to apply changes.
user_oauth_applications<boolean>stringAllow users to register any application to use GitLab as an OAuth provider
user_default_external<boolean>stringNewly registered users will by default be external
signup_enabled<boolean>stringFlag indicating if sign up is enabled
send_user_confirmation_email<boolean>stringSend confirmation email on sign-up
domain_whitelist<string>stringONLY users with e-mail addresses that match these domain(s) will be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com
domain_blacklist_enabled<boolean>stringEnable domain blacklist for sign ups
after_sign_up_text<string>stringText shown after sign up
signin_enabled<boolean>stringFlag indicating if sign in is enabled
require_two_factor_authentication<boolean>stringRequire all users to setup Two-factor authentication
home_page_url<string>stringWe will redirect non-logged in users to this page
after_sign_out_path<string>stringWe will redirect users to this page after they sign out
sign_in_text<string>stringThe sign in text of the GitLab application
help_page_text<string>stringCustom text displayed on the help page
shared_runners_enabled<boolean>stringEnable shared runners for new projects
max_artifacts_size<integer>stringSet the maximum file size each build's artifacts can have
container_registry_token_expire_delay<integer>stringAuthorization token duration (minutes)
metrics_enabled<boolean>stringEnable the InfluxDB metrics
sidekiq_throttling_enabled<boolean>stringEnable Sidekiq Job Throttling
recaptcha_enabled<boolean>stringHelps prevent bots from creating accounts
akismet_enabled<boolean>stringHelps prevent bots from creating issues
admin_notification_email<string>stringAbuse reports will be sent to this address if it is set. Abuse reports are always available in the admin area.
sentry_enabled<boolean>stringSentry is an error reporting and logging tool which is currently not shipped with GitLab, get it here: https://getsentry.com
repository_storage<string>stringStorage paths for new projects
repository_checks_enabled<boolean>stringGitLab will periodically run 'git fsck' in all project and wiki repositories to look for silent disk corruption issues.
koding_enabled<boolean>stringEnable Koding
plantuml_enabled<boolean>stringEnable PlantUML
version_check_enabled<boolean>stringLet GitLab inform you when an update is available.
email_author_in_body<boolean>stringSome email servers do not support overriding the email sender name. Enable this option to include the name of the author of the issue, merge request or comment in the email body instead.
html_emails_enabled<boolean>stringBy default GitLab sends emails in HTML and plain text formats so mail clients can choose what format to use. Disable this option if you only want to send emails in plain text format.
housekeeping_enabled<boolean>stringEnable automatic repository housekeeping (git repack, git gc)
响应示例
成功
HTTP状态码:200
内容格式:JSON
数据结构
未定义
响应示例
{}
最后更新: -