git 创建group_gitlab通过api创建组、项目、成员

本文档介绍了如何通过GitLab的API创建组、子组、项目以及用户。首先,需要获取admin用户的private_token。然后,利用Groups API创建组,如shanxi和其子组taiyuan。接着,使用User API添加用户,最后通过Projects API在指定组下创建项目,例如在shanxi组下创建majiang项目。
摘要由CSDN通过智能技术生成

前戏

获取gitlab中admin用户的private_token

Groups API

获取某个组的详细

curl --header "PRIVATE-TOKEN: *********" http://192.168.10.7:8090/api/v4/groups/client   #获取client组的详细信息

client组的详细信息

添加一个组

POST /groups

Parameters:

name (required) - The name of the group #必须

path (required) - The path of the group  #必须

description (optional) - The group's description

membership_lock (optional, boolean) - Prevent adding new members to project membership within this group

share_with_group_lock (optional, boolean) - Prevent sharing a project with another group within this group

visibility (optional) - The group's visibility. Can be private, internal, or public.

lfs_enabled (optional) - Enable/disable Large File Storage (LFS) for the projects in this group

request_access_enabled (o

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值