Hanzo
OpenapiGit

Returns a repo's outbound mirror targets — the downstream remotes the mirror…

Returns a repo's outbound mirror targets — the downstream remotes the mirror reactor pushes to whenever a push lands here.

GET /v1/git/repos/{name}/mirrors

Addresshttps://api.hanzo.ai/v1/git/repos/{name}/mirrors
MethodGET
Operationget_git_repos_by_name_mirrors
AuthAuthorization: Bearer $HANZO_API_KEY

Returns a repo's outbound mirror targets — the downstream remotes the mirror reactor pushes to whenever a push lands here.

Request

1 field.

FieldInTypeRequiredDescription
namepathstringyesName is the repo's org-unique handle, from the :name path segment.

Response

StatusBodyMeaning
200mirrorListok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodymirrorTargetView[]Data holds the repo's outbound mirror targets.
data[].createdAtbodystringCreatedAt is RFC 3339 UTC.
data[].hostbodystringHost is the target's lowercased hostname, taken from URL and never the body.
data[].idbodystringID is the target's identifier ("mir_…"), the handle to remove it by.
data[].repobodystringRepo is the repo whose advanced refs are pushed downstream.
data[].urlbodystringURL is the canonical https remote, with any embedded credentials stripped.

Failure carries the platform error shape — see Errors.

Examples

hanzo git repos mirrors list <name>

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page