기능 플래그 사용자 목록 API

Tier: Free, Premium, Ultimate Offering: GitLab.com, Self-managed, GitLab Dedicated

GitLab 기능 플래그 사용자 목록에 접근하기 위한 API입니다.

개발자 역할을 가진 사용자만 기능 플래그 사용자 목록 API에 접근할 수 있습니다.

note
GET 요청은 API 결과가 페이지 매김되어 있어 한 번에 20개의 결과를 반환합니다. 이 값을 변경할 수 있습니다.

프로젝트의 모든 기능 플래그 사용자 목록 가져오기

요청된 프로젝트에 대한 모든 기능 플래그 사용자 목록을 가져옵니다.

GET /projects/:id/feature_flags_user_lists  
속성 유형 필수 설명
id 정수/문자열 프로젝트의 ID 또는 URL 인코딩된 경로입니다.
search 문자열 아니요 검색 기준에 맞는 사용자 목록을 반환합니다.
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists"  

예시 응답:

[  
   {  
      "name": "user_list",  
      "user_xids": "user1,user2",  
      "id": 1,  
      "iid": 1,  
      "project_id": 1,  
      "created_at": "2020-02-04T08:13:51.423Z",  
      "updated_at": "2020-02-04T08:13:51.423Z"  
   },  
   {  
      "name": "test_users",  
      "user_xids": "user3,user4,user5",  
      "id": 2,  
      "iid": 2,  
      "project_id": 1,  
      "created_at": "2020-02-04T08:13:10.507Z",  
      "updated_at": "2020-02-04T08:13:10.507Z"  
   }  
]  

기능 플래그 사용자 목록 만들기

기능 플래그 사용자 목록을 만듭니다.

POST /projects/:id/feature_flags_user_lists  
속성 유형 필수 설명
id 정수/문자열 프로젝트의 ID 또는 URL 인코딩된 경로입니다.
name 문자열 목록의 이름입니다.
user_xids 문자열 외부 사용자 ID의 쉼표로 구분된 목록입니다.
curl "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists" \  
     --header "PRIVATE-TOKEN: <your_access_token>" \  
     --header "Content-type: application/json" \  
     --data @- << EOF  
{  
    "name": "my_user_list",  
    "user_xids": "user1,user2,user3"  
}  
EOF  

예시 응답:

{  
   "name": "my_user_list",  
   "user_xids": "user1,user2,user3",  
   "id": 1,  
   "iid": 1,  
   "project_id": 1,  
   "created_at": "2020-02-04T08:32:27.288Z",  
   "updated_at": "2020-02-04T08:32:27.288Z"  
}  

기능 플래그 사용자 목록 가져오기

기능 플래그 사용자 목록을 가져옵니다.

GET /projects/:id/feature_flags_user_lists/:iid
속성 유형 필수 설명
id integer/string 프로젝트의 ID 또는 URL 인코딩 경로.
iid integer/string 프로젝트의 기능 플래그 사용자 목록의 내부 ID입니다.
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists/1"

예제 응답:

{
   "name": "my_user_list",
   "user_xids": "123,456",
   "id": 1,
   "iid": 1,
   "project_id": 1,
   "created_at": "2020-02-04T08:13:10.507Z",
   "updated_at": "2020-02-04T08:13:10.507Z"
}

기능 플래그 사용자 목록 업데이트

기능 플래그 사용자 목록을 업데이트합니다.

PUT /projects/:id/feature_flags_user_lists/:iid
속성 유형 필수 설명
id integer/string 프로젝트의 ID 또는 URL 인코딩 경로.
iid integer/string 프로젝트의 기능 플래그 사용자 목록의 내부 ID입니다.
name string 아니오 목록의 이름입니다.
user_xids string 아니오 쉼표로 구분된 외부 사용자 ID 목록입니다.
curl "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists/1" \
     --header "PRIVATE-TOKEN: <your_access_token>" \
     --header "Content-type: application/json" \
     --request PUT \
     --data @- << EOF
{
    "user_xids": "user2,user3,user4"
}
EOF

예제 응답:

{
   "name": "my_user_list",
   "user_xids": "user2,user3,user4",
   "id": 1,
   "iid": 1,
   "project_id": 1,
   "created_at": "2020-02-04T08:32:27.288Z",
   "updated_at": "2020-02-05T09:33:17.179Z"
}

기능 플래그 사용자 목록 삭제

기능 플래그 사용자 목록을 삭제합니다.

DELETE /projects/:id/feature_flags_user_lists/:iid
속성 유형 필수 설명
id integer/string 프로젝트의 ID 또는 URL 인코딩 경로.
iid integer/string 프로젝트의 기능 플래그 사용자 목록의 내부 ID입니다.
curl --header "PRIVATE-TOKEN: <your_access_token>" --request DELETE "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists/1"