기능 플래그 사용자 목록 API

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

GitLab 기능 플래그 사용자 목록에 액세스하는 API입니다.

최소한 개발자 역할을 가진 사용자만이 기능 플래그 사용자 목록 API에 액세스할 수 있습니다.

note
GET 요청은 페이지별로 20개의 결과를 반환합니다. 이 값은 페이지별로 변경할 수 있습니다.

프로젝트의 모든 기능 플래그 사용자 목록 나열

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

GET /projects/:id/feature_flags_user_lists
속성 유형 필수 설명
id 정수/문자열 프로젝트의 ID 또는 URL-encoded path.
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 integer/string 프로젝트의 ID 또는 URL 인코딩된 경로.
name string 목록의 이름.
user_xids string 외부 사용자 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-encoded path.
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 정수/문자열 프로젝트의 ID 또는 URL-encoded된 경로.
iid 정수/문자열 프로젝트의 기능 플래그 사용자 목록의 내부 ID.
name 문자열 아니요 목록의 이름.
user_xids 문자열 아니요 외부 사용자 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 정수/문자열 프로젝트의 ID 또는 URL-인코딩된 경로.
iid 정수/문자열 프로젝트의 특징 플래그 사용자 목록의 내부 ID
curl --header "PRIVATE-TOKEN: <your_access_token>" --request DELETE "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists/1"