Harthelm Docs

List the organization's Git providers

Git providers the organization registered for its teams (1.6.1), ordered by id; the installation's providers (chart values) are not listed here. Secrets are never returned. Organization owners (`org.manage`); 403 for other members. `ref_suffix` completes a new provider's ref (`<id>-<ref_suffix>`), so the redirect URI `https://<console>/auth/git/<id>-<ref_suffix>/callback` is known before the provider is created.

Generated from openapi/harthelm.yaml at v1.6.1
GET
/orgs/{org}/git-providers

Authorization

cookie__Host-harthelm_session<token>

Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header Harthelm-CSRF: 1 and a matching Origin.

Path Parameters

org*string
Formatuuid

Query Parameters

include_retired?boolean

Also list retired providers (with retired_at).

Defaultfalse
limit?integer

Maximum number of items per page.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from next_cursor of the previous page.

Lengthlength <= 1024

Response Body

A page of providers.

application/json
  1. response
next_cursor?string

Absent on the last page.

items*array<>
ref_suffix*string

The organization's ref suffix.

Match^[a-z2-7]{8}$
curl -X GET 'https://console.example.com/api/v1/orgs/497f6eca-6276-4993-bfeb-53cbbbba6f08/git-providers'
{  "next_cursor": "string",  "items": [    {      "id": "string",      "ref": "string",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "kind": "gitea",      "name": "string",      "url": "string",      "client_id": "string",      "client_secret_set": true,      "ca_set": true,      "redirect_uri": "string",      "created_by": {        "id": 1,        "name": "string",        "email": "string",        "picture_url": "string"      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "retired_at": "2019-08-24T14:15:22Z"    }  ],  "ref_suffix": "string"}