Debian 그룹 배포 API

Tier: Free, Premium, Ultimate Offering: Self-Managed

이것은 Debian 그룹 배포 API에 대한 참조 문서입니다. 이 API는 기본적으로 비활성화된 피처 플래그 뒤에 있습니다. 이 API를 사용하려면 이를 활성화해야 합니다.

caution
이 API는 개발 중이며 프로덕션 환경에서 사용할 목적으로는 아닙니다.

Debian 패키지 사용에 대한 자세한 내용은 Debian 패키지 레지스트리 문서를 참조하세요.

Debian 그룹 API 활성화

Debian 그룹 리포지터리 지원은 여전히 진행 중인 작업입니다. 이것은 기본적으로 비활성화된 피처 플래그로 보호되어 있습니다. GitLab 관리자는 GitLab Rails 콘솔에 액세스할 수 있고 활성화할 수 있습니다. 활성화하려면 Debian 그룹 API를 활성화하는 지침을 따르세요.

Debian 배포 API 인증

Debian 배포 API 인증을 참조하세요.

그룹 내 모든 Debian 배포 디렉터리

지정된 그룹에서 Debian 배포를 나열합니다.

GET /groups/:id/-/debian_distributions
속성 유형 필수 설명
id integer/string yes 그룹의 ID 또는 URL-인코딩된 경로.
codename string no 특정 codename으로 필터링합니다.
suite string no 특정 suite로 필터링합니다.
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/-/debian_distributions"

예시 응답:

[
  {
    "id": 1,
    "codename": "sid",
    "suite": null,
    "origin": null,
    "label": null,
    "version": null,
    "description": null,
    "valid_time_duration_seconds": null,
    "components": [
      "main"
    ],
    "architectures": [
      "all",
      "amd64"
    ]
  }
]

단일 Debian 그룹 배포

단일 Debian 그룹 배포를 가져옵니다.

GET /groups/:id/-/debian_distributions/:codename
속성 유형 필수 설명
id integer/string yes 인증된 사용자가 소유한 그룹의 ID 또는 URL-인코딩된 경로.
codename string yes 배포의 codename입니다.
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/-/debian_distributions/unstable"

예시 응답:

{
  "id": 1,
  "codename": "sid",
  "suite": null,
  "origin": null,
  "label": null,
  "version": null,
  "description": null,
  "valid_time_duration_seconds": null,
  "components": [
    "main"
  ],
  "architectures": [
    "all",
    "amd64"
  ]
}

단일 Debian 그룹 배포 키

단일 Debian 그룹 배포 키를 가져옵니다.

GET /groups/:id/-/debian_distributions/:codename/key.asc
속성 유형 필수 설명
id integer/string yes 인증된 사용자가 소유한 그룹의 ID 또는 URL-인코딩된 경로.
codename string yes 배포의 codename입니다.
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/-/debian_distributions/unstable/key.asc"

예시 응답:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Alice's OpenPGP certificate
Comment: https://www.ietf.org/id/draft-bre-openpgp-samples-01.html

mDMEXEcE6RYJKwYBBAHaRw8BAQdArjWwk3FAqyiFbFBKT4TzXcVBqPTB3gmzlC/U
b7O1u120JkFsaWNlIExvdmVsYWNlIDxhbGljZUBvcGVucGdwLmV4YW1wbGU+iJAE
ExYIADgCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTrhbtfozp14V6UTmPy
MVUMT0fjjgUCXaWfOgAKCRDyMVUMT0fjjukrAPoDnHBSogOmsHOsd9qGsiZpgRnO
dypvbm+QtXZqth9rvwD9HcDC0tC+PHAsO7OTh1S1TC9RiJsvawAfCPaQZoed8gK4
OARcRwTpEgorBgEEAZdVAQUBAQdAQv8GIa2rSTzgqbXCpDDYMiKRVitCsy203x3s
E9+eviIDAQgHiHgEGBYIACAWIQTrhbtfozp14V6UTmPyMVUMT0fjjgUCXEcE6QIb
DAAKCRDyMVUMT0fjjlnQAQDFHUs6TIcxrNTtEZFjUFm1M0PJ1Dng/cDW4xN80fsn
0QEA22Kr7VkCjeAEC08VSTeV+QFsmz55/lntWkwYWhmvOgE=
=iIGO
-----END PGP PUBLIC KEY BLOCK-----

Debian 그룹 배포 생성

Debian 그룹 배포를 생성합니다.

POST /groups/:id/-/debian_distributions
속성 유형 필수 설명
id integer/string yes 인증된 사용자가 소유한 그룹의 ID 또는 URL-인코딩된 경로.
codename string yes Debian 배포의 codename입니다.
suite string no 새 Debian 배포의 suite입니다.
origin string no 새 Debian 배포의 origin입니다.
label string no 새 Debian 배포의 label입니다.
version string no 새 Debian 배포의 version입니다.
description string no 새 Debian 배포의 description입니다.
valid_time_duration_seconds integer no 새 Debian 배포의 유효 시간 기간(초)입니다.
components string array no 새 Debian 배포의 컴포넌트 디렉터리입니다.
architectures string array no 새 Debian 배포의 아키텍처 디렉터리입니다.
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/-/debian_distributions?codename=sid"

예시 응답:

{
  "id": 1,
  "codename": "sid",
  "suite": null,
  "origin": null,
  "label": null,
  "version": null,
  "description": null,
  "valid_time_duration_seconds": null,
  "components": [
    "main"
  ],
  "architectures": [
    "all",
    "amd64"
  ]
}

Debian 그룹 배포 업데이트

Debian 그룹 배포를 업데이트합니다.

PUT /groups/:id/-/debian_distributions/:codename
속성 유형 필수 설명
id integer/string yes 인증된 사용자가 소유한 그룹의 ID 또는 URL로 인코딩된 경로
codename string yes Debian 배포의 새로운 코드명
suite string no Debian 배포의 새로운 suite
origin string no Debian 배포의 새로운 origin
label string no Debian 배포의 새로운 label
version string no Debian 배포의 새로운 버전
description string no Debian 배포의 새로운 설명
valid_time_duration_seconds integer no Debian 배포의 새로운 유효 시간 지속 기간 (초 단위)
components string 배열 no Debian 배포의 새로운 컴포넌트 디렉터리
architectures string 배열 no Debian 배포의 새로운 아키텍처 디렉터리
curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/-/debian_distributions/unstable?suite=new-suite&valid_time_duration_seconds=604800"

예시 응답:

{
  "id": 1,
  "codename": "sid",
  "suite": "new-suite",
  "origin": null,
  "label": null,
  "version": null,
  "description": null,
  "valid_time_duration_seconds": 604800,
  "components": [
    "main"
  ],
  "architectures": [
    "all",
    "amd64"
  ]
}

Debian 그룹 배포 삭제

Debian 그룹 배포를 삭제합니다.

DELETE /groups/:id/-/debian_distributions/:codename
Attribute Type Required Description
id integer/string yes 인증된 사용자가 소유한 그룹의 ID 또는 URL로 인코딩된 경로
codename string yes Debian 배포의 코드명
curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/-/debian_distributions/unstable"