Skip to content

Retrieve project pull mirror details

GET
/api/v4/projects/{id}/mirror/pull

Retrieves pull mirror details for a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project

OK

Media type application/json
object
id
integer format: int64
update_status
string
url
string
last_error
string
last_update_at
string format: date-time
last_update_started_at
string format: date-time
last_successful_update_at
string format: date-time
enabled
boolean
mirror_trigger_builds
boolean
only_mirror_protected_branches
boolean
mirror_overwrites_diverged_branches
boolean
mirror_branch_regex
string
Example
{
"id": 101486,
"update_status": "finished",
"url": "https://*****:*****@gitlab.com/gitlab-org/security/gitlab.git",
"last_update_at": "2020-01-06T17:32:02.823Z",
"last_update_started_at": "2020-01-06T17:32:02.823Z",
"last_successful_update_at": "2020-01-06T17:32:02.823Z",
"enabled": false,
"mirror_trigger_builds": false,
"only_mirror_protected_branches": false,
"mirror_overwrites_diverged_branches": false,
"mirror_branch_regex": "branch_name"
}

The project is not mirrored

Not Found