Help us learn about your current experience with the documentation. Take the survey.
Geo API
- Tier: Premium, Ultimate
- Offering: GitLab Self-Managed
- Status: Beta
Geo API 由 GitLab 组件内部使用,用于协助协调 Geo 操作。管理员(Admin)和用户无法访问此 API。
获取流水线引用
此方法返回与当前 Geo 节点上 gl_repository 的仓库中存在的、匹配 pipeline/refs/X 的分支列表。此端点由注册到次要 Geo 实例的 runner 使用,用于检查仓库是否为最新状态。
GET /geo/repositories/:gl_repository/pipeline_refs支持的属性:
| Attribute | Type | Required | Description |
|---|---|---|---|
gl_repository |
string | Yes | 要查询的仓库的 gl_repository ID |
如果成功,将返回 200 状态码以及以下响应属性:
| Attribute | Type | Description |
|---|---|---|
attribute |
‘array’ | 一个数组,包含为运行流水线而创建的匹配 refs/pipeline/X 的 ID。 |