Change one of the organization's Git providers
Organization owners (`org.manage`). Absent fields stay; `ca_pem: null` removes the CA. A `url` on another host needs `client_secret` again (422 at `/client_secret`): the stored secret only goes to the host it was entered for; a changed host also disconnects every member (their tokens belong to the old host), and the workspaces' IDE pods pick up the new URL like any other template change (`workspaces.upgradePolicy`). The same URL rules and 409s as the create.
openapi/harthelm.yaml at v1.6.1__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.
org*stringuuidid*stringThe provider's id in the organization (not its ref).
^[a-z][a-z0-9-]{0,21}$application/json- body
1 <= propertiesname?string1 <= length <= 64url?string9 <= length <= 255client_id?string1 <= length <= 255client_secret?stringpassword1 <= length <= 4096ca_pem?|null removes the CA.
length <= 65536The provider.
application/json- response
id*OrgGitProviderIDA provider's id within its organization; its ref is <id>-<ref suffix>.
^[a-z][a-z0-9-]{0,21}$ref*stringThe provider id everywhere else (/auth/git/{ref}, GET /git/providers, git access, the proxy path).
^[a-z][a-z0-9-]{0,30}$org_id*stringuuidkind*"gitea""gitea"name*stringurl*stringWeb URL of the provider (https).
client_id*stringclient_secret_set*booleanThe OAuth client secret is stored (it is never returned).
ca_set*booleanA CA (PEM) for the provider's HTTPS is stored.
redirect_uri*stringRegister this at the provider's OAuth2 application.
created_by?A user as member lists show them.
created_at*stringdate-timeupdated_at*stringdate-timeretired_at?stringOnly with include_retired, on a retired provider.
date-timecurl -X PATCH 'https://console.example.com/api/v1/orgs/497f6eca-6276-4993-bfeb-53cbbbba6f08/git-providers/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}Retire one of the organization's Git providers
Organization owners (`org.manage`). Nobody can connect it any more, every member's connection to it is deleted, and the git proxy refuses its repositories; the workspaces that came from it keep their files. The stored secret and CA are wiped. Registering the same id again brings the provider back.
The calling user
Who the credentials belong to, with the cluster-admin flag; the UI and `hart whoami` read it. Answers 401 without a valid session or API key.