Get all deployments of the project
GET
/v3/projects/{id}/deploymentsThis feature was introduced in GitLab 8.11.
请求参数
Path 参数
id
string
必需
The project ID
Query 参数
page
integer <int32>
可选
Current page number
per_page
integer <int32>
可选
Number of items per page
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Get all deployments of the project
数据结构
This feature was introduced in GitLab 8.11.
id
string
可选
iid
string
可选
ref
string
可选
sha
string
可选
created_at
string
可选
user
object (UserBasic)
可选
Get a single user
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
environment
object (EnvironmentBasic)
可选
id
string
可选
name
string
可选
slug
string
可选
external_url
string
可选
deployable
object (Build)
可选
This feature was added in GitLab 8.11
id
string
可选
status
string
可选
stage
string
可选
name
string
可选
ref
string
可选
tag
string
可选
coverage
string
可选
created_at
string
可选
started_at
string
可选
finished_at
string
可选
user
object (User)
可选
artifacts_file
object (BuildArtifactFile)
可选
commit
object (RepoCommit)
可选
Get the commits of a merge request
runner
object (Runner)
可选
Remove a runner
pipeline
object (PipelineBasic)
可选
示例
{
"id": "string",
"iid": "string",
"ref": "string",
"sha": "string",
"created_at": "string",
"user": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string"
},
"environment": {
"id": "string",
"name": "string",
"slug": "string",
"external_url": "string"
},
"deployable": {
"id": "string",
"status": "string",
"stage": "string",
"name": "string",
"ref": "string",
"tag": "string",
"coverage": "string",
"created_at": "string",
"started_at": "string",
"finished_at": "string",
"user": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string",
"created_at": "string",
"is_admin": "string",
"bio": "string",
"location": "string",
"skype": "string",
"linkedin": "string",
"twitter": "string",
"website_url": "string",
"organization": "string"
},
"artifacts_file": {
"filename": "string",
"size": "string"
},
"commit": {
"id": "string",
"short_id": "string",
"title": "string",
"author_name": "string",
"author_email": "string",
"created_at": "string",
"committer_name": "string",
"committer_email": "string",
"message": "string"
},
"runner": {
"id": "string",
"description": "string",
"active": "string",
"is_shared": "string",
"name": "string"
},
"pipeline": {
"id": "string",
"sha": "string",
"ref": "string",
"status": "string"
}
}
}
最后修改时间: 1 个月前