InfoGrab DocsInfoGrab Docs

멤버 역할 API

GitLab.com 그룹 또는 GitLab Self-Managed 인스턴스의 커스텀 역할을 관리하는 멤버 역할 API 사용법. 커스텀 멤버 역할을 프로그래밍 방식으로 나열, 생성 및 삭제합니다.

이 API를 사용하여 GitLab.com 그룹 또는 GitLab Self-Managed 인스턴스 전체의 멤버 역할과 상호작용합니다. 인스턴스 멤버 역할 관리 # 사전 조건: 관리자로 인증 해야 합니다. 모든 인스턴스 멤버 역할 조회 # 인스턴스의 모든 멤버 역할을 조회합니다. GET /member_roles 요청 예시: curl --request GET \ --header "Authorization: Bearer <your_access_token>" \ --url "https://gitlab.example.com/api/v4/member_roles" 응답 예시: [ { "id" : 2 , "name" : "Instance custom role" , "description" : "Custom guest that can read code" , "group_id" : null , "base_access_level" : 10 , "admin_cicd_variables" : false , "admin_compliance_framework" : false , "admin_group_member" : false , "admin_merge_request" : false , "admin_push_rules" : false , "admin_terraform_state" : false , "admin_vulnerability" : false , "admin_web_hook" : false , "archive_project" : false , "manage_deploy_tokens" : false , "manage_group_access_tokens" : false , "manage_merge_request_settings" : false , "manage_project_access_tokens" : false , "manage_security_policy_link" : false , "read_code" : true , "read_runners" : false , "read_dependency" : false , "read_vulnerability" : false , "remove_group" : false , "remove_project" : false } ] 인스턴스 멤버 역할 생성 # 인스턴스 전체 멤버 역할을 생성합니다. POST /member_roles 지원되는 속성: 속성 유형 필수 설명 name 문자열 예 멤버 역할의 이름. description 문자열 아니요 멤버 역할의 설명. base_access_level 정수 예 설정된 역할의 기본 액세스 수준. 유효한 값: 10 (Guest), 15 (Planner), 20 (Reporter), 25 (Security Manager), 30 (Developer), 40 (Maintainer), 50 (Owner). admin_cicd_variables 불리언 아니요 CI/CD 변수를 생성, 읽기, 업데이트 및 삭제하는 권한. admin_compliance_framework 불리언 아니요 컴플라