git.repositories.get-mirror-statusA mirror's last day (syncs, failures, lag), recent syncs and failures
Request syntax
GET /git/api/repositories/{repoId}/mirrorPath parameters
repoIdRequiredstring
Constraints: uuid
Response
200 with `mirror` (its settings), `last24h` (syncs, failed, refsChanged, lagP50Seconds, lagP95Seconds), `syncs` (the last 50) and `failures` (the last 20). 409 for a repository that is not a mirror.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Fields of data
mirrorAlwaysobject
How the mirror follows its sourcemirror.providerAlwaysone of github, gitlab, git
Where it comes from: GitHub, GitLab, or any git URLmirror.sourceUrlAlwaysstring
The source followed, without credentialsmirror.intervalMinutesAlwaysnumber
Minutes between full fetchesmirror.lastSyncedAtAlwaysstring, may be null
When the last sync finished (ISO 8601); null before the firstmirror.lastErrorAlwaysstring, may be null
Why the last sync failed; null when it did notmirror.pullsUpdatedThroughWhen presentstring
Pull requests changed on the source up to this time (ISO 8601) are inmirror.pullsUpdatedAtCorrectedAtWhen presentstring
When the imported pull requests' update times were taken from the sourcemirror.mergeMethodsReadAtWhen presentstring
When the source's merge methods were last applied here (ISO 8601)mirror.continuousWhen presentboolean
The source is checked every minute and fetched as soon as a ref movedmirror.shadowCiWhen presentobject
Running the source's workflows here to compare; absent when never setmirror.shadowCi.enabledAlwaysboolean
Shadow CI runs on mirrored pushesmirror.shadowCi.branchesAlwaysarray of string
Branch patterns it runs for; the default branch when emptymirror.hasTokenAlwaysboolean
A token for the source is kept (it is never shown)last24hAlwaysobject
The last day in numberslast24h.syncsAlwaysnumber
Syncs that fetched in the last 24 hourslast24h.failedAlwaysnumber
Of those, failedlast24h.refsChangedAlwaysnumber
Refs they changed in alllast24h.lagP50SecondsAlwaysnumber, may be null
Median lag in seconds; null when no branch movedlast24h.lagP95SecondsAlwaysnumber, may be null
95th percentile lag in seconds; null when no branch movedsyncsAlwaysarray of object
The last 50 syncs, newest firstsyncs[].idAlwaysstring
The sync idsyncs[].orgIdAlwaysstring
The organizationsyncs[].repoIdAlwaysstring
The mirror repositorysyncs[].triggerAlwaysone of poll, interval, manual
What started it: the minute poll saw a change, the interval, or a personsyncs[].outcomeAlwaysone of succeeded, failed
How it endedsyncs[].errorAlwaysstring, may be null
Why it failed; null when it succeededsyncs[].changesAlwaysarray of object
Refs that moved, appeared or went (at most 200)syncs[].changes[].refAlwaysstring
The full ref name, e.g. refs/heads/mainsyncs[].changes[].oldOidAlwaysstring, may be null
The commit it pointed at before; null if newsyncs[].changes[].newOidAlwaysstring, may be null
The commit it points at now; null if deletedsyncs[].changedCountAlwaysnumber
How many refs changedsyncs[].lagSecondsAlwaysnumber, may be null
Seconds from the newest moved branch tip's commit to its arrival here, at most; null when no branch movedsyncs[].startedAtAlwaysstring
When it started (ISO 8601)syncs[].finishedAtAlwaysstring
When it finished (ISO 8601)failuresAlwaysarray of object
The last 20 failed syncs, newest firstfailures[].idAlwaysstring
The sync idfailures[].orgIdAlwaysstring
The organizationfailures[].repoIdAlwaysstring
The mirror repositoryfailures[].triggerAlwaysone of poll, interval, manual
What started it: the minute poll saw a change, the interval, or a personfailures[].outcomeAlwaysone of succeeded, failed
How it endedfailures[].errorAlwaysstring, may be null
Why it failed; null when it succeededfailures[].changesAlwaysarray of object
Refs that moved, appeared or went (at most 200)failures[].changes[].refAlwaysstring
The full ref name, e.g. refs/heads/mainfailures[].changes[].oldOidAlwaysstring, may be null
The commit it pointed at before; null if newfailures[].changes[].newOidAlwaysstring, may be null
The commit it points at now; null if deletedfailures[].changedCountAlwaysnumber
How many refs changedfailures[].lagSecondsAlwaysnumber, may be null
Seconds from the newest moved branch tip's commit to its arrival here, at most; null when no branch movedfailures[].startedAtAlwaysstring
When it started (ISO 8601)failures[].finishedAtAlwaysstring
When it finished (ISO 8601)
Checked against the handlers: every route test validates their answers against this schema.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow git:GetRepository on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud git repositories get-mirror-status repoIdcurl -X GET "https://console.platform-development.deutschecloud.app/git/api/repositories/repoId/mirror" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_git_repositories_get-mirror-status.