List global Git registries
const url = 'http://localhost:3000/api/v1/global-registries/git?name=margo&authType=NONE&search=workloads&limit=20&offset=0';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/global-registries/git?name=margo&authType=NONE&search=workloads&limit=20&offset=0' \ --header 'X-API-Key: <X-API-Key>'Retrieves a list of all global Git registries. Requires Super Admin privileges.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
margoFilter by name (partial match)
Filter by enabled status
Filter by authentication type
Filter by mandatory status
Example
workloadsSearch across name, URL, and description
Number of items to return
Number of items to skip
Cursor for pagination (registry ID)
Responses
Section titled “ Responses ”Git registries retrieved successfully
object
List of global Git registries
object
Registry unique identifier
Unique name for the registry
Description of the registry purpose
Git repository URL
Branch to sync from
Subpath within the repository to scan
Authentication type
Whether credentials are configured
Sync interval in minutes
Last successful sync timestamp
Error message from last sync attempt
Last synced commit hash
Whether webhook is configured
Whether the registry is enabled
Whether this registry is mandatory for all tenants
Priority in the combined registry list
Creation timestamp
Last update timestamp
Total number of registries matching the query
Number of items returned
Number of items skipped
Whether there are more items
Cursor for fetching next page
Example
{ "items": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "name": "margo-official-workloads", "description": "Official Margo workload definitions", "url": "https://github.com/margo-org/workloads.git", "branch": "main", "path": "/workloads", "authType": "NONE", "hasCredentials": false, "syncIntervalMinutes": 60, "lastSyncError": "Authentication failed", "lastSyncCommit": "abc123def456", "hasWebhook": false, "enabled": true, "mandatory": false, "priority": 0 } ], "total": 10, "limit": 20, "offset": 0, "hasMore": false, "nextCursor": "550e8400-e29b-41d4-a716-446655440000"}Unauthorized
Forbidden - Super Admin required