git.repositories.listList repositories
Request syntax
GET /git/api/repositoriesResponse
200 with every repository of the organization: id, name, description, visibility, defaultBranch, isEmpty, isArchived, cloneUrl, and the import, mirror and push mirror settings (a mirror's token only as `hasToken`).
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Fields of data
[].idAlwaysstring
The repository id[].orgIdAlwaysstring
The organization it belongs to[].nameAlwaysstring
Its name, unique in the organization and part of the clone URL[].descriptionAlwaysstring, may be null
One line about it; null when none[].homepageAlwaysstring, may be null
The About link; null when none[].topicsAlwaysarray of string
Its topics[].visibilityAlwaysone of private, internal, public
Who can see it[].defaultBranchAlwaysstring
The branch clones check out and pull requests target by default[].isEmptyAlwaysboolean
Nothing has been pushed yet[].isArchivedAlwaysboolean
Read-only: pushes, merges and edits are refused[].allowMergeCommitAlwaysboolean
Pull requests may merge with a merge commit[].allowSquashMergeAlwaysboolean
Pull requests may be squash-merged[].allowRebaseMergeAlwaysboolean
Pull requests may be rebase-merged[].deleteBranchOnMergeAlwaysboolean
A merged pull request's source branch is deleted[].sizeBytesAlwaysnumber
Stored size in bytes, what storage is billed on[].refsVersionAlwaysnumber
A counter that grows each time a branch or tag moves[].lastPushedAtAlwaysstring, may be null
When the last push landed (ISO 8601); null before the first[].importStateAlwaysobject, may be null
The import or fork copy that filled the repository; null for one created empty[].importState.statusAlwaysone of queued, running, succeeded, failed
Where the import stands[].importState.providerAlwaysone of github, gitlab, git
Where it comes from: GitHub, GitLab, or any git URL[].importState.sourceUrlAlwaysstring
The source as given, without credentials[].importState.includeAlwaysobject
What was asked for besides the git history[].importState.include.pullRequestsAlwaysboolean
Pull requests are brought over[].importState.include.wikiAlwaysboolean
The wiki is brought over as repository {name}.wiki[].importState.include.pullRequestLimitWhen presentnumber
At most this many pull requests, newest first[].importState.pullsWhen presentobject
The pull requests' progress; absent until the import reaches them[].importState.pulls.totalAlwaysnumber, may be null
Pull requests the source has, in all states; null when it does not say[].importState.pulls.importedAlwaysnumber
Pull requests imported so far[].importState.pulls.limitAlwaysnumber
At most this many are imported[].importState.pulls.backfillAlwaysone of running, done, failed
The background import of the older closed pull requests[].importState.pulls.nextClosedPageAlwaysnumber, may be null
The page of the source's closed pull requests read next; null when done[].importState.pulls.errorAlwaysstring, may be null
Why the background import failed; null if not[].importState.importerIamUserIdAlwaysstring, may be null
The IAM user who started it; imported pull requests are written as them[].importState.startedAtAlwaysstring, may be null
When it started (ISO 8601); null while queued[].importState.finishedAtAlwaysstring, may be null
When it ended (ISO 8601); null until then[].importState.errorAlwaysstring, may be null
Why it failed; null unless it did[].importState.importedAlwaysobject, may be null
What came over; null until the import finished[].importState.imported.branchesAlwaysnumber
Branches brought over[].importState.imported.tagsAlwaysnumber
Tags brought over[].importState.imported.pullRequestsAlwaysnumber
Pull requests brought over[].importState.imported.wikiRepositoryIdAlwaysstring, may be null
The wiki repository created; null without a wiki[].importState.imported.notesAlwaysarray of string
Remarks on what could not be carried over as is[].mirrorAlwaysobject, may be null
Set while it mirrors a source (pushes refused); null for an ordinary repository[].mirror.providerAlwaysone of github, gitlab, git
Where it comes from: GitHub, GitLab, or any git URL[].mirror.sourceUrlAlwaysstring
The source followed, without credentials[].mirror.intervalMinutesAlwaysnumber
Minutes between full fetches[].mirror.lastSyncedAtAlwaysstring, may be null
When the last sync finished (ISO 8601); null before the first[].mirror.lastErrorAlwaysstring, may be null
Why the last sync failed; null when it did not[].mirror.pullsUpdatedThroughWhen presentstring
Pull requests changed on the source up to this time (ISO 8601) are in[].mirror.pullsUpdatedAtCorrectedAtWhen presentstring
When the imported pull requests' update times were taken from the source[].mirror.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 moved[].mirror.shadowCiWhen presentobject
Running the source's workflows here to compare; absent when never set[].mirror.shadowCi.enabledAlwaysboolean
Shadow CI runs on mirrored pushes[].mirror.shadowCi.branchesAlwaysarray of string
Branch patterns it runs for; the default branch when empty[].mirror.hasTokenAlwaysboolean
A token for the source is kept (it is never shown)[].pushMirrorAlwaysobject, may be null
Where every push is copied to; null without a push mirror. The token is never shown[].pushMirror.urlAlwaysstring
The remote repository pushes are copied to[].pushMirror.lastPushedAtAlwaysstring, may be null
When the last push to it finished (ISO 8601); null before the first[].pushMirror.lastStatusAlwaysone of ok, failed, may be null
How the last push went; null before the first[].pushMirror.lastErrorAlwaysstring, may be null
Why the last push failed; null when it did not[].pushMirror.rejectedRefsAlwaysarray of string
Refs the remote refused in the last push because they moved there on their own[].forkedFromRepoIdAlwaysstring, may be null
The repository it was forked from; null for an original or a deleted parent[].secretPushProtectionAlwaysboolean
Pushes that add a known credential format are refused[].dependencyAlertsAlwaysboolean
Lockfiles on the default branch are checked against the vulnerability database[].maxFileSizeMbAlwaysnumber, may be null
Largest file a push may add, in MB; null for the platform default of 100[].defaultWorkflowPermissionsAlwaysone of restricted, permissive
What a workflow job's token may do when its file sets no `permissions:`[].createdAtAlwaysstring
When it was created (ISO 8601)[].updatedAtAlwaysstring
When its settings last changed (ISO 8601)[].cloneUrlAlwaysstring, may be null
The HTTPS clone URL; null in the answer to `update`
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:ListRepositories 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 listcurl -X GET "https://console.platform-development.deutschecloud.app/git/api/repositories" \
-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_list.