{"openapi":"3.1.0","info":{"title":"Clever Cloud API","version":"0.1.0"},"servers":[{"url":"https:\/\/api.clever-cloud.com"}],"paths":{"\/networkgroup\/configuration":{"get":{"tags":["NetworkGroups"],"summary":"Get the network group service configuration","description":"Returns the DNS suffixes a member `domainName` may end with on this platform. No authentication is required.","operationId":"get_networkgroups_configuration","parameters":[{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Network group service configuration","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NetworkGroupsConfiguration"}}}},"default":{"description":"Error: the error body (`code`, `context`, `error`, `requestId`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiErrorBody"}}}}},"security":[],"x-axo-versionless":true,"x-service":"network_group"}},"\/organisations\/{orgId}\/logs\/exports":{"get":{"tags":["Logs"],"summary":"List the log exports of an organisation","description":"The organisation's log exports, newest first, without their items: `GET \u2026\/exports\/{exportId}` carries those. Paginated: up to `limit` exports per page, and `nextCursor` to pass as `cursor` for the next one, `null` on the last page. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"listLogsExports","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max exports per page (default 100, max 200; silently clamped)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"cursor","in":"query","description":"Opaque cursor from the previous page's `nextCursor`","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"One page of exports, newest first","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LogExportPage"}}}},"400":{"description":"A `cursor` this API did not mint, or a `limit` that is not a number","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"401":{"description":"Missing or invalid credentials","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"403":{"description":"Missing `access_organisations` right, or not a member of the organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"501":{"description":"Log exports are not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"503":{"description":"The export service is unavailable: retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"},"post":{"tags":["Logs"],"summary":"Start an export of logs and access logs","description":"Starts an asynchronous export of the organisation's runtime logs and\/or access logs over a time window, for the whole organisation (every resource whose logs are still retained, a deleted add-on's included) or a list of its applications and add-ons. Answers 202 with the export in `PENDING`; follow it with `GET \u2026\/exports\/{exportId}` until it is `DONE`, then download it. At least one of `logs` and `accesslogs` must be `true`, `since` must not be in the future, `until` must be after `since` (absent or in the future, it is now; both bounds are inclusive), and `resourceIds` names 1 to 2000 applications (`app_\u2026`) or add-ons by their real id (`postgresql_\u2026`\u2026): an add-on id (`addon_\u2026`) is refused. Only `json` files in a `targz` archive are produced today; any other `fileFormat` or `archive` answers 501. 409 when an equivalent export is already in flight, naming it in the error's `Resource` context; 429 past the organisation's limit of exports in flight. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"createLogsExport","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeLogExport"}}},"required":true},"responses":{"202":{"description":"Export accepted","headers":{"Location":{"schema":{"type":"string"},"description":"The export's URL, to follow with `GET` until it is `DONE`"},"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait before reading the export's status"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LogExport"}}}},"400":{"description":"Invalid body: see the rules of `WannabeLogExport`, and `addon_\u2026` ids are refused","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"401":{"description":"Missing or invalid credentials","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"403":{"description":"Missing `access_organisations` right, not a member of the organisation, or a `resourceIds` entry outside it","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"409":{"description":"An equivalent export is already in flight: its id is the `name` of the error's `Resource` context","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"413":{"description":"The body exceeds the size limit","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"415":{"description":"The body is not sent as `application\/json`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"429":{"description":"Too many exports in flight for the organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"501":{"description":"The format\/archive pair is not produced yet (only `json` in `targz` is), or log exports are not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"503":{"description":"The export service is unavailable: retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"}},"\/organisations\/{orgId}\/logs\/exports\/{exportId}":{"get":{"tags":["Logs"],"summary":"Get a log export","description":"One log export, with its progress and the files of its archive. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"getLogsExport","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"exportId","in":"path","description":"Export ID","required":true,"schema":{"type":"string","pattern":"^export_([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|[0-9a-f]{32})$"}}],"responses":{"200":{"description":"The export","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LogExport"}}}},"401":{"description":"Missing or invalid credentials","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"403":{"description":"Missing `access_organisations` right, or not a member of the organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"404":{"description":"No such export","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"501":{"description":"Log exports are not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"503":{"description":"The export service is unavailable: retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"},"delete":{"tags":["Logs"],"summary":"Delete a log export","description":"Deletes an export whatever its status: one in flight stops, and the archive of a finished one is deleted at once. The export is gone afterwards: it is no longer listed, and reading it answers 404. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"deleteLogsExport","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"exportId","in":"path","description":"Export ID","required":true,"schema":{"type":"string","pattern":"^export_([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|[0-9a-f]{32})$"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid credentials","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"403":{"description":"Missing `access_organisations` right, or not a member of the organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"404":{"description":"No such export","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"501":{"description":"Log exports are not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"503":{"description":"The export service is unavailable: retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"}},"\/organisations\/{orgId}\/logs\/exports\/{exportId}\/download":{"get":{"tags":["Logs"],"summary":"Download a log export","description":"Redirects (302) to a short-lived download URL of the export's archive. 409 while the export is not `DONE`, 410 once its archive has expired. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"downloadLogsExport","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"exportId","in":"path","description":"Export ID","required":true,"schema":{"type":"string","pattern":"^export_([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|[0-9a-f]{32})$"}}],"responses":{"302":{"description":"Redirect to a presigned download URL","headers":{"Location":{"schema":{"type":"string"},"description":"The archive's presigned download URL, valid for a short time: fetch it without the API's `Authorization` header"}}},"401":{"description":"Missing or invalid credentials","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"403":{"description":"Missing `access_organisations` right, or not a member of the organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"404":{"description":"No such export","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"409":{"description":"The export is not `DONE`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"410":{"description":"The archive has expired and was deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"501":{"description":"Log exports are not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"503":{"description":"The export service is unavailable: retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"}},"\/v2\/backups\/{ownerId}\/{ref}":{"get":{"tags":["Add-ons"],"summary":"List the backups of an add-on","description":"Returns the backups of a database add-on, each with a signed URL to download its archive, or the snapshots of an Elasticsearch add-on, each with the commands to restore or delete it. Requires the `manage_organisations_services` right and, in an organisation, the ADMIN, MANAGER or DEVELOPER role; a caller without them is refused with 401, not 403. Also callable by platform services.","operationId":"getBackups","parameters":[{"name":"ownerId","in":"path","description":"Owner of the add-on: an organisation (`orga_<uuid>`) or a user (`user_<uuid>`)","required":true,"schema":{"type":"string"}},{"name":"ref","in":"path","description":"Real ID of the add-on (`postgresql_<uuid>`, `mysql_<uuid>`, `elasticsearch_<uuid>`\u2026), not its `addon_<uuid>` ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The backups of the add-on; may be empty","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonBackupEntry"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"401":{"description":"Missing credentials, missing `manage_organisations_services` right, or no ADMIN, MANAGER or DEVELOPER role in the owner. Most refusals have no body; refused credentials answer a JSON message (`id`, `type`, `message`), which is not to be relied on"},"404":{"description":"This owner has no add-on with backups under this ID: the response has no body"},"500":{"description":"Internal error: a JSON identifier to quote to support, or, when the Elasticsearch add-on could not list its snapshots, the reason in plain text","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BackupServiceError"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/events":{"get":{"tags":["Events"],"summary":"Stream the current user's platform events","description":"Server-Sent Events stream of the platform events (deployments, application and add-on lifecycle) of the user's personal space and of every organisation the user is a member of; a `keepalive` comment is sent every 30 seconds. Restrict it to some event types with `types`. Answers 503 when the event feed is unavailable on this deployment.","operationId":"get_events_stream","parameters":[{"name":"types","in":"query","description":"Comma-separated event types to receive, for example `DEPLOYMENT_SUCCESS,APPLICATION_CREATION`; every type by default","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Event stream (`text\/event-stream`)","content":{"text\/event-stream":{}}},"400":{"description":"The request could not be decoded (a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"503":{"description":"The event feed is unavailable on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"events"}},"\/v2\/events\/event-socket":{"get":{"tags":["Events"],"summary":"Open a WebSocket of the current user's platform events","description":"The upgrade takes no credential: within 9 seconds, send `{\"message_type\": \"oauth\", \"authorization\": \"OAuth \u2026\"}` with an OAuth1 `Authorization` value signed for `GET \/v2\/events\/event-socket`, or `{\"message_type\": \"oauth\", \"authorization\": \"Bearer \u2026\", \"organisationId\": \"orga_\u2026\"}` with a service token of that organisation; a missing or rejected message closes the socket. Once `socket_ready` is received, the socket relays the events of the user and their organisations (or of that organisation alone), with a heartbeat every 2 seconds.","operationId":"get_event_socket","parameters":[{"name":"appids","in":"query","description":"Comma-separated application IDs (`app_\u2026`) whose events to receive; every application by default","required":false,"schema":{"type":"string"}}],"responses":{"101":{"description":"Switching to the WebSocket protocol"},"400":{"description":"The request is not a valid WebSocket upgrade, or a query parameter is invalid: the reason is answered in plain text","content":{"text\/plain":{"schema":{"type":"string"}}}},"426":{"description":"The connection cannot be upgraded to a WebSocket: the reason is answered in plain text","content":{"text\/plain":{"schema":{"type":"string"}}}},"503":{"description":"The event feed is unavailable on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"events"}},"\/v2\/github\/applications":{"get":{"tags":["GitHub"],"summary":"List your GitHub repositories","description":"Returns the repositories of the GitHub account linked to the authenticated user, as GitHub lists them to that account: ID, owner, name, description, Git URL, default branch and visibility. Requires the `manage_organisations_applications` OAuth right (400, error id 7301, otherwise) and a linked GitHub account (404 otherwise). When GitHub fails part way, the list can be empty or partial.","operationId":"getGithubApplications","responses":{"200":{"description":"List of GitHub repositories","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OAuthApplicationView"}}}}},"400":{"description":"The token lacks manage_organisations_applications","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"github"}},"\/v2\/github\/keys":{"get":{"tags":["GitHub"],"summary":"List the SSH keys of your GitHub account","description":"Returns the public SSH keys of the GitHub account linked to the authenticated user that the Clever Cloud account does not have yet, with their fingerprints; add one with `PUT \/v2\/self\/keys\/{key}`. Requires the `manage_ssh_keys` OAuth right (400, error id 7301, otherwise) and a linked GitHub account (404 otherwise). The list is empty when GitHub refuses the stored authorisation or answers with an error; the route answers 502 when GitHub cannot be reached.","operationId":"getGithubKeys","responses":{"200":{"description":"List of GitHub SSH keys \u2014 empty when GitHub answers with an error, most often because it rejects the stored token","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/GithubSshKeyView"}}}}},"400":{"description":"The token lacks manage_ssh_keys","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"github"}},"\/v2\/github\/link":{"delete":{"tags":["GitHub"],"summary":"Unlink your GitHub account","description":"Removes the link between the authenticated user and their GitHub account on Clever Cloud. Requires the `manage_personal_information` OAuth right (403, error id 7301, otherwise); 404 when no GitHub account is linked. GitHub is not called: the authorisation granted on GitHub and any webhook stay there.","operationId":"deleteGithubLink","responses":{"200":{"description":"GitHub account unlinked","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"403":{"description":"The token lacks manage_personal_information","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"GitHub account not linked","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"GitHub unlink database query failed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"github"}},"\/v2\/github\/username":{"get":{"tags":["GitHub"],"summary":"Get your GitHub username","description":"Returns the login of the GitHub account linked to the authenticated user, as a JSON string. Requires the `access_personal_information` OAuth right (400, error id 7301, otherwise) and a linked GitHub account (404 otherwise). It is `null` when GitHub refuses the stored authorisation or answers with an error; the route answers 502 when GitHub cannot be reached.","operationId":"getGithubUsername","responses":{"200":{"description":"GitHub username, or null when GitHub answers with an error, most often because it rejects the stored token","content":{"application\/json":{"schema":{"type":["string","null"]}}}},"400":{"description":"The token lacks access_personal_information","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"github"}},"\/v2\/notifications\/emailhooks\/{owner_id}":{"get":{"tags":["Notifications"],"summary":"List the email hooks of a user or an organisation","description":"Returns every email hook the owner holds. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN, MANAGER or DEVELOPER role (403 otherwise).","operationId":"list_emailhooks","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Email hooks of the owner","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/EmailHookView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"},"post":{"tags":["Notifications"],"summary":"Create an email hook","description":"Creates an email hook that emails its recipients when a deployment of the owner succeeds or fails and matches its scope and events; other event types are accepted but send no email. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN or MANAGER role (403 otherwise; error id 6201 when the scope names an application or add-on the owner does not hold), and each recipient must be you, a member of the owning organisation or that organisation. Creation and update requests on the owner's email hooks are limited to 60 per one-hour window opened by the first of them, requests later refused by validation included.","operationId":"create_emailhook","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeEmailHook"}}},"required":true},"responses":{"201":{"description":"The created email hook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EmailHookView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"409":{"description":"An email hook with the same name already exists for this owner","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"429":{"description":"The hourly limit on this owner's email hook creation and update requests is exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"}},"\/v2\/notifications\/emailhooks\/{owner_id}\/{id}":{"put":{"tags":["Notifications"],"summary":"Replace an email hook","description":"Replaces the name, scope, events and recipients of an email hook with the body's and answers the body as read, defaults applied, without `id` or `ownerId`; unlike the creation, a blank name is accepted, and an empty recipient list restores the owner's default recipients. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN or MANAGER role (403 otherwise; error id 6201 when the scope names an application or add-on the owner does not hold), and each recipient must be you, a member of the owning organisation or that organisation. Creation and update requests on the owner's email hooks are limited to 60 per one-hour window opened by the first of them, requests later refused by validation included.","operationId":"update_emailhook","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"ID of the email hook, as listed; a `hook_` prefix is ignored","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeEmailHook"}}},"required":true},"responses":{"200":{"description":"The request body as read, defaults applied","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeEmailHook"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"The owner holds no email hook with this ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"409":{"description":"An email hook with the same name already exists for this owner","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"429":{"description":"The hourly limit on this owner's email hook creation and update requests is exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"},"delete":{"tags":["Notifications"],"summary":"Delete an email hook","description":"Deletes the configuration of an email hook. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN or MANAGER role (403 otherwise).","operationId":"delete_emailhook","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"ID of the email hook, as listed; a `hook_` prefix is ignored","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Email hook deleted (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"The owner holds no email hook with this ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"}},"\/v2\/notifications\/info\/events":{"get":{"tags":["Notifications"],"summary":"List the notification event groups","description":"Returns the event groups a webhook or an email hook can subscribe to in its `events`, each standing for a set of event types. Anonymous: no credential is needed.","operationId":"get_events","responses":{"200":{"description":"The event groups","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NotificationEventGroupsView"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"notifications"}},"\/v2\/notifications\/info\/webhookformats":{"get":{"tags":["Notifications"],"summary":"List the webhook formats","description":"Returns the formats a webhook URL can use: `raw` sends the event as JSON, `slack`, `gitter` and `flowdock` send a message for that service. Anonymous: no credential is needed.","operationId":"get_webhook_formats","responses":{"200":{"description":"The webhook formats","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"notifications"}},"\/v2\/notifications\/webhooks\/{owner_id}":{"get":{"tags":["Notifications"],"summary":"List the webhooks of a user or an organisation","description":"Returns every webhook the owner holds. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN, MANAGER or DEVELOPER role (403 otherwise).","operationId":"list_webhooks","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Webhooks of the owner","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WebhookView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"},"post":{"tags":["Notifications"],"summary":"Create a webhook","description":"Creates a webhook that sends an HTTP `POST` to each of its URLs when an event of the owner matches its scope and events. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN or MANAGER role (403 otherwise; error id 6201 when the scope names an application or add-on the owner does not hold). A webhook disabled after more than 50 failed calls within two hours is no longer matched to events, and replacing it does not re-enable it.","operationId":"create_webhook","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeWebhook"}}},"required":true},"responses":{"201":{"description":"The created webhook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"409":{"description":"A webhook with the same name already exists for this owner","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"}},"\/v2\/notifications\/webhooks\/{owner_id}\/{id}":{"put":{"tags":["Notifications"],"summary":"Replace a webhook","description":"Replaces the name, scope, events and URLs of a webhook with the body's and answers the body as read, defaults applied, without `id` or `ownerId`; unlike the creation, a blank name and an empty URL list are accepted. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN or MANAGER role (403 otherwise; error id 6201 when the scope names an application or add-on the owner does not hold). A webhook disabled after more than 50 failed calls within two hours stays disabled.","operationId":"update_webhook","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"ID of the webhook, as listed; a `hook_` prefix is ignored","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeWebhook"}}},"required":true},"responses":{"200":{"description":"The request body as read, defaults applied","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeWebhook"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"The owner holds no webhook with this ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"409":{"description":"A webhook with the same name already exists for this owner","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"},"delete":{"tags":["Notifications"],"summary":"Delete a webhook","description":"Deletes the configuration of a webhook. Requires the `manage_organisations_applications` OAuth right and, for an organisation, the ADMIN or MANAGER role (403 otherwise).","operationId":"delete_webhook","parameters":[{"name":"owner_id","in":"path","description":"ID of the owner: your own user ID (`user_\u2026`) or the ID of an organisation you are a member of (`orga_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"ID of the webhook, as listed; a `hook_` prefix is ignored","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Webhook deleted (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"The owner holds no webhook with this ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"notifications"}},"\/v2\/oauth\/access_token":{"post":{"tags":["Auth"],"summary":"Exchange an authorized OAuth 1.0a request token for an access token","description":"Last step of the OAuth 1.0a flow: exchanges a request token a user authorized, with its `oauth_verifier`, for an access token carrying the rights the user granted. The access token lasts the duration configured on the consumer, 90 days by default (between one hour and ten years). The OAuth parameters are read from the `Authorization: OAuth` header and the form body, the body winning on duplicates; parameters in the URL's query string are neither read nor part of the signature. The request is signed with the consumer secret and the request token secret; `oauth_signature_method` defaults to `PLAINTEXT`. The answer is `application\/x-www-form-urlencoded`, so the `Accept` header must allow that media type.","operationId":"postAccessTokenRequest","requestBody":{"description":"The OAuth parameters not sent in the `Authorization: OAuth` header","content":{"application\/x-www-form-urlencoded":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/OAuthAccessTokenParams"},{"type":"null"}]}}}},"responses":{"200":{"description":"The access token, form-encoded: `oauth_token=\u2026&oauth_token_secret=\u2026&expiration_date=\u2026`","content":{"application\/x-www-form-urlencoded":{"schema":{"$ref":"#\/components\/schemas\/OAuthAccessTokenAnswer"}}}},"400":{"description":"`oauth_consumer_key`, `oauth_token`, `oauth_verifier` or `oauth_signature` is missing, the request token is unknown, expired or was issued to another consumer, `oauth_signature_method` is not supported, the signature is invalid, or the verifier does not match (the request token was not authorized). A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"No active consumer has this `oauth_consumer_key`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"406":{"description":"The `Accept` header does not allow `application\/x-www-form-urlencoded`: the response has no body"},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"The request token, the consumer or the new access token could not be read or stored","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"503":{"description":"The token store is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"auth"}},"\/v2\/oauth\/access_token_query":{"post":{"tags":["Auth"],"summary":"Exchange an authorized OAuth 1.0a request token for an access token, parameters in the query string","description":"Same as `POST \/v2\/oauth\/access_token`, with every OAuth parameter in the query string instead of the `Authorization` header and form body: exchanges an authorized request token and its verifier for an access token, which lasts the duration configured on the consumer, 90 days by default. The request is signed with the consumer secret and the request token secret; `oauth_signature_method` defaults to `PLAINTEXT`, which puts both secrets in the URL, where proxies and access logs keep them: use `HMAC-SHA512`. The answer is `application\/x-www-form-urlencoded`, so the `Accept` header must allow that media type.","operationId":"postAccessTokenRequestQuery","parameters":[{"name":"oauth_consumer_key","in":"query","description":"The consumer key the request token was issued to.","required":true,"schema":{"type":"string"}},{"name":"oauth_token","in":"query","description":"The authorized request token.","required":true,"schema":{"type":"string"}},{"name":"oauth_verifier","in":"query","description":"The verifier returned with the user's authorization.","required":true,"schema":{"type":"string"}},{"name":"oauth_signature","in":"query","description":"The request signature, computed with the consumer secret and the request token secret.","required":true,"schema":{"type":"string"}},{"name":"oauth_signature_method","in":"query","description":"`HMAC-SHA1`, `HMAC-SHA512` or `PLAINTEXT` (case-insensitive); `PLAINTEXT` when omitted.\nWith `PLAINTEXT` the signature is the secrets themselves: prefer `HMAC-SHA512`.","required":false,"schema":{"type":"string"}},{"name":"oauth_timestamp","in":"query","description":"Seconds since the Unix epoch, included in the signature when sent.","required":false,"schema":{"type":"string"}},{"name":"oauth_nonce","in":"query","description":"A random string, included in the signature when sent.","required":false,"schema":{"type":"string"}},{"name":"oauth_version","in":"query","description":"`1.0`, included in the signature when sent.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The access token, form-encoded: `oauth_token=\u2026&oauth_token_secret=\u2026&expiration_date=\u2026`","content":{"application\/x-www-form-urlencoded":{"schema":{"$ref":"#\/components\/schemas\/OAuthAccessTokenAnswer"}}}},"400":{"description":"`oauth_consumer_key`, `oauth_token`, `oauth_verifier` or `oauth_signature` is missing, the request token is unknown, expired or was issued to another consumer, `oauth_signature_method` is not supported, the signature is invalid, or the verifier does not match (the request token was not authorized). A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"No active consumer has this `oauth_consumer_key`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"406":{"description":"The `Accept` header does not allow `application\/x-www-form-urlencoded`: the response has no body"},"500":{"description":"The request token, the consumer or the new access token could not be read or stored","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"503":{"description":"The token store is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"auth"}},"\/v2\/oauth\/request_token":{"post":{"tags":["Auth"],"summary":"Obtain an OAuth 1.0a request token","description":"First step of the OAuth 1.0a flow: returns a request token, valid for one hour, for the consumer that signed the request. The user then authorizes it in the Clever Cloud console, which is sent to `\/v2\/oauth\/authorize?oauth_token=\u2026`. The OAuth parameters are read from the `Authorization: OAuth` header and the form body, the body winning on duplicates; parameters in the URL's query string are neither read nor part of the signature. The request is signed with the consumer secret alone; `oauth_signature_method` defaults to `PLAINTEXT`. `oauth_callback` is required: a URL with the scheme and host of the consumer's registered URL (or the console's host), or `oob`. The answer is `application\/x-www-form-urlencoded`, so the `Accept` header must allow that media type.","operationId":"postReqTokenRequest","requestBody":{"description":"The OAuth parameters not sent in the `Authorization: OAuth` header","content":{"application\/x-www-form-urlencoded":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/OAuthRequestTokenParams"},{"type":"null"}]}}}},"responses":{"200":{"description":"The request token, form-encoded: `oauth_token=\u2026&oauth_token_secret=\u2026&oauth_callback_confirmed=true`","content":{"application\/x-www-form-urlencoded":{"schema":{"$ref":"#\/components\/schemas\/OAuthRequestTokenAnswer"}}}},"400":{"description":"`oauth_token` is present, `oauth_consumer_key` or `oauth_signature` is missing, `oauth_signature_method` is not supported, the signature is invalid, or `oauth_callback` is not allowed for this consumer. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"No active consumer has this `oauth_consumer_key`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"406":{"description":"The `Accept` header does not allow `application\/x-www-form-urlencoded`: the response has no body"},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"The consumer could not be read, or the request token could not be stored","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"503":{"description":"The token store is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"auth"}},"\/v2\/oauth\/request_token_query":{"post":{"tags":["Auth"],"summary":"Obtain an OAuth 1.0a request token, parameters in the query string","description":"Same as `POST \/v2\/oauth\/request_token`, with every OAuth parameter in the query string instead of the `Authorization` header and form body: returns a request token, valid for one hour, for the user to authorize in the Clever Cloud console (`\/v2\/oauth\/authorize?oauth_token=\u2026`). The request is signed with the consumer secret alone; `oauth_signature_method` defaults to `PLAINTEXT`, which puts the secret itself in the URL, where proxies and access logs keep it: use `HMAC-SHA512`. `oauth_callback` is required: a URL with the scheme and host of the consumer's registered URL (or the console's host), or `oob`. The answer is `application\/x-www-form-urlencoded`, so the `Accept` header must allow that media type.","operationId":"postReqTokenRequestQueryString","parameters":[{"name":"oauth_consumer_key","in":"query","description":"The consumer key of the registered OAuth consumer.","required":true,"schema":{"type":"string"}},{"name":"oauth_signature","in":"query","description":"The request signature, computed with the consumer secret and an empty token secret.","required":true,"schema":{"type":"string"}},{"name":"oauth_signature_method","in":"query","description":"`HMAC-SHA1`, `HMAC-SHA512` or `PLAINTEXT` (case-insensitive); `PLAINTEXT` when omitted.\nWith `PLAINTEXT` the signature is the secret itself: prefer `HMAC-SHA512`.","required":false,"schema":{"type":"string"}},{"name":"oauth_callback","in":"query","description":"Where the user is sent back after authorizing: a URL with the scheme and host of the\nconsumer's registered URL, or `oob` when the client cannot receive a redirect.","required":true,"schema":{"type":"string"}},{"name":"oauth_timestamp","in":"query","description":"Seconds since the Unix epoch, included in the signature when sent.","required":false,"schema":{"type":"string"}},{"name":"oauth_nonce","in":"query","description":"A random string, included in the signature when sent.","required":false,"schema":{"type":"string"}},{"name":"oauth_version","in":"query","description":"`1.0`, included in the signature when sent.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The request token, form-encoded: `oauth_token=\u2026&oauth_token_secret=\u2026&oauth_callback_confirmed=true`","content":{"application\/x-www-form-urlencoded":{"schema":{"$ref":"#\/components\/schemas\/OAuthRequestTokenAnswer"}}}},"400":{"description":"`oauth_token` is present, `oauth_consumer_key` or `oauth_signature` is missing, `oauth_signature_method` is not supported, the signature is invalid, or `oauth_callback` is not allowed for this consumer. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"No active consumer has this `oauth_consumer_key`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"406":{"description":"The `Accept` header does not allow `application\/x-www-form-urlencoded`: the response has no body"},"500":{"description":"The consumer could not be read, or the request token could not be stored","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"503":{"description":"The token store is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"auth"}},"\/v2\/oauth\/rights":{"get":{"tags":["Auth"],"summary":"List the OAuth rights","description":"Returns the OAuth rights an OAuth consumer can be granted, as a map from each right's name (`manage_organisations`, `access_personal_information`\u2026) to its description. No authentication.","operationId":"getAvailableRights","responses":{"200":{"description":"The OAuth rights, by name","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"auth"}},"\/v2\/organisations":{"get":{"tags":["Organisations"],"summary":"List the organisations of the current user","description":"Returns every organisation the authenticated user is a member of. Requires the `access_organisations` OAuth right.","operationId":"listOrganisations","responses":{"200":{"description":"List of organisations","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OrganisationView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"post":{"tags":["Organisations"],"summary":"Create an organisation","description":"Creates an organisation with the caller as its `ADMIN` member and returns it. Requires a validated email address; `name` (at most 128 characters) and `description` (at most 256) are mandatory. Creation is rate-limited per user and per IP address (403 when exceeded). Requires the `manage_organisations` OAuth right.","operationId":"createOrganisation","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeOrganisation"}}},"required":true},"responses":{"200":{"description":"Created organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganisationView"}}}},"400":{"description":"The request could not be decoded (the body is malformed): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}":{"get":{"tags":["Organisations"],"summary":"Get an organisation","description":"Returns the organisation, which may be a personal space (`user_\u2026`). The caller must be a member: a non-member gets 403, an unknown ID 404, and an organisation that is moderated, destroyed or deleted 403. Requires the `access_organisations` OAuth right. Also callable by platform services with administrative rights.","operationId":"getOrganisation","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`) or personal space ID (`user_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Organisation details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganisationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"put":{"tags":["Organisations"],"summary":"Update an organisation","description":"Replaces the organisation's details with the body and returns the result; `name` (at most 128 characters) and `description` (at most 256) are mandatory. Requires the `manage_organisations` OAuth right and the `ADMIN` or `MANAGER` role; a deleted organisation answers 403. Also callable by platform services with administrative rights.","operationId":"updateOrganisation","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeOrganisation"}}},"required":true},"responses":{"200":{"description":"Updated organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganisationView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"delete":{"tags":["Organisations"],"summary":"Delete an organisation","description":"Deletes the organisation along with its applications and add-ons. Requires the `manage_organisations` OAuth right and the `ADMIN` role, and is refused (403) while the organisation owns add-on providers. Also callable by platform services with administrative rights.","operationId":"deleteOrganisation","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Organisation deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders":{"get":{"tags":["Organisations"],"summary":"List the add-on providers of an organisation","description":"Returns the add-on providers the organisation owns. Any member may call it, but only the `ADMIN`, `MANAGER` and `DEVELOPER` roles see the providers: other members get an empty list. A deleted organisation answers 403. Also callable by platform services with administrative rights.","operationId":"getProvidersInfo","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of add-on providers","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonProviderEmbeddedView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"post":{"tags":["Organisations"],"summary":"Create an add-on provider","description":"Registers an add-on provider owned by the organisation, with its ID, name, test and production API URLs, SSO salt and password. Every API URL must be an absolute `http:\/\/` or `https:\/\/` URL, or empty: an empty one is accepted and stored as is; 400 otherwise, with `fields` naming each refused URL. The provider starts in the `ALPHA` status and is offered in every public zone. Requires the `access_organisations` OAuth right and the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"createProvider","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonProvider"}}},"required":true},"responses":{"200":{"description":"Add-on provider created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonProviderInfoFullView"}}}},"400":{"description":"An API URL is neither empty nor an absolute http:\/\/ or https:\/\/ URL: `fields` maps each refused one (`api.production.base_url`, `api.test.sso_url`\u2026) to the reason. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}":{"get":{"tags":["Organisations"],"summary":"Get an add-on provider","description":"Returns the add-on provider with its plans, features and zones; 404 when the organisation owns no such provider. Requires the `ADMIN`, `MANAGER` or `DEVELOPER` role. Also callable by platform services with administrative rights.","operationId":"getProviderInfo","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on provider details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonProviderEmbeddedView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"put":{"tags":["Organisations"],"summary":"Update an add-on provider","description":"Updates the provider's name, short and long descriptions, logo URL, website, support email, social account names and analytics ID; omitted fields keep their value. The website and logo URL must be absolute `http:\/\/` or `https:\/\/` URLs, or empty to clear them; 400 otherwise, naming the field. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"updateProviderInfos","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonProviderInfos"}}},"required":true},"responses":{"200":{"description":"Add-on provider updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonProviderEmbeddedView"}}}},"400":{"description":"The website or logo URL is neither empty nor an absolute http:\/\/ or https:\/\/ URL: `fields` maps each refused one (`website`, `logoUrl`) to the reason. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"delete":{"tags":["Organisations"],"summary":"Delete an add-on provider","description":"Marks the add-on provider as deleted. Requires the `manage_organisations` OAuth right and the `ADMIN` or `MANAGER` role; 404 when the organisation owns no such provider. Also callable by platform services with administrative rights.","operationId":"deleteProvider","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Add-on provider deleted"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/features":{"get":{"tags":["Organisations"],"summary":"List the features of an add-on provider","description":"Returns the features the provider's plans can set. Requires the `ADMIN`, `MANAGER` or `DEVELOPER` role. Also callable by platform services with administrative rights.","operationId":"getProviderFeatures","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Provider features","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonProviderFeatureView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"post":{"tags":["Organisations"],"summary":"Add a feature to an add-on provider","description":"Declares a feature (`name`, `type`) that the provider's plans can set; 400 when the provider already has a feature with this name, or when the name contains HTML markup (a bare `<`, as in `Storage < 25TB`, is allowed). Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"addProviderFeature","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonFeature"}}},"required":true},"responses":{"200":{"description":"Feature created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonProviderFeatureView"}}}},"400":{"description":"A feature with this name exists, or the name contains HTML markup; for the markup, `fields` maps `name` to the reason. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/features\/{featureId}":{"delete":{"tags":["Organisations"],"summary":"Delete a feature of an add-on provider","description":"Removes the feature from the provider. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"deleteProviderFeature","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}},{"name":"featureId","in":"path","description":"Feature name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Feature deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/plans":{"get":{"tags":["Organisations"],"summary":"List the plans of an add-on provider","description":"Returns the provider's plans with their prices and feature values. Requires the `ADMIN`, `MANAGER` or `DEVELOPER` role. Also callable by platform services with administrative rights.","operationId":"getProviderPlans","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Provider plans","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonPlanView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"post":{"tags":["Organisations"],"summary":"Create a plan for an add-on provider","description":"Creates a plan (`plan_\u2026`) with its name, slug, price and feature values; features left out get an empty value, and the plan is offered in the provider's zones. 400 when the provider already has a plan with this name. Feature values may contain basic formatting HTML and links to `http:\/\/` or `https:\/\/` URLs; 400 when one holds any other markup. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"addProviderPlan","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonPlan"}}},"required":true},"responses":{"200":{"description":"Plan created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonPlanView"}}}},"400":{"description":"A plan with this name exists, or a feature value holds disallowed markup; for the markup, `fields` maps each refused value (`features[0].value`\u2026) to the reason. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/plans\/{planId}":{"get":{"tags":["Organisations"],"summary":"Get a plan of an add-on provider","description":"Returns the plan with its price and feature values; 404 when the provider has no such plan. Requires the `ADMIN`, `MANAGER` or `DEVELOPER` role. Also callable by platform services with administrative rights.","operationId":"getProviderPlan","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}},{"name":"planId","in":"path","description":"Plan ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Plan details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonPlanView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"put":{"tags":["Organisations"],"summary":"Update a plan of an add-on provider","description":"Updates the plan's name, price and slug (omitted ones keep their value) and the values of the features listed, then returns the plan; 404 when the provider has no such plan. Feature values may contain basic formatting HTML and links to `http:\/\/` or `https:\/\/` URLs; 400 when one holds any other markup. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"editProviderPlan","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}},{"name":"planId","in":"path","description":"Plan ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonPlan"}}},"required":true},"responses":{"200":{"description":"Plan updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonPlanView"}}}},"400":{"description":"A feature value holds disallowed markup: `fields` maps each refused value (`features[0].value`\u2026) to the reason. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"delete":{"tags":["Organisations"],"summary":"Delete a plan of an add-on provider","description":"Deletes the plan; 409 when add-ons were created with it. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"deleteProviderPlan","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}},{"name":"planId","in":"path","description":"Plan ID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Plan deleted"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/plans\/{planId}\/features\/{featureName}":{"put":{"tags":["Organisations"],"summary":"Set a feature value on a plan","description":"Sets the plan's value for the provider feature `featureName` from a JSON body `{\"name\": \"<featureName>\", \"value\": \"\u2026\"}` and returns the plan; an existing value is replaced only when `name` equals `featureName` and `value` is present. A feature the provider does not declare is ignored. The value may contain basic formatting HTML and links to `http:\/\/` or `https:\/\/` URLs; 400 when it holds any other markup. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"editProviderPlanFeature","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}},{"name":"planId","in":"path","description":"Plan ID","required":true,"schema":{"type":"string"}},{"name":"featureName","in":"path","description":"Feature name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{}}},"required":true},"responses":{"200":{"description":"Plan feature set","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonPlanView"}}}},"400":{"description":"The value holds disallowed markup: `fields` maps `value` to the reason. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"delete":{"tags":["Organisations"],"summary":"Remove a feature value from a plan","description":"Removes the plan's value for the feature `featureName`. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"deleteProviderPlanFeature","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}},{"name":"planId","in":"path","description":"Plan ID","required":true,"schema":{"type":"string"}},{"name":"featureName","in":"path","description":"Feature name","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Plan feature deleted"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/sso":{"get":{"tags":["Organisations"],"summary":"Get the SSO data of an add-on provider","description":"Returns the URL of the provider statistics dashboard and a macaroon, signed with the provider's password and valid for 15 minutes, to sign in to it. Requires the `ADMIN` role. Also callable by platform services with administrative rights.","operationId":"getSSODataForOrga","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SSO data","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SsoDataView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/tags":{"get":{"tags":["Organisations"],"summary":"List the tags of an add-on provider","description":"Returns the provider's tags, sorted. Requires the `ADMIN`, `MANAGER` or `DEVELOPER` role. Also callable by platform services with administrative rights.","operationId":"getProviderTags","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Provider tags","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addonproviders\/{providerId}\/testers":{"post":{"tags":["Organisations"],"summary":"Invite a beta tester to an add-on provider","description":"Emails an invitation to test the add-on to the address given as the body (a JSON string or plain text); 400 when it is not an email address. Invitation emails are rate-limited per recipient. Requires the `ADMIN` or `MANAGER` role. Also callable by platform services with administrative rights.","operationId":"addBetaTester","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"providerId","in":"path","description":"Provider ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tester added","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/addons":{"get":{"tags":["Add-ons"],"summary":"List the add-ons of an organisation","description":"Returns the add-ons owned by the organisation. Requires the `manage_organisations_services` OAuth right and membership of the organisation (403 otherwise, or when the organisation is deleted); an accounting member, which has no add-on access, gets an empty list. Also callable by platform services holding all rights.","operationId":"getAddonsByOrgaId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-ons of the organisation","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"post":{"tags":["Add-ons"],"summary":"Create an add-on for an organisation","description":"Provisions an add-on at its provider for the organisation and returns it. Creation is rate-limited (403 when the limit is hit), and plans of 60 \u20ac a month or more are refused (403) to organisations less than a month old and personal accounts less than two months old. A provider still in private beta is open only to its own members and beta testers (403, error id 10002). Requires the `manage_organisations_services` OAuth right and the admin or manager role in the organisation (403 otherwise, error id 8108 for the developer and accounting roles, or when the organisation is deleted); the caller's e-mail address must be validated and the account active (403). Also callable by platform services holding all rights.","operationId":"provisionAddonByOrgaId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonProvision"}}},"required":true},"responses":{"200":{"description":"Add-on provisioned","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/preorders":{"post":{"tags":["Add-ons"],"summary":"Preview the order of an add-on for an organisation","description":"Returns the invoice preview of an add-on order for the organisation. The request body is not read: the preview is a zero-amount order carrying the organisation's billing details. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"preorderAddonByOrgaId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonProvision"}}},"required":true},"responses":{"200":{"description":"Preorder invoice preview","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InvoiceRendering"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}":{"get":{"tags":["Add-ons"],"summary":"Get an add-on of an organisation","description":"Returns one add-on of the organisation, looked up by add-on ID or real ID; a deleted add-on is not found. 404 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services allowed to manage organisation services.","operationId":"getAddonByOrgaAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"put":{"tags":["Add-ons"],"summary":"Rename an add-on of an organisation","description":"Sets the add-on's name (not blank, at most 255 characters) and returns the updated add-on. The add-on is looked up by add-on ID or real ID; 404 when it does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"updateAddonInfo","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","description":"New name of the add-on.","required":["name"],"properties":{"name":{"type":"string","description":"New name of the add-on; not blank, at most 255 characters."}}}}},"required":true},"responses":{"200":{"description":"Add-on renamed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"delete":{"tags":["Add-ons"],"summary":"Delete an add-on of an organisation","description":"Deprovisions the add-on at its provider and deletes it. The add-on is looked up by add-on ID or real ID; 400 for an application's FTP add-on, 412 for a system add-on, 404 when it does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin or manager role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"deprovisionAddonByOrgaAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/applications":{"get":{"tags":["Add-ons"],"summary":"List the applications linked to an add-on of an organisation","description":"Returns the applications the add-on is linked to. 404 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getApplicationsLinkedToAddonByOrgaAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Linked applications","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/env":{"get":{"tags":["Add-ons"],"summary":"List the environment variables of an add-on of an organisation","description":"Returns the environment variables the add-on exposes to the applications linked to it, credentials included. The add-on is looked up by add-on ID or real ID; 404 when it does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getAddonEnvByOrgaAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonEnvironmentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/instances":{"get":{"tags":["Add-ons"],"summary":"List the running instances of an add-on","description":"Returns the running instances of an add-on of the organisation. 404 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getAddonInstances","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Running instances of the add-on","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SuperNovaInstanceView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/instances\/{instanceId}":{"get":{"tags":["Add-ons"],"summary":"Get a running instance of an add-on","description":"Returns one running instance of an add-on of the organisation. 404 when no running instance of the add-on has this ID. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getAddonInstance","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"Instance ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The add-on instance","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SuperNovaInstanceView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/migrations":{"get":{"tags":["Add-ons"],"summary":"List the plan migrations of an add-on","description":"Returns the add-on's plan migrations as its provider reports them (provider-defined JSON, forwarded with the provider's status); an empty list for an add-on without provider. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getAddonMigrations","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on migrations (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the add-on provider's own error status and body, forwarded unchanged, or a message (`id`, `type`, `message`) when the provider cannot be reached or the caller is refused","content":{"application\/json":{"schema":{}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"post":{"tags":["Add-ons"],"summary":"Change the plan of an add-on of an organisation","description":"Asks the add-on's provider to move the add-on to the plan given in the body, and forwards the provider's answer. 404 when the add-on does not exist, is deleted or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin or manager role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"changePlanByOrgaAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabePlanChange"}}},"required":true},"responses":{"200":{"description":"Plan change initiated (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/migrations\/preorders":{"get":{"tags":["Add-ons"],"summary":"Preview the cost of an add-on plan change","description":"Returns, as an invoice preview, the monthly price difference between the add-on's current plan and the `planId` plan; without `planId`, a zero-amount preview. 400 when the provider does not allow plan changes, 404 when the plan is unknown. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"preorderMigration","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"planId","in":"query","description":"Target plan ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Migration cost preview","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InvoiceRendering"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/migrations\/{migrationId}":{"get":{"tags":["Add-ons"],"summary":"Get a plan migration of an add-on","description":"Returns one plan migration of the add-on as its provider reports it (provider-defined JSON, forwarded with the provider's status). 404 when the add-on has no provider. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getAddonMigration","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"migrationId","in":"path","description":"Migration ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Migration details (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the add-on provider's own error status and body, forwarded unchanged, or a message (`id`, `type`, `message`) when the provider cannot be reached or the caller is refused","content":{"application\/json":{"schema":{}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"delete":{"tags":["Add-ons"],"summary":"Abort a plan migration of an add-on","description":"Asks the add-on's provider to abort the plan migration, and forwards the provider's answer. 400 when the provider does not allow plan changes. Requires the `manage_organisations_services` OAuth right and the admin or manager role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"abortAddonMigration","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"migrationId","in":"path","description":"Migration ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Migration aborted (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the add-on provider's own error status and body, forwarded unchanged, or a message (`id`, `type`, `message`) when the provider cannot be reached or the caller is refused","content":{"application\/json":{"schema":{}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/sso":{"get":{"tags":["Add-ons"],"summary":"Get the single sign-on data of an add-on of an organisation","description":"Returns the signed data that opens the add-on's provider dashboard as the caller: the provider's SSO `url`, the add-on real `id`, `timestamp`, `token`, `signature` and `email`. The add-on is looked up by add-on ID or real ID; 404 when it does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getAddonSSODataForOrga","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SSO data","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonSSOData"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/tags":{"get":{"tags":["Add-ons"],"summary":"List the tags of an add-on of an organisation","description":"Returns the add-on's tags. 403 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"getAddonTagsByOrgaIdAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tags of the add-on","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"put":{"tags":["Add-ons"],"summary":"Replace the tags of an add-on of an organisation","description":"Replaces all the add-on's tags with the list given in the body and returns it. 403 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"replaceAddonTags","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}}}},"required":true},"responses":{"200":{"description":"Tags replaced","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addonId}\/tags\/{tag}":{"put":{"tags":["Add-ons"],"summary":"Add a tag to an add-on of an organisation","description":"Adds the tag to the add-on and returns all its tags. 403 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"addAddonTagByOrgaAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag to add","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tags of the add-on, the new one included","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"delete":{"tags":["Add-ons"],"summary":"Remove a tag from an add-on of an organisation","description":"Removes the tag from the add-on and returns the remaining tags. 404 when the add-on does not carry this tag, 403 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"deleteAddonTagByOrgaAndAddonId","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag to remove","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Remaining tags","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addon_id}\/migration":{"post":{"tags":["Add-ons"],"summary":"Migrate an add-on of an organisation to another plan","description":"Asks the add-on's provider to move the add-on to the plan given in the body, and forwards the provider's answer; same effect as changing the plan. 404 when the add-on does not exist, is deleted or belongs to another owner. Requires the `manage_organisations_services` OAuth right and the admin or manager role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"migrate_org_addon","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addon_id","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabePlanChange"}}},"required":true},"responses":{"200":{"description":"Migration initiated (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/addons\/{addon_id}\/sso":{"post":{"tags":["Add-ons"],"summary":"Generate the single sign-on data of an add-on of an organisation","description":"Same answer as the `GET` variant: the signed data that opens the add-on's provider dashboard as the caller. The add-on is looked up by add-on ID or real ID among the organisation's own; 404 otherwise. Requires the `manage_organisations_services` OAuth right and the admin, manager or developer role in the organisation (403 otherwise, or when the organisation is deleted). Also callable by platform services holding all rights.","operationId":"sso_org_addon","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"addon_id","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SSO data","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonSSOData"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/organisations\/{id}\/applications":{"get":{"tags":["Applications"],"summary":"List the applications of an organisation","description":"Returns the applications owned by the organisation. Requires membership of the organisation; a member without the ADMIN, MANAGER or DEVELOPER role gets an empty list. The organisation's Jenkins token lists only the applications tagged `type:jenkins-runner` and `origin:jenkins-addon`.","operationId":"listOrganisationApplications","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of applications","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Create an application in an organisation","description":"Creates an application owned by the organisation and returns it. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation, which must be active. With the organisation's Jenkins token, the new application is tagged `type:jenkins-runner` and `origin:jenkins-addon`.","operationId":"createOrganisationApplication","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeApplication"}}},"required":true},"responses":{"200":{"description":"Application created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The body is not sent as JSON: the response has no body"},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}":{"get":{"tags":["Applications"],"summary":"Get an application of an organisation","description":"Returns an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation. The organisation's Jenkins token reads only the applications tagged `type:jenkins-runner` and `origin:jenkins-addon` (403 otherwise).","operationId":"getOrganisationApplication","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Refused: a message, or no body at all when the organisation's Jenkins token targets an application without both runner tags","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Update an application of an organisation","description":"Edits an organisation's application from the given application definition and returns the updated application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"updateOrganisationApplication","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeApplication"}}},"required":true},"responses":{"200":{"description":"Application updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Delete an application of an organisation","description":"Stops and deletes an organisation's application. Requires the ADMIN or MANAGER role in the organisation. The organisation's Jenkins token deletes only the applications tagged `type:jenkins-runner` and `origin:jenkins-addon`.","operationId":"deleteOrganisationApplication","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Refused: a message, or no body at all when the organisation's Jenkins token targets an application without both runner tags","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/addons":{"get":{"tags":["Applications"],"summary":"List the add-ons linked to an application","description":"Returns the add-ons linked to an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"listOrganisationApplicationAddons","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Linked add-ons","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Link an add-on to an application","description":"Links an add-on of the organisation to an organisation's application, which then receives the add-on's environment variables. The body is the add-on ID, as a JSON string. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; the organisation's Jenkins token is accepted too.","operationId":"linkOrganisationApplicationAddon","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"string"}}},"required":true},"responses":{"204":{"description":"Add-on linked"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"The add-on does not exist or does not belong to the organisation (error id 10300)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/addons\/env":{"get":{"tags":["Applications"],"summary":"List the environment variables of the linked add-ons","description":"Returns, for each add-on linked to an organisation's application, the environment variables it provides to the application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"listOrganisationApplicationAddonsEnvironmentVariables","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables of the linked add-ons","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LinkedAddonEnvironmentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/addons\/{addonId}":{"delete":{"tags":["Applications"],"summary":"Unlink an add-on from an application","description":"Removes the link between an add-on and an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"unlinkOrganisationApplicationAddon","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Add-on unlinked"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/branch":{"put":{"tags":["Applications"],"summary":"Set the deployed branch of an application","description":"Sets the Git branch an organisation's application deploys from, named in the body's `branch`. Answers 400 (error id 3004) when the repository has no such branch. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"updateOrganisationApplicationBranch","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeBranch"}}},"required":true},"responses":{"200":{"description":"Branch updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"Invalid application data (error id 3004): the body is not a branch object, or names a branch the repository does not have. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/branches":{"get":{"tags":["Applications"],"summary":"List the Git branches of an application","description":"Returns the branches of the GitHub repository linked to an organisation's application, the default branch first, read with the caller's GitHub access (anonymously when the caller has no linked GitHub account, as with a service token, so a private repository is then not readable), or only `master` when no repository is linked. Answers 400 (error id 1603) when GitHub rejects that access. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"listOrganisationApplicationBranches","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Branch names, the repository's default branch first","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/buildflavor":{"put":{"tags":["Applications"],"summary":"Set the build flavor of an application","description":"Sets the flavor of the instance that builds an organisation's application, named in the body's `name`; an unknown flavor answers 400 (error id 9018). Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"updateOrganisationApplicationBuildInstanceFlavor","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeBuildFlavor"}}},"required":true},"responses":{"204":{"description":"Build flavor updated"},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/dependencies":{"get":{"tags":["Applications"],"summary":"List the dependencies of an application","description":"Returns the applications an organisation's application depends on; a dependency owned by another owner is left out. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"getApplicationDependenciesByOrgaAndAppId","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependencies","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/dependencies\/env":{"get":{"tags":["Applications"],"summary":"List the environment variables of an application's dependencies","description":"Returns, for each dependency of an organisation's application, its ID, its name and its environment variables; a dependency owned by another owner is left out. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"getApplicationDependenciesEnvByOrgaAndAppId","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables of each dependency","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DependencyEnvView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/dependencies\/{dependencyId}":{"put":{"tags":["Applications"],"summary":"Add a dependency to an application","description":"Makes an organisation's application depend on another application of the organisation, whose exposed variables it then receives; the ID of an add-on that runs as an application of the organisation is accepted too. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"addApplicationDependencyByOrgaAndAppId","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"dependencyId","in":"path","description":"ID of the dependency application (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependency added","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Remove a dependency from an application","description":"Removes a dependency of an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"deleteApplicationDependencyByOrgaAndAppId","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"dependencyId","in":"path","description":"ID of the dependency application (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependency removed (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/dependents":{"get":{"tags":["Applications"],"summary":"List the applications depending on an application","description":"Returns the applications that depend on an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"getApplicationDependentsByOrgaAndAppId","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependent applications","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/deployments":{"get":{"tags":["Applications"],"summary":"List the deployments of an application","description":"Returns the deployment history of an organisation's application, paginated with `limit` and `offset`; an `action` query parameter keeps only one kind of deployment (`DEPLOY`, `UNDEPLOY`, `UPSCALE` or `DOWNSCALE`). Requires membership of the organisation. The organisation's Jenkins token reads only the applications tagged `type:jenkins-runner` and `origin:jenkins-addon`.","operationId":"getApplicationDeploymentsForOrga","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of deployments (default 20, between 1 and 1000)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"offset","in":"query","description":"Number of deployments to skip","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Deployments","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DeploymentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Refused: a message, or no body at all when the organisation's Jenkins token targets an application without both runner tags","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/deployments\/{deploymentId}":{"get":{"tags":["Applications"],"summary":"Get a deployment of an application","description":"Returns one deployment of an organisation's application. An unknown deployment ID answers 400 (error id 4102). Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"getApplicationDeploymentForOrga","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","description":"Deployment ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeploymentView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/deployments\/{deploymentId}\/instances":{"delete":{"tags":["Applications"],"summary":"Cancel a deployment of an application","description":"Cancels a deployment of an organisation's application that is still in progress, designated by its ID or its number; answers 400 (error id 4101) when it is not in progress. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"cancelApplicationDeploymentForOrga","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","description":"Deployment ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deployment cancelled (message id 325)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/env":{"get":{"tags":["Applications"],"summary":"List the environment variables of an application","description":"Returns the environment variables set on an organisation's application, as name\/value pairs. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"listOrganisationApplicationEnvironmentVariables","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonEnvironmentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Replace the environment variables of an application","description":"Replaces every environment variable of an organisation's application with the given name-to-value map and returns the edited application; with `check=true`, the variables are validated first. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service. The organisation's Jenkins token edits only the applications tagged `type:jenkins-runner` and `origin:jenkins-addon`.","operationId":"updateOrganisationApplicationEnvironmentVariables","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"check","in":"query","description":"When `true`, validate the variables against the environment schema of the application's runtime first","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"The edited application","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"Invalid application data. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Refused: a message, or no body at all when the organisation's Jenkins token is wrong or targets an application without both runner tags","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/env\/{envName}":{"put":{"tags":["Applications"],"summary":"Set an environment variable of an application","description":"Creates or updates one environment variable of an organisation's application and returns the edited application. The body carries the value in `value`. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"updateOrganisationApplicationEnvironmentVariable","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"envName","in":"path","description":"Environment variable name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeValue"}}},"required":true},"responses":{"200":{"description":"The edited application","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"Invalid application data. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Application not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Delete an environment variable of an application","description":"Removes one environment variable from an organisation's application and returns the edited application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"deleteOrganisationApplicationEnvironmentVariable","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"envName","in":"path","description":"Environment variable name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The edited application","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Application not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/exposed_env":{"get":{"tags":["Applications"],"summary":"Get the exposed environment variables of an application","description":"Returns the variables an organisation's application exposes to the applications that depend on it, as a name-to-value map. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"listOrganisationAppplicationExposedEnvironmentVariables","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Exposed variables, as a name-to-value map","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Replace the exposed environment variables of an application","description":"Replaces the variables an organisation's application exposes to the applications that depend on it with the given name-to-value map, then redeploys each of those applications that is running. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"updateOrganisationApplicationExposedEnvironmentVariables","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeExposedEnv"}}},"required":true},"responses":{"200":{"description":"Exposed variables updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/instances":{"get":{"tags":["Applications"],"summary":"List the instances of an application","description":"Returns the running instances of an organisation's application, optionally only those of one deployment. Requires membership of the organisation; a member without the ADMIN, MANAGER or DEVELOPER role gets an empty list.","operationId":"listOrganisationApplicationInstances","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"query","description":"Only the instances of this deployment","required":false,"schema":{"type":"string"}},{"name":"withDeleted","in":"query","description":"Accepted for compatibility; `true` is only allowed together with `deploymentId`","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Running instances","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SuperNovaInstanceView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Redeploy an application of an organisation","description":"Starts a new deployment of an organisation's application and returns its deployment ID; without `commit`, the application's current commit is deployed. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation, which must be active.","operationId":"redeployOrganisationApplication","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"commit","in":"query","description":"Git commit SHA to deploy, or `HEAD` for the head of the branch of a GitHub-linked application","required":false,"schema":{"type":"string"}},{"name":"useCache","in":"query","description":"`no` builds without the build cache; any other value, or none, uses it","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deployment started; the body carries its deployment ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeploySuccessMessage"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Stop an application of an organisation","description":"Stops every instance of an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"stopOrganisationApplication","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application stopped","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/tags":{"get":{"tags":["Applications"],"summary":"List the tags of an application","description":"Returns the tags of an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"listOrganisationApplicationTags","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tags","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Replace the tags of an application","description":"Replaces every tag of an organisation's application with the given list and returns it. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"updateOrganisationApplicationTags","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}}}},"required":true},"responses":{"200":{"description":"Tags replaced","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/tags\/{tag}":{"put":{"tags":["Applications"],"summary":"Add a tag to an application","description":"Adds a tag to an organisation's application and returns its tags. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"addOrganisationApplicationTag","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tag added","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Remove a tag from an application","description":"Removes a tag from an organisation's application and returns the remaining tags. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"removeOrganisationApplicationTag","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The remaining tags","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Application not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/tcpRedirs":{"get":{"tags":["Applications"],"summary":"List the TCP redirections of an application","description":"Returns the TCP redirections of an organisation's application, each as a namespace and the port allocated in it. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"listOrganisationApplicationTCPRedirections","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"TCP redirections","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TcpRedirView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Create a TCP redirection for an application","description":"Allocates a port in the namespace named in the body (a global namespace or one of the organisation's) and redirects its TCP traffic to an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"createOrganisationApplicationTCPRedirection","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeNamespace"}}},"required":true},"responses":{"200":{"description":"TCP redirection created; the port is allocated in the namespace, a `sourcePort` in the body is ignored","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TcpRedirView"}}}},"400":{"description":"Invalid application data (error id 3004): the body is not valid JSON or names no namespace. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Namespace not found (error id 4201): it is neither a global namespace nor one of the organisation's","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"409":{"description":"The application already has a redirection in this namespace (error id 4041)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"415":{"description":"The body is not sent as JSON: the response has no body"},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/tcpRedirs\/{sourcePort}":{"delete":{"tags":["Applications"],"summary":"Delete a TCP redirection of an application","description":"Removes the TCP redirection of the given port, in the namespace named by the `namespace` query parameter, from an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"deleteOrganisationApplicationTCPRedirection","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"sourcePort","in":"path","description":"Source port","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"namespace","in":"query","description":"Namespace of the redirection (required)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"TCP redirection deleted (empty body)"},"400":{"description":"Invalid application data (error id 3004): the `namespace` query parameter is missing. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Namespace not found for this organisation (error id 4201)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/udpRedirs":{"get":{"tags":["Applications"],"summary":"List the UDP redirections of an application","description":"Returns the UDP redirections of an organisation's application, each as a namespace and the port allocated in it. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"listOrganisationApplicationUDPRedirections","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"UDP redirections","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TcpRedirView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Create a UDP redirection for an application","description":"Allocates a port in the namespace named in the body (a global namespace or one of the organisation's) and redirects its UDP traffic to an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"createOrganisationApplicationUDPRedirection","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeNamespace"}}},"required":true},"responses":{"200":{"description":"UDP redirection created; the port is allocated in the namespace, a `sourcePort` in the body is ignored","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TcpRedirView"}}}},"400":{"description":"Invalid application data (error id 3004): the body is not valid JSON or names no namespace. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Namespace not found (error id 4201): it is neither a global namespace nor one of the organisation's","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"409":{"description":"The application already has a redirection in this namespace (error id 4041)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"415":{"description":"The body is not sent as JSON: the response has no body"},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/udpRedirs\/{sourcePort}":{"delete":{"tags":["Applications"],"summary":"Delete a UDP redirection of an application","description":"Removes the UDP redirection of the given port, in the namespace named by the `namespace` query parameter, from an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"deleteOrganisationApplicationUDPRedirection","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"sourcePort","in":"path","description":"Source port","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"namespace","in":"query","description":"Namespace of the redirection (required)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"UDP redirection deleted (empty body)"},"400":{"description":"Invalid application data (error id 3004): the `namespace` query parameter is missing. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Namespace not found for this organisation (error id 4201)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/vhosts":{"get":{"tags":["Applications"],"summary":"List the domain names of an application","description":"Returns the virtual hosts (domain names) routed to an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"listOrganisationApplicationVirtualHosts","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Virtual hosts","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/VhostView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/vhosts\/favourite":{"get":{"tags":["Applications"],"summary":"Get the favourite domain name of an application","description":"Returns the virtual host marked as favourite on an organisation's application; 404 (error id 4021) when none is. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"getOrganisationApplicationFavouriteVirtualHost","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Favourite virtual host","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VhostView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Set the favourite domain name of an application","description":"Marks one of the virtual hosts of an organisation's application as its favourite and returns it; the body is a virtual host whose `fqdn` must already be routed to the application (400, error id 3004, otherwise). Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by platform services.","operationId":"updateOrganisationApplicationFavouriteVirtualHost","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VhostView"}}},"required":true},"responses":{"200":{"description":"Favourite set","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VhostView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Clear the favourite domain name of an application","description":"Removes the favourite mark from the virtual hosts of an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"removeOrganisationApplicationFavouriteVirtualHost","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Favourite cleared (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{appId}\/vhosts\/{domain}":{"put":{"tags":["Applications"],"summary":"Add a domain name to an application","description":"Routes the given domain name to an organisation's application. Refused when the domain is already used by another application or is not allowed. Requires a user holding the ADMIN, MANAGER or DEVELOPER role in the organisation.","operationId":"addOrganisationApplicationVirtualHost","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"domain","in":"path","description":"Domain name (FQDN)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain name added","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Remove a domain name from an application","description":"Stops routing the given domain name to an organisation's application. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by platform services.","operationId":"removeOrganisationApplicationVirtualhost","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"domain","in":"path","description":"Domain name (FQDN)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain name removed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/applications\/{app_id}\/github-webhook\/secret":{"post":{"tags":["Applications"],"summary":"Rotate the GitHub webhook secret of an application","description":"Generates a new secret for the GitHub push webhook of the repository linked to an organisation's application, for every application that webhook serves: the organisation's own when it has a webhook of its own on the repository, otherwise every application deploying from the repository whose owner has none. Answers 400 when the application is not linked to GitHub, 501 when GitHub integration is not available. Requires the ADMIN, MANAGER or DEVELOPER role in the organisation; also callable by the platform administration service.","operationId":"rotate_org_application_github_webhook_secret","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`, or `user_\u2026` for a personal space)","required":true,"schema":{"type":"string"}},{"name":"app_id","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"GitHub webhook secret rotated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"501":{"description":"GitHub integration is not available: the response has no body"},"502":{"description":"GitHub refused the change: the response has no body"},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"applications"}},"\/v2\/organisations\/{id}\/avatar":{"put":{"tags":["Organisations"],"summary":"Replace the avatar of an organisation","description":"Uploads a new avatar sent as the raw image body (`image\/bmp`, `image\/gif`, `image\/jpeg`, `image\/png` or `image\/tiff`), or with a JSON body takes it from the caller's Gravatar or linked GitHub account, and returns its URL. Requires the right to manage organisations and the `ADMIN` or `MANAGER` role. A service token can only upload an image.","operationId":"updateOrganisationAvatar","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON body naming the avatar source, or the raw bytes of the image, sent as `image\/bmp`, `image\/gif`, `image\/jpeg`, `image\/png` or `image\/tiff` (any other type answers 415).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAvatarSource"}},"image\/bmp":{"schema":{"type":"string","format":"binary"}},"image\/gif":{"schema":{"type":"string","format":"binary"}},"image\/jpeg":{"schema":{"type":"string","format":"binary"}},"image\/png":{"schema":{"type":"string","format":"binary"}},"image\/tiff":{"schema":{"type":"string","format":"binary"}}},"required":true},"responses":{"200":{"description":"The new avatar URL","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UrlView"}}}},"400":{"description":"Invalid avatar source. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Cannot manage organisations, or no access to this one","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"Unknown organisation, or no linked GitHub account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The `Content-Type` is neither a supported image type nor `application\/json`: the response has no body"},"500":{"description":"Internal error: the error body. No body when a service token is sent and the server cannot verify service tokens.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/consumers":{"get":{"tags":["Organisations"],"summary":"List the OAuth consumers of an organisation","description":"Returns the OAuth1 consumers (API client applications) the organisation owns, with their rights. Requires the `manage_organisations_services` OAuth right and the `ADMIN`, `MANAGER` or `DEVELOPER` role. Also callable by platform services with administrative rights.","operationId":"listOrganisationConsumers","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of consumers","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"post":{"tags":["Organisations"],"summary":"Create an OAuth consumer","description":"Creates an OAuth1 consumer owned by the organisation with the requested rights and returns it with its generated key; fetch its secret separately. Requires the `manage_organisations_services` OAuth right and the `ADMIN` role: `MANAGER` and `DEVELOPER` members are deliberately refused, although they may create applications. The `almighty` right is never granted, and creation is rate-limited per organisation (403 when exceeded). Also callable by platform services with administrative rights.","operationId":"createOrganisationConsumer","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeOAuth1Consumer"}}},"required":true},"responses":{"200":{"description":"Created consumer","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/consumers\/{key}":{"get":{"tags":["Organisations"],"summary":"Get an OAuth consumer of an organisation","description":"Returns the OAuth1 consumer with its rights; 404 when the organisation has no consumer with this key. Requires the `manage_organisations_services` OAuth right and the `ADMIN`, `MANAGER` or `DEVELOPER` role. Also callable by platform services with administrative rights.","operationId":"getOrganisationConsumer","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Consumer details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"put":{"tags":["Organisations"],"summary":"Update an OAuth consumer","description":"Updates the consumer's name, description, URLs, picture and rights, and returns it; 404 when the organisation has no consumer with this key. Requires the `manage_organisations_services` OAuth right and the `ADMIN` role. Also callable by platform services with administrative rights.","operationId":"updateOrganisationConsumer","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeOAuth1Consumer"}}},"required":true},"responses":{"200":{"description":"Updated consumer","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"delete":{"tags":["Organisations"],"summary":"Delete an OAuth consumer","description":"Deletes the organisation's OAuth1 consumer; 404 when the organisation has no consumer with this key. Requires the `manage_organisations_services` OAuth right and the `ADMIN` role. Also callable by platform services with administrative rights.","operationId":"deleteOrganisationConsumer","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Consumer deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/consumers\/{key}\/secret":{"get":{"tags":["Organisations"],"summary":"Get the secret of an OAuth consumer","description":"Returns the secret of the organisation's OAuth1 consumer. Requires the `manage_organisations_services` OAuth right and the `ADMIN` role. Also callable by platform services with administrative rights.","operationId":"getOrganisationConsumerSecret","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Consumer secret","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SecretView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/deployments":{"get":{"tags":["Organisations"],"summary":"List the recent deployments of an organisation's applications","description":"Returns a map from application ID (`app_\u2026`) to its most recent deployments, newest first, at most `limit` per application. Requires the right to manage the organisation's applications, for OAuth1 and platform-service tokens alike (403 otherwise; an almighty token holds it), then membership (404 otherwise); a member whose role is not `ADMIN`, `MANAGER` or `DEVELOPER` (an `ACCOUNTING` member, for instance) gets a 200 with an empty JSON array `[]` instead of the map. Also callable by platform services with administrative rights.","operationId":"listOrganisationDeployments","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of deployments per application (default 10)","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Map of application ID to its most recent deployments, or an empty array when the caller's role cannot see the organisation's applications","content":{"application\/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#\/components\/schemas\/DeploymentView"}},"propertyNames":{"type":"string"}},{"type":"array","items":{"type":"object"},"description":"Empty array: the caller's role in the organisation cannot see its applications.","maxItems":0}],"description":"Map from application ID (`app_\u2026`) to its most recent deployments, or an empty array when the caller's role cannot see the organisation's applications."}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/drain-policy":{"get":{"tags":["Organisations"],"summary":"Get the drain policy of an organisation","description":"Returns, for each drain kind (`LOG`, `ACCESSLOG`, `AUDITLOG`), whether the organisation requires it on its resources, and the drain templates applied; recipient credentials are masked. The caller must be a member (403 otherwise); an unknown organisation or a personal space answers 404. Also callable by platform services with administrative rights.","operationId":"getOrganisationDrainPolicy","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The drain policy; recipient credentials are masked","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganisationDrainPolicyView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/instances":{"get":{"tags":["Instances"],"summary":"List the instances of an organisation","description":"Returns a map from the application ID (`app_\u2026`) or, for an add-on that has instances, the add-on's real ID (`postgresql_\u2026`, `redis_\u2026`) to its instances. Requires the right to manage the organisation's applications, for OAuth1 and platform-service tokens alike (403 otherwise; an almighty token holds it), then membership (404 otherwise); a member whose role is not `ADMIN`, `MANAGER` or `DEVELOPER` (an `ACCOUNTING` member, for instance) gets a 200 with an empty JSON array `[]` instead of the map. Also callable by platform services with administrative rights.","operationId":"listOrganisationInstances","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Map of application ID or add-on real ID to its instances, or an empty array when the caller's role cannot see the organisation's applications","content":{"application\/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"array","items":{"type":"object"}},"propertyNames":{"type":"string"}},{"type":"array","items":{"type":"object"},"description":"Empty array: the caller's role in the organisation cannot see its applications.","maxItems":0}],"description":"Map from application ID (`app_\u2026`) or add-on real ID (`postgresql_\u2026`, `redis_\u2026`) to its instances, or an empty array when the caller's role cannot see the organisation's applications."}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"instances"}},"\/v2\/organisations\/{id}\/members":{"get":{"tags":["Organisations"],"summary":"List the members of an organisation","description":"Returns each member with their user profile, role and job title. The caller must be a member (403 otherwise), the organisation must not be deleted (403), and the organisation's partner may forbid listing members. Also callable by platform services with administrative rights.","operationId":"listOrganisationMembers","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Organisation members","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/MemberView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"post":{"tags":["Organisations"],"summary":"Invite a member to an organisation","description":"Emails an invitation to `email` for the given `role` (`DEVELOPER` by default) and answers 201 with it. Requires the `manage_organisations_members` OAuth right and the `ADMIN` or `MANAGER` role, the caller may only grant a role it is allowed to assign, and invitations are rate-limited per sender and per invitee. With `invitationKey`, the authenticated user instead accepts that invitation and joins the organisation (200).","operationId":"addOrganisationMember","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"invitationKey","in":"query","description":"Key of an invitation the authenticated user accepts; the request body is then ignored","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeMember"}}},"required":true},"responses":{"200":{"description":"Invitation accepted \u2014 the caller was added to the organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"201":{"description":"Invitation created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InvitationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid, or the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"409":{"description":"The invited user, or the user accepting the invitation, is already a member of the organisation; an invitation accepted this way is used up","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/members\/invitations":{"get":{"tags":["Organisations"],"summary":"List the pending invitations of an organisation","description":"Returns the invitations to join the organisation that are still waiting for an answer and have not expired, newest first. An invitation whose sender has since left the organisation, or no longer holds a role allowed to offer the invited one, is left out: it can no longer be accepted. Requires the `manage_organisations_members` OAuth right and the `ADMIN` or `MANAGER` role; a deleted organisation answers 403, and the organisation's partner may forbid managing members. Also callable by platform services with administrative rights.","operationId":"listOrganisationInvitations","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Pending invitations","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/InvitationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Missing OAuth right, not a member, insufficient role, deleted organisation, or member management denied by the partner","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"Unknown organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/members\/invitations\/{invitationId}":{"delete":{"tags":["Organisations"],"summary":"Cancel a pending invitation to an organisation","description":"Cancels an invitation that is still waiting for an answer: its link stops working at once. Requires the `manage_organisations_members` OAuth right, the `ADMIN` or `MANAGER` role, and being allowed to assign the role the invitation offers (a `MANAGER` cannot cancel an `ADMIN` invitation). Answers 404 when the organisation has no pending invitation with that ID, including one already accepted, expired or cancelled, and one the listing leaves out because its sender may no longer offer its role. Also callable by platform services with administrative rights.","operationId":"cancelOrganisationInvitation","parameters":[{"name":"id","in":"path","description":"Organisation ID (`orga_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"invitationId","in":"path","description":"Invitation ID (a UUID), as listed by the pending invitations","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Invitation cancelled","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Missing OAuth right, not a member, insufficient role, a role the caller may not assign, deleted organisation, or member management denied by the partner","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"Unknown organisation, or no pending invitation with that ID in it","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/members\/{userId}":{"put":{"tags":["Organisations"],"summary":"Update a member of an organisation","description":"Changes a member's `role` and\/or `job`. Requires the `manage_organisations_members` OAuth right and the `ADMIN` or `MANAGER` role; the caller may only grant a role it is allowed to assign, may only edit a member whose current role it is allowed to assign (a member with no valid role, by an `ADMIN` only), and the last `ADMIN` cannot be demoted. Platform services with administrative rights can change the job title only.","operationId":"updateOrganisationMember","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeMember"}}},"required":true},"responses":{"200":{"description":"Member updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"delete":{"tags":["Organisations"],"summary":"Remove a member from an organisation","description":"Removes the user from the organisation. Requires the `manage_organisations_members` OAuth right, leaving the organisation included; removing someone else also requires the `ADMIN` or `MANAGER` role and being allowed to assign their current role (a member with no valid role, by an `ADMIN` only). The last member and the last `ADMIN` cannot be removed. The invitations the removed member sent that are still waiting for an answer are cancelled with the membership. Also callable by platform services with administrative rights.","operationId":"removeOrganisationMember","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","description":"User ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Member removed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/namespaces":{"get":{"tags":["Organisations"],"summary":"List the TCP redirection namespaces of an organisation","description":"Returns the namespaces the organisation's applications can use for TCP redirections, always including `default` and `cleverapps`. Requires the right to manage the organisation's applications, and the caller must be a member (404 otherwise).","operationId":"listOrganisationNamespaces","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Organisation namespaces","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/NamespaceView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/payment-info":{"get":{"tags":["Payments"],"summary":"Get the billing details of an organisation","description":"Returns the name, company, address and VAT number used to bill the organisation, with the missing fields listed in `errors`. Requires the `ADMIN` or `ACCOUNTING` role (or the caller's own personal space) and, for OAuth1, the rights to access the organisation's bills and credit count; an unknown or deleted organisation answers 403. Also callable by platform services with administrative rights.","operationId":"getOrganisationPaymentInfo","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Billing details of the organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaymentInfoView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"payments"}},"\/v2\/organisations\/{id}\/service-tokens":{"get":{"tags":["Organisations"],"summary":"List the service tokens of an organisation","description":"Returns the organisation's service tokens, each with the `creatorUserId` of the member who created it; a member without the `ADMIN` or `MANAGER` role only sees the tokens they created. Without `paginate`, the response is an array of every token, newest first, from which `offset` skips entries and `limit` keeps at most that many; with `paginate=1`, it is one page `{items, nextCursor}` of at most `limit` tokens (50 by default, at most 200): pass `nextCursor` back as `cursor` for the next page until it is `null`. Pages run oldest first, except for a member who only sees their own tokens: theirs run newest first, and their cursor is issued by this route for their own list only, so a cursor from another caller, or naming a token since revoked, is refused. A cursor obtained before the organisation's first `session_\u2026` token was created is refused too (400): start the listing again. Requires membership and the right to manage the organisation's services. Also callable by platform services with administrative rights.","operationId":"listServiceTokens","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of entries to return. Without `paginate`, applied after `offset`, and\nevery entry is returned when it is absent. With `paginate=1`, the page size.","required":false,"schema":{"type":"integer","format":"int64","maximum":4294967295,"minimum":0}},{"name":"offset","in":"query","description":"Without `paginate` only: number of entries to skip before `limit` applies; 0 when\nabsent. Refused with `paginate=1`.","required":false,"schema":{"type":"integer","format":"int64","maximum":4294967295,"minimum":0}},{"name":"cursor","in":"query","description":"With `paginate=1` only: the `nextCursor` of the previous page, to read the next one;\nabsent for the first page. Refused without `paginate`.","required":false,"schema":{"type":"string"}},{"name":"paginate","in":"query","description":"`1` (or `true`) to receive one `{items, nextCursor}` page at a time instead of an array.\nAbsent, empty, `0` or `false`: an array, selected with `limit` and `offset`. `TRUE`,\n`True`, `FALSE` and `False` are accepted too; any other value is refused.","required":false,"schema":{"oneOf":[{"type":"boolean"},{"type":"integer","enum":[0,1]}]}}],"responses":{"200":{"description":"The service tokens: an array without `paginate`, one `{items, nextCursor}` page with `paginate=1`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListResponse_ServiceToken"}}}},"400":{"description":"`offset` sent with `paginate=1`, `cursor` sent without it, or a `cursor` this list did not issue. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"The next-page cursor could not be encoded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"502":{"description":"The token service failed or did not answer within 30 seconds, or the organisation holds more than 10 000 service tokens: too many to list in one array (use `paginate=1`), or to page for a member who only sees their own tokens, or, once the organisation holds `session_\u2026` tokens, to page for anyone","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"post":{"tags":["Organisations"],"summary":"Create a service token","description":"Creates a token that calls the API on the organisation's behalf with the given `role`, optionally restricted to some applications and add-ons (`resources`), valid `ttl_seconds` (90 days by default, one year at most). Requires membership, the right to manage the organisation's services and permission to assign the requested role; creation is rate-limited per organisation. The token value appears only in this response. Answers 503 when service-token creation is temporarily unavailable for the organisation. `productId` and `locationId` in the response metadata may be empty strings and should not be relied on.","operationId":"createServiceToken","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeServiceToken"}}},"required":true},"responses":{"201":{"description":"Service token created, with its value","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreatedServiceToken"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/organisations\/{id}\/service-tokens\/{tokenId}":{"get":{"tags":["Organisations"],"summary":"Get a service token","description":"Returns the service token's details, with the `creatorUserId` of the member who created it; 404 when unknown. `tokenId` may also be the token's revocation ID. Requires membership and the right to manage the organisation's services; a member without the `ADMIN` or `MANAGER` role may only read a token they created (403 otherwise). Also callable by platform services with administrative rights.","operationId":"getServiceToken","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","description":"Service token ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Service token details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ServiceToken"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"},"delete":{"tags":["Organisations"],"summary":"Revoke a service token","description":"Revokes the service token, which then stops being accepted; answers 204. `tokenId` may also be the token's revocation ID. Requires membership and the right to manage the organisation's services; a member without the `ADMIN` role may only revoke a token they created (403 otherwise). A platform service may also revoke by its `session_\u2026` ID a token that is not in any organisation's list; for every other caller that ID answers 404. A token that belongs to another organisation is refused with 403, whatever the caller's role. Also callable by platform services with administrative rights.","operationId":"deleteServiceToken","parameters":[{"name":"id","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","description":"Service token ID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Service token revoked"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/products\/addonproviders":{"get":{"tags":["Products"],"summary":"List the add-on providers","description":"Returns the add-on catalogue: providers with their plans, features and zones. Without a credential, or with a refused one, it lists the publicly released providers; for an authenticated user, it also lists the alpha providers of their organisations and the private betas they test. `orgaId` reads the catalogue as that organisation, with its granted zones, allowed hidden plans and prices: it requires a credential and membership (403, error id 6200), and an unknown `orgaId` is ignored.","operationId":"getAddonProviders","parameters":[{"name":"orgaId","in":"query","description":"Organisation ID (`orga_\u2026`) to read the catalogue as: its granted zones, allowed hidden plans and prices","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The add-on providers the caller can see","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonProviderInfoFullView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{},{"oauth1":[]}],"x-service":"products"}},"\/v2\/products\/addonproviders\/{provider_id}":{"get":{"tags":["Products"],"summary":"Get an add-on provider","description":"Returns one provider of the add-on catalogue, with its plans, features and zones. Requires an authenticated user (401 without a credential). A provider the caller is not allowed to see answers 404 (error id 10001); an unknown provider, or a credential whose user no longer exists, answers 500. `orgaId` reads the provider as that organisation, which requires membership (403, error id 6200).","operationId":"getAddonProvider","parameters":[{"name":"provider_id","in":"path","description":"Add-on provider ID (e.g. `postgresql-addon`)","required":true,"schema":{"type":"string"}},{"name":"orgaId","in":"query","description":"Organisation ID (`orga_\u2026`) to read the provider as: its granted zones, allowed hidden plans and prices","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The add-on provider","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonProviderInfoFullView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"products"}},"\/v2\/products\/addonproviders\/{provider_id}\/informations":{"get":{"tags":["Products"],"summary":"Get what an add-on provider offers","description":"Returns, as the provider reports them, its clusters and the options of each version available as a dedicated instance: what a new add-on can be created on. Requires an authenticated user (401 without a credential). A provider the caller is not allowed to see answers 404 (error id 10001); an unknown provider, or a credential whose user no longer exists, answers 500. The provider's final answer, status and body, is forwarded unchanged, and a provider that does not serve this view answers with its own error; a failed request to the provider answers 500 (error id 10101 or 10102).","operationId":"getAddonProviderInfos","parameters":[{"name":"provider_id","in":"path","description":"Add-on provider ID (e.g. `postgresql-addon`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"What the provider offers, as it reports it","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonProviderConsoleInfos"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the add-on provider's own error status and body, forwarded unchanged and not always JSON, or a message (`id`, `type`, `message`) when the provider cannot be reached or the caller is refused","content":{"application\/json":{"schema":{}}}}},"security":[{"oauth1":[]}],"x-service":"products"}},"\/v2\/products\/addonproviders\/{provider_id}\/versions":{"get":{"tags":["Products"],"summary":"List the versions of an add-on provider","description":"Returns, as the provider reports them, its clusters and the versions available as dedicated instances: the versions an add-on can migrate to. Requires an authenticated user (401 without a credential). A provider the caller is not allowed to see answers 404 (error id 10001); an unknown provider, or a credential whose user no longer exists, answers 500. The provider's final answer, status and body, is forwarded unchanged, and a provider that does not serve this view answers with its own error; a failed request to the provider answers 500 (error id 10101 or 10102).","operationId":"getAddonProviderVersions","parameters":[{"name":"provider_id","in":"path","description":"Add-on provider ID (e.g. `postgresql-addon`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The provider's versions, as it reports them","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonProviderConsoleVersions"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the add-on provider's own error status and body, forwarded unchanged and not always JSON, or a message (`id`, `type`, `message`) when the provider cannot be reached or the caller is refused","content":{"application\/json":{"schema":{}}}}},"security":[{"oauth1":[]}],"x-service":"products"}},"\/v2\/products\/flavors":{"get":{"tags":["Products"],"summary":"List the flavors","description":"Returns the flavors (CPU and memory sizes) offered to every customer, sorted by CPUs then memory. `context` selects the catalogue: absent or empty for `default`, `all` for every context; any other value returns the flavors of that context only, possibly none. No authentication.","operationId":"getFlavors","parameters":[{"name":"context","in":"query","description":"Flavor context: absent or empty for 'default', 'all' for every context","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The flavors of the context","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Flavor"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"products"}},"\/v2\/products\/instances":{"get":{"tags":["Products"],"summary":"List the instance types you can deploy","description":"Returns the instance types (runtimes) with their versions, flavors and build options. Without a credential it is the public catalogue; for an authenticated user, it also includes the instance types and flavors reserved to their personal space or, with `for`, to that organisation, of which they must be a member (403, error id 6200). A credential refused as expired or invalid (401) reads the public catalogue too, and with `for` so does any refused credential. An unknown `for` is ignored, and a token whose user no longer exists answers 403 (error id 7001).","operationId":"getAvailableInstances","parameters":[{"name":"for","in":"query","description":"Organisation ID (`orga_\u2026`) to read the catalogue as: its own flavors and private-beta instance types","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The instance types the caller can deploy","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AvailableInstanceView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{},{"oauth1":[]}],"x-service":"products"}},"\/v2\/providers\/es-addon\/apm-server-setup":{"get":{"tags":["Elasticsearch"],"summary":"Get the APM server setup script","description":"Returns the script that installs and configures the APM server beside an Elasticsearch add-on, for Elasticsearch 7. Open without authentication.","operationId":"getElasticsearchApmServerSetupForVersion7","responses":{"200":{"description":"The APM server setup script","content":{"text\/plain":{"schema":{"type":"string"}}}},"400":{"description":"The request could not be decoded (the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"es_addon"}},"\/v2\/providers\/es-addon\/apm-server-setup\/{version}":{"get":{"tags":["Elasticsearch"],"summary":"Get the APM server setup script for one version","description":"Returns the script that installs and configures the APM server beside an Elasticsearch add-on, for the version named in the path. Open without authentication.","operationId":"getElasticsearchApmServerSetup","parameters":[{"name":"version","in":"path","description":"Elasticsearch version, for instance `8.15.0`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The APM server setup script","content":{"text\/plain":{"schema":{"type":"string"}}}},"400":{"description":"The version in the path could not be read. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvisionResponse"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"The major version in the path is not one this provider serves: 6, 7, 8 and 9 are","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvisionResponse"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"es_addon"}},"\/v2\/providers\/es-addon\/kibana-setup":{"get":{"tags":["Elasticsearch"],"summary":"Get the Kibana setup script","description":"Returns the script that installs and configures Kibana beside an Elasticsearch add-on, for Elasticsearch 7. Open without authentication.","operationId":"getElasticsearchKibanaSetupForVersion7","responses":{"200":{"description":"The Kibana setup script","content":{"text\/plain":{"schema":{"type":"string"}}}},"400":{"description":"The request could not be decoded (the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"es_addon"}},"\/v2\/providers\/es-addon\/kibana-setup\/{version}":{"get":{"tags":["Elasticsearch"],"summary":"Get the Kibana setup script for one version","description":"Returns the script that installs and configures Kibana beside an Elasticsearch add-on, for the version named in the path. Open without authentication.","operationId":"getElasticsearchKibanaSetup","parameters":[{"name":"version","in":"path","description":"Elasticsearch version, for instance `8.15.0`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The Kibana setup script","content":{"text\/plain":{"schema":{"type":"string"}}}},"400":{"description":"The version in the path could not be read. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvisionResponse"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"The major version in the path is not one this provider serves: 6, 7, 8 and 9 are","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvisionResponse"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"es_addon"}},"\/v2\/providers\/es-addon\/resources\/providerInfos":{"get":{"tags":["Elasticsearch"],"summary":"Get the Elasticsearch provider information","description":"Returns what a new Elasticsearch add-on can be created on: the versions available and the options each one supports. Open without authentication.","operationId":"getElasticsearchProviderInformationV2","responses":{"200":{"description":"The shared clusters and the options of each version available as a dedicated instance","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvidersConsoleV2"}}}},"400":{"description":"The request could not be decoded (the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"es_addon"}},"\/v2\/providers\/es-addon\/resources\/versions":{"get":{"tags":["Elasticsearch"],"summary":"List the Elasticsearch versions available","description":"Returns the versions a new Elasticsearch add-on can be created on as a dedicated instance. The `clusters` list this body also carries is always empty. Open without authentication.","operationId":"getElasticsearchAddonVersions","responses":{"200":{"description":"The shared clusters and the versions available as a dedicated instance","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchVersionsConsole"}}}},"400":{"description":"The request could not be decoded (the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"es_addon"}},"\/v2\/providers\/mysql-addon\/resources\/providerInfos":{"get":{"tags":["MySQL"],"summary":"Get the MySQL provider information","description":"Returns what a new MySQL add-on can be created on: the shared clusters and the versions available as a dedicated instance with the options each one supports. Open without authentication.","operationId":"getMySQLProviderInformationV2","responses":{"200":{"description":"The shared clusters and the options of each version available as a dedicated instance","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MysqlProvidersConsoleV2"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"my_sql_addon"}},"\/v2\/providers\/mysql-addon\/resources\/versions":{"get":{"tags":["MySQL"],"summary":"List the MySQL versions available","description":"Returns the shared clusters a new MySQL add-on can be created on, with the version and the zone of each, and the versions available as a dedicated instance. Open without authentication.","operationId":"getMySQLAddonVersions","responses":{"200":{"description":"The shared clusters and the versions available as a dedicated instance","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MysqlVersionsConsole"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"my_sql_addon"}},"\/v2\/providers\/postgresql-addon\/resources\/providerInfos":{"get":{"tags":["PostgreSQL"],"summary":"Get the PostgreSQL provider information","description":"Returns what a new PostgreSQL add-on can be created on: the shared clusters and the versions available as a dedicated instance, each with the names of the options it supports. Open without authentication.","operationId":"getPostgreSQLProviderInformationV2","responses":{"200":{"description":"Available clusters and dedicated version options","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PostgresqlProvidersConsoleViewV2"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"postgresql_addon"}},"\/v2\/providers\/postgresql-addon\/resources\/versions":{"get":{"tags":["PostgreSQL"],"summary":"List the PostgreSQL versions available","description":"Returns the shared clusters a new PostgreSQL add-on can be created on, and the versions an existing add-on can be migrated to. Open without authentication.","operationId":"getPostgreSQLAddonVersions","responses":{"200":{"description":"Available clusters and migratable versions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PostgresqlVersionsView"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"postgresql_addon"}},"\/v2\/providers\/redis-addon\/resources\/versions":{"get":{"tags":["Redis"],"summary":"List the Redis versions available","description":"Returns the shared clusters a new Redis add-on can be created on, with the version and the zone of each, and the versions available as a dedicated instance. Open without authentication.","operationId":"getRedisAddonVersions","responses":{"200":{"description":"The shared clusters and the versions available as a dedicated instance","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RedisVersions"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"redis_addon"}},"\/v2\/self":{"get":{"tags":["Users"],"summary":"Get the current user","description":"Returns the profile of the user the token belongs to: identity, contact and postal details, email validation state, preferred MFA kind, linked OAuth providers and partner context. Requires the `access_personal_information` right.","operationId":"getUser_1","responses":{"200":{"description":"Current user profile","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserView"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"put":{"tags":["Users"],"summary":"Update the current user","description":"Updates the fields present in the body (name, phone, language, postal address, country) and leaves the others unchanged; a new name is also applied to the user's personal space. Returns the updated profile. Requires the `manage_personal_information` right; a name over 254 characters or an unknown country code answers 400.","operationId":"editUser","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeUser"}}},"required":true},"responses":{"200":{"description":"Updated user profile","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserView"}}}},"400":{"description":"The request could not be decoded (the body is malformed): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"delete":{"tags":["Users"],"summary":"Request the deletion of the current user's account","description":"Sends the user an email with a confirmation link; the account is deleted only once that link is followed. Requires an almighty token and a validated email address; refused (403) when the user's partner forbids self-deletion, and rate-limited per address.","operationId":"delete_self","responses":{"200":{"description":"Confirmation email sent","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/addons":{"get":{"tags":["Add-ons"],"summary":"List the add-ons of the current user","description":"Returns the add-ons owned by the authenticated user's personal account. Requires the `manage_organisations_services` OAuth right.","operationId":"getSelfAddons","responses":{"200":{"description":"Add-ons of the user","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"post":{"tags":["Add-ons"],"summary":"Create an add-on for the current user","description":"Provisions an add-on at its provider for the user's personal account and returns it. Creation is rate-limited (403 when the limit is hit), and plans of 60 \u20ac a month or more are refused (403) to organisations less than a month old and personal accounts less than two months old. A provider still in private beta is open only to its own members and beta testers (403, error id 10002). Requires the `manage_organisations_services` OAuth right, a validated e-mail address and an active account (403).","operationId":"provisionSelfAddon","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonProvision"}}},"required":true},"responses":{"200":{"description":"Add-on provisioned","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonView"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/preorders":{"post":{"tags":["Add-ons"],"summary":"Preview the order of an add-on for the current user","description":"Returns the invoice preview of an add-on order for the user's personal account. The request body is not read: the preview is a zero-amount order carrying the account's billing details. Requires the `manage_organisations_services` OAuth right.","operationId":"preorderSelfAddon","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeAddonProvision"}}},"required":true},"responses":{"200":{"description":"Preorder invoice preview","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InvoiceRendering"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addonId}":{"get":{"tags":["Add-ons"],"summary":"Get an add-on of the current user","description":"Returns one add-on of the user's personal account, looked up by add-on ID or real ID; a deleted add-on is not found. 404 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"getSelfAddonById","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"put":{"tags":["Add-ons"],"summary":"Rename an add-on of the current user","description":"Sets the add-on's name (not blank, at most 255 characters) and returns the updated add-on. The add-on is looked up by add-on ID or real ID; 404 when it does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"renameAddon","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","description":"New name of the add-on.","required":["name"],"properties":{"name":{"type":"string","description":"New name of the add-on; not blank, at most 255 characters."}}}}},"required":true},"responses":{"200":{"description":"Add-on renamed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"delete":{"tags":["Add-ons"],"summary":"Delete an add-on of the current user","description":"Deprovisions the add-on at its provider and deletes it. The add-on is looked up by add-on ID or real ID; 400 for an application's FTP add-on, 412 for a system add-on, 404 when it does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"deprovisionSelfAddonById","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addonId}\/applications":{"get":{"tags":["Add-ons"],"summary":"List the applications linked to an add-on of the current user","description":"Returns the applications the add-on is linked to. 404 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"getSelfApplicationsLinkedToAddonByAddonId","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Linked applications","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addonId}\/env":{"get":{"tags":["Add-ons"],"summary":"List the environment variables of an add-on of the current user","description":"Returns the environment variables the add-on exposes to the applications linked to it, credentials included. The add-on is looked up by add-on ID or real ID; 404 when it does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"getSelfAddonEnvByAddonId","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonEnvironmentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addonId}\/plan":{"put":{"tags":["Add-ons"],"summary":"Change the plan of an add-on of the current user","description":"Asks the add-on's provider to move the add-on to the plan given in the body, and forwards the provider's answer. 404 when the add-on does not exist, is deleted or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"changeSelfAddonPlanByAddonId","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabePlanChange"}}},"required":true},"responses":{"200":{"description":"Plan change initiated (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addonId}\/sso":{"get":{"tags":["Add-ons"],"summary":"Get the single sign-on data of an add-on of the current user","description":"Returns the signed data that opens the add-on's provider dashboard as the current user: the provider's SSO `url`, the add-on real `id`, `timestamp`, `token`, `signature` and `email`. The add-on is looked up by add-on ID or real ID among the user's own; 404 otherwise. Requires the `manage_organisations_services` OAuth right.","operationId":"getAddonSSOData","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SSO data","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonSSOData"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addonId}\/tags":{"get":{"tags":["Add-ons"],"summary":"List the tags of an add-on of the current user","description":"Returns the add-on's tags. 403 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"getSelfAddonTagsByAddonId","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tags of the add-on","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addonId}\/tags\/{tag}":{"put":{"tags":["Add-ons"],"summary":"Add a tag to an add-on of the current user","description":"Adds the tag to the add-on and returns all its tags. 403 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"addSelfAddonTagByAddonId","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag to add","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tags of the add-on, the new one included","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"},"delete":{"tags":["Add-ons"],"summary":"Remove a tag from an add-on of the current user","description":"Removes the tag from the add-on and returns the remaining tags. 404 when the add-on does not carry this tag, 403 when the add-on does not exist or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"deleteSelfAddonTagByAddonId","parameters":[{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag to remove","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Remaining tags","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addon_id}\/migration":{"post":{"tags":["Add-ons"],"summary":"Migrate an add-on of the current user to another plan","description":"Asks the add-on's provider to move the add-on to the plan given in the body, and forwards the provider's answer; same effect as changing the plan. 404 when the add-on does not exist, is deleted or belongs to another owner. Requires the `manage_organisations_services` OAuth right.","operationId":"migrate_self_addon","parameters":[{"name":"addon_id","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabePlanChange"}}},"required":true},"responses":{"200":{"description":"Migration initiated (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/addons\/{addon_id}\/sso":{"post":{"tags":["Add-ons"],"summary":"Generate the single sign-on data of an add-on of the current user","description":"Same answer as the `GET` variant: the signed data that opens the add-on's provider dashboard as the current user. The add-on is looked up by add-on ID or real ID among the user's own; 404 otherwise. Requires the `manage_organisations_services` OAuth right.","operationId":"sso_self_addon","parameters":[{"name":"addon_id","in":"path","description":"Add-on ID (`addon_\u2026`) or real ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SSO data","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AddonSSOData"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v2\/self\/applications":{"get":{"tags":["Applications"],"summary":"List the applications of the current user","description":"Returns the applications owned by the authenticated user's personal space. The applications of the user's organisations are listed by the organisation routes.","operationId":"getSelfApplications","responses":{"200":{"description":"List of applications","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Create an application for the current user","description":"Creates an application in the authenticated user's personal space and returns it. The user's email address must be validated and the account must not be moderated.","operationId":"addSelfApplication","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeApplication"}}},"required":true},"responses":{"200":{"description":"Application created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The body is not sent as JSON: the response has no body"},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}":{"get":{"tags":["Applications"],"summary":"Get an application of the current user","description":"Returns an application of the user's personal space. An application of an organisation is returned too when the user holds the ADMIN, MANAGER or DEVELOPER role in it.","operationId":"getSelfApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Update an application of the current user","description":"Edits an application of the user's personal space from the given application definition and returns the updated application.","operationId":"editSelfApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeApplication"}}},"required":true},"responses":{"200":{"description":"Application updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Delete an application of the current user","description":"Stops and deletes an application of the user's personal space.","operationId":"deleteSelfApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/addons":{"get":{"tags":["Applications"],"summary":"List the add-ons linked to an application","description":"Returns the add-ons linked to an application of the user's personal space.","operationId":"getSelfAddonsLinkedToApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Linked add-ons","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Link an add-on to an application","description":"Links an add-on of the user's personal space to an application of the user's personal space, which then receives the add-on's environment variables. The body is the add-on ID, as a JSON string.","operationId":"linkSelfAddonToApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"string"}}},"required":true},"responses":{"204":{"description":"Add-on linked"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"The add-on does not exist or does not belong to the caller (error id 10300)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/addons\/env":{"get":{"tags":["Applications"],"summary":"List the environment variables of the linked add-ons","description":"Returns, for each add-on linked to an application of the user's personal space, the environment variables it provides to the application.","operationId":"getSelfEnvOfAddonsLinkedToApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables of the linked add-ons","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LinkedAddonEnvironmentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/addons\/{addonId}":{"delete":{"tags":["Applications"],"summary":"Unlink an add-on from an application","description":"Removes the link between an add-on and an application of the user's personal space.","operationId":"unlinkSelfddonFromApplicationByAppAndAddonId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Add-on unlinked"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/branch":{"put":{"tags":["Applications"],"summary":"Set the deployed branch of an application","description":"Sets the Git branch an application of the user's personal space deploys from, named in the body's `branch`. Answers 400 (error id 3004) when the repository has no such branch.","operationId":"setSelfApplicationBranchByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeBranch"}}},"required":true},"responses":{"200":{"description":"Branch updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"Invalid application data (error id 3004): the body is not a branch object, or names a branch the repository does not have. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/branches":{"get":{"tags":["Applications"],"summary":"List the Git branches of an application","description":"Returns the branches of the GitHub repository linked to an application of the user's personal space, the default branch first, or only `master` when no repository is linked. Answers 400 (error id 1603) when GitHub rejects the access held for the user's GitHub account, which must then be linked again.","operationId":"getSelfApplicationBranchesByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Branch names, the repository's default branch first","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/buildflavor":{"put":{"tags":["Applications"],"summary":"Set the build flavor of an application","description":"Sets the flavor of the instance that builds an application of the user's personal space, named in the body's `name`. An unknown flavor answers 400 (error id 9018).","operationId":"setSelfBuildInstanceFlavorByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeBuildFlavor"}}},"required":true},"responses":{"204":{"description":"Build flavor updated"},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/dependencies":{"get":{"tags":["Applications"],"summary":"List the dependencies of an application","description":"Returns the applications an application of the user's personal space depends on. A dependency owned by another owner is left out.","operationId":"getSelfApplicationDependenciesByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependencies","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/dependencies\/env":{"get":{"tags":["Applications"],"summary":"List the environment variables of an application's dependencies","description":"Returns, for each dependency of an application of the user's personal space, its ID, its name and its environment variables. A dependency owned by another owner is left out.","operationId":"getSelfApplicationDependenciesEnvByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables of each dependency","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DependencyEnvView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/dependencies\/{dependencyId}":{"put":{"tags":["Applications"],"summary":"Add a dependency to an application","description":"Makes an application of the user's personal space depend on another application of the same owner, whose exposed variables it then receives. The ID of an add-on that runs as an application of the same owner is accepted too.","operationId":"addSelfApplicationDependencyByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"dependencyId","in":"path","description":"ID of the dependency application (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependency added","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Remove a dependency from an application","description":"Removes a dependency of an application of the user's personal space.","operationId":"deleteSelfApplicationDependencyByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"dependencyId","in":"path","description":"ID of the dependency application (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependency removed (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/dependents":{"get":{"tags":["Applications"],"summary":"List the applications depending on an application","description":"Returns the applications that depend on an application of the user's personal space.","operationId":"getSelfApplicationDependents","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dependent applications","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApplicationView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/deployments":{"get":{"tags":["Applications"],"summary":"List the deployments of an application","description":"Returns the deployment history of an application of the user's personal space, paginated with `limit` and `offset`. An `action` query parameter keeps only one kind of deployment (`DEPLOY`, `UNDEPLOY`, `UPSCALE` or `DOWNSCALE`).","operationId":"getApplicationDeployments","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of deployments (default 20, between 1 and 1000)","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"offset","in":"query","description":"Number of deployments to skip","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Deployments","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DeploymentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/deployments\/{deploymentId}":{"get":{"tags":["Applications"],"summary":"Get a deployment of an application","description":"Returns one deployment of an application of the user's personal space. An unknown deployment ID answers 400 (error id 4102).","operationId":"getApplicationDeployment","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","description":"Deployment ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeploymentView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/deployments\/{deploymentId}\/instances":{"delete":{"tags":["Applications"],"summary":"Cancel a deployment of an application","description":"Cancels a deployment of an application of the user's personal space that is still in progress, designated by its ID or its number. Answers 400 (error id 4101) when the deployment is not in progress.","operationId":"cancelDeploy","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"path","description":"Deployment ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deployment cancelled (message id 325)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/env":{"get":{"tags":["Applications"],"summary":"List the environment variables of an application","description":"Returns the environment variables set on an application of the user's personal space, as name\/value pairs.","operationId":"getSelfApplicationEnvByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Environment variables","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonEnvironmentView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Replace the environment variables of an application","description":"Replaces every environment variable of an application of the user's personal space with the given name-to-value map and returns the edited application. With `check=true`, the variables are validated first.","operationId":"editSelfApplicationEnvByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"check","in":"query","description":"When `true`, validate the variables against the environment schema of the application's runtime first","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"The edited application","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"Invalid application data. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/env\/{envName}":{"put":{"tags":["Applications"],"summary":"Set an environment variable of an application","description":"Creates or updates one environment variable of an application of the user's personal space and returns the edited application. The body carries the value in `value`.","operationId":"editSelfApplicationEnvByAppIdAndEnvName","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"envName","in":"path","description":"Environment variable name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeValue"}}},"required":true},"responses":{"200":{"description":"The edited application","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"Invalid application data. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Application not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Delete an environment variable of an application","description":"Removes one environment variable from an application of the user's personal space and returns the edited application.","operationId":"removeSelfApplicationEnvByAppIdAndEnvName","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"envName","in":"path","description":"Environment variable name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The edited application","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApplicationView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Application not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/exposed_env":{"get":{"tags":["Applications"],"summary":"Get the exposed environment variables of an application","description":"Returns the variables an application of the user's personal space exposes to the applications that depend on it, as a name-to-value map.","operationId":"getSelfExposedEnvByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Exposed variables, as a name-to-value map","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Replace the exposed environment variables of an application","description":"Replaces the variables an application of the user's personal space exposes to the applications that depend on it with the given name-to-value map, then redeploys each of those applications that is running.","operationId":"updateSelfExposedEnvByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeExposedEnv"}}},"required":true},"responses":{"200":{"description":"Exposed variables updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/instances":{"get":{"tags":["Applications"],"summary":"List the instances of an application","description":"Returns the running instances of an application of the user's personal space, optionally only those of one deployment.","operationId":"getSelfApplicationInstancesByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"query","description":"Only the instances of this deployment","required":false,"schema":{"type":"string"}},{"name":"withDeleted","in":"query","description":"Accepted for compatibility; `true` is only allowed together with `deploymentId`","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Running instances","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SuperNovaInstanceView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"post":{"tags":["Applications"],"summary":"Redeploy an application of the current user","description":"Starts a new deployment of an application of the user's personal space and returns its deployment ID. Without `commit`, the application's current commit is deployed.","operationId":"redeploySelfApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"commit","in":"query","description":"Git commit SHA to deploy, or `HEAD` for the head of the branch of a GitHub-linked application","required":false,"schema":{"type":"string"}},{"name":"useCache","in":"query","description":"`no` builds without the build cache; any other value, or none, uses it","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deployment started; the body carries its deployment ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeploySuccessMessage"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Stop an application of the current user","description":"Stops every instance of an application of the user's personal space.","operationId":"undeploySelfApplicationByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application stopped","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/tags":{"get":{"tags":["Applications"],"summary":"List the tags of an application","description":"Returns the tags of an application of the user's personal space.","operationId":"getSelfApplicationTagsByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tags","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/tags\/{tag}":{"put":{"tags":["Applications"],"summary":"Add a tag to an application","description":"Adds a tag to an application of the user's personal space and returns its tags.","operationId":"addSelfApplicationTagByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tag added","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Remove a tag from an application","description":"Removes a tag from an application of the user's personal space and returns the remaining tags.","operationId":"deleteSelfApplicationTagAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","description":"Tag","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The remaining tags","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Application not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/vhosts":{"get":{"tags":["Applications"],"summary":"List the domain names of an application","description":"Returns the virtual hosts (domain names) routed to an application of the user's personal space.","operationId":"getSelfVhostByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Virtual hosts","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/VhostView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/vhosts\/favourite":{"get":{"tags":["Applications"],"summary":"Get the favourite domain name of an application","description":"Returns the virtual host marked as favourite on an application of the user's personal space; 404 (error id 4021) when none is.","operationId":"getSelfFavouriteVhostByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Favourite virtual host","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VhostView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"put":{"tags":["Applications"],"summary":"Set the favourite domain name of an application","description":"Marks one of the virtual hosts of an application of the user's personal space as its favourite and returns it. The body is a virtual host whose `fqdn` must already be routed to the application (400, error id 3004, otherwise).","operationId":"markSelfFavouriteVhostByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VhostView"}}},"required":true},"responses":{"200":{"description":"Favourite set","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VhostView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Clear the favourite domain name of an application","description":"Removes the favourite mark from the virtual hosts of an application of the user's personal space.","operationId":"unmarkSelfFavouriteVhostByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Favourite cleared (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/applications\/{appId}\/vhosts\/{domain}":{"put":{"tags":["Applications"],"summary":"Add a domain name to an application","description":"Routes the given domain name to an application of the user's personal space. Refused when the domain is already used by another application or is not allowed.","operationId":"addSelfVhostByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"domain","in":"path","description":"Domain name (FQDN)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain name added","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"},"delete":{"tags":["Applications"],"summary":"Remove a domain name from an application","description":"Stops routing the given domain name to an application of the user's personal space.","operationId":"removeSelfVhostByAppId","parameters":[{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"domain","in":"path","description":"Domain name (FQDN)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain name removed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"applications"}},"\/v2\/self\/avatar":{"put":{"tags":["Users"],"summary":"Set the current user's avatar","description":"Replaces the user's avatar and returns its URL. Send either the image itself (`image\/bmp`, `image\/gif`, `image\/jpeg`, `image\/png` or `image\/tiff` body) or `{\"source\": \"github\"}` \/ `{\"source\": \"gravatar\"}` as JSON to use the linked GitHub account's avatar or the primary address's Gravatar; any other content type answers 415. Requires the `manage_organisations` right.","operationId":"setUserAvatarFromString","requestBody":{"description":"The JSON variant naming the avatar source, or the upload variant: the raw bytes of the image, sent as `image\/bmp`, `image\/gif`, `image\/jpeg`, `image\/png` or `image\/tiff` (any other type answers 415).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AvatarInput"}},"image\/bmp":{"schema":{"type":"string","format":"binary"}},"image\/gif":{"schema":{"type":"string","format":"binary"}},"image\/jpeg":{"schema":{"type":"string","format":"binary"}},"image\/png":{"schema":{"type":"string","format":"binary"}},"image\/tiff":{"schema":{"type":"string","format":"binary"}}},"required":true},"responses":{"200":{"description":"Avatar URL","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UrlView"}}}},"400":{"description":"Invalid avatar source. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"The token lacks the `manage_organisations` right","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"No linked GitHub account, or a credential that is not a user","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The `Content-Type` is neither a supported image type nor `application\/json`: the response has no body"},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/change_password":{"put":{"tags":["Users"],"summary":"Change the current user's password","description":"Sets a new password (`newPassword`, 12 to 4096 characters). Requires an almighty token (the console's), otherwise 403 (error id 7301). `oldPassword` must match the current password, otherwise 403 (error id 7301). An account that has no password yet answers 400 (error id 504): its first password is set through `POST \/v2\/password_forgotten`. With `dropTokens: true`, every other access token of the user is revoked; pending password-reset links are always invalidated.","operationId":"changeUserPassword","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabePassword"}}},"required":true},"responses":{"200":{"description":"Password changed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"Missing `newPassword`, or not 12 to 4096 characters long (error id 3002); or the account has no password yet (error id 504). A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Token not almighty, or missing or wrong current password (error id 7301)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/cli_tokens":{"get":{"tags":["Users"],"summary":"Collect the tokens of a command-line login","description":"Polled by the command-line client while the user logs in through the browser: returns the access token and secret created for the `cli_token` pairing identifier, which are then discarded. Answers 404 until the login is complete and once the tokens have been collected. Takes no credential: the pairing identifier is the secret.","operationId":"getSelfCliTokens","parameters":[{"name":"cli_token","in":"query","description":"Pairing identifier the command-line client generated when it opened the login page","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The pairing's access token: `token`, `secret` and `expirationDate`","content":{"application\/json":{"schema":{"type":"string"}}}},"400":{"description":"The request could not be decoded (a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"No tokens for this pairing identifier yet, or already collected: the response has no body"},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"self"}},"\/v2\/self\/confirmation_email":{"get":{"tags":["Users"],"summary":"Resend the account confirmation email","description":"Sends a new validation link to the user's primary address. Requires the `access_personal_information` right (403, error id 7301). Answers 400 when the address is already validated or missing. Sending is rate-limited: a rate-limited request still answers 200, without sending.","operationId":"getConfirmationEmail","responses":{"200":{"description":"Confirmation email sent","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/consumers":{"get":{"tags":["Users"],"summary":"List the current user's OAuth consumers","description":"Returns the OAuth1 consumers (client applications) registered in the user's personal space, with their rights, sorted by name. Secrets are not included. Requires the `manage_organisations_services` right (403, error id 6200).","operationId":"getSelfConsumers","responses":{"200":{"description":"List of consumers","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"post":{"tags":["Users"],"summary":"Create an OAuth consumer","description":"Registers a new OAuth1 consumer in the user's personal space and returns it with its generated key (`ck_\u2026`); read its secret with the `secret` route. The rights requested in the body are granted, except `almighty`, which never is. Requires an almighty token; creation is rate-limited per account (403 when exceeded).","operationId":"createSelfConsumer","requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeOAuth1Consumer"}}},"required":true},"responses":{"200":{"description":"Created consumer","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}},"400":{"description":"The request could not be decoded (the body is malformed): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/consumers\/{key}":{"get":{"tags":["Users"],"summary":"Get an OAuth consumer of the current user","description":"Returns one OAuth1 consumer of the user's personal space with its rights. Requires the `manage_organisations_services` right (403, error id 6200); an unknown or deleted key answers 404 (error id 13509).","operationId":"getSelfConsumer","parameters":[{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Consumer details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"put":{"tags":["Users"],"summary":"Update an OAuth consumer","description":"Replaces the name, description, URLs, picture and rights of one OAuth1 consumer of the user's personal space, and returns it. Requires the `manage_organisations_services` right (403, error id 6200); an unknown key answers 404 (error id 13509).","operationId":"updateSelfConsumer","parameters":[{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeOAuth1Consumer"}}},"required":true},"responses":{"200":{"description":"Updated consumer","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"delete":{"tags":["Users"],"summary":"Delete an OAuth consumer","description":"Deletes one OAuth1 consumer of the user's personal space. Requires the `manage_organisations_services` right (403, error id 6200); an unknown or already deleted key answers 404 (error id 13509).","operationId":"deleteSelfConsumer","parameters":[{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Consumer deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Consumer not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/consumers\/{key}\/secret":{"get":{"tags":["Users"],"summary":"Get the secret of an OAuth consumer","description":"Returns the secret of one OAuth1 consumer of the user's personal space. Requires the `manage_organisations_services` right (403, error id 6200); an unknown key answers 404 (error id 13509).","operationId":"getSelfConsumerSecret","parameters":[{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Consumer secret","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SecretView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/consumers\/{key}\/tokens":{"get":{"tags":["Users"],"summary":"List the access tokens of an OAuth consumer","description":"Returns the user's unexpired OAuth1 access tokens issued through this consumer, newest first. Requires an almighty token; an unknown key answers 404 (error id 13509).","operationId":"get_consumer_tokens","parameters":[{"name":"key","in":"path","description":"Consumer key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of access tokens for this consumer","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OAuth1AccessTokenView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/emails":{"get":{"tags":["Users"],"summary":"List the current user's secondary email addresses","description":"Returns the confirmed secondary email addresses of the user; the primary address is part of the user profile, not of this list. Requires the `access_personal_information` right.","operationId":"getEmailAddresses","responses":{"200":{"description":"List of email addresses","content":{"application\/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/emails\/{email}":{"put":{"tags":["Users"],"summary":"Add a secondary email address","description":"Sends a confirmation link to the address, which is added to the account once that link is followed. With `make_primary`, an address that is already a confirmed secondary becomes the primary one at once. Requires the `manage_personal_information` right and a validated primary address; sending is rate-limited.","operationId":"addEmailAddress","parameters":[{"name":"email","in":"path","description":"Email address to add","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Optional. `{\"make_primary\": true}` makes the address the primary one once confirmed. A request without a `Content-Type` counts as `make_primary = false`; a body that is sent must be JSON of this shape.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/SecondaryEmailPayload"},{"type":"null"}]}}}},"responses":{"200":{"description":"Confirmation email sent","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Missing manage_personal_information, primary email not validated, email owned by another user, or rate-limited","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"User not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"409":{"description":"Email already in use","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"delete":{"tags":["Users"],"summary":"Remove a secondary email address","description":"Removes a confirmed secondary address from the user's account; the primary address cannot be removed. Requires the `manage_personal_information` right.","operationId":"removeEmailAddress","parameters":[{"name":"email","in":"path","description":"Email address to remove","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Email removed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The address is the primary one, or is not a confirmed secondary address of the account (error id 1003). A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"The address belongs to another user (error id 1004), or the token lacks the `manage_personal_information` right","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/id":{"get":{"tags":["Users"],"summary":"Get the current user's ID","description":"Returns the ID (`user_\u2026`) of the user the token belongs to, as `{\"ownerId\": \"user_\u2026\"}`. Requires the `access_personal_information` right.","operationId":"getId","responses":{"200":{"description":"Current user ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OwnerIdView"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/instances":{"get":{"tags":["Instances"],"summary":"List the instances in the current user's personal space","description":"Returns the instances of the user's personal space, grouped by the application ID (`app_\u2026`) or, for an add-on that has instances, the add-on's real ID (`postgresql_\u2026`, `redis_\u2026`). Requires the `manage_organisations_applications` right (403, error id 6201). The map is empty when instance data is not available on this deployment.","operationId":"getSelfInstancesForAllApps","responses":{"200":{"description":"Instances grouped by application ID or add-on real ID; empty when instance data is not available","content":{"application\/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{}},"propertyNames":{"type":"string"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"instances"}},"\/v2\/self\/keys":{"get":{"tags":["Users"],"summary":"List the current user's SSH keys","description":"Returns the user's SSH public keys with their name and fingerprint, sorted by name. Requires the `manage_ssh_keys` right (403, error id 7301).","operationId":"getSshKeys","responses":{"200":{"description":"SSH keys","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SshKeyView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/keys\/{key}":{"put":{"tags":["Users"],"summary":"Add an SSH key to the current user","description":"Registers the public key sent as a JSON string (for example `\"ssh-ed25519 AAAA\u2026 comment\"`) under the name given in the path, for Git pushes and SSH access to instances. A name the user already uses, or a key already registered on any account, answers 409. Requires the `manage_ssh_keys` right.","operationId":"addSshKey","parameters":[{"name":"key","in":"path","description":"Name of the key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Key added","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"Invalid key. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"409":{"description":"Key name or fingerprint conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"delete":{"tags":["Users"],"summary":"Remove an SSH key from the current user","description":"Deletes the user's SSH key of that name and revokes its Git and SSH access. An unknown name answers 500 with error id 7102. Requires the `manage_ssh_keys` right.","operationId":"removeSshKey","parameters":[{"name":"key","in":"path","description":"Name of the key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Key removed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"The key could not be removed, including when the user has no key of this name (error id 7102)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/mfa\/{kind}":{"get":{"tags":["Users"],"summary":"Get the status of an MFA","description":"Tells whether a validated MFA of this kind is configured and, when it is, how many of its recovery codes are left and when they were generated, never the codes themselves. Requires an almighty token (403, error id 7301, otherwise).","operationId":"get_mfa","parameters":[{"name":"kind","in":"path","description":"MFA kind, case-insensitive: `TOTP`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MFA status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MfaStatusView"}}}},"400":{"description":"Invalid MFA kind. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Token is not almighty","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"put":{"tags":["Users"],"summary":"Set the preferred MFA","description":"Makes this MFA kind the one asked at login. Requires an almighty token and the account password, base64-encoded, in the `X-Clever-Password` header (401, error id 3029, when missing or wrong). Answers 404 when no validated MFA of this kind is configured.","operationId":"setSelfFavouriteMFA","parameters":[{"name":"kind","in":"path","description":"MFA kind, case-insensitive: `TOTP`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MFA set as preferred","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"MFA not configured","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"post":{"tags":["Users"],"summary":"Start an MFA enrolment","description":"Generates a TOTP secret and recovery codes, pending until confirmed, and returns the `otpauth:\/\/` provisioning URL to load in an authenticator app. Requires a validated primary email (400, error id 8502). Requires an almighty token and the account password, base64-encoded, in the `X-Clever-Password` header (401, error id 3029, when missing or wrong). Answers 409 when an MFA of this kind is already configured.","operationId":"createSelfMFA","parameters":[{"name":"kind","in":"path","description":"MFA kind, case-insensitive: `TOTP`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Enrolment started: the `otpauth:\/\/` provisioning URL","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MfaEnrollmentResponse"}}}},"400":{"description":"Email not validated \/ invalid MFA kind. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"409":{"description":"MFA already configured","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"delete":{"tags":["Users"],"summary":"Disable an MFA","description":"Deletes the user's MFA of this kind and its recovery codes; when it was the preferred kind, login no longer asks for a second factor. Requires an almighty token and the account password, base64-encoded, in the `X-Clever-Password` header (401, error id 3029, when missing or wrong). Answers 404 when no MFA of this kind is configured.","operationId":"deleteSelfMFA","parameters":[{"name":"kind","in":"path","description":"MFA kind, case-insensitive: `TOTP`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MFA deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"MFA not configured","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/mfa\/{kind}\/backupcodes":{"post":{"tags":["Users"],"summary":"Regenerate the recovery codes of an MFA","description":"Replaces the recovery codes of the user's validated MFA of this kind with a new set and returns it: the previous codes stop working. Save the new codes: this response is meant to be the only one that shows them. Requires an almighty token and the account password, base64-encoded, in the `X-Clever-Password` header (401, error id 3029, when missing or wrong). Answers 404 when no MFA of this kind is configured.","operationId":"regenerateSelfBackupCodes","parameters":[{"name":"kind","in":"path","description":"MFA kind, case-insensitive: `TOTP`","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The new recovery codes","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MFABackupCodes"}}}},"400":{"description":"Invalid MFA kind. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"MFA not configured","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/mfa\/{kind}\/confirmation":{"post":{"tags":["Users"],"summary":"Confirm an MFA enrolment","description":"Checks `code`, from the authenticator app, against the pending enrolment and activates the MFA, which becomes the preferred kind when none was set; with `revokeTokens: true`, every other access token of the user is revoked. Returns the recovery codes of the MFA: save them, this response is meant to be the only one that shows them. Requires an almighty token and the account password, base64-encoded, in the `X-Clever-Password` header (401, error id 3029, when missing or wrong). A wrong code answers 400 (error id 3103), no pending enrolment 404.","operationId":"validateSelfMFA","parameters":[{"name":"kind","in":"path","description":"MFA kind, case-insensitive: `TOTP`","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeMFACreds"}}},"required":true},"responses":{"200":{"description":"MFA confirmed: its recovery codes","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MFABackupCodes"}}}},"400":{"description":"Invalid confirmation code \/ invalid MFA kind. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"409":{"description":"MFA already configured","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/organisations":{"get":{"tags":["Organisations"],"summary":"List the current user's organisations","description":"Returns the organisations the user is a member of, sorted by name, with their billing details, flags, and the user's role and job in each. Deleted organisations are left out. Requires the `access_organisations` right (403, error id 7301).","operationId":"get_self_organisations","responses":{"200":{"description":"Organisations the user belongs to","content":{"application\/json":{"schema":{"type":"array","items":{}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"organisations"}},"\/v2\/self\/payment-info":{"get":{"tags":["Payments"],"summary":"Get the current user's billing details","description":"Returns the name, company, postal address, country and VAT number used to bill the user's personal space, with an `errors` map of the fields still missing or invalid. Requires the `access_organisations_bills` right (403, error id 13002).","operationId":"getSelfPaymentInfo","responses":{"200":{"description":"Billing details of the current user","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaymentInfoView"}}}},"403":{"description":"The token lacks the `access_organisations_bills` right","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"User not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"payments"}},"\/v2\/self\/tokens":{"get":{"tags":["Users"],"summary":"List the current user's access tokens","description":"Returns the user's unexpired OAuth1 access tokens with their consumer, rights and dates, newest first. Requires an almighty token.","operationId":"listSelfTokens","responses":{"200":{"description":"List of access tokens","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/OAuth1AccessTokenView"}}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"},"delete":{"tags":["Users"],"summary":"Revoke all the current user's access tokens","description":"Deletes every OAuth1 access token of the user, the one signing this request included. Requires an almighty token.","operationId":"revokeSelfTokens","responses":{"200":{"description":"All tokens revoked","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"403":{"description":"The token is not almighty","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/tokens\/current":{"get":{"tags":["Users"],"summary":"Get the access token of this request","description":"Returns the OAuth1 access token that signed this request, with its consumer, rights and dates. Answers 404 when the request is not signed with an OAuth1 access token.","operationId":"getCurrentTokenInfo","responses":{"200":{"description":"The access token signing this request","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OAuth1AccessTokenView"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/tokens\/{token}":{"delete":{"tags":["Users"],"summary":"Revoke an access token of the current user","description":"Deletes one OAuth1 access token of the user. An almighty token can revoke any of the user's tokens; any other token can only revoke itself. A token that belongs to another user answers 403.","operationId":"revokeSelfToken","parameters":[{"name":"token","in":"path","description":"The access token to revoke","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Token revoked","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"403":{"description":"Not allowed to revoke this token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"404":{"description":"Token not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v2\/self\/validate_email":{"get":{"tags":["Users"],"summary":"Confirm an email address","description":"Target of the link in a confirmation email: validates the account's primary address, or adds (or makes primary) the secondary address the link was sent for, then redirects to the console. Takes no credential: the validation key is the secret. An unknown or expired key answers 404 (error id 7006).","operationId":"validateEmail","parameters":[{"name":"validationKey","in":"query","description":"Validation key, from the link in the confirmation email","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Address confirmed (sent as a `303` redirect to the console)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"400":{"description":"The request could not be decoded (a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[],"x-service":"self"}},"\/v2\/summary":{"get":{"tags":["Users"],"summary":"Get the summary of your account","description":"Returns the authenticated user with the applications, add-ons and OAuth consumers of their personal space, and every organisation they are a member of with their role in it and its applications, add-ons, OAuth consumers and add-on providers. Requires an authenticated user (401 otherwise) and the `access_personal_information` OAuth right (403 otherwise); 404 when the user no longer exists. `full` is accepted and changes nothing.","operationId":"getSummary","parameters":[{"name":"full","in":"query","description":"Accepted for compatibility; the summary is the same with or without it","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The account summary","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SummaryView"}}}},"400":{"description":"The request could not be decoded (a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`. A validation error adds `fields`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"self"}},"\/v4\/accesslogs\/organisations\/{orgId}\/applications\/{resourceId}\/accesslogs":{"get":{"tags":["Logs"],"summary":"Stream the access logs of an application","description":"Server-Sent Events stream of an application's HTTP access logs (`ACCESS_LOG` events), sorted by date within short windows. The stream ends with an `END_OF_STREAM` event when `limit`, `until` or the timeout is reached. Resume it with the `Last-Event-ID` header. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"v4_get_org_app_accesslogs","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","description":"Application ID (`app_\u2026`) or add-on real ID, used as given (an `addon_\u2026` ID is not resolved to the real ID)","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","description":"Start of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"until","in":"query","description":"End of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of access log lines; the stream then ends with `LIMIT_REACHED`","required":false,"schema":{"type":"integer","minimum":0}},{"name":"field","in":"query","description":"Only these top-level JSON keys in each access log event (repeatable; every key by default)","required":false,"schema":{"type":"string"}},{"name":"maxRetryDurationInSeconds","in":"query","description":"Maximum time to establish the stream, in seconds (default 600, at most 3600)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"throttleElements","in":"query","description":"Maximum number of events per throttle window (capped by the server)","required":false,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"throttlePerInMilliseconds","in":"query","description":"Length of the throttle window, in milliseconds (floored by the server)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"Access log stream (`text\/event-stream`)","content":{"text\/event-stream":{}}},"400":{"description":"Invalid query parameter or `Last-Event-ID`: the error envelope, whose context names the parameter and its rejected value, or a message when authentication refuses the request. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBodyOrMessage"}},"text\/plain":{"schema":{"type":"string"}}}},"501":{"description":"Access log streaming is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"}},"\/v4\/accesslogs\/organisations\/{orgId}\/resources\/{resourceId}\/accesslogs":{"get":{"tags":["Logs"],"summary":"Stream the access logs of an application or an add-on","description":"Server-Sent Events stream of the HTTP access logs of an application or an add-on (`ACCESS_LOG` events), sorted by date within short windows. The stream ends with an `END_OF_STREAM` event when `limit`, `until` or the timeout is reached. Resume it with the `Last-Event-ID` header. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"v4_get_org_resource_accesslogs","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","description":"Application ID (`app_\u2026`), add-on ID (`addon_\u2026`) or add-on real ID","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","description":"Start of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"until","in":"query","description":"End of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of access log lines; the stream then ends with `LIMIT_REACHED`","required":false,"schema":{"type":"integer","minimum":0}},{"name":"field","in":"query","description":"Only these top-level JSON keys in each access log event (repeatable; every key by default)","required":false,"schema":{"type":"string"}},{"name":"maxRetryDurationInSeconds","in":"query","description":"Maximum time to establish the stream, in seconds (default 600, at most 3600)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"throttleElements","in":"query","description":"Maximum number of events per throttle window (capped by the server)","required":false,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"throttlePerInMilliseconds","in":"query","description":"Length of the throttle window, in milliseconds (floored by the server)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"Access log stream (`text\/event-stream`)","content":{"text\/event-stream":{}}},"400":{"description":"Invalid query parameter or `Last-Event-ID`: the error envelope, whose context names the parameter and its rejected value, or a message when authentication refuses the request. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBodyOrMessage"}},"text\/plain":{"schema":{"type":"string"}}}},"501":{"description":"Access log streaming is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"}},"\/v4\/addon-providers\/addon-keycloak\/addons\/{addonKeycloakId}":{"get":{"tags":["Keycloak"],"summary":"Get a Keycloak add-on","description":"Returns the add-on: access URL, installed and available versions, initial admin credentials, backing resources, network group, the environment variables of its application and the number of distinct users active since the first day of the current month (UTC). The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getKeycloakWithoutOwnerId","parameters":[{"name":"addonKeycloakId","in":"path","description":"Keycloak add-on ID (`keycloak_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Keycloak"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"}},"\/v4\/addon-providers\/addon-keycloak\/addons\/{addonKeycloakId}\/networkgroup":{"post":{"tags":["Keycloak"],"summary":"Attach a Keycloak add-on to a network group","description":"Puts the add-on's application in a network group (created unless the add-on already has one), scales it to two instances, restarts it and returns the updated add-on. Answers an error when the add-on has no application. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"createNGKeycloakApplication","parameters":[{"name":"addonKeycloakId","in":"path","description":"Keycloak add-on ID (`keycloak_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Network group created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Keycloak"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"},"delete":{"tags":["Keycloak"],"summary":"Detach a Keycloak add-on from its network group","description":"Deletes the add-on's network group, scales its application back to one instance and restarts it. Answers 404 when the network group no longer existed, after detaching the add-on anyway. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"deleteNGKeycloakApplication","parameters":[{"name":"addonKeycloakId","in":"path","description":"Keycloak add-on ID (`keycloak_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Network group deleted"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"}},"\/v4\/addon-providers\/addon-keycloak\/addons\/{addonKeycloakId}\/reboot":{"post":{"tags":["Keycloak"],"summary":"Restart a Keycloak add-on","description":"Restarts every application of the add-on, reusing the build cache. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebootKeycloakApplication","parameters":[{"name":"addonKeycloakId","in":"path","description":"Keycloak add-on ID (`keycloak_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Restart requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"}},"\/v4\/addon-providers\/addon-keycloak\/addons\/{addonKeycloakId}\/rebuild":{"post":{"tags":["Keycloak"],"summary":"Rebuild a Keycloak add-on","description":"Redeploys every application of the add-on without build cache. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebuildKeycloakApplication","parameters":[{"name":"addonKeycloakId","in":"path","description":"Keycloak add-on ID (`keycloak_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Rebuild requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"}},"\/v4\/addon-providers\/addon-keycloak\/addons\/{addonKeycloakId}\/version\/check":{"get":{"tags":["Keycloak"],"summary":"Check the Keycloak version of an add-on","description":"Returns the installed Keycloak version, the latest version offered, every available version and whether an update is available. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getCheckVersionKeycloakApplication","parameters":[{"name":"addonKeycloakId","in":"path","description":"Keycloak add-on ID (`keycloak_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Installed, latest and available versions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KeycloakVersionChecker"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"}},"\/v4\/addon-providers\/addon-keycloak\/addons\/{addonKeycloakId}\/version\/update":{"post":{"tags":["Keycloak"],"summary":"Update the Keycloak version of an add-on","description":"Switches every application of the add-on to `targetVersion`, redeploys them without build cache and returns the updated add-on. Answers 400 when the version is not offered. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"createVersionUpdateKeycloak","parameters":[{"name":"addonKeycloakId","in":"path","description":"Keycloak add-on ID (`keycloak_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KeycloakPatchRequest"}}},"required":true},"responses":{"200":{"description":"Updated add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Keycloak"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"}},"\/v4\/addon-providers\/addon-matomo":{"get":{"tags":["Matomo"],"summary":"Get the Matomo provider information","description":"Returns the Matomo versions that can be provisioned, with the options each one supports, and the default version. Requires an authenticated user.","operationId":"getMatomoProviderInformation","responses":{"200":{"description":"Provider information","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ProviderConsoleView"}}}},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"matomo"}},"\/v4\/addon-providers\/addon-matomo\/addons\/{addonMatomoId}":{"get":{"tags":["Matomo"],"summary":"Get a Matomo add-on","description":"Returns the add-on: access URL, installed and available versions, PHP version, backing resources and the environment variables of its application. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getMatomo","parameters":[{"name":"addonMatomoId","in":"path","description":"Matomo add-on ID (`matomo_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Matomo"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"matomo"}},"\/v4\/addon-providers\/addon-matomo\/addons\/{addonMatomoId}\/reboot":{"post":{"tags":["Matomo"],"summary":"Restart a Matomo add-on","description":"Restarts the add-on's PHP application, reusing the build cache. Answers 400 when the add-on has no application. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebootMatomo","parameters":[{"name":"addonMatomoId","in":"path","description":"Matomo add-on ID (`matomo_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Restart requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"matomo"}},"\/v4\/addon-providers\/addon-matomo\/addons\/{addonMatomoId}\/rebuild":{"post":{"tags":["Matomo"],"summary":"Rebuild a Matomo add-on","description":"Redeploys the add-on's PHP application without build cache. Answers 400 when the add-on has no application. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebuildMatomo","parameters":[{"name":"addonMatomoId","in":"path","description":"Matomo add-on ID (`matomo_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Rebuild requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"matomo"}},"\/v4\/addon-providers\/addon-metabase\/addons\/{addonMetabaseId}":{"get":{"tags":["Metabase"],"summary":"Get a Metabase add-on","description":"Returns the add-on: access URL, installed and available versions, backing resources and the environment variables of its application. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getMetabase","parameters":[{"name":"addonMetabaseId","in":"path","description":"Metabase add-on ID (`metabase_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Metabase"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"metabase"}},"\/v4\/addon-providers\/addon-metabase\/addons\/{addonMetabaseId}\/reboot":{"post":{"tags":["Metabase"],"summary":"Restart a Metabase add-on","description":"Restarts the add-on's application, reusing the build cache. Answers 404 when the add-on has no application. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebootMetabaseApplication","parameters":[{"name":"addonMetabaseId","in":"path","description":"Metabase add-on ID (`metabase_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Restart requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on, or an add-on without application: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"metabase"}},"\/v4\/addon-providers\/addon-metabase\/addons\/{addonMetabaseId}\/rebuild":{"post":{"tags":["Metabase"],"summary":"Rebuild a Metabase add-on","description":"Redeploys the add-on's application without build cache. Answers 404 when the add-on has no application. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebuildMetabaseApplication","parameters":[{"name":"addonMetabaseId","in":"path","description":"Metabase add-on ID (`metabase_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Rebuild requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on, or an add-on without application: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"metabase"}},"\/v4\/addon-providers\/addon-metabase\/addons\/{addonMetabaseId}\/version\/check":{"get":{"tags":["Metabase"],"summary":"Check the Metabase version of an add-on","description":"Returns the installed Metabase version, the latest version offered, every available version, whether an update is available and whether it needs a larger instance size. Answers 409 when the installed version cannot be read. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getCheckVersionMetabaseApplication","parameters":[{"name":"addonMetabaseId","in":"path","description":"Metabase add-on ID (`metabase_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Installed, latest and available versions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MetabaseVersionCheck"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"metabase"}},"\/v4\/addon-providers\/addon-metabase\/addons\/{addonMetabaseId}\/version\/update":{"post":{"tags":["Metabase"],"summary":"Update the Metabase version of an add-on","description":"Switches the add-on's application to `targetVersion`, moving it to a larger instance size first when that version needs one, redeploys it without build cache and returns the updated add-on. Answers 409 when the add-on has no application and 400 when the version is not offered. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"createVersionUpdateMetabase","parameters":[{"name":"addonMetabaseId","in":"path","description":"Metabase add-on ID (`metabase_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MetabasePatchRequest"}}},"required":true},"responses":{"200":{"description":"Updated add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Metabase"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"metabase"}},"\/v4\/addon-providers\/addon-otoroshi\/addons\/{OtoroshiId}":{"get":{"tags":["Otoroshi"],"summary":"Get an Otoroshi add-on","description":"Returns the add-on: access URL, installed and available versions, initial admin credentials, admin API URL and credentials, backing resources and network group. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getOtoroshi","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Otoroshi"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/addon-otoroshi\/addons\/{OtoroshiId}\/config.yaml":{"get":{"tags":["Otoroshi"],"summary":"Get the otoroshictl configuration of an add-on","description":"Returns a YAML configuration file for the `otoroshictl` command-line tool, holding the add-on's admin API URL and credentials. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getOtoroshiConfigFile","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"`otoroshictl` configuration file","content":{"application\/yaml":{"schema":{"type":"string"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/addon-otoroshi\/addons\/{OtoroshiId}\/networkgroup":{"post":{"tags":["Otoroshi"],"summary":"Attach an Otoroshi add-on to a network group","description":"Puts the add-on's application in a network group (created unless the add-on already has a live one), restarts it and returns the updated add-on. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"createNGOtoroshiApplication","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Network group attached","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Otoroshi"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"},"delete":{"tags":["Otoroshi"],"summary":"Detach an Otoroshi add-on from its network group","description":"Deletes the add-on's network group and restarts its application; answers 204 as well when the add-on has no network group. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"deleteNGOtoroshiApplication","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Network group detached"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/addon-otoroshi\/addons\/{OtoroshiId}\/reboot":{"post":{"tags":["Otoroshi"],"summary":"Restart an Otoroshi add-on","description":"Restarts the add-on's application, reusing the build cache. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebootApplication","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Restart requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/addon-otoroshi\/addons\/{OtoroshiId}\/rebuild":{"post":{"tags":["Otoroshi"],"summary":"Rebuild an Otoroshi add-on","description":"Redeploys the add-on's application without build cache. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"rebuildApplication","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Rebuild requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/addon-otoroshi\/addons\/{OtoroshiId}\/version\/check":{"get":{"tags":["Otoroshi"],"summary":"Check the Otoroshi version of an add-on","description":"Returns the installed Otoroshi version, the latest version offered, every available version and whether an update is available. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getCheckVersionOtoroshiApplication","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Installed, latest and available versions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OtoroshiVersionChecker"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/addon-otoroshi\/addons\/{OtoroshiId}\/version\/update":{"post":{"tags":["Otoroshi"],"summary":"Update the Otoroshi version of an add-on","description":"Switches the add-on's application to `targetVersion` and the Java version it needs, redeploys it without build cache and returns the updated add-on. A version that is not offered is refused. The caller must own the add-on or hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in its organisation, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"createVersionUpdateOtoroshi","parameters":[{"name":"OtoroshiId","in":"path","description":"Otoroshi add-on ID (`otoroshi_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OtoroshiPatchRequest"}}},"required":true},"responses":{"200":{"description":"Updated add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Otoroshi"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}":{"get":{"tags":["Pulsar"],"summary":"Read a Pulsar add-on","description":"Returns the add-on: tenant, namespace, cluster, plan, status, cold storage state and access token. Only an active add-on is returned: an add-on pending deletion or already deleted answers 404. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin, manager or developer role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `access_organisations`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"getPulsar","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The add-on, including its access token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Pulsar"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/non-persistent-topics":{"get":{"tags":["Pulsar"],"summary":"List a Pulsar add-on's non-persistent topics","description":"Returns the non-persistent topics of the add-on's namespace as full names (`non-persistent:\/\/tenant\/namespace\/topic`). Pass `partitioned=true` to list the partitioned topics instead. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin, manager or developer role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `access_organisations`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"listPulsarNonPersistentTopics","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Non-persistent topics","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TopicView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/non-persistent-topics\/{topic}":{"post":{"tags":["Pulsar"],"summary":"Create a non-persistent topic","description":"Creates a non-persistent topic in the add-on's namespace; answers 201. Pass `partitions_number` to create a partitioned topic with that many partitions. An invalid topic name answers 400. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"createPulsarNonPersistentTopic","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Topic created (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"},"delete":{"tags":["Pulsar"],"summary":"Delete a non-persistent topic","description":"Deletes a non-persistent topic of the add-on's namespace; answers 204. `partitioned=true` targets a partitioned topic (default `false`), and `force=true` deletes it even with connected producers or consumers. An invalid topic name answers 400. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"deletePulsarNonPersistentTopic","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Topic deleted"},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/non-persistent-topics\/{topic}\/token":{"post":{"tags":["Pulsar"],"summary":"Issue an access token for a non-persistent topic","description":"Returns a new access token (Biscuit) restricted to this topic of the add-on's namespace, to hand to a producer or consumer that must reach this topic only. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"createPulsarNonPersistentTopicToken","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Access token restricted to the topic","content":{"text\/plain":{"schema":{"type":"string"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/non-persistent-topics\/{topic}\/unload":{"put":{"tags":["Pulsar"],"summary":"Unload a non-persistent topic","description":"Asks the cluster to unload the topic from the broker serving it, so another broker takes it over; answers 204. An invalid topic name answers 400. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"triggerPulsarNonPersistentTopicUnload","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Unload requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/storage-policies":{"get":{"tags":["Pulsar"],"summary":"Read a Pulsar add-on's storage policies","description":"Returns the retention and offload (cold storage) policies of the add-on's namespace: sizes in bytes, durations in minutes, an unset limit omitted. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin, manager or developer role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `access_organisations`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"getPulsarStoragePolicies","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Retention and offload policies","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StoragePolicies"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"},"patch":{"tags":["Pulsar"],"summary":"Update a Pulsar add-on's storage policies","description":"Sets the retention policy of the add-on's namespace and, when `offloadPolicies` is sent, its offload (cold storage) thresholds; returns the policies the cluster then applies. Sizes are in bytes and durations in minutes. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"updatePulsarStoragePolicies","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StoragePolicies"}}},"required":true},"responses":{"200":{"description":"Policies applied after the update","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StoragePolicies"}}}},"400":{"description":"The request could not be decoded (the body is malformed, or a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/topics":{"get":{"tags":["Pulsar"],"summary":"List a Pulsar add-on's persistent topics","description":"Returns the persistent topics of the add-on's namespace as full names (`persistent:\/\/tenant\/namespace\/topic`). Pass `partitioned=true` to list the partitioned topics instead. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin, manager or developer role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `access_organisations`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"listPulsarPersistentTopics","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Persistent topics","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TopicView"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/topics\/{topic}":{"post":{"tags":["Pulsar"],"summary":"Create a persistent topic","description":"Creates a persistent topic in the add-on's namespace; answers 201. Pass `partitions_number` to create a partitioned topic with that many partitions. An invalid topic name answers 400. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"createPulsarPersistentTopic","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Topic created (empty body)"},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"},"delete":{"tags":["Pulsar"],"summary":"Delete a persistent topic","description":"Deletes a persistent topic of the add-on's namespace; answers 204. `partitioned` defaults to `true` on this route (set it to `false` for a non-partitioned topic), and `force=true` deletes the topic even with connected producers or consumers. An invalid topic name answers 400. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"deletePulsarPersistentTopic","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Topic deleted"},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/topics\/{topic}\/token":{"post":{"tags":["Pulsar"],"summary":"Issue an access token for a persistent topic","description":"Returns a new access token (Biscuit) restricted to this topic of the add-on's namespace, to hand to a producer or consumer that must reach this topic only. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"createPulsarPersistentTopicToken","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Access token restricted to the topic","content":{"text\/plain":{"schema":{"type":"string"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/addons\/{pulsarId}\/topics\/{topic}\/unload":{"put":{"tags":["Pulsar"],"summary":"Unload a persistent topic","description":"Asks the cluster to unload the topic from the broker serving it, so another broker takes it over; answers 204. An invalid topic name answers 400. The caller must own the add-on (personal add-on) or be a member of the owning organisation with the admin or manager role: a non-member gets 404 and any other role 403. An OAuth1 token must also hold `manage_organisations_services`: 403 `6201` otherwise, once the ownership and role checks pass. Platform services may also call it.","operationId":"triggerPulsarPersistentTopicUnload","parameters":[{"name":"pulsarId","in":"path","description":"Pulsar add-on ID (`pulsar_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"topic","in":"path","description":"Topic name, without the `persistent:\/\/` or `non-persistent:\/\/` prefix and the tenant\/namespace part","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Unload requested"},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/addon-pulsar\/clusters\/{clusterId}":{"get":{"tags":["Pulsar"],"summary":"Read a Pulsar cluster","description":"Returns one Pulsar cluster: endpoints, ports, version, zone, availability, cold storage support and supported plans. Any authenticated caller may read it. An unknown cluster answers 404.","operationId":"getPulsarCluster","parameters":[{"name":"clusterId","in":"path","description":"Pulsar cluster ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The cluster","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PulsarCluster"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown cluster: the response has no body"},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: a message with a numeric `id`, a `type` and a human-readable `message`.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"pulsar"}},"\/v4\/addon-providers\/config-provider\/addons\/{addonId}":{"get":{"tags":["ConfigProvider"],"summary":"Get a configuration provider add-on","description":"Returns the add-on with its environment variables. Answers 404 for an unknown or deleted add-on. The caller must own the add-on or be `ADMIN`, `MANAGER` or `DEVELOPER` of its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"getConfigurationProvider","parameters":[{"name":"addonId","in":"path","description":"Configuration provider add-on ID (`config_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on with its variables","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ConfigProvider"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"500":{"description":"Internal error: a message, or no body when the add-on cannot be read","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"configuration_provider"}},"\/v4\/addon-providers\/config-provider\/addons\/{addonId}\/env":{"get":{"tags":["ConfigProvider"],"summary":"List the variables of a configuration provider add-on","description":"Returns the add-on's environment variables. Answers 404 for an unknown or deleted add-on. The caller must own the add-on or be `ADMIN`, `MANAGER` or `DEVELOPER` of its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"listConfigurationProviderEnv","parameters":[{"name":"addonId","in":"path","description":"Configuration provider add-on ID (`config_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The add-on's variables","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WannabeEnvVar"}}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Unknown add-on: the response has no body"},"500":{"description":"Internal error: a message, or no body when the add-on cannot be read","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"configuration_provider"},"put":{"tags":["ConfigProvider"],"summary":"Replace the variables of a configuration provider add-on","description":"Replaces all the add-on's environment variables with the given list, updates the variables it exposes to its linked applications and returns the new list. Answers 400 for a duplicate name, a name outside `[a-zA-Z0-9-_.]` or a name or value over the size limit, and 413 for an oversized body. The caller must own the add-on or be `ADMIN`, `MANAGER` or `DEVELOPER` of its organisation, which must be active, and the token must hold `manage_organisations_services` (403 `6201` otherwise, answered before the add-on is read).","operationId":"replaceConfigurationProviderEnv","parameters":[{"name":"addonId","in":"path","description":"Configuration provider add-on ID (`config_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The complete new list of variables","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WannabeEnvVar"}}}},"required":true},"responses":{"200":{"description":"The add-on's new variables","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WannabeEnvVar"}}}}},"400":{"description":"Invalid variables: duplicate name, invalid name or size limit exceeded. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EnvVarValidationError"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"415":{"description":"The request body is not sent with the expected `Content-Type` (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"422":{"description":"The request body is well-formed but does not match the expected schema (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"configuration_provider"}},"\/v4\/addon-providers\/es-addon":{"get":{"tags":["Elasticsearch"],"summary":"Get the Elasticsearch provider information","description":"Returns what a new Elasticsearch add-on can be created on: the versions available with the options each one supports, and the version used by default. Open without authentication.","operationId":"getElasticsearchProviderInformation","responses":{"200":{"description":"The shared clusters, the versions available as a dedicated instance and the default one","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvidersConsole"}}}},"400":{"description":"The request could not be decoded (the body cannot be read): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[],"x-service":"es_addon"}},"\/v4\/addon-providers\/es-addon\/addons\/{appId}":{"get":{"tags":["Elasticsearch"],"summary":"Get an Elasticsearch add-on","description":"Returns the add-on: its plan, its zone, its version, the services it runs beside Elasticsearch, and the credentials it is reached with (the passwords of its Elasticsearch, Kibana and APM accounts, and the authentication token its APM agents send). The caller must be allowed to see the add-on, which the platform decides.","operationId":"getElasticsearch","parameters":[{"name":"appId","in":"path","description":"Platform add-on ID (`addon_\u2026`); the provider-side add-on ID is not accepted here","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The add-on and its credentials","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchAddonView"}}}},"400":{"description":"The Elasticsearch version the add-on records is not one this provider serves. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvisionResponse"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"No Elasticsearch add-on has that ID","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ElasticsearchProvisionResponse"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"es_addon"}},"\/v4\/addon-providers\/jenkins":{"get":{"tags":["Jenkins"],"summary":"Get the Jenkins provider information","description":"Returns the Jenkins versions a new add-on can be created on and the options each one supports. Open without authentication.","operationId":"getJenkinsProviderInformation","responses":{"200":{"description":"Provider versions and features","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/JenkinsProvidersConsoleView"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[],"x-service":"jenkins"}},"\/v4\/addon-providers\/jenkins\/addons\/{id}":{"get":{"tags":["Jenkins"],"summary":"Get a Jenkins add-on","description":"Returns the add-on: its host name, its version and the services configured beside Jenkins. Accepts the add-on's provider ID (`jenkins_\u2026`) or its platform add-on ID (`addon_\u2026`). The caller must be allowed to see the add-on, which the platform decides.","operationId":"getJenkins","parameters":[{"name":"id","in":"path","description":"Jenkins add-on provider ID (`jenkins_\u2026`) or platform add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/JenkinsAddonView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"401":{"description":"The caller is not allowed to read this add-on","content":{"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Add-on not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/JenkinsProvisionResponse"}}}},"500":{"description":"Database lookup failed"},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"jenkins"}},"\/v4\/addon-providers\/jenkins\/addons\/{id}\/updates":{"get":{"tags":["Jenkins"],"summary":"Get the available updates of a Jenkins add-on","description":"Returns the version the add-on runs, the newest version it can be updated to, and the link to its own update page. The caller must be allowed to see the add-on, which the platform decides.","operationId":"getJenkinsAvailableUpdates","parameters":[{"name":"id","in":"path","description":"Jenkins add-on provider ID (`jenkins_\u2026`) or platform add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Jenkins updates","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/JenkinsUpdateCenterView"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"401":{"description":"The caller is not allowed to read this add-on","content":{"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Add-on not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/JenkinsProvisionResponse"}}}},"500":{"description":"Update lookup failed"},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"jenkins"}},"\/v4\/addon-providers\/keycloak":{"get":{"tags":["Keycloak"],"summary":"Get the Keycloak provider information","description":"Returns the Keycloak versions that can be provisioned, with the options each one supports, and the default version. Requires an authenticated user.","operationId":"getKeycloakProviderInformation","responses":{"200":{"description":"Provider information","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ProviderConsoleView"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"keycloak"}},"\/v4\/addon-providers\/kv":{"get":{"tags":["Materia"],"summary":"Get the Materia KV provider information","description":"Returns the Materia KV cluster add-ons are created on. Requires no authentication.","operationId":"getMateriaKvProvider","responses":{"200":{"description":"Provider information","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ProviderConsoleView"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[],"x-service":"materia_kv"}},"\/v4\/addon-providers\/metabase":{"get":{"tags":["Metabase"],"summary":"Get the Metabase provider information","description":"Returns the Metabase versions that can be provisioned, with the options each one supports, and the default version. Requires an authenticated user.","operationId":"getMetabaseProviderInformation","responses":{"200":{"description":"Provider information","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ProviderConsoleView"}}}},"default":{"description":"Error: an `error` message, or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ProviderError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"metabase"}},"\/v4\/addon-providers\/mysql-addon":{"get":{"tags":["MySQL"],"summary":"Get the MySQL provider information","description":"Returns what a new MySQL add-on can be created on: the shared clusters and the versions available as a dedicated instance with the options each one supports. Open without authentication.","operationId":"getMySQLProviderInformation","responses":{"200":{"description":"The shared clusters, the versions available as a dedicated instance with the features each one supports, and the version used by default","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MysqlProvidersConsole"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[],"x-service":"my_sql_addon"}},"\/v4\/addon-providers\/otoroshi":{"get":{"tags":["Otoroshi"],"summary":"Get the Otoroshi provider information","description":"Returns the Otoroshi versions that can be provisioned, with the options each one supports, and the default version. Requires an authenticated user.","operationId":"getOtoroshiProviderInformation","responses":{"200":{"description":"Otoroshi provider information","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ProviderConsoleView"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"otoroshi"}},"\/v4\/addon-providers\/postgresql-addon":{"get":{"tags":["PostgreSQL"],"summary":"Get the PostgreSQL provider information","description":"Returns what a PostgreSQL add-on can be created on: the shared clusters, the versions available as a dedicated instance with the features each one supports, and the version used by default. With `target=migration`, the versions are the ones an existing add-on can be moved to. Open without authentication.","operationId":"getPostgreSQLProviderInformation","parameters":[{"name":"target","in":"query","description":"`migration` to list the versions an existing add-on can be moved to; any other value, or none, lists the versions a new add-on can be created with","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"The shared clusters, the versions available as a dedicated instance with the features each one supports, and the version used by default","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PostgresqlProvidersConsole"}}}},"400":{"description":"The request could not be decoded (a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[],"x-service":"postgresql_addon"}},"\/v4\/addon-providers\/redis-addon":{"get":{"tags":["Redis"],"summary":"Get the Redis provider information","description":"Returns what a new Redis add-on can be created on: the shared clusters and the versions available as a dedicated instance with the options each one supports. Open without authentication.","operationId":"getRedisProviderInformation","responses":{"200":{"description":"Provider info","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RedisProviderInfo"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[],"x-service":"redis_addon"}},"\/v4\/addon-providers\/{provider_id}\/addons\/{real_id}":{"get":{"tags":["Add-ons"],"summary":"Get an add-on from its provider","description":"Returns the add-on as its provider describes it (provider-defined JSON, forwarded with the provider's status). The caller must own the add-on or be a member of its owner organisation (404 otherwise, or when `provider_id` is not the add-on's provider), with the `manage_organisations_services` OAuth right (403 otherwise) and, as a member, the admin, manager or developer role (403 otherwise).","operationId":"v4_get_addon_from_provider","parameters":[{"name":"provider_id","in":"path","description":"Add-on provider ID (e.g., postgresql-addon)","required":true,"schema":{"type":"string"}},{"name":"real_id","in":"path","description":"Add-on real ID, or add-on ID (`addon_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on info from provider (provider response forwarded: the body may be empty, its format is provider-defined)","content":{"application\/json":{"schema":{}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the add-on provider's own error status and body, forwarded unchanged, or a message (`id`, `type`, `message`) when the provider cannot be reached or the caller is refused","content":{"application\/json":{"schema":{}}}}},"security":[{"oauth1":[]}],"x-service":"addons"}},"\/v4\/kubernetes-product":{"get":{"tags":["Kubernetes"],"summary":"Get the Kubernetes service configuration","description":"Returns the available topologies with their flavors and replication bounds, and the Kubernetes versions on offer with the default one. The answer depends on no organisation, but the request must carry credentials.","operationId":"getKubernetesServiceConfig","responses":{"200":{"description":"Kubernetes service configuration","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesServiceConfig"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters":{"get":{"tags":["Kubernetes"],"summary":"List the Kubernetes clusters of an organisation","description":"Returns the organisation's clusters whose stored status is in `status`, every status but `DELETED` by default; 400 on an unknown status. A failed cluster carries `failure`, one waiting on a dependency `waiting`. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"listKubernetesClusters","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Statuses to list; repeatable (`?status=ACTIVE&status=FAILED`), case-insensitive, matched on the stored status. Absent \u21d2 every status but DELETED; an explicit DELETED is honoured","required":false,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterStatusType"}}}],"responses":{"200":{"description":"List of clusters","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}}},"400":{"description":"The request could not be decoded (a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"},"post":{"tags":["Kubernetes"],"summary":"Create a Kubernetes cluster","description":"Creates a cluster, with its optional initial node groups, and provisions it asynchronously. The deployment profile is `deploymentProfileId`, else the default profile of the zone `zoneId` or `zone`, else of the only zone the organisation may use: a zone or profile the organisation may not use answers 404, an exceeded Kubernetes quota 412, and two initial node groups sharing a name, or more than 256 of them, 400. A `networkGroupId` attaches the cluster to an existing network group of the organisation: one that does not exist there answers 404, and 503 when it cannot be looked up; without it, a network group is created for the cluster. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"createKubernetesCluster","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ClusterCreationPayload"}}},"required":true},"responses":{"201":{"description":"Cluster created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"The body is not valid JSON, does not match the request schema or holds a NUL character in a string or a key (`clever.core.bad-request`), or the version, the topology or a node-group name is invalid, or there are more than 256 initial node groups. Both answer `{code, message}`; an invalid owner answers a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"413":{"description":"The request body is larger than the service accepts (`clever.core.payload-too-large`, as `{code, message}`). A body sent without a `Content-Type` and larger than 1 MiB is refused in plain text","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"415":{"description":"The request body is not announced as JSON (`clever.core.unsupported-media-type`, as `{code, message}`): its `Content-Type` is neither `application\/json` nor an `application\/\u2026+json` type, or it has none and the body does not start as a JSON object or array","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}":{"get":{"tags":["Kubernetes"],"summary":"Get a Kubernetes cluster","description":"Returns the cluster; 404 when the organisation has no such cluster. `apiServerUrl` is the API server URL the default kubeconfig uses, absent until the cluster has one; a failed cluster or node group carries `failure`, a cluster waiting on a dependency `waiting`. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"getKubernetesCluster","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Cluster details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"},"delete":{"tags":["Kubernetes"],"summary":"Delete a Kubernetes cluster","description":"Marks the cluster for deletion and returns it with the `DELETING` status; its resources are removed asynchronously. Deleting a cluster already being deleted returns it unchanged; 404 when the organisation has no such cluster. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"deleteKubernetesCluster","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Cluster marked for deletion","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"},"patch":{"tags":["Kubernetes"],"summary":"Update a Kubernetes cluster","description":"Updates the cluster's metadata and features. An absent or `null` `name`, `tags` or `description` keeps its current value; `[]` removes every tag and an empty string clears the description (`name` cannot be empty). `features` is applied as a JSON merge patch (RFC 7386): a flag set to `null` is unset. A feature change requires an active cluster and is carried out in the background, so `features` reports what is installed, not what was just requested; `features.nodeAutoprovisioning` and `features.autoscalingEnabled` each enable node autoprovisioning and are changed independently; leaving neither of them `true` is refused while nodes Karpenter provisioned (NodeClaims) exist, and deletes every NodePool, NodeOverlay and CleverNodeClass, and disabling `features.csi` while the cluster holds volumes or snapshots of its storage driver. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"updateKubernetesCluster","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ClusterPatchPayload"}}},"required":true},"responses":{"200":{"description":"Cluster updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path is malformed, or the body is not valid JSON, does not match the request schema or holds a NUL character in a string or a key (`clever.core.bad-request`), or the `features` are invalid once the request is applied (`clever.kubernetes.cluster-features-invalid`): `features.registries` cannot be an empty string (send `null` to unset it). All answer `{code, message}`; an invalid owner answers a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"404":{"description":"No such cluster in this organisation: the response has no body. When the organisation or user itself does not exist, the 404 may carry a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"409":{"description":"Refused for the cluster's state (`{code, message}`): the cluster is being deleted or already deleted (`clever.kubernetes.cluster-update-error`); a request carrying `features` is refused when the flags it would leave conflict with what the cluster holds, whichever flag it names (`clever.kubernetes.cluster-features-conflict`): nodes Karpenter provisioned (NodeClaims) with neither `features.nodeAutoprovisioning` nor `features.autoscalingEnabled` left `true`, a Karpenter the platform did not install with either enabled, volumes or snapshots of the storage driver with `features.csi` disabled, or a storage driver whose version cannot be read when disabling `features.csi`; a `features.registries` change while a node group is not ready to be redeployed (`clever.kubernetes.cluster-active-operation`); or the cluster changed while the request ran and the request can be sent again (`clever.kubernetes.cluster-modified-concurrently`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"412":{"description":"Refused by a precondition (`{code, message}`): the request changes a `features` value while the cluster is not active, because an operation is in progress or has failed or the cluster is being deleted (`clever.kubernetes.cluster-features-locked`). Send it again once the cluster is active; a request that changes no `features` value is not refused","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"413":{"description":"The request body is larger than the service accepts (`clever.core.payload-too-large`, as `{code, message}`). A body sent without a `Content-Type` and larger than 1 MiB is refused in plain text","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"415":{"description":"The request body is not announced as JSON (`clever.core.unsupported-media-type`, as `{code, message}`): its `Content-Type` is neither `application\/json` nor an `application\/\u2026+json` type, or it has none and the body does not start as a JSON object or array","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/csi\/ceph":{"post":{"tags":["Kubernetes"],"summary":"Enable the Ceph CSI storage driver of a cluster","description":"Deprecated: use the cluster update with `{\"features\":{\"csi\":true}}`. Records the storage driver enablement and returns the cluster; the driver is installed asynchronously. 404 when the cluster does not exist, 409 on a concurrent update, 412 unless the cluster is active. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"assignKubernetesCephCSIPlugin","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"CSI enablement recorded; the install is carried out asynchronously","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"deprecated":true,"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/deployment-events":{"get":{"tags":["Kubernetes"],"summary":"List the deployment events of a cluster","description":"Returns the cluster's events in the deployment-event format, each tagged with the operation it belongs to. The operation is derived from the events returned, so it can change with `limit`. 404 when the organisation has no such cluster. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"listClusterDeploymentEvents","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"limit","in":"query","description":"Maximum number of events (default 50, max 1000)","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Deployment events","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DeploymentEvent"}}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/events":{"get":{"tags":["Kubernetes"],"summary":"List the events of a cluster","description":"Returns the cluster's status changes, item changes and node lifecycle events (`event` tells which), newest first, at most `limit` of them. 404 when the organisation has no such cluster. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"listClusterEvents","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"limit","in":"query","description":"Maximum number of events (default 50, max 1000)","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Cluster events, newest first","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterDeploymentEvent"}}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/kubeconfig.yaml":{"get":{"tags":["Kubernetes"],"summary":"Download the kubeconfig of a cluster","description":"Returns a kubeconfig YAML file holding a newly issued cluster-admin (`system:masters`) client certificate. `type` selects the API server address it points at; 412 when that address does not exist or the API server is not reachable in the cluster's current state. Callable by members of the organisation with the `ADMIN`, `MANAGER` or `DEVELOPER` role, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations. The holder of a presigned token minted for this cluster in the `authorization` query parameter can call it too.","operationId":"getKubeConfig","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"type","in":"query","description":"Kubeconfig variant: LOADBALANCER (default), NETWORKGROUP, or APISERVER_IP","required":false,"schema":{"$ref":"#\/components\/schemas\/KubeConfigType"}},{"name":"authorization","in":"query","description":"Presigned token from the kubeconfig presigned-url operation, instead of the other credentials","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Kubeconfig YAML, sent as an attachment named `kubeconfig.yaml`","content":{"application\/x-yaml":{"schema":{"type":"string"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/kubeconfig\/presigned-url":{"get":{"tags":["Kubernetes"],"summary":"Get a presigned kubeconfig download URL","description":"Returns a URL that downloads the cluster's kubeconfig with no other credential, valid 60 minutes, even while the cluster is still deploying. Keep it secret: its token grants the kubeconfig download for this cluster until it expires. Callable by members of the organisation with the `ADMIN`, `MANAGER` or `DEVELOPER` role, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"getKubeConfigPresignedURL","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Kubeconfig download URL, valid 60 minutes","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PresignedUrl"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/node-groups":{"get":{"tags":["Kubernetes"],"summary":"List the node groups of a cluster","description":"Returns the cluster's node groups, standalone nodes excluded, whose stored status is in `status` (every status but `DELETED` by default); `currentNodeCount` counts the ready nodes. 404 when the organisation has no such cluster, 400 on an unknown status. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations. The cluster's node-group operator may also call it with its biscuit, scoped to this cluster.","operationId":"listKubernetesNodeGroups","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"status","in":"query","description":"Statuses to list; repeatable (`?status=READY&status=FAILED`), case-insensitive, matched on the stored status. Absent \u21d2 every status but DELETED; an explicit DELETED is honoured","required":false,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/NodeGroupStatusType"}}}],"responses":{"200":{"description":"List of node groups","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/NodeGroup"}}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"kubernetes"},"post":{"tags":["Kubernetes"],"summary":"Create a node group","description":"Creates a node group in the cluster and deploys it asynchronously; 409 when another node group of the cluster holds the name, 412 when the organisation's Kubernetes quota would be exceeded or when the cluster already holds 256 node groups, standalone nodes included. Organisation members need the ADMIN, MANAGER or DEVELOPER role. The cluster's node-group operator may also call it with its biscuit, scoped to this cluster.","operationId":"createKubernetesNodeGroup","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NodeGroupCreationPayload"}}},"required":true},"responses":{"201":{"description":"Node group created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NodeGroup"}}}},"400":{"description":"An identifier in the path is malformed, or the body is not valid JSON, does not match the request schema or holds a NUL character in a string or a key: both answer `{code, message}` with the code `clever.core.bad-request`. An invalid owner answers a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"412":{"description":"Refused by a precondition (`{code, message}`): the organisation's Kubernetes quota would be exceeded (`clever.core.quota-exceeded`), or the cluster already holds 256 node groups (`clever.kubernetes.node-group-limit-exceeded`): standalone nodes count, and a node group being deleted counts until it is gone","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"413":{"description":"The request body is larger than the service accepts (`clever.core.payload-too-large`, as `{code, message}`). A body sent without a `Content-Type` and larger than 1 MiB is refused in plain text","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"415":{"description":"The request body is not announced as JSON (`clever.core.unsupported-media-type`, as `{code, message}`): its `Content-Type` is neither `application\/json` nor an `application\/\u2026+json` type, or it has none and the body does not start as a JSON object or array","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/node-groups\/{nodeGroupId}":{"get":{"tags":["Kubernetes"],"summary":"Get a node group","description":"Returns the node group; a failed one carries `failure`, the latest failure cause and the nodes a worker roll could not drain. 404 when the cluster or the node group does not exist. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations. The cluster's node-group operator may also call it with its biscuit, scoped to this cluster.","operationId":"getKubernetesNodeGroup","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"nodeGroupId","in":"path","description":"Node group ID (`node_group_` or `nodeGroup_` followed by a ULID or a UUID; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^(node_group_|nodeGroup_)([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Node group details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NodeGroup"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"kubernetes"},"delete":{"tags":["Kubernetes"],"summary":"Delete a node group","description":"Marks the node group for deletion and returns it with the `TERMINATING` status; its nodes are drained and removed asynchronously. 409 when the cluster is not active. Organisation members need the ADMIN, MANAGER or DEVELOPER role. The cluster's node-group operator may also call it with its biscuit, scoped to this cluster.","operationId":"deleteKubernetesNodeGroup","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"nodeGroupId","in":"path","description":"Node group ID (`node_group_` or `nodeGroup_` followed by a ULID or a UUID; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^(node_group_|nodeGroup_)([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Node group marked for deletion","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NodeGroup"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"kubernetes"},"patch":{"tags":["Kubernetes"],"summary":"Update a node group","description":"Updates the name, description, tag and node counts; an omitted or `null` `description` or `tag` keeps its current value and an empty string clears it. Flavor, taints and labels cannot change. Every update, a rename alone included, needs an active cluster and a `READY` node group (409 otherwise); the one exception is a `FAILED` group that still holds draining nodes, which a body carrying `drainPolicy` and not raising `targetNodeCount` may retry. A standalone node cannot be updated (412), and an upscale counts against the organisation's Kubernetes quota (412 when exceeded). A name another node group of the cluster holds, or a group whose state changes while the request runs, is a 409. A node count change resizes the group asynchronously. Organisation members need the ADMIN, MANAGER or DEVELOPER role. The cluster's node-group operator may also call it with its biscuit, scoped to this cluster.","operationId":"updateKubernetesNodeGroup","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"nodeGroupId","in":"path","description":"Node group ID (`node_group_` or `nodeGroup_` followed by a ULID or a UUID; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^(node_group_|nodeGroup_)([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NodeGroupPatchPayload"}}},"required":true},"responses":{"200":{"description":"Node group updated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NodeGroup"}}}},"400":{"description":"An identifier in the path is malformed, or the body is not valid JSON, does not match the request schema or holds a NUL character in a string or a key: both answer `{code, message}` with the code `clever.core.bad-request`. An invalid owner answers a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"404":{"description":"No such cluster in this organisation, or no such node group in this cluster (a deleted one included): the response has no body. When the organisation or user itself does not exist, the 404 may carry a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"409":{"description":"Refused for the cluster's or the group's state (`{code, message}`): the cluster is not active (`clever.kubernetes.cluster-active-operation`), the node group is not `READY` or changed state while the request ran (`clever.kubernetes.node-group-resize-conflict`), or another node group of the cluster holds the requested name (`clever.kubernetes.node-group-name-conflict`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"412":{"description":"Refused by a precondition (`{code, message}`): a standalone node cannot be updated (`clever.kubernetes.standalone-resize`), or the upscale exceeds the organisation's Kubernetes quota (`clever.core.quota-exceeded`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"413":{"description":"The request body is larger than the service accepts (`clever.core.payload-too-large`, as `{code, message}`). A body sent without a `Content-Type` and larger than 1 MiB is refused in plain text","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"415":{"description":"The request body is not announced as JSON (`clever.core.unsupported-media-type`, as `{code, message}`): its `Content-Type` is neither `application\/json` nor an `application\/\u2026+json` type, or it has none and the body does not start as a JSON object or array","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/node-groups\/{nodeGroupId}\/resume":{"post":{"tags":["Kubernetes"],"summary":"Resume a node group stuck while deploying","description":"Asks for the deployment of a `DEPLOYING` node group to be resumed; the node group is returned still `DEPLOYING`. 409 when the cluster is not active or the node group is already being handled, 412 when the node group is not `DEPLOYING` (a `FAILED` one is retried automatically). Organisation members need the ADMIN, MANAGER or DEVELOPER role. The cluster's node-group operator may also call it with its biscuit, scoped to this cluster.","operationId":"triggerKubernetesNodeGroupResume","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"nodeGroupId","in":"path","description":"Node group ID (`node_group_` or `nodeGroup_` followed by a ULID or a UUID; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^(node_group_|nodeGroup_)([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Node group resume requested","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NodeGroup"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/nodes":{"get":{"tags":["Kubernetes"],"summary":"List the standalone nodes of a cluster","description":"Returns the cluster's standalone nodes that are not deleted, newest first; 404 when the organisation has no such cluster. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"listKubernetesNodes","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"List of nodes","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/StandaloneNode"}}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"},"post":{"tags":["Kubernetes"],"summary":"Create a standalone node","description":"Creates a single standalone node in the cluster and deploys it asynchronously; 409 when a node group or node of the cluster already holds the name, 412 when the organisation's Kubernetes quota would be exceeded or the cluster already holds 256 node groups and standalone nodes. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"createKubernetesNode","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeStandaloneNode"}}},"required":true},"responses":{"201":{"description":"Node created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StandaloneNode"}}}},"400":{"description":"An identifier in the path is malformed, or the body is not valid JSON, does not match the request schema or holds a NUL character in a string or a key: both answer `{code, message}` with the code `clever.core.bad-request`. An invalid owner answers a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"412":{"description":"Refused by a precondition (`{code, message}`): the organisation's Kubernetes quota would be exceeded (`clever.core.quota-exceeded`), or the cluster already holds 256 node groups and standalone nodes (`clever.kubernetes.node-group-limit-exceeded`): one being deleted counts until it is gone","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"413":{"description":"The request body is larger than the service accepts (`clever.core.payload-too-large`, as `{code, message}`). A body sent without a `Content-Type` and larger than 1 MiB is refused in plain text","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"415":{"description":"The request body is not announced as JSON (`clever.core.unsupported-media-type`, as `{code, message}`): its `Content-Type` is neither `application\/json` nor an `application\/\u2026+json` type, or it has none and the body does not start as a JSON object or array","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/nodes\/{nodeId}":{"get":{"tags":["Kubernetes"],"summary":"Get a standalone node","description":"Returns the standalone node; 404 when the cluster or the node does not exist. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"getKubernetesNode","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"nodeId","in":"path","description":"Node ID (`standalone_node_` or `standaloneNode_` followed by a ULID or a UUID; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^(standalone_node_|standaloneNode_)([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Node details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StandaloneNode"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"},"delete":{"tags":["Kubernetes"],"summary":"Delete a standalone node","description":"Marks the standalone node for deletion and returns it; it is drained and removed asynchronously. 404 when the cluster or the node does not exist, 409 when the cluster is not active. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"deleteKubernetesNode","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"nodeId","in":"path","description":"Node ID (`standalone_node_` or `standaloneNode_` followed by a ULID or a UUID; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^(standalone_node_|standaloneNode_)([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Node marked for deletion","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StandaloneNode"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/plugins\/reconcile":{"post":{"tags":["Kubernetes"],"summary":"Reconcile the plugins of a cluster","description":"Queues a pass that installs every plugin the cluster's features need at its current version and removes the unneeded ones, without touching any VM or node; returns the cluster with the `RECONCILING` status. 404 when the organisation has no such cluster; 409 `clever.kubernetes.plugin-reconcile-error` unless the cluster is active and not being deleted. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"triggerKubernetesClusterPluginsReconcile","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Plugin reconcile queued","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/redeploy":{"post":{"tags":["Kubernetes"],"summary":"Redeploy a cluster","description":"Starts a redeployment of the control plane and a roll of the worker nodes, carried out asynchronously. The optional body adds YAML manifests applied before and after the control plane switch (400 when invalid) and the `drainPolicy` of the roll; 409 when a node group is not ready to roll, the message naming each group and why. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"triggerKubernetesClusterRedeploy","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"requestBody":{"description":"Optional base64 YAML manifests applied before\/after the control-plane switch, and the drain policy. An absent, `null` or `{}` body starts the redeploy with the defaults","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/RedeployControlPlanePayload"},{"type":"null"}]}}}},"responses":{"200":{"description":"Cluster redeployment triggered","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path, or the body, is malformed (`{code, message}`), or a message when the owner is invalid. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/resume":{"post":{"tags":["Kubernetes"],"summary":"Resume a failed cluster","description":"Retries the operation that left the cluster `FAILED`: deployment, redeployment, upgrade or plugin reconcile; a failed deletion is a 409. The optional body sets the `drainPolicy` of the drains the retried operation runs, `STRICT` by default. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"triggerKubernetesClusterResume","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"requestBody":{"description":"Optional resume options. An absent, `null` or `{}` body resumes with the defaults (`STRICT`)","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ResumeClusterPayload"},{"type":"null"}]}}}},"responses":{"200":{"description":"Cluster resume triggered","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path, or the body, is malformed (`{code, message}`), or a message when the owner is invalid. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}},"text\/plain":{"schema":{"type":"string"}}}},"413":{"description":"The request body exceeds the size limit (plain text). Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/sni-migration":{"post":{"tags":["Kubernetes"],"summary":"Move a cluster's API server access to its own domain","description":"Queues a control-plane redeployment that serves the API server at `https:\/\/<cluster domain>` on port 443 instead of the shared load balancer port; worker nodes are not rolled. Once it completes, every kubeconfig downloaded before stops working and must be downloaded again; a failure rolls back to the previous access or leaves the cluster `FAILED` for `resume` to retry. 409 `clever.kubernetes.sni-migration-error` when the cluster is not active or not eligible, the message saying why. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"triggerKubernetesClusterSniMigration","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"responses":{"200":{"description":"Migration queued; the cluster is redeployed asynchronously","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/version\/check":{"get":{"tags":["Kubernetes"],"summary":"Check whether a cluster can be upgraded","description":"Returns the cluster's installed Kubernetes version, the available and latest versions, and whether an upgrade is available. With `workers=true`, also reports the kubelet versions the nodes actually run. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"getKubernetesClusterVersionCheck","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}},{"name":"workers","in":"query","description":"Also probe the cluster for the kubelet version each node actually runs. Off by default; the response is unchanged when omitted.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Version check result","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ClusterVersionCheck"}}}},"400":{"description":"An identifier in the path is malformed (`{code, message}`), or a message when the owner is invalid. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/clusters\/{kubernetesId}\/version\/update":{"post":{"tags":["Kubernetes"],"summary":"Upgrade the Kubernetes version of a cluster","description":"Starts an upgrade to `version`, carried out asynchronously: `scope` limits it to the control plane (`CONTROL_PLANE`) or to the worker nodes (`WORKERS`, which must name the version the control plane already runs), and `drainPolicy` (`STRICT` by default, or `FORCE`) decides what happens to a node whose pods will not leave. 400 `clever.kubernetes.invalid-version` for an unavailable version; 409 when the cluster cannot be upgraded in its current state or a node group is not ready to roll, the message naming each group and why. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"updateKubernetesClusterVersion","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kubernetesId","in":"path","description":"Cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`; any other shape is a 400)","required":true,"schema":{"type":"string","pattern":"^kubernetes_([0-9A-TV-Za-tv-z]{26}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})$"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PatchClusterVersion"}}},"required":true},"responses":{"200":{"description":"Cluster upgrade initiated","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesCluster"}}}},"400":{"description":"An identifier in the path is malformed, or the body is not valid JSON, does not match the request schema or holds a NUL character in a string or a key (`clever.core.bad-request`), or the version is refused (`clever.kubernetes.invalid-version`): it is not available, or a `WORKERS` upgrade names another version than the one the control plane runs. All answer `{code, message}`; an invalid owner answers a message (`id`, `type`, `message`)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesBadRequest"}}}},"413":{"description":"The request body is larger than the service accepts (`clever.core.payload-too-large`, as `{code, message}`). A body sent without a `Content-Type` and larger than 1 MiB is refused in plain text","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"415":{"description":"The request body is not announced as JSON (`clever.core.unsupported-media-type`, as `{code, message}`): its `Content-Type` is neither `application\/json` nor an `application\/\u2026+json` type, or it has none and the body does not start as a JSON object or array","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KubernetesError"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/quota":{"get":{"tags":["Kubernetes"],"summary":"Get the Kubernetes quota of an organisation","description":"Returns the organisation's Kubernetes resource ceilings, the platform defaults unless they were raised. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"getKubernetesQuota","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The organisation's quota ceilings","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Quota"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/usage":{"get":{"tags":["Kubernetes"],"summary":"Get the current Kubernetes usage of an organisation","description":"Returns the resources the organisation currently uses, one entry per active control plane and node group: what the Kubernetes quota is checked against. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"listKubernetesCurrentUsage","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Current Kubernetes usage","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterItemUsage"}}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/organisations\/{ownerId}\/zones":{"get":{"tags":["Kubernetes"],"summary":"List the zones where an organisation can create clusters","description":"Returns every active zone holding at least one deployment profile the organisation may use, each with those profiles; `prodDefault` marks the one a creation naming only the zone uses. An empty list when there is none. Callable by any member of the organisation with a role other than `NONE`, when the organisation has access to Kubernetes; an OAuth1 token must also grant access to organisations.","operationId":"listKubernetesOwnerZones","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The zones the organisation may create a cluster in, each with the deployment profiles it may use there","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/KubernetesOwnerZone"}}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/kubernetes\/plugins\/catalog":{"get":{"tags":["Kubernetes"],"summary":"Get the Kubernetes plugin catalog","description":"Returns the plugins the platform installs, the Kubernetes versions each one supports, and the migrations between their versions. The answer depends on no organisation, but the request must carry credentials.","operationId":"getKubernetesPluginCatalog","responses":{"200":{"description":"The plugin catalog","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PublicPluginCatalog"}}}},"default":{"description":"Error: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when authentication, an access check shared with other services or the owner check refuses the request. Some 404 and 500 responses have no body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"kubernetes"}},"\/v4\/load-balancers\/organisations\/{ownerId}\/addons\/{addonId}\/load-balancers\/{kind}":{"get":{"tags":["LoadBalancerInfo"],"summary":"List the load balancers of an add-on","description":"Returns the TCP load balancers serving the zone of the add-on, with the CNAME target and the addresses to connect through; the list may be empty. Requires the `access_organisations` right and a membership of the owner, whatever the role.","operationId":"listAddonLoadBalancers","parameters":[{"name":"ownerId","in":"path","description":"Owner of the resource: an organisation (`orga_<uuid>`) or a personal space (`user_<uuid>`)","required":true,"schema":{"type":"string"}},{"name":"addonId","in":"path","description":"Add-on ID (`addon_<uuid>`). The add-on's real ID (`postgresql_\u2026`, `redis_\u2026`) is well-formed but matches no add-on here: 404","required":true,"schema":{"type":"string"}},{"name":"kind","in":"path","description":"Kind of load balancers to list: `default` or `private`. Lowercase only: `DEFAULT` or `PRIVATE` is refused with 401, any other value with 400","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Load balancers of the add-on's zone; may be empty","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LoadBalancerInfo"}}}}},"400":{"description":"Malformed `ownerId`, `addonId` or `kind`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Missing or refused credentials, missing `access_organisations` right, not a member of the owner, or `kind` not in lowercase: this route answers 401 where others answer 403","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"No such add-on","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Internal error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Credentials or membership could not be verified: retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"loadbalancerinfo"}},"\/v4\/load-balancers\/organisations\/{ownerId}\/applications\/{applicationId}\/load-balancers\/{kind}":{"get":{"tags":["LoadBalancerInfo"],"summary":"List the load balancers of an application","description":"Returns the HTTP load balancers serving the zone of the application, with the CNAME target and the addresses to point a domain at; the list may be empty. Requires the `access_organisations` right and a membership of the owner, whatever the role.","operationId":"listApplicationLoadBalancers","parameters":[{"name":"ownerId","in":"path","description":"Owner of the resource: an organisation (`orga_<uuid>`) or a personal space (`user_<uuid>`)","required":true,"schema":{"type":"string"}},{"name":"applicationId","in":"path","description":"Application ID (`app_<uuid>`)","required":true,"schema":{"type":"string"}},{"name":"kind","in":"path","description":"Kind of load balancers to list: `default` or `private`. Lowercase only: `DEFAULT` or `PRIVATE` is refused with 401, any other value with 400","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Load balancers of the application's zone; may be empty","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LoadBalancerInfo"}}}}},"400":{"description":"Malformed `ownerId`, `applicationId` or `kind`","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Missing or refused credentials, missing `access_organisations` right, not a member of the owner, or `kind` not in lowercase: this route answers 401 where others answer 403","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"No such application","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Internal error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Credentials or membership could not be verified: retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"loadbalancerinfo"}},"\/v4\/logs\/organisations\/{orgId}\/applications\/{appId}\/logs":{"get":{"tags":["Logs"],"summary":"Stream the runtime logs of an application","description":"Server-Sent Events stream of an application's runtime logs (`APPLICATION_LOG` events). The stream ends with an `END_OF_STREAM` event when `limit`, `until` or the timeout is reached. Resume it with the `Last-Event-ID` header. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service.","operationId":"v4_get_org_app_logs","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"appId","in":"path","description":"Application ID (`app_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","description":"Start of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"until","in":"query","description":"End of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of log lines; the stream then ends with `LIMIT_REACHED`","required":false,"schema":{"type":"integer","minimum":0}},{"name":"deploymentId","in":"query","description":"Only the logs of this deployment","required":false,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"Only the logs of this instance (repeatable)","required":false,"schema":{"type":"string"}},{"name":"filter","in":"query","description":"Only the log lines containing this text (case-insensitive)","required":false,"schema":{"type":"string"}},{"name":"service","in":"query","description":"Only the logs of the services matching this regular expression (repeatable; `all` for every service; the usual application services by default)","required":false,"schema":{"type":"string"}},{"name":"field","in":"query","description":"Only these top-level JSON keys in each log event (repeatable; by default every key except `pid` and `facility`)","required":false,"schema":{"type":"string"}},{"name":"maxRetryDurationInSeconds","in":"query","description":"Maximum time to establish the stream, in seconds (default 600, at most 3600)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"throttleElements","in":"query","description":"Maximum number of events per throttle window (capped by the server)","required":false,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"throttlePerInMilliseconds","in":"query","description":"Length of the throttle window, in milliseconds (floored by the server)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"color","in":"query","description":"Whether each line's `message` keeps its ANSI escape sequences (colours): `true` by default; `false` strips them","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Log stream (`text\/event-stream`)","content":{"text\/event-stream":{}}},"400":{"description":"Invalid query parameter or `Last-Event-ID`: the error envelope, whose context names the parameter and its rejected value, or a message when authentication refuses the request. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBodyOrMessage"}},"text\/plain":{"schema":{"type":"string"}}}},"501":{"description":"Log streaming is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"}},"\/v4\/logs\/organisations\/{orgId}\/resources\/{resourceId}\/logs":{"get":{"tags":["Logs"],"summary":"Stream the runtime logs of an application, an add-on or a Kubernetes cluster","description":"Server-Sent Events stream of an add-on's or a Kubernetes cluster's runtime logs (`RESOURCE_LOG` events). The stream ends with an `END_OF_STREAM` event when `limit`, `until` or the timeout is reached. Resume it with the `Last-Event-ID` header. Add-on services are streamed by default: for an application, use the `applications` route or set `service=all`. Requires the `access_organisations` right and a membership of the organisation: a member with no role is refused (403). Also callable by the platform administration service. For a Kubernetes cluster (`kubernetes_\u2026`), the stream carries its control-plane and system-pod lines: without `since` it follows the live lines, with `since` it reads the log index from that date and then follows the live lines, and with `until` it ends at that date; `Last-Event-ID` resumes it from any line it sent, from the log index or live; it requires the ADMIN, MANAGER or DEVELOPER role. `search`, `tag` and `severity` apply to clusters only, and `deploymentId` is refused there.","operationId":"v4_get_org_resource_logs","parameters":[{"name":"orgId","in":"path","description":"Organisation ID","required":true,"schema":{"type":"string"}},{"name":"resourceId","in":"path","description":"Application ID (`app_\u2026`), add-on ID (`addon_\u2026`), add-on real ID or Kubernetes cluster ID (`kubernetes_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","description":"Start of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"until","in":"query","description":"End of the stream, as an RFC 3339 date","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of log lines; the stream then ends with `LIMIT_REACHED`","required":false,"schema":{"type":"integer","minimum":0}},{"name":"instanceId","in":"query","description":"Only the logs of this instance (repeatable)","required":false,"schema":{"type":"string"}},{"name":"filter","in":"query","description":"Only the log lines containing this text (case-insensitive)","required":false,"schema":{"type":"string"}},{"name":"service","in":"query","description":"Only the logs of the services matching this regular expression (repeatable; `all` for every service; add-on services by default, every component of a Kubernetes cluster)","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Kubernetes clusters only: only the log lines containing every one of these words, the last one as a prefix (at most 16 words)","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"Kubernetes clusters only: only the log lines carrying this tag, `key:value` or a bare `key` (repeatable; values of one key are alternatives, distinct keys must all match)","required":false,"schema":{"type":"string"}},{"name":"severity","in":"query","description":"Kubernetes clusters only: only the log lines at this severity or above (`debug`, `info`, `warning`, `err` or `crit`, and their aliases `trace`, `notice`, `warn`, `error`, `fatal`, `alert`, `emerg`)","required":false,"schema":{"type":"string"}},{"name":"field","in":"query","description":"Only these top-level JSON keys in each log event (repeatable; by default every key except `pid` and `facility`)","required":false,"schema":{"type":"string"}},{"name":"maxRetryDurationInSeconds","in":"query","description":"Maximum time to establish the stream, in seconds (default 600, at most 3600)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"throttleElements","in":"query","description":"Maximum number of events per throttle window (capped by the server)","required":false,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"throttlePerInMilliseconds","in":"query","description":"Length of the throttle window, in milliseconds (floored by the server)","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"color","in":"query","description":"Whether each line's `message` keeps its ANSI escape sequences (colours): `true` by default; `false` strips them","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Log stream (`text\/event-stream`)","content":{"text\/event-stream":{}}},"400":{"description":"Invalid query parameter or `Last-Event-ID`: the error envelope, whose context names the parameter and its rejected value, or a message when authentication refuses the request. For a Kubernetes cluster, also a query the log index refuses. A request that cannot be decoded is answered in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBodyOrMessage"}},"text\/plain":{"schema":{"type":"string"}}}},"404":{"description":"Kubernetes cluster not found in this organisation","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"409":{"description":"The Kubernetes cluster's logs are not provisioned, or its live logs or its log history are not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"429":{"description":"Too many Kubernetes cluster log streams or log searches at once; retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"501":{"description":"Log streaming is not available on this deployment","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Message"}}}},"502":{"description":"Kubernetes clusters only: the log index failed or returned an unusable answer; retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"504":{"description":"Kubernetes clusters only: the log index did not answer in time; retry later","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"logs"}},"\/v4\/materia\/organisations\/{ownerId}\/materia\/databases\/{kvId}":{"get":{"tags":["Materia"],"summary":"Get a Materia KV add-on of an owner","description":"Returns the add-on of `ownerId`, its access token included. With OAuth1, the token needs the organisation access and service management rights (403 otherwise) and the caller must hold the `ADMIN`, `MANAGER` or `DEVELOPER` role in `ownerId`; a caller without that role gets 404, as for an unknown add-on.","operationId":"getMateriaKv","parameters":[{"name":"ownerId","in":"path","description":"Owner ID (`user_\u2026` or `orga_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"kvId","in":"path","description":"Materia KV add-on ID (`kv_\u2026`)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Add-on, with its access token","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MateriaDB"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"401":{"description":"Missing or refused credentials: a refused OAuth1 signature, or any other credential, answers the error envelope (`apiRequestId`, `code`, `context`, `error`); refused HTTP Basic credentials answer the reason in plain text.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HTTPErrorBody"}},"text\/plain":{"schema":{"type":"string"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"materia_kv"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups":{"get":{"tags":["NetworkGroups"],"summary":"List the network groups of an organisation","description":"Returns every network group the organisation owns, possibly none. Repeat `tags` to keep only the groups that carry every given tag. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"listNetworkGroups","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"tags","in":"query","description":"Only the network groups carrying this exact tag; repeatable (`?tags=a&tags=b`), every given tag must match","required":false,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"List of network groups","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/NetworkGroup"}}}}},"400":{"description":"- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.\n- A request field cannot be read (`clever.core.bad-request`, a `Field` context naming the refused value and why).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"},"post":{"tags":["NetworkGroups"],"summary":"Create a network group","description":"Requests the creation of a network group, optionally with an ID, a label, tags and initial members. The group is created asynchronously and cannot be read until it is; 409 when its ID or label is already being created. Organisation members need the ADMIN or MANAGER role.","operationId":"createNetworkGroup","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeNetworkGroup"}}},"required":true},"responses":{"202":{"description":"Network group creation accepted; the group is created asynchronously (empty body)"},"400":{"description":"- The body is inconsistent: the named fields go together.\n- A member's domain name does not end with one of the platform's DNS suffixes.\n- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.\n- A request field cannot be read (`clever.core.bad-request`, a `Field` context naming the refused value and why).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"- The credential does not cover this operation on this owner.\n- The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).\n- This account may not create or change resources in its personal space (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"404":{"description":"The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"The request conflicts with the network group's current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed.\n- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.\n- The personal-space check could not be made (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/search":{"get":{"tags":["NetworkGroups"],"summary":"Search the network groups of an organisation","description":"Case-insensitive substring search of `query` over the IDs, labels and tags of the organisation's network groups and the IDs and labels of their members and peers. Returns every match as one flat list of groups, members and peers. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"listNetworkGroupComponents","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","description":"Text to search for; matches everything when absent","required":false,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Matching network groups, members and peers","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/NetworkGroupComponent"}}}}},"400":{"description":"- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.\n- The query string cannot be read as the operation's parameters: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}":{"get":{"tags":["NetworkGroups"],"summary":"Get a network group","description":"Returns the network group with its members and peers; 404 when it does not exist. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"getNetworkGroup","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Network group","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NetworkGroup"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"},"delete":{"tags":["NetworkGroups"],"summary":"Delete a network group","description":"Requests the deletion of the network group, which is applied asynchronously; 404 when it does not exist. Organisation members need the ADMIN or MANAGER role.","operationId":"deleteNetworkGroup","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"204":{"description":"Deletion accepted (empty body)"},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/external-peers":{"post":{"tags":["NetworkGroups"],"summary":"Add an external peer to a network group","description":"Requests the addition of a WireGuard peer running outside Clever Cloud under the member `parentMember`, and answers with its generated ID; the peer is created asynchronously. A `SERVER` peer needs `ip` and `port`. Organisation members need the ADMIN or MANAGER role.","operationId":"createNetworkGroupExternalPeer","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeExternalPeer"}}},"required":true},"responses":{"200":{"description":"Peer creation accepted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PeerCreated"}}}},"400":{"description":"- The body is inconsistent: the named fields go together.\n- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.\n- A request field cannot be read (`clever.core.bad-request`, a `Field` context naming the refused value and why).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"- The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).\n- This account may not create or change resources in its personal space (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.\n- The personal-space check could not be made (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/external-peers\/{peerId}":{"get":{"tags":["NetworkGroups"],"summary":"Get an external peer of a network group","description":"Returns the peer, as the peer route does; 404 when the network group or the peer does not exist. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"get_external_peer","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"peerId","in":"path","description":"Peer ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Peer","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Peer"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"},"delete":{"tags":["NetworkGroups"],"summary":"Remove an external peer from a network group","description":"Requests the removal of the external peer, which is applied asynchronously; 404 when the network group or the peer does not exist, 401 for a Clever Cloud instance peer. Organisation members need the ADMIN or MANAGER role.","operationId":"deleteNetworkGroupExternalPeer","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"peerId","in":"path","description":"Peer ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"204":{"description":"Removal accepted (empty body)"},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).\n- A Clever Cloud instance peer, which leaves the group only with its instance or its member.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/members":{"get":{"tags":["NetworkGroups"],"summary":"List the members of a network group","description":"Returns the applications, add-ons, load balancers and external resources that belong to the network group; 404 when the group does not exist. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"listNetworkGroupMembers","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"List of members","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Member"}}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"},"post":{"tags":["NetworkGroups"],"summary":"Add a member to a network group","description":"Requests the addition of an `APPLICATION`, `ADDON`, `EXTERNAL` or `LOADBALANCER` member, applied asynchronously. A given `domainName` must end with one of the configured DNS suffixes, otherwise one is derived; re-adding a member with the same ID and kind also answers 202, the same ID with another kind 409. Organisation members need the ADMIN or MANAGER role.","operationId":"createNetworkGroupMember","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabeNetworkgroupMember"}}},"required":true},"responses":{"202":{"description":"Addition accepted, or the member is already registered with the same ID and kind (empty body)"},"400":{"description":"- A member's domain name does not end with one of the platform's DNS suffixes.\n- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.\n- A request field cannot be read (`clever.core.bad-request`, a `Field` context naming the refused value and why).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"- The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).\n- This account may not create or change resources in its personal space (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"The request conflicts with the network group's current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.\n- The personal-space check could not be made (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/members\/{memberId}":{"get":{"tags":["NetworkGroups"],"summary":"Get a member of a network group","description":"Returns the member; 404 when the network group or the member does not exist. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"getNetworkGroupMember","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"memberId","in":"path","description":"Member ID: the application, add-on, load balancer or external resource ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Member","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Member"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"},"delete":{"tags":["NetworkGroups"],"summary":"Remove a member from a network group","description":"Requests the removal of the member, which is applied asynchronously; 404 when the network group or the member does not exist. Organisation members need the ADMIN or MANAGER role.","operationId":"deleteNetworkGroupMember","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"memberId","in":"path","description":"Member ID: the application, add-on, load balancer or external resource ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"204":{"description":"Removal accepted (empty body)"},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/members\/{memberId}\/resync":{"post":{"tags":["NetworkGroups"],"summary":"Resync the peers of a network group member","description":"Walks the running instances of an `APPLICATION` or `ADDON` member once and, for each, reports what it found and did: the peer is present, its WireGuard key request was sent again (its creation waits for the key), its creation was started, or the instance was skipped, with the reason. A failure on one instance is that instance's `skipped`, never an error of the call; a creation already under way is reported `creation_started` with the reason `creation already in flight`. 503 when the running instances cannot be listed. 404 when the network group or the member does not exist; 422 for an `EXTERNAL` or `LOADBALANCER` member, which has no instances. Organisation members need the ADMIN or MANAGER role.","operationId":"resyncNetworkGroupMember","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"memberId","in":"path","description":"Member ID: the application or add-on ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"202":{"description":"What the resync found and did, per running instance of the member","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/NetworkGroupMemberResync"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"- The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).\n- This account may not create or change resources in its personal space (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"422":{"description":"The request is well formed, but the resource cannot honour it.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.\n- The personal-space check could not be made (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"503":{"description":"A service the request needs cannot be read: retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/peers":{"get":{"tags":["NetworkGroups"],"summary":"List the peers of a network group","description":"Returns the WireGuard peers of the network group, Clever Cloud instances and external peers alike; 404 when the group does not exist. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"listNetworkGroupPeers","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"List of peers","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Peer"}}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"},"post":{"tags":["NetworkGroups"],"summary":"Add a peer to a network group","description":"Requests the addition of a WireGuard peer under the member `parentMember` and answers 201 with its ID; the peer is created asynchronously. A `SERVER` peer needs `ip` and `port`, an external peer its `publicKey`; 409 when the peer ID already exists. Organisation members need the ADMIN or MANAGER role.","operationId":"createNetworkGroupPeer","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WannabePeer"}}},"required":true},"responses":{"201":{"description":"Peer creation accepted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PeerCreated"}}}},"400":{"description":"- The body is inconsistent: the named fields go together.\n- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.\n- A request field cannot be read (`clever.core.bad-request`, a `Field` context naming the refused value and why).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"- The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).\n- This account may not create or change resources in its personal space (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"The request conflicts with the network group's current state.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed.\n- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.\n- The personal-space check could not be made (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"503":{"description":"A service the request needs cannot be read: retry later.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/peers\/{peerId}":{"get":{"tags":["NetworkGroups"],"summary":"Get a peer of a network group","description":"Returns the peer; 404 when the network group or the peer does not exist. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"getNetworkGroupPeer","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"peerId","in":"path","description":"Peer ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Peer","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Peer"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"},"delete":{"tags":["NetworkGroups"],"summary":"Remove a peer from a network group","description":"Requests the removal of an external peer, which is applied asynchronously; 404 when the network group or the peer does not exist. A Clever Cloud instance peer cannot be removed this way (401): it leaves the group with its instance or its member. Organisation members need the ADMIN or MANAGER role.","operationId":"deleteNetworkGroupPeer","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"peerId","in":"path","description":"Peer ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"204":{"description":"Removal accepted (empty body)"},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).\n- A Clever Cloud instance peer, which leaves the group only with its instance or its member.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/peers\/{peerId}\/wireguard\/configuration":{"get":{"tags":["NetworkGroups"],"summary":"Get a peer's WireGuard configuration","description":"Returns the peer's WireGuard configuration as INI text (`text\/plain`): its `[Interface]` section and one `[Peer]` section per other peer that has a valid WireGuard public key. Pass the presigned token in the `authorization` query parameter, or any other accepted credential; 404 when the network group or the peer does not exist. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"getWireguardConfiguration","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"peerId","in":"path","description":"Peer ID","required":true,"schema":{"type":"string"}},{"name":"authorization","in":"query","description":"Presigned token from the presigned-url operation","required":false,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"The peer's WireGuard configuration (INI text)","content":{"text\/plain; charset=utf-8":{"schema":{"type":"string"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/peers\/{peerId}\/wireguard\/configuration\/presigned-url":{"get":{"tags":["NetworkGroups"],"summary":"Get a presigned URL for a peer's WireGuard configuration","description":"Returns a URL that downloads the peer's WireGuard configuration with no other credential, valid 60 minutes; keep it secret, as its token grants that download for every peer of the organisation's network groups until it expires. 404 when the network group or the peer does not exist; a biscuit cannot obtain one. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"getWireguardConfigPresignedURL","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"peerId","in":"path","description":"Peer ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Presigned WireGuard configuration URL, valid 60 minutes","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PresignedURL"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed.\n- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/peers\/{peerId}\/wireguard\/configuration\/stream":{"get":{"tags":["NetworkGroups"],"summary":"Stream a peer's WireGuard configuration","description":"Server-Sent Events stream of the peer's WireGuard configuration (`WireGuardConfigurationB64` JSON, the INI text base64-encoded), sent whenever the network group's version changes (checked every 15 seconds), with a `HEARTBEAT` event after 5 seconds of silence; it ends when the group or the peer disappears. Browser clients that cannot set headers may pass the base64 of their `Authorization` header in the `authorization` query parameter. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"getWireguardConfigurationStream","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"peerId","in":"path","description":"Peer ID","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Server-Sent Events: the WireGuard configuration on every version change, `HEARTBEAT` events while idle","content":{"text\/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/networkgroups\/organisations\/{ownerId}\/networkgroups\/{networkGroupId}\/stream":{"get":{"tags":["NetworkGroups"],"summary":"Stream a network group","description":"Server-Sent Events stream of the network group JSON, sent whenever its version changes (checked every 15 seconds), with a `HEARTBEAT` event after 5 seconds of silence; it ends when the group disappears. Browser clients that cannot set headers may pass the base64 of their `Authorization` header in the `authorization` query parameter. Organisation members need the ADMIN, MANAGER or DEVELOPER role.","operationId":"getNetworkGroupStream","parameters":[{"name":"ownerId","in":"path","description":"Organisation ID (`orga_\u2026`) or user ID (`user_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"networkGroupId","in":"path","description":"Network group ID (`ng_\u2026`)","required":true,"schema":{"type":"string"}},{"name":"Clever-API-Version","in":"header","description":"The ISO 8601 date (`YYYY-MM-DD`) the client was built against: the operation answers the behaviour in force on that date. Absent, it answers its latest behaviour. An operation that never had a breaking change ignores it.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Server-Sent Events: the network group JSON on every version change, `HEARTBEAT` events while idle","content":{"text\/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"- An ID in the path or the body cannot be read.\n- A path segment is malformed: the owner, the network group or the member ID (`clever.core.bad-request`, a `Field` context, the body pretty-printed); or the `Authorization` header cannot be read (`clever.core.bad-format`).\n- A path parameter cannot be read as its type: the message says which.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"- No credential, one that does not verify, or a network group another owner holds.\n- No credential, one that does not verify, or a bearer whose `instigator` is blank, ambiguous, over 256 bytes or not printable ASCII (`clever.auth.unauthorized`).\n- The OAuth token has expired (a message).","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/ErrorResponseBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}},"403":{"description":"The bearer does not cover this operation on this owner, the module's Basic pair is used on a route it cannot act on, or the member's role does not allow it (`clever.auth.forbidden`).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"- The network group, the member or the peer does not exist.\n- The owner of an OAuth1 or internal caller does not exist (`clever.core.not-found`, a `Resource` context).","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"- The server failed: the cause is not sent.\n- The membership of an OAuth1 or internal caller could not be read (`clever.core.internal-error`).\n- The path parameters could not be read by the server.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{"oauth1":[]},{"Bearer":[]}],"x-service":"network_group"}},"\/v4\/products\/zones":{"get":{"tags":["Zones"],"summary":"List the available zones","description":"Returns the active zones the caller may deploy to. No credential is required: an anonymous caller gets the public zones, and an OAuth1 caller also gets the private zones granted to their organisations, minus the zones those organisations are restricted from. A repeated or malformed query parameter answers 400 (plain text).","operationId":"listRegions","parameters":[{"name":"tag","in":"query","description":"Only the zones carrying this tag (e.g. `infra:clever-cloud`)","required":false,"schema":{"type":"string"}},{"name":"ownerId","in":"query","description":"Only consider this one of the caller's organisations or account (`orga_\u2026` or `user_\u2026`); an owner the caller does not belong to leaves only the public zones","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of available zones","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Region"}}}}},"400":{"description":"The request could not be decoded (a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{},{"oauth1":[]}],"x-service":"zone"}},"\/v4\/products\/zones\/{zoneName}":{"get":{"tags":["Zones"],"summary":"Get a zone","description":"Returns one active zone by name, under the visibility rules of the zone list: no credential is required, and a private zone is found only by an OAuth1 caller whose organisation it is granted to. 404 when the zone is unknown, inactive or not visible to the caller; 400 (plain text) on a repeated or malformed query parameter.","operationId":"getRegion","parameters":[{"name":"zoneName","in":"path","description":"Zone name (e.g. `par`, `mtl`)","required":true,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"Accepted for compatibility with the zone list; not applied to this lookup","required":false,"schema":{"type":"string"}},{"name":"ownerId","in":"query","description":"Only consider this one of the caller's organisations or account (`orga_\u2026` or `user_\u2026`); an owner the caller does not belong to leaves only the public zones","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Zone details","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Region"}}}},"400":{"description":"The request could not be decoded (a path parameter is invalid, or a query parameter is invalid): the reason is answered in plain text. Any other error with this status answers the error body.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}},"text\/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal error: the response has no body"},"default":{"description":"Error: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication or an access check shared with other services refuses the request.","content":{"application\/json":{"schema":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}]}}}}},"security":[{},{"oauth1":[]}],"x-service":"zone"}}},"components":{"schemas":{"AddonBackup":{"type":"object","description":"A backup of a database add-on: an archive of its data at a point in time, with the URL to download it from.","required":["backup_id","entity_id","status","creation_date","delete_at","filename","download_url"],"properties":{"backup_id":{"type":"string","format":"uuid","description":"Backup ID.","example":"5a6f1c0e-9b2d-4e7a-8c3f-2d1b0a9e8f7c"},"creation_date":{"type":"string","format":"date-time","description":"When the backup was taken (RFC 3339).","example":"2026-11-18T03:00:12.482913Z"},"delete_at":{"type":"string","format":"date-time","description":"When the retention policy deletes the backup (RFC 3339).","example":"2026-11-25T03:00:12.482913Z"},"download_url":{"type":"string","description":"Signed URL to download the archive from. It expires: list the backups again for a new one."},"entity_id":{"type":"string","format":"uuid","description":"ID the backup service knows the add-on by: not the add-on ID.","example":"0c8e2a6b-1f5d-4b3a-9e7c-4d2b0a8c1e6f"},"filename":{"type":"string","description":"Name of the archive file.","example":"postgresql_4e7a8c3f-5a6f-4c0e-9b2d-2d1b0a9e8f7c-20261118030012.dump"},"status":{"$ref":"#\/components\/schemas\/AddonBackupStatus","description":"Status of the backup."}}},"AddonBackupEntry":{"oneOf":[{"$ref":"#\/components\/schemas\/AddonBackup","description":"Backup of a database add-on."},{"$ref":"#\/components\/schemas\/ElasticsearchBackup","description":"Snapshot of an Elasticsearch add-on."}],"description":"A backup of an add-on: an archive to download for a database add-on, a snapshot for an Elasticsearch add-on."},"AddonBackupStatus":{"type":"string","description":"Status of a backup.","enum":["Pending","Done","Failed"]},"AddonEnvironmentView":{"type":"object","description":"An environment variable: its name and its value.","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"}}},"AddonFeatureInstanceView":{"type":"object","description":"The value a provider feature takes on one add-on plan.","required":["name","type"],"properties":{"computable_value":{"type":["string","null"],"description":"Machine-readable form of `value`, when the provider gives one."},"name":{"type":"string","description":"Display name of the feature."},"name_code":{"type":["string","null"],"description":"Stable code of the feature, when the provider defines one."},"type":{"type":"string","description":"Type of the feature's value."},"value":{"type":["string","null"],"description":"Value of the feature on this plan, as displayed."}}},"AddonFeatureView":{"type":"object","description":"A feature an add-on provider describes its plans with, such as a memory size or a number of connections.","required":["name","type"],"properties":{"name":{"type":"string","description":"Display name of the feature."},"name_code":{"type":["string","null"],"description":"Stable code of the feature, when the provider defines one."},"type":{"type":"string","description":"Type of the feature's value."}}},"AddonPlanView":{"type":"object","description":"A plan of an add-on provider: its price, the zones it is available in and the value of each feature.","required":["id","price","zones","features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonFeatureInstanceView"}},"id":{"type":"string"},"name":{"type":["string","null"]},"price":{"type":"number","format":"double"},"price_id":{"type":["string","null"]},"slug":{"type":["string","null"]},"zones":{"type":"array","items":{"type":"string"}}}},"AddonProviderConsoleCluster":{"type":"object","description":"A shared cluster of an add-on provider: its ID, label, zone and version.","required":["id","label","zone","version"],"properties":{"dedicatedOptions":{"oneOf":[{"$ref":"#\/components\/schemas\/AddonProviderDedicatedOptions","description":"Options of the cluster's version as a dedicated instance; absent when the provider sends none."},{"type":"null"}]},"id":{"type":"string","description":"Cluster ID."},"label":{"type":"string","description":"Human-readable name of the cluster."},"version":{"type":"string","description":"Version the cluster runs."},"zone":{"type":"string","description":"Zone the cluster runs in (e.g. `par`)."}}},"AddonProviderConsoleInfos":{"type":"object","description":"What an add-on provider offers for a new add-on: its clusters and the versions available as dedicated instances.","required":["clusters","dedicated"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonProviderConsoleCluster"},"description":"The provider's shared clusters."},"dedicated":{"type":"object","description":"The options of each version offered as a dedicated instance, keyed by version.","additionalProperties":{"$ref":"#\/components\/schemas\/AddonProviderDedicatedOptions"},"propertyNames":{"type":"string"}}}},"AddonProviderConsoleVersions":{"type":"object","description":"The versions an add-on can migrate to: the provider's clusters and the versions available as dedicated instances.","required":["clusters","dedicatedVersions"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonProviderConsoleCluster"},"description":"The provider's shared clusters."},"dedicatedVersions":{"type":"array","items":{"type":"string"},"description":"The versions available as dedicated instances."}}},"AddonProviderDedicatedOptions":{"type":"object","description":"The options of a version offered as a dedicated instance.","required":["features"],"properties":{"features":{"type":"array","items":{"type":"string"},"description":"Names of the features the version supports."}}},"AddonProviderEmbeddedView":{"type":"object","description":"The provider of an add-on, as embedded in the add-on: identity, contact and display details and the regions it serves, without its plans.","required":["id","status","openInNewTab","canUpgrade","regions"],"properties":{"analyticsId":{"type":["string","null"]},"canUpgrade":{"type":"boolean"},"googlePlusName":{"type":["string","null"]},"id":{"type":"string"},"logoUrl":{"type":["string","null"]},"longDesc":{"type":["string","null"]},"name":{"type":["string","null"]},"openInNewTab":{"type":"boolean"},"regions":{"type":"array","items":{"type":"string"}},"shortDesc":{"type":["string","null"]},"status":{"type":"string"},"supportEmail":{"type":["string","null"]},"twitterName":{"type":["string","null"]},"website":{"type":["string","null"]}}},"AddonProviderFeatureView":{"type":"object","description":"A feature an add-on provider describes its plans with, such as a memory size or a number of connections.","required":["name","type"],"properties":{"name":{"type":"string","description":"Display name of the feature."},"name_code":{"type":["string","null"],"description":"Stable code of the feature, when the provider defines one."},"type":{"type":"string","description":"Type of the feature's value."}}},"AddonProviderInfoFullView":{"type":"object","description":"An add-on provider with its catalogue: identity, contact and display details, the regions it serves, its plans and the features they are described with.","required":["id","status","openInNewTab","canUpgrade","regions","plans","features"],"properties":{"analyticsId":{"type":["string","null"]},"canUpgrade":{"type":"boolean"},"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonFeatureView"}},"googlePlusName":{"type":["string","null"]},"id":{"type":"string"},"logoUrl":{"type":["string","null"]},"longDesc":{"type":["string","null"]},"name":{"type":["string","null"]},"openInNewTab":{"type":"boolean"},"plans":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonPlanView"}},"regions":{"type":"array","items":{"type":"string"}},"shortDesc":{"type":["string","null"]},"status":{"type":"string"},"supportEmail":{"type":["string","null"]},"twitterName":{"type":["string","null"]},"website":{"type":["string","null"]}}},"AddonSSOData":{"type":"object","description":"Single sign-on data to open an add-on's dashboard on its provider's site, signed with the provider's SSO salt.","required":["id","timestamp","token","signature","email","user_id","nav-data"],"properties":{"email":{"type":"string","description":"User email (empty string if user not found)."},"id":{"type":"string","description":"Identifier of the add-on at its provider (its real ID)."},"name":{"type":["string","null"],"description":"Always `null`."},"nav-data":{"type":"string","description":"Navigation data; always an empty string."},"signature":{"type":"string","description":"Hex SHA-512 of `<id>:<user_id>:<email>:<nav-data>:<SSO salt>:<timestamp>`."},"timestamp":{"type":"integer","format":"int64","description":"Unix timestamp in seconds."},"token":{"type":"string","description":"Hex SHA-1 of `<id>:<SSO salt>:<timestamp>`."},"url":{"type":["string","null"],"description":"Provider SSO URL (production or test depending on provider status)."},"user_id":{"type":"string","description":"User ID (empty string if user not found)."},"userinfo_signature":{"type":["string","null"],"description":"Always `null`."}}},"AddonView":{"type":"object","description":"An add-on: its identifiers, region, provider, plan, creation date, the names of the environment variables it exposes and its tags.","required":["id","region","provider","plan","configKeys"],"properties":{"configKeys":{"type":"array","items":{"type":"string"},"description":"Names of the environment variables the add-on exposes."},"creationDate":{"type":["integer","null"],"format":"int64","description":"Creation date, in milliseconds since the Unix epoch."},"id":{"type":"string"},"name":{"type":["string","null"]},"plan":{"$ref":"#\/components\/schemas\/AddonPlanView"},"provider":{"$ref":"#\/components\/schemas\/AddonProviderEmbeddedView","description":"The add-on's provider, without its plans and features."},"realId":{"type":["string","null"],"description":"Identifier of the add-on at its provider."},"region":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}},"zoneId":{"type":["string","null"]}}},"ApiErrorBody":{"type":"object","description":"Error returned by the API: branch on `code`, read `context` for the details that code promises, show `error` to a human, and quote `requestId` when contacting support.","required":["code","context","error","requestId"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code: `clever.<product>.<area>.<reason>`, or a generic\n`clever.core.*` code (`clever.core.not-found`\u2026)."},"context":{"type":"object","description":"Structured details of the error, an object whose members the `code` fixes: `{}` when it\npromises none, `kind` and `name` for `clever.core.not-found` and `clever.core.conflict`."},"error":{"type":"string","description":"Human-readable message, not a stable contract."},"requestId":{"type":"string","description":"Identifier of the request, to quote when contacting support: `<trace id>-<span id>`, 32 then\n16 lowercase hex digits."}}},"ApplicationView":{"type":"object","description":"An application: its identity, region, instance configuration, deployment settings, domains, environment variables and current state.","required":["id","name","description","zone","instance","deployment","vhosts","env","creationDate","last_deploy","archived","stickySessions","homogeneous","favourite","cancelOnPush","separateBuild","ownerId","state","forceHttps"],"properties":{"appliance":{"type":["string","null"]},"archived":{"type":"boolean"},"branch":{"type":["string","null"],"description":"Git branch configured for the application, as set; `null` when none is set."},"buildFlavor":{"oneOf":[{"$ref":"#\/components\/schemas\/Flavor"},{"type":"null"}]},"cancelOnPush":{"type":"boolean"},"commitId":{"type":["string","null"]},"creationDate":{"type":"integer","format":"int64"},"deployUrl":{"type":["string","null"]},"deployment":{"$ref":"#\/components\/schemas\/DeploymentInfoView"},"description":{"type":"string"},"env":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonEnvironmentView"}},"favourite":{"type":"boolean"},"forceHttps":{"type":"string"},"homogeneous":{"type":"boolean"},"id":{"type":"string"},"instance":{"$ref":"#\/components\/schemas\/InstanceView"},"last_deploy":{"type":"integer","format":"int32"},"name":{"type":"string"},"ownerId":{"type":"string"},"separateBuild":{"type":"boolean"},"state":{"type":"string"},"stickySessions":{"type":"boolean"},"vhosts":{"type":"array","items":{"$ref":"#\/components\/schemas\/VhostView"}},"webhookSecret":{"type":["string","null"]},"webhookUrl":{"type":["string","null"]},"zone":{"type":"string"},"zoneId":{"type":["string","null"]}}},"Author":{"type":"object","description":"The user who triggered a deployment, when known.","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]}}},"AvailableInstanceView":{"type":"object","description":"An instance type of the catalogue: a runtime version with its variant, flavors, scaling limit and deployment methods.","required":["type","version","name","variant","description","enabled","comingSoon","maxInstances","tags","deployments","flavors","defaultFlavor","buildFlavor"],"properties":{"buildFlavor":{"oneOf":[{"$ref":"#\/components\/schemas\/Flavor","description":"Flavor of the dedicated build instance of this variant; `null` when it has none or it\ncannot be resolved."},{"type":"null"}]},"comingSoon":{"type":"boolean","description":"Always `false`."},"defaultFlavor":{"oneOf":[{"$ref":"#\/components\/schemas\/Flavor","description":"Default flavor of this variant; `null` when it has none or it cannot be resolved."},{"type":"null"}]},"deployments":{"type":"array","items":{"type":"string"},"description":"Deployment methods the instance type accepts (e.g. `git`)."},"description":{"type":["string","null"],"description":"Description of the instance type; `null` when it has none."},"enabled":{"type":"boolean","description":"Whether the instance type is enabled in the catalogue."},"flavors":{"type":"array","items":{"$ref":"#\/components\/schemas\/Flavor"},"description":"Flavors an application of this instance type can use."},"maxInstances":{"$ref":"#\/components\/schemas\/InstanceCount"},"name":{"type":"string","description":"Display name of the variant (e.g. `Static Apache` for `php`)."},"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"}},"type":{"type":"string","description":"Instance type (e.g. `node`)."},"variant":{"$ref":"#\/components\/schemas\/InstanceVariantView"},"version":{"type":"string","description":"Instance version (e.g. `20250909`)."}}},"AvatarInput":{"type":"object","description":"Where to take the user's avatar from. The avatar URL is derived from the chosen source; a URL cannot be supplied.","properties":{"source":{"type":["string","null"],"description":"`\"gravatar\"` or `\"github\"`; anything else (or absent) is an invalid source."}}},"BackupServiceError":{"type":"object","description":"Internal error of the backup service: an identifier to quote to support, and nothing else.","required":["error"],"properties":{"error":{"$ref":"#\/components\/schemas\/BackupServiceErrorId","description":"The error."}}},"BackupServiceErrorId":{"type":"object","description":"Identifier of an internal error of the backup service.","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"Identifier generated for this response.","example":"7d3b1f0a-6c2e-4a9d-8b5f-1e0c9a8d7b6f"}}},"BasicCredentials":{"type":"object","description":"A username and password pair.","required":["user","password"],"properties":{"password":{"type":"string"},"user":{"type":"string"}}},"BundledComponentView":{"oneOf":[{"type":"object","required":["type"],"properties":{"port":{"type":["integer","null"],"format":"int32","minimum":0},"type":{"type":"string","enum":["ApiServerView"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ControllerManagerView"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CloudControllerManagerView"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["NodeGroupOperatorView"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["SchedulerView"]}}},{"type":"object","required":["name","type"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["SingleNodeView"]}}}],"description":"A component running on a control-plane VM, discriminated by `type`: API server (with its port, when known), controller manager, cloud controller manager, node group operator, scheduler, or single node."},"CephCsiConfigView":{"type":"object","description":"Ceph CSI storage configuration of a cluster: the Ceph cluster, RBD namespace and pool its volumes live in, the Kubernetes namespace the driver runs in, the driver version and its provisioner replica count. Monitor addresses and the Ceph credential are not exposed.","required":["clusterId","cephNamespace","cephPool","kubernetesNamespace","cephCSIVersion","provisionerReplicas"],"properties":{"cephCSIVersion":{"type":"string"},"cephNamespace":{"$ref":"#\/components\/schemas\/CephRbdNamespace"},"cephPool":{"$ref":"#\/components\/schemas\/CephPool"},"clusterId":{"type":"string"},"kubernetesNamespace":{"type":"string"},"provisionerReplicas":{"type":"integer","format":"int32"}}},"CephPool":{"type":"object","description":"A Ceph pool, as an object holding its `name`.","required":["name"],"properties":{"name":{"type":"string"}}},"CephRbdNamespace":{"type":"object","description":"A Ceph RBD namespace, as an object holding its `id`.","required":["id"],"properties":{"id":{"type":"string"}}},"ClusterConsoleView":{"type":"object","description":"A cluster of an add-on provider: its ID, label, zone, version and features.","required":["id","label","zone","version"],"properties":{"features":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"},"version":{"type":"string"},"zone":{"type":"string"}}},"ClusterCreationPayload":{"type":"object","description":"Request body to create a Kubernetes cluster. Only `name` is required; the zone and the deployment profile are resolved as described on `zoneId`, `zone` and `deploymentProfileId`.","required":["name"],"properties":{"deploymentProfileId":{"type":["string","null"],"description":"The deployment profile to create the cluster with\n(`kubernetes_deployment_profile_<uuid>`). When absent: the default\nprofile of the zone given by `zoneId` \/ `zone`, else of the one active\nzone the organisation may use, else of the platform's default zone.\nWhen sent with `zoneId` \/ `zone`, they must be the profile's zone."},"description":{"type":["string","null"],"description":"Cluster description, at most 4096 characters, no NUL character","maxLength":4096,"pattern":"^[^\\x00]*$"},"features":{"oneOf":[{"$ref":"#\/components\/schemas\/ClusterFeatures","description":"Feature flags"},{"type":"null"}]},"name":{"type":"string","description":"Cluster name, at most 128 characters. Spaces, tabs, line breaks and other\ncharacters up to U+0020 are removed from both ends; what remains must not\nbe empty. No NUL character.","maxLength":128,"minLength":1,"pattern":"^[^\\x00]*$"},"networkGroupId":{"type":["string","null"],"description":"Network group to attach the cluster to (`ng_` followed by a UUID in\nits hyphenated form). It must be a network group of the organisation.\nOmit it, or send `null`, to have a network group created for the\ncluster.","example":"ng_01563e3a-b5d3-d676-4c61-efb99302bd4c","pattern":"^ng_[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}$"},"nodeGroups":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/NodeGroupCreationPayload"},"description":"Initial node groups to create with the cluster, at most 256","maxItems":256},"tags":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SemanticTag"},"description":"Semantic tags: at most 64, each at most 256 characters; duplicates are\ndropped","maxItems":64},"topologyConfig":{"oneOf":[{"$ref":"#\/components\/schemas\/TopologyConfig","description":"Control-plane topology configuration (defaults to `DEDICATED_COMPUTE`\nwith replication factor 1 and flavor `XS`)"},{"type":"null"}]},"version":{"oneOf":[{"$ref":"#\/components\/schemas\/Version","description":"Kubernetes version, among the versions the service configuration\nadvertises; defaults to its `versions.default`."},{"type":"null"}]},"zone":{"type":["string","null"],"description":"The zone to create in, by name (`par`), as other products' creation\nrequests take it. Optional under the same rule as `zoneId`; a name\nmatching several active zones the organisation may use is refused\n(400 `zone-ambiguous`; inactive zones of the same name do not count):\nsend `zoneId` instead. No NUL character.","pattern":"^[^\\x00]*$"},"zoneId":{"type":["string","null"],"format":"uuid","description":"The zone to create in, by id: the exact, unambiguous form (zone\nnames are not unique). Optional when the organisation may use exactly\none active zone that has a deployment profile (or when the platform's\ndefault zone breaks the tie). An inactive zone is refused like one\nthe organisation may not use. When `zone` is sent too, the name\nmust be this zone's."}}},"ClusterDeploymentEvent":{"oneOf":[{"type":"object","required":["date","status","event"],"properties":{"date":{"type":"string","format":"date-time"},"event":{"type":"string","enum":["CLUSTER_STATUS"]},"failure":{"oneOf":[{"$ref":"#\/components\/schemas\/FailureCause"},{"type":"null"}]},"status":{"$ref":"#\/components\/schemas\/ClusterStatusType"}}},{"type":"object","required":["date","id","itemType","status","event"],"properties":{"data":{"oneOf":[{"$ref":"#\/components\/schemas\/ClusterItemDataView","description":"The resource's data; absent on a removal event, and when the data\ncannot be read."},{"type":"null"}]},"date":{"type":"string","format":"date-time"},"event":{"type":"string","enum":["CLUSTER_ITEM"]},"id":{"type":"string"},"itemType":{"$ref":"#\/components\/schemas\/ClusterItemType"},"status":{"$ref":"#\/components\/schemas\/ClusterItemStatusType"}}},{"type":"object","description":"A node lifecycle event. Only the `READY`, `FAILED` and `DELETED`\nstatuses are reported; `failure` says why when the node failed.","required":["date","status","nodeId","nodeName","nodeGroupId","flavor","event"],"properties":{"date":{"type":"string","format":"date-time"},"event":{"type":"string","enum":["NODE_LIFECYCLE"]},"failure":{"oneOf":[{"$ref":"#\/components\/schemas\/FailureCause"},{"type":"null"}]},"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor"},"nodeGroupId":{"type":"string"},"nodeId":{"type":"string"},"nodeName":{"type":"string"},"status":{"$ref":"#\/components\/schemas\/NodeStatusType"}}}],"description":"An entry of a cluster's event log, discriminated by `event`: `CLUSTER_STATUS` for a status change of the cluster (with the failure cause when it failed), `CLUSTER_ITEM` for an infrastructure resource created or removed, and `NODE_LIFECYCLE` for a node becoming ready, failing or being deleted."},"ClusterFeatures":{"type":"object","description":"Optional features of a cluster. An absent or `null` flag means the feature is off. `autoscalingEnabled` and `nodeAutoprovisioning` each enable node autoprovisioning: it is installed while either one is `true` and removed once neither is. Each is stored as requested, and setting one never sets the other. When a cluster is read or its features are updated, each of the two flags reports the real state of node autoprovisioning for it: `false` while its install runs, `true` once node autoprovisioning is installed, and, once turned off, `true` until node autoprovisioning has been removed; a flag that was never set to `true` never reads `true`, and an absent `autoscalingEnabled` stays absent. The response to a cluster creation repeats the requested features. Until node autoprovisioning is installed on the cluster, the node groups whose own `autoscalingEnabled` is `true` keep being scaled between their `minNodeCount` and `maxNodeCount`.","properties":{"autoscalingEnabled":{"type":["boolean","null"],"description":"Deprecated: set `nodeAutoprovisioning` instead; will be removed. Whether\nnode autoprovisioning (Karpenter) is enabled through this flag: it enables\nthe same feature as `nodeAutoprovisioning`, kept for compatibility.","deprecated":true},"csi":{"type":["boolean","null"],"description":"Whether CSI (Container Storage Interface) is enabled"},"nodeAutoprovisioning":{"type":["boolean","null"],"description":"Whether node autoprovisioning (Karpenter) is enabled."},"registries":{"oneOf":[{"$ref":"#\/components\/schemas\/RegistriesConfig","description":"Custom image registries configuration, at most 65,536 bytes."},{"type":"null"}]}}},"ClusterFeaturesPatch":{"type":"object","description":"Change to a cluster's feature flags, as a JSON merge patch (RFC 7386), field by field: an absent key keeps the current value, an explicit `null` unsets it, a value replaces it. `autoscalingEnabled` and `nodeAutoprovisioning` each enable node autoprovisioning and are changed independently: a change to one leaves the other as it is, and node autoprovisioning is removed only once neither is `true`.","properties":{"autoscalingEnabled":{"type":["boolean","null"],"description":"Deprecated: set `nodeAutoprovisioning` instead; will be removed. Whether\nnode autoprovisioning (Karpenter) is enabled through this flag: it enables\nthe same feature as `nodeAutoprovisioning`, kept for compatibility (`null`\nunsets)","deprecated":true},"csi":{"type":["boolean","null"],"description":"Whether CSI is enabled (`null` unsets)"},"nodeAutoprovisioning":{"type":["boolean","null"],"description":"Whether node autoprovisioning (Karpenter) is enabled (`null` unsets)"},"registries":{"oneOf":[{"$ref":"#\/components\/schemas\/RegistriesConfig","description":"Custom image registries configuration, at most 65,536 bytes (`null` unsets)"},{"type":"null"}]}}},"ClusterItemDataView":{"oneOf":[{"type":"object","required":["tenantId","networkGroupId","networkGroupOrigin","type"],"properties":{"networkGroupId":{"type":"string"},"networkGroupOrigin":{"$ref":"#\/components\/schemas\/NetworkGroupOrigin"},"tenantId":{"type":"string"},"type":{"type":"string","enum":["NetworkGroupDataView"]}}},{"type":"object","required":["tenantId","regionId","lbClusterId","domainName","port","type"],"properties":{"domainName":{"type":"string"},"lbClusterId":{"type":"string"},"port":{"type":"integer","format":"int32"},"regionId":{"type":"string"},"tenantId":{"type":"string"},"type":{"type":"string","enum":["LoadBalancerDataView"]}}},{"type":"object","required":["tenantId","networkId","type"],"properties":{"networkId":{"type":"string"},"tenantId":{"type":"string"},"type":{"type":"string","enum":["LoadBalancerNetworkDataView"]}}},{"type":"object","required":["containerStorageInterface","type"],"properties":{"containerStorageInterface":{"$ref":"#\/components\/schemas\/CephCsiConfigView"},"type":{"type":"string","enum":["StorageDataView"]}}},{"type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["NodeGroupDataView"]}}},{"type":"object","required":["tenantId","logsEndpoint","tracesEndpoint","metricsEndpoint","type"],"properties":{"logsEndpoint":{"type":"string"},"metricsEndpoint":{"type":"string"},"tenantId":{"type":"string"},"tracesEndpoint":{"type":"string"},"type":{"type":"string","enum":["OtelConfigDataView"]}}},{"type":"object","required":["addonId","orgId","layerName","quotaBytes","type"],"properties":{"addonId":{"type":"string"},"layerName":{"type":"string"},"orgId":{"type":"string"},"quotaBytes":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["MateriaLogicalDBDataView"]}}},{"type":"object","required":["name","version","type"],"properties":{"name":{"$ref":"#\/components\/schemas\/PluginName"},"type":{"type":"string","enum":["PluginDataView"]},"version":{"type":"string"}}},{"type":"object","required":["vmData","components","topologyType","type"],"properties":{"components":{"type":"array","items":{"$ref":"#\/components\/schemas\/BundledComponentView"}},"topologyType":{"$ref":"#\/components\/schemas\/TopologyType"},"type":{"type":"string","enum":["ControlPlaneBundleDataView"]},"vmData":{"$ref":"#\/components\/schemas\/VmDataView"}}},{"type":"object","description":"The DNS record (CNAME) of the cluster's API server domain, on a cluster\ndeployed with SNI access.","required":["ownerId","domain","target","type"],"properties":{"domain":{"type":"string","description":"The cluster's API server domain."},"ownerId":{"type":"string","description":"The organisation that owns the DNS record."},"target":{"type":"string","description":"The name the domain is a CNAME to."},"type":{"type":"string","enum":["ApiServerDnsDataView"]}}},{"type":"object","description":"The cluster's route on a shared SNI load balancer, on a\ncluster deployed with SNI access.","required":["tenantId","regionId","lbClusterId","domain","type"],"properties":{"domain":{"type":"string","description":"The route's hostname: the cluster's API server domain."},"lbClusterId":{"type":"string"},"regionId":{"type":"string"},"tenantId":{"type":"string"},"type":{"type":"string","enum":["ApiServerSniDataView"]}}}],"description":"Data of a cluster item, discriminated by `type`: network group, load balancer, load-balancer network, storage, node group, telemetry endpoints, logical database, plugin, control-plane bundle, or the API server's DNS record and SNI route. Credentials and internal infrastructure details are not exposed."},"ClusterItemStatusType":{"type":"string","description":"Lifecycle status of a cluster item: `ACTIVE`, `DELETED`, or `FAILED_TO_DELETE` when its removal did not complete.","enum":["ACTIVE","DELETED","FAILED_TO_DELETE"]},"ClusterItemType":{"type":"string","description":"Kind of infrastructure resource a cluster item records: network group, load balancer, storage, control-plane component bundle, node group, load-balancer network, telemetry configuration, logical database, in-cluster plugin, or the API server's DNS record and SNI route.","enum":["NETWORK_GROUP","LOAD_BALANCER","STORAGE","COMPONENT_BUNDLE","NODE_GROUP","LOADBALANCER_NETWORK","OTEL_CONFIG","MATERIA_LOGICALDB","PLUGIN","API_SERVER_DNS","API_SERVER_SNI"]},"ClusterItemUsage":{"type":"object","description":"Resources one active control plane or node group of the organisation uses: what the Kubernetes quota is checked against.","required":["id","clusterId","ownerId","itemType","cpuMillicores","ramBytes"],"properties":{"clusterId":{"type":"string","description":"Parent cluster ID"},"cpuMillicores":{"type":"integer","format":"int64","description":"CPU in millicores"},"createdAt":{"type":["string","null"],"format":"date-time","description":"When the item was created"},"deactivatedAt":{"type":["string","null"],"format":"date-time","description":"When the item was deactivated"},"id":{"type":"string","description":"Cluster item ID"},"itemType":{"type":"string","description":"Item type: `control_plane` or `node_group`"},"ownerId":{"type":"string","description":"Owner (tenant) ID"},"ramBytes":{"type":"integer","format":"int64","description":"RAM in bytes"}}},"ClusterLoadBalancer":{"type":"object","description":"A load balancer in front of the cluster, as embedded in a cluster's detail: its id, flavor, IP addresses and domain name.","required":["id","flavor","ips","domainName"],"properties":{"domainName":{"type":"string"},"flavor":{"type":"string"},"id":{"type":"string"},"ips":{"type":"array","items":{"type":"string"}}}},"ClusterNode":{"type":"object","description":"A node of a node group, as embedded in a cluster's detail: id, name, status, vCPU count and RAM in bytes.","required":["id","name","status","vCpus","ramBytes"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"ramBytes":{"type":"integer","format":"int64"},"status":{"$ref":"#\/components\/schemas\/NodeStatusType"},"vCpus":{"type":"integer","format":"int32"}}},"ClusterNodeGroup":{"type":"object","description":"A node group as embedded in a cluster's detail, with its nodes.","required":["id","name","status","flavor","currentNodeCount","targetNodeCount"],"properties":{"currentNodeCount":{"type":"integer","format":"int32"},"failure":{"oneOf":[{"$ref":"#\/components\/schemas\/NodeGroupFailureView","description":"Why the group failed; present only while its status is `FAILED`."},{"type":"null"}]},"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor"},"id":{"type":"string"},"name":{"$ref":"#\/components\/schemas\/NodeGroupName"},"nodes":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterNode"}},"status":{"$ref":"#\/components\/schemas\/NodeGroupStatusType"},"targetNodeCount":{"$ref":"#\/components\/schemas\/NodeGroupNodeCount"}}},"ClusterPatchPayload":{"type":"object","description":"Request body to update a cluster. An absent or `null` `name`, `tags` or `description` keeps the current value; a value replaces it; send an empty string to clear `description` and an empty array to remove every tag (`name` cannot be empty). `features` is merged onto the cluster's current feature flags with its own rule: there, an explicit `null` unsets a flag.","properties":{"description":{"type":["string","null"],"description":"New description, at most 4096 characters, no NUL character. Absent or\n`null` keeps the current value; an empty string clears it.","maxLength":4096,"pattern":"^[^\\x00]*$"},"features":{"oneOf":[{"$ref":"#\/components\/schemas\/ClusterFeaturesPatch","description":"Feature-flag patch (merged onto existing features)"},{"type":"null"}]},"name":{"type":["string","null"],"description":"New cluster name, at most 128 characters. Spaces, tabs, line breaks and\nother characters up to U+0020 are removed from both ends; what remains\nmust not be empty. Absent or `null` keeps the current name. No NUL\ncharacter.","maxLength":128,"minLength":1,"pattern":"^[^\\x00]*$"},"tags":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SemanticTag"},"description":"New tags: at most 64, each at most 256 characters; duplicates are\ndropped. Absent or `null` keeps the current tags; an array replaces\nthem as a whole, `[]` removes them all.","maxItems":64}}},"ClusterReplicationFactor":{"type":"integer","format":"int32","description":"Control-plane replication factor: an integer from 1 to 5, 1 by default.","maximum":5,"minimum":1},"ClusterStandaloneNodeGroup":{"type":"object","description":"A standalone (single-node) node group as embedded in a cluster's detail. Its `id` is the node group id (`node_group_\u2026`).","required":["id","name","status","flavor","currentNodeCount","targetNodeCount"],"properties":{"currentNodeCount":{"type":"integer","format":"int32"},"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor"},"id":{"type":"string"},"name":{"$ref":"#\/components\/schemas\/NodeGroupName"},"status":{"$ref":"#\/components\/schemas\/NodeGroupStatusType"},"targetNodeCount":{"$ref":"#\/components\/schemas\/NodeGroupNodeCount"}}},"ClusterStatusType":{"type":"string","description":"Lifecycle status of a Kubernetes cluster. Responses never show a queued `TO_*` operation: they show its in-progress status instead (`TO_DEPLOY` as `DEPLOYING`, `TO_REDEPLOY` as `REDEPLOYING`, `TO_UPGRADE` as `UPDATING`, `TO_RECONCILE` as `RECONCILING`, `TO_DELETE` as `DELETING`). `WAITING_ON_DEPENDENCY` also shows as `DEPLOYING`: the cluster's `waiting` field then says what the deployment waits for. A cluster flagged for deletion shows as `DELETING`.","enum":["TO_DEPLOY","DEPLOYING","ACTIVE","TO_REDEPLOY","REDEPLOYING","TO_UPGRADE","UPDATING","TO_RECONCILE","RECONCILING","WAITING_ON_DEPENDENCY","TO_DELETE","DELETING","DELETED","FAILED"]},"ClusterVersionCheck":{"type":"object","description":"A cluster's Kubernetes version compared with the versions the platform offers, and optionally the kubelet versions observed on its worker nodes.","required":["available","installed","latest","needUpdate"],"properties":{"available":{"type":"array","items":{"$ref":"#\/components\/schemas\/Version"},"description":"Available Kubernetes versions"},"installed":{"$ref":"#\/components\/schemas\/Version","description":"Currently installed version"},"latest":{"$ref":"#\/components\/schemas\/Version","description":"Latest available version"},"needUpdate":{"type":"boolean","description":"Whether an update is available"},"workerVersions":{"type":["object","null"],"description":"Observed kubelet versions across the cluster's nodes, tallied \u2014 e.g.\n`{\"v1.33.4\": 3, \"v1.34.1\": 1}`.\n\n**Present only when the caller passed `?workers=true`, the cluster is\nACTIVE, the probe succeeded, and it observed at least one worker\nkubelet.** Absent therefore means \"not asked, or not in a state worth\nasking, or could not be observed\" \u2014 never \"no workers\" and never \"in\nsync\". The one thing the absence can never be mistaken for is an\nall-clear.\n\nThe last of those four conditions is not redundant: an `ALL_IN_ONE`\ncluster runs its kubelets on the control-plane VMs themselves, which are\nnot worker nodes. Unless it also carries separate worker node groups \u2014\nit may \u2014 such a cluster reports this field as absent (unknown) rather\nthan as an empty tally; where it does carry them, only those are\ntallied.\n\nThis is an *observation* of the cluster, read live, and not stored state.","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"}},"workersInSync":{"type":["boolean","null"],"description":"Whether every observed kubelet matches `installed` on `MAJOR.MINOR`.\nPresent under the same conditions as `workerVersions`, and also absent\nwhen nothing was observed (rather than `true`) or when the installed\nversion cannot be parsed (rather than `false`).\n\nCompared on the minor version only: `installed` is `MAJOR.MINOR` while\na kubelet reports a full `vMAJOR.MINOR.PATCH`, so a patch-level\ndifference is not a version skew."}}},"ClusterWaitingView":{"type":"object","description":"What a cluster creation is waiting for. Present only while the deployment waits for a dependency that is not available yet; the cluster's `status` then shows `DEPLOYING`, so this object is what tells a wait apart from ordinary progress.","required":["dependency","since","attempts"],"properties":{"attempts":{"type":"integer","format":"int32","description":"Number of attempts that found the dependency unavailable so far.","minimum":0},"dependency":{"type":"string","description":"The dependency kind: `OTEL_API` (the telemetry service), `APISERVER`\n(the cluster's API server not ready yet) or `NETWORK_GROUP_MEMBER`."},"nextAttemptAt":{"type":["string","null"],"format":"date-time","description":"When the next attempt is due (RFC 3339); absent when it is not delayed."},"since":{"type":"string","format":"date-time","description":"When the wait started (RFC 3339)."},"step":{"type":["string","null"],"description":"The creation step that is waiting, e.g. `OTEL_CONFIG`; absent when unknown."}}},"ComponentConfig":{"type":"object","description":"Flavor and replication factor of one control-plane component in the `DISTRIBUTED` topology.","required":["flavor","replicationFactor"],"properties":{"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor"},"replicationFactor":{"$ref":"#\/components\/schemas\/ClusterReplicationFactor","description":"Control-plane replication factor (1-5)."}}},"ConfigProvider":{"type":"object","description":"A configuration provider add-on with the environment variables it holds.","required":["id","creation_date","env"],"properties":{"creation_date":{"type":"string","format":"date-time","description":"Creation date of the add-on (RFC 3339)."},"env":{"type":"array","items":{"$ref":"#\/components\/schemas\/WannabeEnvVar"},"description":"Environment variables the add-on holds."},"id":{"type":"string","description":"Configuration provider add-on ID (`config_\u2026`)."},"owner_id":{"type":["string","null"],"description":"ID of the owner: a user or an organisation."}}},"CreatedServiceToken":{"type":"object","description":"A newly created service token, with its value.","required":["metadata","token","refreshToken"],"properties":{"metadata":{"$ref":"#\/components\/schemas\/ServiceTokenMetadata","description":"Metadata of the new token."},"refreshToken":{"type":["string","null"],"description":"Always `null`: a service token cannot be refreshed."},"token":{"type":"string","description":"The token value, to send as a Bearer credential. Shown in this response only: it\ncannot be read again."}}},"DedicatedView":{"type":"object","description":"A dedicated version offered by an add-on provider, with its features.","properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/Feature"}}}},"DependencyEnvView":{"type":"object","description":"The environment variables one application exposes to the applications that depend on it, with that application's identifier and name.","required":["app_id","env"],"properties":{"app_id":{"type":"string"},"app_name":{"type":["string","null"]},"env":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonEnvironmentView"}}}},"DeploySuccessMessage":{"type":"object","description":"Confirmation that a redeployment was started, with the identifier of the new deployment.","required":["id","type","message","deploymentId"],"properties":{"deploymentId":{"type":"string"},"id":{"type":"integer","format":"int32"},"message":{"type":"string"},"type":{"type":"string"}}},"DeploymentEvent":{"type":"object","description":"A deployment event of a cluster: the operation it belongs to, the step, its status, an optional detail, when it occurred (RFC 3339) and the node group concerned, if any. Absent values are sent as `null`.","required":["operation","status","createdAt"],"properties":{"createdAt":{"type":"string","format":"date-time"},"detail":{"type":["string","null"]},"nodeGroupId":{"type":["string","null"]},"operation":{"$ref":"#\/components\/schemas\/DeploymentEventOperation"},"status":{"$ref":"#\/components\/schemas\/DeploymentEventStatus"},"stepName":{"type":["string","null"]}}},"DeploymentEventOperation":{"type":"string","description":"Operation a deployment event belongs to: a cluster creation, redeploy, upgrade or deletion, or a node group creation, deletion, scaling, resume or redeploy.","enum":["CREATE","REDEPLOY","UPGRADE","DELETE","NODEGROUP_CREATE","NODEGROUP_DELETE","NODEGROUP_SCALE","NODEGROUP_RESUME","NODEGROUP_REDEPLOY"]},"DeploymentEventStatus":{"type":"string","description":"Status of a deployment event: `STARTED`, `COMPLETED` or `FAILED`. `SKIPPED` is part of the vocabulary but never reported.","enum":["STARTED","COMPLETED","FAILED","SKIPPED"]},"DeploymentInfoView":{"type":"object","description":"How an application is deployed: whether it can be stopped, the deployment type, the state of its Git repository and the URLs to push code to.","required":["shutdownable","type","repoState"],"properties":{"httpUrl":{"type":["string","null"]},"repoState":{"type":"string"},"shutdownable":{"type":"boolean"},"type":{"type":"string"},"url":{"type":["string","null"]}}},"DeploymentView":{"type":"object","description":"A deployment of an application: when it ran, its action, state and cause, the commit it deployed, its number of instances and its author.","required":["id","uuid","state","action","instances","author"],"properties":{"action":{"type":"string"},"author":{"$ref":"#\/components\/schemas\/Author"},"cause":{"type":["string","null"]},"commit":{"type":["string","null"]},"date":{"type":["integer","null"],"format":"int64"},"id":{"type":"integer","format":"int32"},"instances":{"type":"integer","format":"int32"},"state":{"type":"string"},"uuid":{"type":"string"}}},"DistributedComponentsConfig":{"type":"object","description":"Flavor and replication factor of each control-plane component in the `DISTRIBUTED` topology: API server, controller manager, scheduler, node group operator and cloud controller manager.","required":["apiserver","controllerManager","scheduler","nodeGroupOperator","cloudControllerManager"],"properties":{"apiserver":{"$ref":"#\/components\/schemas\/ComponentConfig"},"cloudControllerManager":{"$ref":"#\/components\/schemas\/ComponentConfig"},"controllerManager":{"$ref":"#\/components\/schemas\/ComponentConfig"},"nodeGroupOperator":{"$ref":"#\/components\/schemas\/ComponentConfig"},"scheduler":{"$ref":"#\/components\/schemas\/ComponentConfig"}}},"DrainOutcome":{"oneOf":[{"type":"object","description":"Every evictable pod is gone and no VolumeAttachment is left on the node.","required":["outcome"],"properties":{"outcome":{"type":"string","enum":["DRAINED"]}}},{"type":"object","description":"The apiserver refused at least one eviction on the last attempt \u2014 a\n429 for a PodDisruptionBudget that would be violated, or any other\nrefusal it answered. `pods` are the refused ones (`namespace\/name`),\n`reason` the apiserver's message verbatim (it names the budget).","required":["pods","reason","outcome"],"properties":{"outcome":{"type":"string","enum":["EVICTION_BLOCKED"]},"pods":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}}},{"type":"object","description":"Every eviction was accepted but these pods were still present at the\ndeadline (a long `terminationGracePeriodSeconds`, a finalizer).","required":["pods","outcome"],"properties":{"outcome":{"type":"string","enum":["PODS_NOT_TERMINATED"]},"pods":{"type":"array","items":{"type":"string"}}}},{"type":"object","description":"Pods still present at the deadline on a Node whose `Ready` condition is\nnot `True`: the kubelet cannot confirm their termination.","required":["pods","outcome"],"properties":{"outcome":{"type":"string","enum":["NODE_NOT_READY"]},"pods":{"type":"array","items":{"type":"string"}}}},{"type":"object","description":"The pods are gone but these VolumeAttachments were still bound at the\nend of the detach wait.","required":["attachments","outcome"],"properties":{"attachments":{"type":"array","items":{"type":"string"}},"outcome":{"type":"string","enum":["VOLUMES_ATTACHED"]}}},{"type":"object","description":"The apiserver never answered within the deadline \u2014 transport errors are\nretried in place until then.","required":["detail","outcome"],"properties":{"detail":{"type":"string"},"outcome":{"type":"string","enum":["API_SERVER_UNREACHABLE"]}}}],"description":"How the drain of one node ended, tagged by `outcome`: `DRAINED`, or why it did not complete (`EVICTION_BLOCKED`, `PODS_NOT_TERMINATED`, `NODE_NOT_READY`, `VOLUMES_ATTACHED`, `API_SERVER_UNREACHABLE`), with the pods, volume attachments or message involved."},"DrainPolicy":{"type":"string","description":"What an operation does with a node whose pods will not leave when it is drained. `STRICT` (the default) never deletes a node that did not drain: the node stays `DRAINING`, cordoned with its VM running, and the operation fails at step `DRAIN`. `FORCE` drains under a shorter deadline, then deletes the node regardless.","enum":["STRICT","FORCE"]},"DrainPolicyEnforcement":{"type":"string","description":"Whether a kind of drain is required on every eligible resource of the organisation.","enum":["NONE","REQUIRED"]},"DrainTemplateView":{"type":"object","description":"A drain template of an organisation's drain policy; the credentials in its recipient are masked.","required":["id","recipient"],"properties":{"id":{"type":"string"},"recipient":{}}},"ElasticsearchAddonBackups":{"type":"object","description":"Where the add-on's snapshots are managed from.","properties":{"kibana_snapshots_url":{"type":["string","null"],"description":"Link to the snapshot page of the add-on's Kibana; absent when its version has none."}}},"ElasticsearchAddonService":{"type":"object","description":"A service deployed beside Elasticsearch, and whether it is enabled.","required":["name","enabled"],"properties":{"enabled":{"type":"boolean","description":"Whether the service is deployed for this add-on."},"name":{"type":"string","description":"Name of the service, for instance `kibana` or `apm`."}}},"ElasticsearchAddonView":{"type":"object","description":"An Elasticsearch add-on: what it runs, where it runs, and the credentials its Elasticsearch, Kibana and APM accounts are reached with.","required":["id","app_id","plan","zone","owner_id","creation_date","status","deletion_date","host","user","password","apm_user","apm_password","apm_auth_token","kibana_user","kibana_password","version","backups","kibana_application","apm_application","services","features","plugins","kibana_host","apm_host"],"properties":{"apm_application":{"type":["string","null"],"description":"Application running the add-on's APM server; `null` when it has none."},"apm_auth_token":{"type":"string","description":"Authentication token the add-on's APM agents send."},"apm_host":{"type":["string","null"],"description":"Host name the add-on's APM server is reached on; `null` when it has none."},"apm_password":{"type":"string","description":"Password of the add-on's APM account."},"apm_user":{"type":"string","description":"User name of the add-on's APM account."},"app_id":{"type":"string","description":"Platform add-on ID (`addon_\u2026`) the add-on was created for."},"backups":{"$ref":"#\/components\/schemas\/ElasticsearchAddonBackups","description":"Where the add-on's snapshots are managed from."},"creation_date":{"type":"string","description":"When the add-on was created, as an ISO 8601 date and time."},"deletion_date":{"type":["string","null"],"description":"When the add-on was deleted, as an ISO 8601 date and time; `null` while it lives."},"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/ElasticsearchFeature"},"description":"The features of the add-on, and whether each one is enabled."},"host":{"type":"string","description":"Host name the add-on's Elasticsearch is reached on."},"id":{"type":"string","description":"Provider-side identifier of the add-on, as a bare UUID."},"kibana_application":{"type":["string","null"],"description":"Application running the add-on's Kibana; `null` when it has none."},"kibana_host":{"type":["string","null"],"description":"Host name the add-on's Kibana is reached on; `null` when it has none."},"kibana_password":{"type":"string","description":"Password of the add-on's Kibana account."},"kibana_user":{"type":"string","description":"User name of the add-on's Kibana account."},"owner_id":{"type":["string","null"],"description":"Organisation the add-on belongs to; `null` while the platform has not recorded one."},"password":{"type":"string","description":"Password of the add-on's Elasticsearch account."},"plan":{"type":"string","description":"Plan the add-on runs on, for instance `M` or `XXXL`."},"plugins":{"type":"array","items":{"type":"string"},"description":"Names of the Elasticsearch plugins installed on the add-on."},"services":{"type":"array","items":{"$ref":"#\/components\/schemas\/ElasticsearchAddonService"},"description":"The services deployed beside Elasticsearch."},"status":{"type":"string","description":"Status of the add-on, for instance `ACTIVE`."},"user":{"type":"string","description":"User name of the add-on's Elasticsearch account."},"version":{"type":"string","description":"Elasticsearch version the add-on runs."},"zone":{"type":"string","description":"Zone the add-on runs in, for instance `par`."}}},"ElasticsearchBackup":{"type":"object","description":"A backup of an Elasticsearch add-on: a snapshot of its indices, with the commands to restore or delete it. It has no archive to download.","required":["entity_id","backup_id","status","creation_date","delete_at","link","restore_command","delete_command"],"properties":{"backup_id":{"type":"string","description":"ID of the snapshot in Elasticsearch.","example":"V0lqV1ZBQ0tTcE9zZGVsY2pBZXpuUQ"},"creation_date":{"type":"string","format":"date-time","description":"When the snapshot started (RFC 3339).","example":"2026-11-18T03:00:12.482Z"},"delete_at":{"type":["string","null"],"format":"date-time","description":"When the retention policy deletes the snapshot (RFC 3339); `null` without retention.","example":"2026-11-25T03:00:12.482Z"},"delete_command":{"type":"string","description":"Shell command deleting the snapshot."},"entity_id":{"type":"string","format":"uuid","description":"ID the backup service knows the add-on by: not the add-on ID.","example":"0c8e2a6b-1f5d-4b3a-9e7c-4d2b0a8c1e6f"},"link":{"type":"string","description":"URL of the snapshot in the add-on's Kibana."},"restore_command":{"type":"string","description":"Shell command restoring the snapshot."},"status":{"$ref":"#\/components\/schemas\/AddonBackupStatus","description":"Status of the backup: a listed snapshot is always `Done`."}}},"ElasticsearchClusterConsole":{"type":"object","description":"One shared cluster a new add-on can be created on: its identifier, its label, its zone, the version it runs and the features it supports.","required":["id","label","zone","version","features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/ElasticsearchFeature"},"description":"The features of the cluster, and whether each one is enabled."},"id":{"type":"string","description":"Identifier of the cluster."},"label":{"type":"string","description":"Name of the cluster, as the console shows it."},"version":{"type":"string","description":"Version the cluster runs."},"zone":{"type":"string","description":"Zone the cluster runs in, for instance `par`."}}},"ElasticsearchClusterConsoleV2":{"type":"object","description":"One shared cluster a new add-on can be created on: its identifier, its label, its zone and the version it runs.","required":["id","label","zone","version"],"properties":{"dedicatedOptions":{"oneOf":[{"$ref":"#\/components\/schemas\/ElasticsearchDedicatedOptions","description":"Features of the cluster's version as a dedicated instance; absent when it has none."},{"type":"null"}]},"id":{"type":"string","description":"Identifier of the cluster."},"label":{"type":"string","description":"Name of the cluster, as the console shows it."},"version":{"type":"string","description":"Version the cluster runs."},"zone":{"type":"string","description":"Zone the cluster runs in, for instance `par`."}}},"ElasticsearchDedicatedOptions":{"type":"object","description":"The names of the features one version supports as a dedicated instance.","required":["features"],"properties":{"features":{"type":"array","items":{"type":"string"},"description":"Names of the supported features."}}},"ElasticsearchDedicatedView":{"type":"object","description":"The features one version supports as a dedicated instance, and whether each one is enabled.","required":["features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/ElasticsearchFeature"},"description":"The features of the version, and whether each one is enabled."}}},"ElasticsearchFeature":{"type":"object","description":"An Elasticsearch add-on feature, and whether it is enabled.","required":["name","enabled"],"properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled."},"name":{"type":"string","description":"Name of the feature, for instance `kibana` or `encryption`."}}},"ElasticsearchProvidersConsole":{"type":"object","description":"What an Elasticsearch add-on can be created on: the shared clusters, the versions available as a dedicated instance with the features each one supports, and the version used by default.","required":["providerId","clusters","dedicated","defaultDedicatedVersion"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/ElasticsearchClusterConsole"},"description":"The shared clusters."},"dedicated":{"type":"object","description":"The versions available as a dedicated instance, keyed by version.","additionalProperties":{"$ref":"#\/components\/schemas\/ElasticsearchDedicatedView"},"propertyNames":{"type":"string"}},"defaultDedicatedVersion":{"type":"string","description":"The version a new add-on is created on when none is asked for."},"providerId":{"type":"string","description":"Identifier of the provider, `es-addon`."}}},"ElasticsearchProvidersConsoleV2":{"type":"object","description":"What an Elasticsearch add-on can be created on: the shared clusters, and the features each version available as a dedicated instance supports, keyed by version.","required":["clusters","dedicated"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/ElasticsearchClusterConsoleV2"},"description":"The shared clusters."},"dedicated":{"type":"object","description":"The features of each version available as a dedicated instance, keyed by version.","additionalProperties":{"$ref":"#\/components\/schemas\/ElasticsearchDedicatedOptions"},"propertyNames":{"type":"string"}}}},"ElasticsearchProvisionResponse":{"type":"object","description":"A refusal from the Elasticsearch add-on provider: `id` is `error`, `message` gives the reason, and `config` is empty.","required":["id","message","config"],"properties":{"config":{"type":"object","description":"The environment variables an add-on exposes; empty on a refusal.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"id":{"type":"string","description":"`error` on the refusals the published operations answer with this body."},"message":{"type":"string","description":"Why the request was refused, as a sentence. Not a stable contract."}}},"ElasticsearchVersionsConsole":{"type":"object","description":"What an Elasticsearch add-on can be created on: the shared clusters and the versions available as a dedicated instance.","required":["clusters","dedicatedVersions"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/ElasticsearchClusterConsoleV2"},"description":"The shared clusters."},"dedicatedVersions":{"type":"array","items":{"type":"string"},"description":"The versions available as a dedicated instance."}}},"EmailHookView":{"type":"object","description":"An email hook of a user or an organisation: the recipients emailed when a deployment of its owner succeeds or fails and matches its scope and events. Other event types are accepted in `events` but send no email.","required":["id","name","ownerId","scope","events","notified"],"properties":{"events":{"type":"array","items":{"type":"string"},"description":"Event types the email hook receives: event keys such as\n`DEPLOYMENT_SUCCESS`, event groups such as `META_DEPLOYMENT_RESULT`, or\n`[\"ALL\"]` for every event. `NOTIMPLEMENTED` stands for a stored key that\nis no longer known."},"id":{"type":"string","description":"ID of the email hook."},"name":{"type":"string","description":"Name of the email hook, unique for its owner."},"notified":{"type":"array","items":{"$ref":"#\/components\/schemas\/NotificationTarget"},"description":"Recipients of the email hook; empty when the owner's default\nrecipients apply."},"ownerId":{"type":"string","description":"ID of the user (`user_\u2026`) or the organisation (`orga_\u2026`) that owns the email hook."},"scope":{"type":"array","items":{"type":"string"},"description":"IDs of the applications (`app_\u2026`) and add-ons (`addon_\u2026`) whose events\nthe email hook receives; empty when it receives every event of its\nowner."}}},"EnvVarValidationError":{"type":"object","description":"Why a list of environment variables was refused. `code` is `clever.env-vars.bad-request.names.not-unique` when a name appears more than once, `clever.env-vars.bad-request.names.invalid` when a name holds a character other than letters, digits, `-`, `_` and `.`, and `clever.env-vars.bad-request.values.max-size` when a name or a value is too long.","required":["code","message","field","context"],"properties":{"code":{"type":"string","description":"Error code, such as `clever.env-vars.bad-request.names.not-unique`."},"context":{"type":"string","description":"The offending variable names, as a JSON array encoded in a string."},"field":{"type":"string","description":"Part of the request at fault; always `body`."},"message":{"type":"string","description":"Human-readable error message."}}},"ErrorContext":{"oneOf":[{"type":"object","description":"No structured detail \u2014 most authentication, authorization and internal errors.","required":["type"],"properties":{"type":{"type":"string","enum":["Empty"]}}},{"type":"object","description":"No structured detail: the path matches no operation.","required":["type"],"properties":{"type":{"type":"string","enum":["EmptyContext"]}}},{"type":"object","description":"One offending field.","required":["name","error","type"],"properties":{"error":{"$ref":"#\/components\/schemas\/FieldError"},"name":{"type":"string"},"type":{"type":"string","enum":["Field"]}}},{"type":"object","description":"Several offending fields, keyed by name.","required":["fields","type"],"properties":{"fields":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/FieldError"},"propertyNames":{"type":"string"}},"type":{"type":"string","enum":["MultipleFields"]}}},{"type":"object","description":"One malformed query parameter: its name, and what is wrong with its value.","required":["fieldName","fieldValue","type"],"properties":{"fieldName":{"type":"string"},"fieldValue":{"type":"string"},"type":{"type":"string","enum":["OVDErrorFieldContext"]}}},{"type":"object","description":"The operation that failed, and the resource it targeted.","required":["operation","kind","name","type"],"properties":{"kind":{"type":"string"},"name":{"type":["string","null"]},"operation":{"type":"string"},"type":{"type":"string","enum":["Operation"]}}},{"type":"object","description":"The offending resource, so a client can machine-match it.","required":["kind","name","type"],"properties":{"kind":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Resource"]}}},{"type":"object","description":"The offending input names.","required":["names","type"],"properties":{"names":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["Input"]}}},{"type":"object","description":"The path into a document that failed to select.","required":["path","type"],"properties":{"path":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["Selector"]}}},{"type":"object","description":"An upstream service answered with a status this API forwards.","required":["originalStatus","originalBody","type"],"properties":{"originalBody":{"type":"string"},"originalStatus":{"type":"integer","format":"int32","minimum":0},"type":{"type":"string","enum":["GatewayError"]}}}],"description":"Structured details of an error, discriminated by `type`."},"ErrorFieldDetail":{"type":"object","description":"One field's error: the refused value, and why.","required":["value"],"properties":{"reason":{"type":["string","null"],"description":"Why the value was refused: `null` when a single field is refused."},"value":{"type":"string","description":"The refused value."}}},"ErrorResponseBody":{"type":"object","description":"Error returned by the API: branch on `code`, show `error` to a human, read `context` for details, and quote `apiRequestId` when contacting support.","required":["apiRequestId","code","context","error"],"properties":{"apiRequestId":{"type":"string","description":"Identifier of the request, to quote when contacting support."},"code":{"type":"string","description":"Stable machine-readable error code (`clever.core.not-found`\u2026)."},"context":{"$ref":"#\/components\/schemas\/ErrorResponseContext","description":"Structured details of the error."},"error":{"type":"string","description":"Human-readable message."}}},"ErrorResponseContext":{"oneOf":[{"type":"object","description":"No details.","required":["type"],"properties":{"type":{"type":"string","enum":["Empty"]}}},{"type":"object","description":"No details: no operation matches the request.","required":["type"],"properties":{"type":{"type":"string","enum":["EmptyContext"]}}},{"type":"object","description":"One refused field: its name, and the error.","required":["name","error","type"],"properties":{"error":{"$ref":"#\/components\/schemas\/ErrorFieldDetail"},"name":{"type":"string"},"type":{"type":"string","enum":["Field"]}}},{"type":"object","description":"Several refused fields, keyed by name.","required":["fields","type"],"properties":{"fields":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/ErrorFieldDetail"},"propertyNames":{"type":"string"}},"type":{"type":"string","enum":["MultipleFields"]}}},{"type":"object","description":"A malformed log-stream query parameter: its name and the value refused.","required":["fieldName","fieldValue","type"],"properties":{"fieldName":{"type":"string"},"fieldValue":{"type":"string"},"type":{"type":"string","enum":["OVDErrorFieldContext"]}}},{"type":"object","description":"The operation that failed, and the resource it targeted.","required":["operation","kind","type"],"properties":{"kind":{"type":"string"},"name":{"type":["string","null"]},"operation":{"type":"string"},"type":{"type":"string","enum":["Operation"]}}},{"type":"object","description":"The resource the error is about: its kind and its name.","required":["kind","name","type"],"properties":{"kind":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["Resource"]}}},{"type":"object","description":"The names of the refused inputs.","required":["names","type"],"properties":{"names":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["Input"]}}}],"description":"Structured details of an error, discriminated by `type`."},"FailureCause":{"type":"object","description":"Why an operation failed: the operation, the step it failed at (absent when the operation has no steps), a message of at most 1,000 characters, and when the failure occurred (RFC 3339).","required":["operation","message","occurredAt"],"properties":{"message":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"operation":{"type":"string"},"step":{"type":["string","null"]}}},"Feature":{"type":"object","description":"A feature of an add-on provider's dedicated version, and whether it is enabled.","required":["name","enabled"],"properties":{"enabled":{"type":"boolean"},"name":{"type":"string"}}},"FieldError":{"type":"object","description":"Why one field was rejected: the offending `value`, and a `reason` (`null` when the error names the field only).","required":["value","reason"],"properties":{"reason":{"type":["string","null"],"description":"Why it was rejected; `null` on a single-field error."},"value":{"type":"string","description":"The rejected value."}}},"Flavor":{"type":"object","description":"A flavor: the size of an instance (CPUs, memory, GPUs), its price and how it scales.","required":["gpus","price","available","microservice","nice","cpuFactor","memFactor","machine_learning","systemOverheadFactor"],"properties":{"available":{"type":"boolean"},"cpuFactor":{"$ref":"#\/components\/schemas\/ScalingFactor"},"cpus":{"oneOf":[{"$ref":"#\/components\/schemas\/Vcpus"},{"type":"null"}]},"disk":{"type":["integer","null"],"format":"int32"},"gpus":{"$ref":"#\/components\/schemas\/Gpus"},"machine_learning":{"type":"boolean"},"mem":{"type":["integer","null"],"format":"int32"},"memFactor":{"$ref":"#\/components\/schemas\/ScalingFactor"},"memory":{"oneOf":[{"$ref":"#\/components\/schemas\/FlavorMemory"},{"type":"null"}]},"microservice":{"type":"boolean"},"name":{"type":["string","null"]},"nice":{"$ref":"#\/components\/schemas\/NiceValue"},"price":{"type":["number","null"],"format":"double","description":"Price of the flavor; always present, `null` when the flavor has no price."},"price_id":{"type":["string","null"]},"systemOverheadFactor":{"$ref":"#\/components\/schemas\/ScalingFactor"}}},"FlavorMemory":{"type":"object","description":"Memory of a flavor, with its unit and a human-readable form.","required":["unit","value"],"properties":{"formatted":{"type":["string","null"],"description":"Human-readable memory size, such as `256 MB`."},"unit":{"type":"string","description":"Unit of `value`: `B` (bytes)."},"value":{"$ref":"#\/components\/schemas\/Information"}}},"GithubSshKeyView":{"type":"object","description":"A public SSH key of the linked GitHub account that the Clever Cloud account does not have yet.","required":["name","key","fingerprint"],"properties":{"fingerprint":{"type":"string","description":"Fingerprint of the key."},"key":{"type":"string","description":"The public key."},"name":{"type":["string","null"],"description":"Title of the key on GitHub; `null` when it has none."}}},"Gpus":{"type":"integer","format":"int32","description":"A number of GPUs."},"HTTPErrorBody":{"type":"object","description":"Error returned by the API: branch on `code`, show `error` to a human, read `context` for details, and quote `apiRequestId` when contacting support.","required":["apiRequestId","code","context","error"],"properties":{"apiRequestId":{"type":"string","description":"`request_<uuid>` or `request_http_<uuid>` \u2014 correlates the response with the request's\ntraces and logs."},"code":{"type":"string","description":"Machine-matchable code, e.g. `clever.core.not-found`."},"context":{"$ref":"#\/components\/schemas\/ErrorContext","description":"Structured detail, discriminated by `type`."},"error":{"type":"string","description":"Human-readable message. Not a stable contract; branch on `code`."}}},"HTTPErrorBodyOrMessage":{"oneOf":[{"$ref":"#\/components\/schemas\/HTTPErrorBody"},{"$ref":"#\/components\/schemas\/Message"}],"description":"Error returned by the API: the error envelope (`apiRequestId`, `code`, `context`, `error`), or a message (`id`, `type`, `message`) when authentication refuses the request."},"HumanReadableInformation":{"type":"object","description":"An amount of information (bytes), as a `number` in a `unit`. `readable` is a human-readable rendering whose exact text may vary: read `number` and `unit`.","required":["name","number","unit","readable"],"properties":{"name":{"type":"string","description":"The dimension name, always `\"Information\"`."},"number":{"type":"number","format":"double"},"readable":{"type":"string"},"unit":{"type":"string","description":"The unit: `B`, decimal `KB`, `MB`, `GB`, `TB`, `PB` (powers of 1000)\nor binary `KiB`, `MiB`, `GiB`, `TiB`, `PiB` (powers of 1024)."}}},"Information":{"type":"integer","format":"int64","description":"A quantity of data, in bytes."},"InstanceCount":{"type":"integer","format":"int32","description":"A number of instances."},"InstanceVariantView":{"type":"object","description":"A variant of an instance type, such as a runtime or framework: its identifier, slug, display name, deployment type and logo.","required":["id","slug","name","deployType"],"properties":{"deployType":{"type":"string"},"id":{"type":"string","format":"uuid"},"logo":{"type":["string","null"],"description":"URL of the variant's logo."},"name":{"type":"string"},"slug":{"type":"string"}}},"InstanceView":{"type":"object","description":"Instance configuration of an application: runtime type, version and variant, scaling bounds, flavors, default environment and lifetime.","required":["type","version","variant","minInstances","maxInstances","maxAllowedInstances","flavors","defaultEnv","lifetime","instanceAndVersion"],"properties":{"defaultEnv":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"flavors":{"type":"array","items":{"$ref":"#\/components\/schemas\/Flavor"}},"instanceAndVersion":{"type":"string"},"kernelName":{"type":"string","description":"Kernel image the application's instances boot with; `linux-vm` by default."},"lifetime":{"type":"string"},"maxAllowedInstances":{"$ref":"#\/components\/schemas\/InstanceCount"},"maxFlavor":{"oneOf":[{"$ref":"#\/components\/schemas\/Flavor"},{"type":"null"}]},"maxInstances":{"$ref":"#\/components\/schemas\/InstanceCount"},"minFlavor":{"oneOf":[{"$ref":"#\/components\/schemas\/Flavor"},{"type":"null"}]},"minInstances":{"$ref":"#\/components\/schemas\/InstanceCount"},"type":{"type":"string"},"variant":{"$ref":"#\/components\/schemas\/InstanceVariantView"},"version":{"type":"string"}}},"InvitationView":{"type":"object","description":"An invitation for a user to join an organisation with a role. Dates are RFC 3339 timestamps.","required":["id","organisationId","inviteeEmail","inviterUserId","role","status","createdAt","expiresAt"],"properties":{"acceptedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"id":{"type":"string"},"inviteeEmail":{"type":"string"},"inviterUserId":{"type":"string"},"organisationId":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"}}},"InvoiceRendering":{"type":"object","description":"Invoice preview of an add-on order: a zero-amount order with a single `No preorder` line, carrying the billing details of the account or organisation.","required":["status","emissionDate","name","address","zipCode","city","country","countryCode","fromSubscription","lines","originalTotal","totalHT","totalVAT","totalTTC","type","targetId","vatRate","payWhen"],"properties":{"address":{"type":"string","description":"Owner's street address; `\"\"` when there is no owner info."},"city":{"type":"string","description":"Owner's city."},"company":{"type":["string","null"],"description":"Owner's company, when it has one."},"country":{"type":"string","description":"Country display name, uppercased."},"countryCode":{"type":"string","description":"ISO 3166-1 alpha-2 code of `country`."},"customerCostCenter":{"type":["string","null"],"description":"Customer's own cost centre."},"customerOrderId":{"type":["string","null"],"description":"Customer's own order reference."},"emissionDate":{"type":"string","description":"Emission date, `YYYY-MM-DD`."},"errorCode":{"type":["string","null"],"description":"Payment error code; always `null` on a preview."},"errorLongMsg":{"type":["string","null"],"description":"Detailed payment error message; always `null` on a preview."},"errorShortMsg":{"type":["string","null"],"description":"Short payment error message; always `null` on a preview."},"forId":{"type":["string","null"],"description":"Always `null` on a preview."},"fromSubscription":{"type":"boolean","description":"Whether the invoice came from a subscription."},"id":{"type":["string","null"],"description":"Invoice id \u2014 null until the order becomes a real invoice."},"lines":{"type":"array","items":{"$ref":"#\/components\/schemas\/PreorderLineView"},"description":"Line items."},"name":{"type":"string","description":"Owner's display name; `\"\"` when the invoice carries none."},"number":{"type":["string","null"],"description":"Invoice number \u2014 likewise null on a preorder."},"originalTotal":{"type":"integer","format":"int64","description":"Total before any discount."},"payWhen":{"type":"string","description":"When the order is paid: `PAY_NEXT_MONTH` for a preview."},"payingUser":{"description":"The member who pays, when the invoice names one."},"paymentDate":{"type":["string","null"],"description":"Payment date; always `null` on a preview."},"status":{"type":"string","description":"`PENDING` for an order that has not been paid."},"target":{"type":["string","null"],"description":"Target organisation's name."},"targetId":{"type":"string","description":"Id of the invoice's target owner."},"token":{"type":["string","null"],"description":"Payment token; always `null` on a preview."},"totalHT":{"type":"number","format":"double","description":"Total excluding VAT."},"totalTTC":{"type":"number","format":"double","description":"Total including VAT."},"totalVAT":{"type":"number","format":"double","description":"Total VAT."},"type":{"type":"string","description":"Invoice type: `ADDON_PREORDER` for a preview."},"vatNumber":{"type":["string","null"],"description":"VAT number, when registered."},"vatRate":{"type":"integer","format":"int64","description":"VAT rate applied."},"zipCode":{"type":"string","description":"Owner's postcode."}}},"JenkinsAddonView":{"type":"object","description":"Add-on details returned to the provider console.","required":["id","app_id","plan","zone","creation_date","status","host","user","version","features"],"properties":{"app_id":{"type":"string","description":"App ID."},"artifactory_url":{"type":["string","null"],"description":"Artifactory URL."},"artifactory_user":{"type":["string","null"],"description":"Artifactory user."},"creation_date":{"type":"string","description":"Creation date."},"deletion_date":{"type":["string","null"],"description":"Deletion date."},"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/JenkinsFeature"},"description":"Features."},"host":{"type":"string","description":"Host."},"id":{"type":"string","description":"ID."},"owner_id":{"type":["string","null"],"description":"Owner ID."},"plan":{"type":"string","description":"Plan."},"status":{"type":"string","description":"Status."},"user":{"type":"string","description":"User."},"version":{"type":"string","description":"Version."},"zone":{"type":"string","description":"Zone."}}},"JenkinsDedicatedZone":{"type":"object","description":"Features available for a dedicated Jenkins version.","required":["features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/JenkinsFeature"},"description":"Features."}}},"JenkinsFeature":{"type":"object","description":"Named provider feature and its availability.","required":["name","enabled"],"properties":{"enabled":{"type":"boolean","description":"Enabled."},"name":{"type":"string","description":"Name."}}},"JenkinsProvidersConsoleView":{"type":"object","description":"Provider metadata returned to the console.","required":["providerId","clusters","dedicated","defaultDedicatedVersion"],"properties":{"clusters":{"type":"array","items":{},"description":"Clusters."},"dedicated":{"type":"object","description":"Dedicated.","additionalProperties":{"$ref":"#\/components\/schemas\/JenkinsDedicatedZone"},"propertyNames":{"type":"string"}},"defaultDedicatedVersion":{"type":"string","description":"Default dedicated version."},"providerId":{"type":"string","description":"Provider ID."}}},"JenkinsProvisionResponse":{"type":"object","description":"Provider provisioning response.","required":["id","message","config"],"properties":{"config":{"type":"object","description":"Config.","additionalProperties":{},"propertyNames":{"type":"string"}},"id":{"type":"string","description":"ID."},"message":{"type":"string","description":"Message."}}},"JenkinsUpdateCenterVersions":{"type":"object","description":"Current and available Jenkins versions.","properties":{"available":{"type":["string","null"],"description":"Available."},"current":{"type":["string","null"],"description":"Current."}}},"JenkinsUpdateCenterView":{"type":"object","description":"Update information returned to the console.","required":["manageLink","versions"],"properties":{"manageLink":{"type":"string","description":"Manage link."},"versions":{"$ref":"#\/components\/schemas\/JenkinsUpdateCenterVersions","description":"Versions."}}},"Keycloak":{"type":"object","description":"A Keycloak add-on: its identifiers, plan, deployed versions, access URL and initial credentials, the resources backing it and its application's environment variables. `version`, `javaVersion`, `accessUrl` and `initialCredentials` are read from the application's environment; a value it does not define shows as a `NOT FOUND` marker.","required":["resourceId","addonId","name","ownerId","plan","version","javaVersion","accessUrl","initialCredentials","availableVersions","resources","features","envVars"],"properties":{"accessUrl":{"type":"string","description":"URL of the Keycloak administration console."},"addonId":{"type":"string","description":"Add-on ID (`addon_\u2026`)."},"availableVersions":{"type":"array","items":{"type":"string"},"description":"Versions on offer."},"envVars":{"type":"object","description":"Environment variables of the add-on's application.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"features":{"$ref":"#\/components\/schemas\/KeycloakFeatures","description":"Optional features of the add-on (network group)."},"initialCredentials":{"$ref":"#\/components\/schemas\/BasicCredentials","description":"Initial administrator credentials."},"javaVersion":{"type":"string","description":"Java version the add-on's application runs on."},"monthlyActiveUsers":{"type":["integer","null"],"format":"int64","description":"Distinct users with any session activity on the add-on since midnight\nUTC on the first day of the current month. Absent when the count cannot\nbe read.","minimum":0},"name":{"type":"string","description":"Add-on name; the add-on ID when the name cannot be read."},"ownerId":{"type":"string","description":"ID of the owner: a user or an organisation."},"plan":{"$ref":"#\/components\/schemas\/KeycloakPlan","description":"Plan identifier."},"resourceId":{"type":"string","description":"Keycloak add-on ID (`keycloak_\u2026`)."},"resources":{"$ref":"#\/components\/schemas\/KeycloakResources","description":"Resources backing the add-on."},"version":{"type":"string","description":"Deployed Keycloak version."}}},"KeycloakFeatures":{"type":"object","description":"Optional features of a Keycloak add-on.","properties":{"networkGroup":{"oneOf":[{"$ref":"#\/components\/schemas\/NetworkGroupView","description":"Network group the add-on is linked to; null when there is none."},{"type":"null"}]}}},"KeycloakPatchRequest":{"type":"object","description":"Version to switch a Keycloak add-on to.","required":["targetVersion"],"properties":{"targetVersion":{"type":"string","description":"Target version; it must be one of the versions on offer."}}},"KeycloakPlan":{"type":"string","description":"Commercial plan of the Keycloak add-on.","enum":["ALPHA","BETA","BASE"]},"KeycloakResources":{"type":"object","description":"Resources backing a Keycloak add-on.","required":["entrypoint"],"properties":{"entrypoint":{"type":"string","description":"ID of the Java application running Keycloak; empty when there is none."},"fsbucketId":{"type":["string","null"],"description":"ID of the FS Bucket add-on, when there is one."},"pgsqlId":{"type":["string","null"],"description":"ID of the PostgreSQL add-on, when there is one."}}},"KeycloakVersionChecker":{"type":"object","description":"Whether a Keycloak add-on can move to a newer version.","required":["available","installed","latest","needUpdate"],"properties":{"available":{"type":"array","items":{"type":"string"},"description":"Versions on offer."},"installed":{"type":"string","description":"Version the add-on currently runs; a `NOT FOUND` marker when its\napplication reports none."},"latest":{"type":"string","description":"Newest version on offer: the last entry of `available`."},"needUpdate":{"type":"boolean","description":"`true` when `installed` differs from `latest`."}}},"KnownQuotaItem":{"oneOf":[{"type":"object","description":"A CPU ceiling\/usage in millicores (1000 = 1 vCPU).","required":["maximum","type"],"properties":{"maximum":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["MillivCPUMaxLimit"]}}},{"type":"object","description":"A RAM ceiling\/usage.","required":["information","type"],"properties":{"information":{"$ref":"#\/components\/schemas\/HumanReadableInformation"},"type":{"type":"string","enum":["RamMaxUsage"]}}}],"description":"A Kubernetes quota ceiling, tagged by `type`: `MillivCPUMaxLimit` (CPU, in millicores) or `RamMaxUsage` (RAM)."},"KubeConfigType":{"type":"string","description":"Which address of the cluster's API server the downloaded kubeconfig targets: `LOADBALANCER` (the default) its public endpoint, `NETWORKGROUP` its address inside the cluster's network group, `APISERVER_IP` the API server address its deployment profile defines. Accepted case-insensitively.","enum":["NETWORKGROUP","LOADBALANCER","APISERVER_IP"]},"KubernetesBadRequest":{"oneOf":[{"$ref":"#\/components\/schemas\/KubernetesError"},{"$ref":"#\/components\/schemas\/Message"}],"description":"A refused request: the Kubernetes service's `{code, message}`, or a message (`id`, `type`, `message`) when the owner is invalid."},"KubernetesCluster":{"type":"object","description":"A Kubernetes cluster. The detail response (`GET` of one cluster) also carries `features`, `apiServerUrl` and the cluster's node groups, standalone node groups and load balancers; the listing and the action responses leave those collections empty and omit the other two fields.","required":["id","tenantId","name","tags","status","creationDate","version","topologyConfig"],"properties":{"apiServerUrl":{"type":["string","null"],"description":"The URL clients reach the cluster's API server at: the `server:` of the\ndefault (`LOADBALANCER`) kubeconfig. `https:\/\/<cluster domain>` (port\n443, routed by SNI) on a cluster deployed with SNI access, else\n`https:\/\/<load balancer domain>:<port>`. **Detail response only**\n(`GET` of one cluster); absent from every other response, and until the\ncluster's API server is reachable from outside."},"creationDate":{"type":"string","format":"date-time","description":"Creation date"},"deploymentProfileId":{"type":["string","null"],"description":"The deployment profile the cluster was created with\n(`kubernetes_deployment_profile_<uuid>`); `null` on an older cluster\ncreated before deployment profiles were recorded."},"description":{"type":["string","null"],"description":"Optional description"},"failure":{"oneOf":[{"$ref":"#\/components\/schemas\/FailureCause","description":"Why the cluster is `FAILED`: the latest failure recorded on it. Present\nonly while its status is `FAILED`. **Detail and listing responses.**"},{"type":"null"}]},"features":{"oneOf":[{"$ref":"#\/components\/schemas\/ClusterFeatures","description":"Feature flags. **Detail responses only** (`GET` of one cluster and the\nfeatures `PATCH`); the listing and the action responses (create,\ndelete, resume, redeploy, upgrade) omit the key. For a feature that\ninstalls something in the cluster, the value reports whether the\ninstallation is in place, not only whether it was requested."},{"type":"null"}]},"id":{"type":"string","description":"Kubernetes cluster ID (`kubernetes_<ULID>` or `kubernetes_<UUID>`)"},"loadBalancers":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterLoadBalancer"},"description":"Load balancers. Detail response only; empty elsewhere."},"locationId":{"type":["string","null"],"format":"uuid","description":"Deprecated: read `zoneId`. Always the same value as `zoneId`, and\n`null` exactly when it is.","deprecated":true},"name":{"type":"string","description":"Cluster name"},"nodeGroups":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterNodeGroup"},"description":"Node groups, with their nodes. Detail response only; empty elsewhere."},"standaloneNodeGroups":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterStandaloneNodeGroup"},"description":"Standalone node groups. Detail response only; empty elsewhere."},"status":{"$ref":"#\/components\/schemas\/ClusterStatusType","description":"Cluster status"},"storageUsageBytes":{"type":["integer","null"],"format":"int64","description":"Total storage usage in bytes, when known."},"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"},"description":"Semantic tags"},"tenantId":{"type":"string","description":"Owner (organisation) ID"},"topologyConfig":{"$ref":"#\/components\/schemas\/TopologyConfig","description":"Control-plane topology configuration"},"version":{"$ref":"#\/components\/schemas\/Version","description":"Kubernetes version"},"waiting":{"oneOf":[{"$ref":"#\/components\/schemas\/ClusterWaitingView","description":"What the cluster creation is waiting for; present only while the\ndeployment waits on a dependency, which its `status` shows as\n`DEPLOYING`. **Detail and listing responses.**"},{"type":"null"}]},"zoneId":{"type":["string","null"],"format":"uuid","description":"The zone (uuid) of the cluster's deployment profile, read at request\ntime; `null` when that profile has no zone or no longer exists."}}},"KubernetesError":{"type":"object","description":"Error answered by the Kubernetes service: a machine-matchable `code` and a human-readable `message`.","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-matchable code, e.g. `clever.core.bad-request`."},"message":{"type":"string","description":"Human-readable message. Not a stable contract; branch on `code`."}}},"KubernetesOwnerZone":{"type":"object","description":"A zone the owner may create a cluster in (active and accessible to it), with the deployment profiles it may use there. Only `id` and `name` describe the zone: the full zone is available from `GET \/v4\/products\/zones`.","required":["id","name","deploymentProfiles"],"properties":{"deploymentProfiles":{"type":"array","items":{"$ref":"#\/components\/schemas\/KubernetesOwnerZoneDeploymentProfile"},"description":"Every deployment profile the owner is admitted to in this zone \u2014 never\nempty (a zone with none is not listed) \u2014 the zone's default first, then\nby id."},"id":{"type":"string","format":"uuid","description":"The zone id: the value `zoneId` takes on a cluster creation."},"name":{"type":"string","description":"The zone name (`par`). Zone names are not unique: use `id` to designate\nthe zone unambiguously."}}},"KubernetesOwnerZoneDeploymentProfile":{"type":"object","description":"A deployment profile the owner may use in a zone: its id and whether it is the zone's default.","required":["id","prodDefault"],"properties":{"id":{"type":"string","description":"`kubernetes_deployment_profile_<uuid>` \u2014 the value `deploymentProfileId`\ntakes on a create."},"prodDefault":{"type":"boolean","description":"Whether this is the zone's production default \u2014 the profile a create\nnaming only the zone resolves. Always present: `false` is written, not\nomitted."}}},"KubernetesServiceConfig":{"type":"object","description":"Configuration of the Kubernetes product: the flavors and replication-factor bounds of each control-plane topology, and the Kubernetes versions offered.","required":["topologies","versions"],"properties":{"topologies":{"type":"array","items":{"$ref":"#\/components\/schemas\/TopologyConstraints"},"description":"The three topologies with their constraints."},"versions":{"$ref":"#\/components\/schemas\/VersionsConfig","description":"The configured version policy."}}},"KubernetesTaint":{"type":"object","description":"A Kubernetes taint applied to the nodes of a node group: key, optional value and effect.","required":["key","effect"],"properties":{"effect":{"$ref":"#\/components\/schemas\/TaintEffect","description":"Taint effect"},"key":{"type":"string","description":"Taint key"},"value":{"type":["string","null"],"description":"Taint value"}}},"KvId":{"type":"string","description":"Materia KV add-on ID (`kv_<ulid>`, e.g. `kv_01ARZ3NDEKTSV4RRFFQ69G5FAV`)"},"LabelValue":{"type":"string","description":"A Kubernetes label value: empty, or 1 to 63 letters, digits, `.`, `_` or `-`, starting and ending with a letter or digit.","maxLength":63,"pattern":"^([A-Za-z0-9]([A-Za-z0-9._-]{0,61}[A-Za-z0-9])?)?$"},"LinkedAddonEnvironmentView":{"type":"object","description":"The environment variables one add-on linked to the application provides, with the add-on's identity.","required":["provider_id","addon_id","addon_name","env"],"properties":{"addon_id":{"type":"string"},"addon_name":{"type":"string"},"env":{"type":"array","items":{"$ref":"#\/components\/schemas\/AddonEnvironmentView"}},"provider_id":{"type":"string"}}},"ListResponse_ServiceToken":{"oneOf":[{"type":"array","items":{"allOf":[{"$ref":"#\/components\/schemas\/ServiceTokenMetadata"},{"type":"object","required":["creatorUserId"],"properties":{"creatorUserId":{"type":["string","null"],"description":"ID (`user_\u2026`) of the member who created the token; `null` when it is not known."}}}],"description":"A service token of an organisation, with the member who created it."},"description":"Every selected entry."},{"$ref":"#\/components\/schemas\/Page_ServiceToken","description":"One page and the cursor of the next one."}],"description":"A list: an array of every selected entry, or, with `paginate=1`, one page of entries with the cursor of the next page."},"LoadBalancerInfo":{"type":"object","description":"A load balancer serving the zone of an application or an add-on.","required":["id","name","zoneId","dns"],"properties":{"dns":{"$ref":"#\/components\/schemas\/LoadBalancerInfoDns","description":"DNS records to point a domain at this load balancer."},"id":{"type":"string","description":"Load balancer ID (`loadBalancer_<uuid>`).","example":"loadBalancer_0f1e2d3c-4b5a-4978-8695-a4b3c2d1e0f9"},"name":{"type":"string","description":"Load balancer name.","example":"lb.par.n1"},"zoneId":{"type":"string","description":"ID of the zone the load balancer serves: a UUID, not the zone name.","example":"2a6b0c8e-5d1f-4a3b-9c7e-6f4d2b0a8c1e"}}},"LoadBalancerInfoDns":{"type":"object","description":"DNS records of a load balancer: point a domain at it with a CNAME record, or with A and AAAA records.","required":["cname","a"],"properties":{"a":{"type":"array","items":{"type":"string"},"description":"IPv4 and IPv6 addresses of the load balancer, for A and AAAA records; may be empty.","example":["203.0.113.10","2001:db8::10"]},"cname":{"type":"string","description":"Target of a CNAME record.","example":"adc.par.lb.clever-cloud.com"}}},"LogExport":{"type":"object","description":"One export, as listed and fetched.","required":["id","status","ownerId","requestedBy","logs","accesslogs","resourceIds","fileFormat","archive","since","until","archiveSize","archiveSha256","color","fileName","error","createdAt","startedAt","finishedAt","expiresAt","progress","items"],"properties":{"accesslogs":{"type":"boolean","description":"Whether HTTP access logs are exported."},"archive":{"oneOf":[{"$ref":"#\/components\/schemas\/LogExportArchive"},{"type":"null"}]},"archiveSha256":{"type":["string","null"],"description":"Hex SHA-256 of the archive once `DONE`, to check the download against.","pattern":"^[0-9a-f]{64}$"},"archiveSize":{"type":["integer","null"],"format":"int64","description":"Size of the archive in bytes once `DONE`, compressed as it is downloaded.","minimum":0},"color":{"type":"boolean","description":"Whether the log lines keep their colours, as asked."},"createdAt":{"type":["string","null"],"format":"date-time","description":"When the export was asked, as an RFC 3339 date."},"error":{"type":["string","null"],"description":"Why the export failed, in one sentence."},"expiresAt":{"type":["string","null"],"format":"date-time","description":"When the archive is deleted from storage and the export turns `EXPIRED`."},"fileFormat":{"oneOf":[{"$ref":"#\/components\/schemas\/LogExportFileFormat"},{"type":"null"}]},"fileName":{"type":["string","null"],"description":"The archive's file name once `DONE`."},"finishedAt":{"type":["string","null"],"format":"date-time","description":"When the export reached a final status, as an RFC 3339 date; `null` until then."},"id":{"type":"string","description":"The export's identifier (`export_<uuid>`), to fetch, download or delete it with.","example":"export_0b9a4ac8-5d0f-4a8e-9a3e-4d2f7f1c6b21","pattern":"^export_([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|[0-9a-f]{32})$"},"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogExportItem"},"description":"One per (resource, kind) on a fetch; always empty in a listing."},"logs":{"type":"boolean","description":"Whether runtime logs are exported."},"ownerId":{"type":"string","description":"The owner of the export, as resolved from the path: an organisation (`orga_\u2026`) or a\npersonal space (`user_\u2026`)."},"progress":{"$ref":"#\/components\/schemas\/LogExportProgress"},"requestedBy":{"type":"string","description":"Who asked for the export: a user (`user_\u2026`), or the name of the platform service\nwhen the platform administration asked."},"resourceIds":{"type":["array","null"],"items":{"type":"string"},"description":"The resources asked, sorted and without duplicates; `null` when the whole\norganisation was."},"since":{"type":["string","null"],"format":"date-time","description":"Start of the window."},"startedAt":{"type":["string","null"],"format":"date-time","description":"When work on the export started, as an RFC 3339 date; `null` while it is `PENDING`."},"status":{"$ref":"#\/components\/schemas\/LogExportStatus"},"until":{"type":["string","null"],"format":"date-time","description":"End of the window."}}},"LogExportArchive":{"type":"string","description":"The archive the files are delivered in. Only `targz` is produced today: the others\nanswer 501 until they land.","enum":["targz","tarzst","zip","none"]},"LogExportFileFormat":{"type":"string","description":"The shape of each file inside the archive. Only `json` is produced today: the others\nare in the contract so it keeps its shape as they land, and answer 501 until then.","enum":["json","csv","avro","parquet"]},"LogExportItem":{"type":"object","description":"One (resource, kind) of an export.","required":["kind","resourceId","status","lineCount","readBytes","reason","firstLineAt"],"properties":{"firstLineAt":{"type":["string","null"],"format":"date-time","description":"Date of the earliest line exported for this item; `null` when it has none. Later\nthan the export's `since` when the resource's logs start after it: they were not\nretained that far back, or not written yet."},"kind":{"$ref":"#\/components\/schemas\/LogExportKind"},"lineCount":{"type":"integer","format":"int64","description":"Lines exported for this item.","minimum":0},"readBytes":{"type":"integer","format":"int64","description":"Bytes of logs read for this item, before compression.","minimum":0},"reason":{"type":["string","null"],"description":"Why the item was skipped, how it failed, or why a `DONE` item's read may be\nshort; `null` when there is nothing to say."},"resourceId":{"type":"string","description":"The resource the item reads: an application (`app_\u2026`) or an add-on by its real id\n(`postgresql_\u2026`\u2026), never an add-on id (`addon_\u2026`)."},"status":{"$ref":"#\/components\/schemas\/LogExportItemStatus"}}},"LogExportItemStatus":{"type":"string","description":"Where one (resource, kind) of an export stands: `PENDING` (not read yet), `RUNNING` (being read), `DONE` (read, its file is in the archive), `FAILED` (could not be read, see `reason`; the rest of the export goes on), `SKIPPED` (the resource has no logs of this kind, see `reason`). `UNKNOWN` when the status could not be read.","enum":["PENDING","RUNNING","DONE","FAILED","SKIPPED","UNKNOWN"]},"LogExportKind":{"type":"string","description":"The logs an export item reads: `logs` (application and add-on logs) or `accesslogs`. `unknown` when the kind could not be read.","enum":["logs","accesslogs","unknown"]},"LogExportPage":{"type":"object","description":"One page of log exports: pass `nextCursor` as `cursor` to read the next page.","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogExport"},"description":"The page's exports, newest first, at most `limit` of them."},"nextCursor":{"type":["string","null"],"description":"Pass it as `cursor` to read the next page; `null` on the last one."}}},"LogExportProgress":{"type":"object","description":"How far an export has gone.","required":["itemsTotal","itemsDone","itemsSkipped","itemsFailed","lineCount","readBytes"],"properties":{"itemsDone":{"type":"integer","format":"int32","description":"Items whose export is complete.","minimum":0},"itemsFailed":{"type":"integer","format":"int32","description":"Items whose export failed.","minimum":0},"itemsSkipped":{"type":"integer","format":"int32","description":"Items skipped: the resource has no logs of that kind to read.","minimum":0},"itemsTotal":{"type":"integer","format":"int32","description":"Number of items of the export. An item is a (resource, kind) pair: a resource\nexported with both its logs and its access logs counts for two.","minimum":0},"lineCount":{"type":"integer","format":"int64","description":"Lines exported so far, all items together.","minimum":0},"readBytes":{"type":"integer","format":"int64","description":"Bytes of logs read so far, before compression.","minimum":0}}},"LogExportStatus":{"type":"string","description":"Where an export stands: `PENDING` (accepted, waiting for a worker), `RUNNING` (the logs are being read), `ASSEMBLING` (the logs are read, the archive is being written), `DONE` (the archive can be downloaded until `expiresAt`), `FAILED` (no resource could be read, see `error`), `EXPIRED` (past `expiresAt`, the archive was deleted from storage). `DONE` means every item was read to its end, skipped, or written off as `FAILED` with its `reason`. `UNKNOWN` when the status could not be read: poll again.","enum":["PENDING","RUNNING","ASSEMBLING","DONE","FAILED","EXPIRED","UNKNOWN"]},"MFABackupCodes":{"type":"object","description":"A new set of multi-factor authentication recovery codes, each usable once in place of a TOTP code. Save them: they are meant to be shown only in this response.","required":["backupCodes"],"properties":{"backupCodes":{"type":"array","items":{"type":"string"},"description":"The recovery codes."}}},"MFABackupCodesState":{"type":"object","description":"How many recovery codes of a multi-factor authentication are left, and when they were generated.","required":["remaining","total","generatedAt"],"properties":{"generatedAt":{"type":"string","format":"date-time","description":"When the set was generated (RFC 3339). A set generated before this field\nexisted carries the date it was introduced instead."},"remaining":{"type":"integer","format":"int64","description":"Recovery codes not used yet."},"total":{"type":"integer","format":"int64","description":"Recovery codes generated in the set."}}},"MateriaDB":{"type":"object","description":"A Materia KV database: its cluster, owner, plan, connection host and port, access token and status.","required":["id","clusterId","ownerId","kind","plan","host","port","token","tokenId","status"],"properties":{"clusterId":{"type":"string","description":"ID of the Materia KV cluster the database runs on."},"host":{"type":"string","description":"Host name to connect to."},"id":{"type":"string","description":"Materia KV add-on ID (`kv_\u2026`)."},"kind":{"type":"string","description":"Database kind (`KV`)."},"ownerId":{"type":"string","description":"Owner ID (`user_\u2026` or `orga_\u2026`)."},"plan":{"type":"string","description":"Plan of the add-on: `ALPHA` or `BASE`."},"port":{"type":"integer","format":"int32","description":"TCP port to connect to."},"status":{"type":"string","description":"Status of the add-on (`PROVISIONED` once it is ready to use)."},"token":{"type":"string","description":"Access token of the database; it is also the password of its Redis-compatible\nendpoint."},"tokenId":{"type":"string","description":"ID of the access token."}}},"Matomo":{"type":"object","description":"A Matomo add-on: its identifiers, plan, versions, access URL, the resources backing it and its application's environment variables. `phpVersion` and `accessUrl` are read from the application's environment; a value it does not define shows as a `NOT FOUND` marker.","required":["resourceId","addonId","name","ownerId","plan","version","phpVersion","accessUrl","availableVersions","resources","envVars"],"properties":{"accessUrl":{"type":"string","description":"Public URL of the Matomo instance."},"addonId":{"type":"string","description":"Add-on ID (`addon_\u2026`)."},"availableVersions":{"type":"array","items":{"type":"string"},"description":"Versions on offer."},"envVars":{"type":"object","description":"Environment variables of the add-on's application.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"name":{"type":"string","description":"Add-on name."},"ownerId":{"$ref":"#\/components\/schemas\/userId","description":"ID of the owner: a user or an organisation."},"phpVersion":{"type":"string","description":"PHP version the add-on's application runs on."},"plan":{"$ref":"#\/components\/schemas\/MatomoPlanIdentifier","description":"Plan identifier (`BETA`)."},"resourceId":{"$ref":"#\/components\/schemas\/matomoId","description":"Matomo add-on ID (`matomo_\u2026`)."},"resources":{"$ref":"#\/components\/schemas\/MatomoResources","description":"Resources backing the add-on."},"version":{"type":"string","description":"Matomo version: the first of the versions on offer."}}},"MatomoPlanIdentifier":{"type":"string","description":"Plan of a Matomo add-on. Matomo has a single plan, `BETA`; any plan requested at provisioning resolves to it.","enum":["BETA"]},"MatomoResources":{"type":"object","description":"Resources backing a Matomo add-on.","properties":{"entrypoint":{"oneOf":[{"$ref":"#\/components\/schemas\/appId","description":"ID of the PHP application running Matomo, when there is one."},{"type":"null"}]},"kvId":{"oneOf":[{"$ref":"#\/components\/schemas\/KvId","description":"ID of the Materia KV add-on (`kv_\u2026`), when there is one."},{"type":"null"}]},"mysqlId":{"oneOf":[{"$ref":"#\/components\/schemas\/mysqlId","description":"ID of the MySQL add-on, when there is one."},{"type":"null"}]},"redisId":{"oneOf":[{"$ref":"#\/components\/schemas\/redisId","description":"ID of the Redis add-on, when there is one."},{"type":"null"}]}}},"Member":{"type":"object","description":"A member of a network group: the application, add-on, external resource or load balancer whose peers join the group's mesh.","required":["id","label","domainName","kind"],"properties":{"domainName":{"type":"string","description":"Domain name for WireGuard routing."},"id":{"type":"string","description":"Member ID (application\/addon ID)."},"kind":{"$ref":"#\/components\/schemas\/MemberKind","description":"Member kind."},"label":{"type":"string","description":"Human-readable label."}},"additionalProperties":false},"MemberKind":{"type":"string","description":"Kind of resource a network group member stands for. Returned in lowercase; accepted in any case on input, so `APPLICATION` and `application` are the same value.","enum":["application","addon","external","loadbalancer"]},"MemberView":{"type":"object","description":"A member of an organisation: the user, their role and their job title.","required":["member","role"],"properties":{"job":{"type":["string","null"]},"member":{"$ref":"#\/components\/schemas\/OrganisationMemberUserView"},"role":{"type":"string"}}},"Message":{"type":"object","description":"Message returned by some operations, and on error: a numeric `id`, a `type` (`error`, `success`\u2026) and a human-readable `message`. A validation error adds `fields`.","required":["id","type","message"],"properties":{"fields":{"type":"object","description":"On a validation error only: why each rejected field was refused, keyed by field name.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"id":{"type":"integer","format":"int32","description":"Numeric identifier of the message."},"message":{"type":"string","description":"Human-readable message."},"type":{"type":"string","description":"Kind of message: `error`, `info`, `success`\u2026"}}},"Metabase":{"type":"object","description":"A Metabase add-on: its identifiers, plan, deployed versions, access URL, the resources backing it and its application's environment variables.","required":["resourceId","addonId","name","ownerId","plan","version","javaVersion","accessUrl","availableVersions","resources","envVars"],"properties":{"accessUrl":{"type":"string","description":"Public URL of the Metabase instance."},"addonId":{"$ref":"#\/components\/schemas\/addonId","description":"Add-on ID (`addon_\u2026`)."},"availableVersions":{"type":"array","items":{"type":"string"},"description":"Versions on offer."},"envVars":{"type":"object","description":"Environment variables of the add-on's application.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"javaVersion":{"type":"string","description":"Java version the add-on's application runs on."},"name":{"type":"string","description":"Add-on name."},"ownerId":{"$ref":"#\/components\/schemas\/userId","description":"ID of the owner: a user or an organisation."},"plan":{"$ref":"#\/components\/schemas\/MetabasePlanIdentifier","description":"Plan identifier."},"resourceId":{"$ref":"#\/components\/schemas\/metabaseId","description":"Metabase add-on ID (`metabase_\u2026`)."},"resources":{"$ref":"#\/components\/schemas\/MetabaseResources","description":"Resources backing the add-on."},"version":{"type":"string","description":"Deployed Metabase version."}}},"MetabasePatchRequest":{"type":"object","description":"Version to switch a Metabase add-on to.","required":["targetVersion"],"properties":{"targetVersion":{"type":"string","description":"Target version to upgrade\/downgrade to."}}},"MetabasePlanIdentifier":{"type":"string","description":"Plan of a Metabase add-on. A plan not recognised at provisioning resolves to `BETA`.","enum":["ALPHA","BETA","BASE"]},"MetabaseResources":{"type":"object","description":"Resources backing a Metabase add-on.","properties":{"entrypoint":{"oneOf":[{"$ref":"#\/components\/schemas\/appId","description":"ID of the Java application running Metabase, when there is one."},{"type":"null"}]},"pgsqlId":{"oneOf":[{"$ref":"#\/components\/schemas\/postgresqlId","description":"ID of the PostgreSQL add-on holding Metabase's database, when there is\none."},{"type":"null"}]}}},"MetabaseVersionCheck":{"type":"object","description":"Whether a Metabase add-on can move to a newer version.","required":["available","installed","latest","needUpdate","requiresApplicationUpdate"],"properties":{"available":{"type":"array","items":{"type":"string"},"description":"Versions on offer."},"installed":{"type":"string","description":"Version the add-on currently runs."},"latest":{"type":"string","description":"Newest version on offer: the catalog's rolling tag when it declares one\n(`latest`, `lts`), otherwise its newest numeric entry. This is what the\nadd-on is meant to move onto \u2014 it is **not** what `needUpdate` compares\nagainst, which is always the newest numeric entry."},"needUpdate":{"type":"boolean","description":"Whether an update is available."},"requiresApplicationUpdate":{"type":"boolean","description":"Whether moving to `latest` also resizes the add-on's application\n(flavor and scalability). Always `false` while `needUpdate` is `false`;\notherwise `true` for a target on version line 0.60 or later, and for a\nrolling tag such as `latest`."}}},"MfaEnrollmentResponse":{"type":"object","description":"A pending multi-factor authentication enrolment: the provisioning URL to load in an authenticator app.","required":["url"],"properties":{"url":{"type":"string","description":"TOTP provisioning URL (`otpauth:\/\/\u2026`)."}}},"MfaStatusView":{"type":"object","description":"Whether a multi-factor authentication kind is configured for the user.","required":["kind","configured"],"properties":{"backupCodesState":{"oneOf":[{"$ref":"#\/components\/schemas\/MFABackupCodesState","description":"State of the recovery codes; absent when `configured` is false."},{"type":"null"}]},"configured":{"type":"boolean"},"kind":{"type":"string","description":"Multi-factor authentication kind, such as `TOTP`."}}},"MigrationStrategyTag":{"type":"string","description":"How a plugin is migrated when a cluster moves between two Kubernetes versions: `BEFORE_BASE` applies extra manifests before the plugin's standard installation, `BASE_AFTER` after it, `BEFORE_BASE_AFTER` both before and after, `REPLACE_BASE` installs replacement manifests instead of the standard ones, and `SKIP_PLUGIN` leaves the plugin untouched for that transition.","enum":["BEFORE_BASE","BASE_AFTER","BEFORE_BASE_AFTER","REPLACE_BASE","SKIP_PLUGIN"]},"MysqlClusterConsole":{"type":"object","description":"One shared MySQL cluster a new add-on can be created on: its identifier, its label, its zone, the version it runs and the features it supports.","required":["id","label","zone","version","features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/Feature"}},"id":{"type":"string"},"label":{"type":"string"},"version":{"type":"string"},"zone":{"type":"string"}}},"MysqlClusterConsoleV2":{"type":"object","description":"One shared MySQL cluster a new add-on can be created on: its identifier, its label, its zone and the version it runs.","required":["id","label","zone","version"],"properties":{"dedicatedOptions":{"oneOf":[{"$ref":"#\/components\/schemas\/MysqlDedicatedOptions"},{"type":"null"}]},"id":{"type":"string"},"label":{"type":"string"},"version":{"type":"string"},"zone":{"type":"string"}}},"MysqlDedicatedOptions":{"type":"object","description":"The names of the features one MySQL version supports as a dedicated instance.","required":["features"],"properties":{"features":{"type":"array","items":{"type":"string"}}}},"MysqlProvidersConsole":{"type":"object","description":"What a MySQL add-on can be created on: the shared clusters, the versions available as a dedicated instance with the features each one supports, and the version used by default.","required":["providerId","clusters","dedicated","defaultDedicatedVersion"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/MysqlClusterConsole"}},"dedicated":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/DedicatedView"},"propertyNames":{"type":"string"}},"defaultDedicatedVersion":{"type":"string"},"providerId":{"type":"string"}}},"MysqlProvidersConsoleV2":{"type":"object","description":"What a MySQL add-on can be created on: the shared clusters, and the options each version available as a dedicated instance supports.","required":["clusters","dedicated"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/MysqlClusterConsoleV2"}},"dedicated":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/MysqlDedicatedOptions"},"propertyNames":{"type":"string"}}}},"MysqlVersionsConsole":{"type":"object","description":"What a MySQL add-on can be created on: the shared clusters and the versions available as a dedicated instance.","required":["clusters","dedicatedVersions"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/MysqlClusterConsoleV2"}},"dedicatedVersions":{"type":"array","items":{"type":"string"}}}},"NamespaceView":{"type":"object","description":"A namespace the organisation's applications can use for TCP redirections.","required":["namespace"],"properties":{"namespace":{"type":"string"}}},"NetworkGroup":{"type":"object","description":"A network group: a private WireGuard mesh with its address range, its members and their peers.","required":["id","ownerId","label","networkIp","lastAllocatedIp","tags","peers","members","version"],"properties":{"description":{"type":["string","null"],"description":"Optional description."},"dnsSanitizedLabel":{"type":["string","null"],"description":"The label sanitized for DNS use, when it was derived at creation; null\non older groups."},"id":{"type":"string","description":"Unique network group ID."},"label":{"type":"string","description":"Human-readable label."},"lastAllocatedIp":{"type":"string","description":"The mesh address allocated last: the next peer address is allocated\nafter it, wrapping around the network range."},"members":{"type":"array","items":{"$ref":"#\/components\/schemas\/Member"},"description":"Members of this network group."},"networkIp":{"type":"string","description":"CIDR block for this network group (e.g. \"10.101.0.0\/16\")."},"ownerId":{"type":"string","description":"Owner organisation ID."},"ownership":{"oneOf":[{"$ref":"#\/components\/schemas\/Ownership","description":"Who the group belongs to; null on older groups, which are customer\ngroups."},{"type":"null"}]},"peers":{"type":"array","items":{"$ref":"#\/components\/schemas\/Peer"},"description":"Peers."},"tags":{"type":"array","items":{"type":"string"},"description":"Semantic tags."},"version":{"type":"integer","format":"int64","description":"Optimistic concurrency version: a monotonically increasing counter."}},"additionalProperties":false},"NetworkGroupComponent":{"oneOf":[{"allOf":[{"$ref":"#\/components\/schemas\/NetworkGroup"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["NetworkGroup"]}}}]},{"allOf":[{"$ref":"#\/components\/schemas\/Member"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Member"]}}}]},{"$ref":"#\/components\/schemas\/Peer"}],"description":"A search hit: the matching group, member or peer itself, with a `type` discriminator (`NetworkGroup`, `Member`, or the peer's own `CleverPeer` \/ `ExternalPeer`)."},"NetworkGroupDomainName":{"type":"string","description":"DNS name of a network group member, such as `<member>.m.<network-group>.ng.clever-cloud.com`: at least two dot-separated labels made of letters, digits, `-` and `_`, at most 253 characters, ending with one of the configured DNS suffixes. Underscores are accepted because member and network group IDs (`app_<uuid>`, `ng_<uuid>`) are often used as-is; they are sanitized at resolution time. An invalid value is rejected with the error code `clever.network-group.bad-request.invalid-domain-name`.","example":"app-uuid.m.ng-uuid.ng.clever-cloud.com"},"NetworkGroupInstanceResync":{"type":"object","description":"One instance of the member and its resync outcome.","required":["instanceId","outcome","reason"],"properties":{"instanceId":{"type":"string"},"outcome":{"$ref":"#\/components\/schemas\/NetworkGroupResyncOutcome"},"reason":{"type":["string","null"],"description":"Why the instance was skipped, or why a `creation_started` started\nnothing (`creation already in flight`); `null` otherwise."}}},"NetworkGroupMemberResync":{"type":"object","description":"What a member resync found and did: the member and one row per running instance of it.","required":["memberId","instances"],"properties":{"instances":{"type":"array","items":{"$ref":"#\/components\/schemas\/NetworkGroupInstanceResync"}},"memberId":{"type":"string"}}},"NetworkGroupOrigin":{"type":"string","description":"Origin of a cluster's network group: `SYSTEM_CREATED` when the platform created it with the cluster, `USER_PROVIDED` when the caller supplied it.","enum":["SYSTEM_CREATED","USER_PROVIDED"]},"NetworkGroupResyncOutcome":{"type":"string","description":"What the resync found, or did, for one instance of the member.","enum":["present","key_requested","creation_started","skipped"]},"NetworkGroupView":{"type":"object","description":"Network group an add-on is linked to.","required":["id"],"properties":{"id":{"type":"string","description":"Network group ID (`ng_\u2026`)."}}},"NetworkGroupsConfiguration":{"type":"object","description":"Network group settings of this deployment, readable without touching any group. A member `domainName` must end with a dot followed by one of `dnsSuffixes`; several suffixes can coexist (for example during a migration), and there is usually a single one.","required":["dnsSuffixes"],"properties":{"dnsSuffixes":{"type":"array","items":{"type":"string"},"description":"A member `domainName` must end with a dot followed by one of these."}},"additionalProperties":false},"NiceValue":{"type":"integer","format":"int64","description":"A scheduler priority, as a Unix nice value (typically -20 to 19)."},"NodeFlavor":{"type":"string","description":"Node flavor (VM size): `2XS` (4 vCPUs, 4 GB RAM), `XS` (6 vCPUs, 8 GB), `S` (8 vCPUs, 12 GB), `M` (10 vCPUs, 16 GB), `L` (12 vCPUs, 24 GB), `XL` (16 vCPUs, 32 GB). RAM is in decimal gigabytes (10^9 bytes). Accepted case-insensitively.","enum":["2XS","XS","S","M","L","XL"]},"NodeGroup":{"type":"object","description":"A node group of a Kubernetes cluster: a set of worker nodes sharing a flavor, taints and labels, with its node counts and status.","required":["id","clusterId","name","flavor","currentNodeCount","targetNodeCount","minNodeCount","maxNodeCount","taints","labels","createdAt","status","autoscalingEnabled"],"properties":{"autoscalingEnabled":{"type":"boolean","description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Whether node-group autoscaling is enabled for\nthis group","deprecated":true},"clusterId":{"type":"string","description":"Parent cluster ID"},"createdAt":{"type":"string","format":"date-time","description":"Creation date"},"currentNodeCount":{"type":"integer","format":"int32","description":"Current number of nodes in the `READY` status"},"description":{"type":["string","null"],"description":"Optional description"},"failure":{"oneOf":[{"$ref":"#\/components\/schemas\/NodeGroupFailureView","description":"Why the group failed \u2014 present only while its status is `FAILED`."},{"type":"null"}]},"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor","description":"Node flavor (VM size)"},"id":{"type":"string","description":"Node group ID"},"labels":{"type":"object","description":"Kubernetes labels applied to nodes","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"maxNodeCount":{"type":"integer","format":"int32","description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Maximum number of nodes node-group autoscaling\nreaches","deprecated":true,"maximum":256,"minimum":0},"minNodeCount":{"type":"integer","format":"int32","description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Minimum number of nodes node-group autoscaling\nkeeps","deprecated":true,"maximum":256,"minimum":0},"name":{"$ref":"#\/components\/schemas\/NodeGroupName","description":"Node group name"},"status":{"$ref":"#\/components\/schemas\/NodeGroupStatusType","description":"Node group status"},"tag":{"type":["string","null"],"description":"Optional tag"},"taints":{"type":"array","items":{"$ref":"#\/components\/schemas\/KubernetesTaint"},"description":"Kubernetes taints applied to nodes"},"targetNodeCount":{"$ref":"#\/components\/schemas\/NodeGroupNodeCount","description":"Target number of nodes"},"updatedAt":{"type":["string","null"],"format":"date-time","description":"Last update date"}}},"NodeGroupCreationPayload":{"type":"object","description":"Request body to create a node group in a cluster. Taints, labels and flavor cannot be changed once the node group exists.","required":["name","flavor","targetNodeCount"],"properties":{"autoscalingEnabled":{"type":["boolean","null"],"description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Whether node-group autoscaling is enabled for\nthis group. When omitted it is `false`, except for a node group added to an\nexisting cluster that has `features.autoscalingEnabled` and no node\nautoprovisioning installed yet, where it is `true`.","deprecated":true},"description":{"type":["string","null"],"description":"Optional description, at most 4096 characters, no NUL character","maxLength":4096,"pattern":"^[^\\x00]*$"},"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor","description":"Node flavor (VM size)"},"labels":{"type":["object","null"],"description":"Kubernetes labels: a map from label key to label value (see each one's rule).","additionalProperties":{"$ref":"#\/components\/schemas\/LabelValue"},"propertyNames":{"type":"string","description":"A Kubernetes label key: an optional prefix (a lowercase DNS subdomain of at most 253 characters) followed by `\/`, then a name of 1 to 63 letters, digits, `.`, `_` or `-` that starts and ends with a letter or digit; at most 317 characters in all.","maxLength":317,"pattern":"^([a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?)*\/)?[A-Za-z0-9]([A-Za-z0-9._-]{0,61}[A-Za-z0-9])?$"}},"maxNodeCount":{"type":["integer","null"],"format":"int32","description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Maximum number of nodes node-group autoscaling\nreaches (optional, default 256), not checked against `targetNodeCount`","deprecated":true,"maximum":256,"minimum":0},"minNodeCount":{"type":["integer","null"],"format":"int32","description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Minimum number of nodes node-group autoscaling\nkeeps (optional, default 0), not checked against `targetNodeCount`","deprecated":true,"maximum":256,"minimum":0},"name":{"$ref":"#\/components\/schemas\/NodeGroupName","description":"Node group name"},"tag":{"type":["string","null"],"description":"Optional tag, at most 1024 characters, no NUL character","maxLength":1024,"pattern":"^[^\\x00]*$"},"taints":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/KubernetesTaint"},"description":"Kubernetes taints"},"targetNodeCount":{"$ref":"#\/components\/schemas\/NodeGroupNodeCount","description":"Target number of nodes"}}},"NodeGroupFailureView":{"type":"object","description":"Why a node group is `FAILED`: the latest failure recorded on it and, when a node roll or a scale-down stopped because a node did not drain, the nodes left undrained (still `DRAINING`, cordoned, VM running) and why each did not drain.","required":["operation","message","occurredAt"],"properties":{"message":{"type":"string","description":"What went wrong."},"occurredAt":{"type":"string","format":"date-time","description":"When the failure was recorded."},"operation":{"type":"string","description":"The operation that failed, e.g. `NODEGROUP_REDEPLOY`."},"step":{"type":["string","null"],"description":"The step it failed at, e.g. `DRAIN`; absent when the operation has none."},"undrainedNodes":{"type":"array","items":{"$ref":"#\/components\/schemas\/UndrainedNode"},"description":"The nodes a stopped worker roll or scale-down left undrained, and why."}}},"NodeGroupName":{"type":"string","description":"Name of a node group or standalone node: a lowercase RFC 1123 subdomain (labels of letters, digits and hyphens, separated by dots, each starting and ending with a letter or digit) of at most 55 characters, so that the names of its nodes fit a Kubernetes label value.","maxLength":55,"minLength":1,"pattern":"^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?)*$"},"NodeGroupNodeCount":{"type":"integer","format":"int32","description":"A number of nodes in a node group: an integer from 0 to 256.","maximum":256,"minimum":0},"NodeGroupPatchPayload":{"type":"object","description":"Request body to update a node group: name, description, tag, node counts, autoscaling, and the drain policy of a scale-down. An absent or `null` `description`, `tag`, `minNodeCount`, `maxNodeCount` or `autoscalingEnabled` keeps the current value; send an empty string to clear `description` or `tag`. Taints, labels and flavor cannot be changed after creation.","required":["name","targetNodeCount"],"properties":{"autoscalingEnabled":{"type":["boolean","null"],"description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Whether node-group autoscaling is enabled for\nthis group","deprecated":true},"description":{"type":["string","null"],"description":"Description, at most 4096 characters, no NUL character. Absent or `null`\nkeeps the current value; an empty string clears it.","maxLength":4096,"pattern":"^[^\\x00]*$"},"drainPolicy":{"oneOf":[{"$ref":"#\/components\/schemas\/DrainPolicy","description":"How this resize's scale-down treats a node whose pods will not leave:\nabsent or `STRICT`, the node stays cordoned with its VM running and the\ngroup goes `FAILED` (step `DRAIN`); `FORCE` deletes it after a shorter\nwait. When present, it also retries the scale-down of a `FAILED` group\nthat still holds such nodes, even with an unchanged `targetNodeCount`\n(but not with a raised one)."},{"type":"null"}]},"maxNodeCount":{"type":["integer","null"],"format":"int32","description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Maximum number of nodes node-group autoscaling\nreaches, not checked against `targetNodeCount`","deprecated":true,"maximum":256,"minimum":0},"minNodeCount":{"type":["integer","null"],"format":"int32","description":"Deprecated: no effect once node autoprovisioning is installed on the\ncluster; will be removed. Minimum number of nodes node-group autoscaling\nkeeps, not checked against `targetNodeCount`","deprecated":true,"maximum":256,"minimum":0},"name":{"$ref":"#\/components\/schemas\/NodeGroupName","description":"Node group name"},"tag":{"type":["string","null"],"description":"Tag, at most 1024 characters, no NUL character. Absent or `null` keeps\nthe current value; an empty string clears it.","maxLength":1024,"pattern":"^[^\\x00]*$"},"targetNodeCount":{"$ref":"#\/components\/schemas\/NodeGroupNodeCount","description":"Target number of nodes"}}},"NodeGroupStatusType":{"type":"string","description":"Lifecycle status of a node group. Responses never show a queued operation: `TO_RESIZE` shows as `RESIZING`, `TO_TERMINATE` as `TERMINATING`, `TO_RESUME` as `DEPLOYING` and `TO_HEAL` as `HEALING`. A node group flagged for deletion shows as `TERMINATING`.","enum":["PENDING","CREATED","TO_RESUME","DEPLOYING","DEPLOYED","TO_RESIZE","RESIZING","TO_HEAL","HEALING","READY","FAILED","TO_TERMINATE","TERMINATING","DELETED"]},"NodeStatusType":{"type":"string","description":"Lifecycle status of a Kubernetes node. `DRAINING` means the node is cordoned while its pods are evicted.","enum":["DEPLOYING","DEPLOYED","READY","DRAINING","FAILED","DELETED"]},"NotificationEventGroupView":{"type":"object","description":"An event group: `META_SERVICE_LIFECYCLE` (stops, deployment starts, successes and failures), `META_DEPLOYMENT_RESULT` (deployment successes and failures), `META_SERVICE_MANAGEMENT` (application and add-on creations and deletions, application edits) or `META_CREDITS` (credits added).","required":["key"],"properties":{"key":{"type":"string","description":"Key of the group, usable in a hook's `events`."}}},"NotificationEventGroupsView":{"type":"object","description":"The event groups a hook can subscribe to in its `events`.","required":["meta_events"],"properties":{"meta_events":{"type":"array","items":{"$ref":"#\/components\/schemas\/NotificationEventGroupView"},"description":"Event groups, each standing for a set of event types."}}},"NotificationTarget":{"type":"object","description":"A recipient of an email hook: an email address, a user, or the owning organisation. Only the owner, the caller and members of the owning organisation can be recipients.","required":["type"],"properties":{"target":{"type":["string","null"],"description":"Recipient: an email address for `email`, a user ID (`user_\u2026`) for\n`userid`, the owning organisation's ID (`orga_\u2026`) or nothing for\n`organisation`. Required for `email` and `userid`."},"type":{"type":"string","description":"Kind of recipient: `email` for an address of a Clever Cloud account, `userid` for a user, `organisation` for the eligible members of the owning organisation.","enum":["email","userid","organisation"]}}},"OAuth1AccessTokenView":{"type":"object","description":"An OAuth1 access token of the user: the consumer it was issued to, its rights, and its creation, expiration and last-use dates in milliseconds since the Unix epoch.","required":["token","consumer","rights"],"properties":{"consumer":{"$ref":"#\/components\/schemas\/OAuth1ConsumerView"},"creationDate":{"type":["integer","null"],"format":"int64"},"employeeId":{"type":["string","null"]},"expirationDate":{"type":["integer","null"],"format":"int64"},"lastUtilisation":{"type":["integer","null"],"format":"int64"},"rights":{"$ref":"#\/components\/schemas\/OAuthRightsView"},"token":{"type":"string"}}},"OAuth1ConsumerView":{"type":"object","description":"An OAuth1 consumer: a third-party application allowed to act on behalf of users, with its display details, consumer key and the rights it asks for.","required":["key","rights"],"properties":{"baseUrl":{"type":["string","null"]},"description":{"type":["string","null"]},"key":{"type":"string"},"name":{"type":["string","null"]},"picture":{"type":["string","null"]},"rights":{"$ref":"#\/components\/schemas\/OAuthRightsView"},"url":{"type":["string","null"]}}},"OAuthAccessTokenAnswer":{"type":"object","description":"An access token and its secret, valid until `expiration_date` (90 days by default, as configured on the consumer).","required":["oauth_token","oauth_token_secret","expiration_date"],"properties":{"expiration_date":{"type":"string","description":"When the access token expires (RFC 3339)."},"oauth_token":{"type":"string","description":"The access token."},"oauth_token_secret":{"type":"string","description":"The access token secret."}}},"OAuthAccessTokenParams":{"type":"object","description":"OAuth 1.0a parameters of an access-token request. In the form variant each one may instead be sent in the `Authorization: OAuth` header; a parameter in both takes the body's value. Every `oauth_*` parameter sent is part of the signature base string.","required":["oauth_consumer_key","oauth_token","oauth_verifier","oauth_signature"],"properties":{"oauth_consumer_key":{"type":"string","description":"The consumer key the request token was issued to."},"oauth_nonce":{"type":["string","null"],"description":"A random string, included in the signature when sent."},"oauth_signature":{"type":"string","description":"The request signature, computed with the consumer secret and the request token secret."},"oauth_signature_method":{"type":["string","null"],"description":"`HMAC-SHA1`, `HMAC-SHA512` or `PLAINTEXT` (case-insensitive); `PLAINTEXT` when omitted.\nWith `PLAINTEXT` the signature is the secrets themselves: prefer `HMAC-SHA512`."},"oauth_timestamp":{"type":["string","null"],"description":"Seconds since the Unix epoch, included in the signature when sent."},"oauth_token":{"type":"string","description":"The authorized request token."},"oauth_verifier":{"type":"string","description":"The verifier returned with the user's authorization."},"oauth_version":{"type":["string","null"],"description":"`1.0`, included in the signature when sent."}}},"OAuthApplicationView":{"type":"object","description":"A repository of the linked GitHub account, as GitHub lists it.","required":["id","owner","name","description","gitUrl","defaultBranch","priv"],"properties":{"defaultBranch":{"type":["string","null"],"description":"Default branch of the repository."},"description":{"type":["string","null"],"description":"Description of the repository; `null` when it has none."},"gitUrl":{"type":["string","null"],"description":"HTTPS clone URL of the repository."},"id":{"type":"string","description":"GitHub's numeric repository ID, as a string."},"name":{"type":"string","description":"Name of the repository."},"owner":{"type":"string","description":"Login of the repository's owner on GitHub."},"priv":{"type":"boolean","description":"Whether the repository is private."}}},"OAuthRequestTokenAnswer":{"type":"object","description":"A temporary request token, valid for one hour, for the user to authorize.","required":["oauth_token","oauth_token_secret","oauth_callback_confirmed"],"properties":{"oauth_callback_confirmed":{"type":"boolean","description":"Always `true`."},"oauth_token":{"type":"string","description":"The request token."},"oauth_token_secret":{"type":"string","description":"The request token secret, needed to sign the access-token request."}}},"OAuthRequestTokenParams":{"type":"object","description":"OAuth 1.0a parameters of a request-token request. In the form variant each one may instead be sent in the `Authorization: OAuth` header; a parameter in both takes the body's value. Every `oauth_*` parameter sent is part of the signature base string.","required":["oauth_consumer_key","oauth_signature","oauth_callback"],"properties":{"oauth_callback":{"type":"string","description":"Where the user is sent back after authorizing: a URL with the scheme and host of the\nconsumer's registered URL, or `oob` when the client cannot receive a redirect."},"oauth_consumer_key":{"type":"string","description":"The consumer key of the registered OAuth consumer."},"oauth_nonce":{"type":["string","null"],"description":"A random string, included in the signature when sent."},"oauth_signature":{"type":"string","description":"The request signature, computed with the consumer secret and an empty token secret."},"oauth_signature_method":{"type":["string","null"],"description":"`HMAC-SHA1`, `HMAC-SHA512` or `PLAINTEXT` (case-insensitive); `PLAINTEXT` when omitted.\nWith `PLAINTEXT` the signature is the secret itself: prefer `HMAC-SHA512`."},"oauth_timestamp":{"type":["string","null"],"description":"Seconds since the Unix epoch, included in the signature when sent."},"oauth_version":{"type":["string","null"],"description":"`1.0`, included in the signature when sent."}}},"OAuthRightsView":{"type":"object","description":"The rights an OAuth1 consumer asks for, one boolean per right. `almighty` is read-only: it cannot be set when creating or updating a consumer.","required":["almighty","access_organisations","manage_organisations","manage_organisations_services","manage_organisations_applications","manage_organisations_members","access_organisations_bills","access_organisations_credit_count","access_organisations_consumption_statistics","access_personal_information","manage_personal_information","manage_ssh_keys"],"properties":{"access_organisations":{"type":"boolean"},"access_organisations_bills":{"type":"boolean"},"access_organisations_consumption_statistics":{"type":"boolean"},"access_organisations_credit_count":{"type":"boolean"},"access_personal_information":{"type":"boolean"},"almighty":{"type":"boolean"},"manage_organisations":{"type":"boolean"},"manage_organisations_applications":{"type":"boolean"},"manage_organisations_members":{"type":"boolean"},"manage_organisations_services":{"type":"boolean"},"manage_personal_information":{"type":"boolean"},"manage_ssh_keys":{"type":"boolean"}}},"OperationScope":{"type":"string","description":"Which part of a cluster an upgrade moves: `ALL` (the default) upgrades the control plane, then every worker node group; `CONTROL_PLANE` upgrades the control plane only, leaving worker node groups on their current kubelet version; `WORKERS` upgrades the worker node groups only, leaving the control plane untouched.","enum":["ALL","CONTROL_PLANE","WORKERS"]},"OrganisationDrainPolicyView":{"type":"object","description":"An organisation's drain policy: the enforcement of each drain kind (`LOG`, `ACCESSLOG`, `AUDITLOG`) and the templates it applies.","required":["enforcement","drainTemplates"],"properties":{"drainTemplates":{"type":"array","items":{"$ref":"#\/components\/schemas\/DrainTemplateView"}},"enforcement":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/DrainPolicyEnforcement"},"propertyNames":{"type":"string","description":"Kind of log drain: `LOG` (application logs), `ACCESSLOG` (HTTP access logs) or `AUDITLOG` (audit logs).","enum":["LOG","ACCESSLOG","AUDITLOG"]}}}},"OrganisationMemberUserView":{"type":"object","description":"The user behind an organisation membership: identifier, email, name, avatar and preferred multi-factor authentication method.","required":["id","preferredMFA"],"properties":{"avatar":{"type":["string","null"]},"email":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":["string","null"]},"preferredMFA":{"type":"string"}}},"OrganisationView":{"type":"object","description":"An organisation: its identity, billing details and payment capabilities.","required":["id","name","description","vatState","canPay","cleverEnterprise","canSEPA","isTrusted"],"properties":{"VAT":{"type":["string","null"]},"address":{"type":["string","null"]},"avatar":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"canPay":{"type":"boolean"},"canSEPA":{"type":"boolean"},"city":{"type":["string","null"]},"cleverEnterprise":{"type":"boolean"},"company":{"type":["string","null"]},"contextFlags":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFlag"},"description":"Flags of the organisation's partner; always present, an empty array when there\nare none."},"country":{"type":["string","null"]},"countryCode":{"type":["string","null"],"description":"ISO 3166-1 alpha-2 code of `country` (`FR` for `FRANCE`), in the form\n`PUT \/v2\/organisations\/{id}` accepts, so the organisation can be written\nback unchanged. `null` when the stored country has no such code."},"customerFullName":{"type":["string","null"]},"description":{"type":"string"},"emergencyNumber":{"type":["string","null"]},"id":{"type":"string"},"isTrusted":{"type":"boolean"},"name":{"type":"string"},"vatState":{"type":"string"},"zipcode":{"type":["string","null"]}}},"Otoroshi":{"type":"object","description":"An Otoroshi add-on: its identifiers, plan, deployed versions, access URLs and credentials, and the resources backing it.","required":["resourceId","addonId","name","ownerId","plan","version","javaVersion","accessUrl","initialCredentials","api","availableVersions","resources","features"],"properties":{"accessUrl":{"type":"string","description":"Public URL of the Otoroshi back office."},"addonId":{"type":"string","description":"Add-on ID (`addon_\u2026`)."},"api":{"$ref":"#\/components\/schemas\/OtoroshiApi","description":"Access to the Otoroshi admin API."},"availableVersions":{"type":"array","items":{"type":"string"},"description":"Versions offered for upgrade."},"features":{"$ref":"#\/components\/schemas\/OtoroshiFeatures","description":"Optional features of the add-on (network group)."},"initialCredentials":{"$ref":"#\/components\/schemas\/OtoroshiBasicCredentials","description":"Initial administrator credentials of the back office."},"javaVersion":{"type":"string","description":"Java version the add-on's application runs on; empty when unknown."},"name":{"type":"string","description":"Add-on name."},"ownerId":{"$ref":"#\/components\/schemas\/userId"},"plan":{"$ref":"#\/components\/schemas\/OtoroshiPlanIdentifier"},"resourceId":{"$ref":"#\/components\/schemas\/otoroshiId"},"resources":{"$ref":"#\/components\/schemas\/OtoroshiResources","description":"Resources backing the add-on."},"version":{"type":"string","description":"Deployed Otoroshi version; a `NOT FOUND` marker when the add-on's\napplication reports none."}}},"OtoroshiApi":{"type":"object","description":"Access to the admin API of an Otoroshi add-on: its URL, the client ID (`user`) and secret to call it with, and the URLs of its OpenAPI document and of its interactive UI.","required":["url","user","secret","openapi","swaggerUrl"],"properties":{"openapi":{"type":"string"},"secret":{"type":"string"},"swaggerUrl":{"type":"string"},"url":{"type":"string"},"user":{"type":"string"}}},"OtoroshiBasicCredentials":{"type":"object","description":"A username and password pair.","required":["user","password"],"properties":{"password":{"type":"string"},"user":{"type":"string"}}},"OtoroshiFeatures":{"type":"object","description":"Optional features of an Otoroshi add-on. `networkGroup` is null when the add-on is not linked to a network group.","properties":{"networkGroup":{"oneOf":[{"$ref":"#\/components\/schemas\/OtoroshiNetworkGroupView"},{"type":"null"}]}}},"OtoroshiNetworkGroupView":{"type":"object","description":"Network group an add-on is linked to.","required":["id"],"properties":{"id":{"$ref":"#\/components\/schemas\/ngId"}}},"OtoroshiPatchRequest":{"type":"object","description":"Version to switch an Otoroshi add-on to.","required":["targetVersion"],"properties":{"targetVersion":{"type":"string","description":"Target version; it must be one of the versions on offer."}}},"OtoroshiPlanIdentifier":{"type":"string","description":"Plan of an Otoroshi add-on.","enum":["ALPHA","BETA","BASE"]},"OtoroshiResources":{"type":"object","description":"Resources backing an Otoroshi add-on.","required":["entrypoint","redisId"],"properties":{"cellarId":{"oneOf":[{"$ref":"#\/components\/schemas\/cellarId","description":"ID of the Cellar add-on, when there is one."},{"type":"null"}]},"elasticId":{"oneOf":[{"$ref":"#\/components\/schemas\/elasticsearchId","description":"ID of the Elasticsearch add-on events are exported to, when there is\none."},{"type":"null"}]},"entrypoint":{"$ref":"#\/components\/schemas\/appId","description":"ID of the Java application running Otoroshi, or the all-zero ID\n(`app_00000000-0000-0000-0000-000000000000`) when there is none."},"postgresqlId":{"oneOf":[{"$ref":"#\/components\/schemas\/postgresqlId","description":"ID of the PostgreSQL add-on events are exported to, when there is one."},{"type":"null"}]},"pulsarId":{"oneOf":[{"$ref":"#\/components\/schemas\/pulsarId","description":"ID of the Pulsar add-on events are exported to, when there is one."},{"type":"null"}]},"redisId":{"$ref":"#\/components\/schemas\/redisId","description":"ID of the Redis add-on, or the all-zero ID\n(`redis_00000000-0000-0000-0000-000000000000`) when there is none."}}},"OtoroshiVersionChecker":{"type":"object","description":"Whether an Otoroshi add-on can move to a newer version.","required":["available","installed","latest","needUpdate"],"properties":{"available":{"type":"array","items":{"type":"string"},"description":"Versions on offer."},"installed":{"type":"string","description":"Version the add-on currently runs; a `NOT FOUND` marker when its\napplication reports none."},"latest":{"type":"string","description":"Newest version on offer: the last entry of `available`."},"needUpdate":{"type":"boolean","description":"`true` when `installed` differs from `latest`."}}},"OwnerIdView":{"type":"object","description":"The owner identifier of the authenticated user (`user_\u2026`).","required":["ownerId"],"properties":{"ownerId":{"type":"string"}}},"Ownership":{"type":"string","description":"Who a network group belongs to: a customer, or the platform itself. Returned in lowercase; accepted in any case on input.","enum":["customer","platform"]},"Page_ServiceToken":{"type":"object","description":"A cursor page: the items, plus the cursor to fetch the next page, `null`\non the last one.","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"allOf":[{"$ref":"#\/components\/schemas\/ServiceTokenMetadata"},{"type":"object","required":["creatorUserId"],"properties":{"creatorUserId":{"type":["string","null"],"description":"ID (`user_\u2026`) of the member who created the token; `null` when it is not known."}}}],"description":"A service token of an organisation, with the member who created it."},"description":"The page's items, at most the requested limit of them."},"nextCursor":{"type":["string","null"],"description":"Opaque cursor for the next page; `null` when this is the last page."}}},"PartnerFlag":{"type":"string","description":"A restriction a partner imposes on its users and their organisations: `DENY_ORGA_CREATION` (no organisation creation), `DENY_ORGA_UPDATE` (no change to an organisation's information), `DENY_ORGA_DELETION` (no organisation deletion), `DENY_ORGA_MEMBER_UPDATE` (no change to an organisation's members or invitations), `DENY_ORGA_MEMBER_LIST` (no listing of an organisation's members), `DENY_SELF_ACCOUNT_DELETION` (no deletion of one's own account), `DENY_PERSONAL_RESOURCES` (the user's personal space is read-only).","enum":["DENY_ORGA_CREATION","DENY_ORGA_UPDATE","DENY_ORGA_DELETION","DENY_ORGA_MEMBER_UPDATE","DENY_ORGA_MEMBER_LIST","DENY_SELF_ACCOUNT_DELETION","DENY_PERSONAL_RESOURCES"]},"PatchClusterVersion":{"type":"object","description":"Request body to upgrade a cluster to another Kubernetes version, optionally limited to the control plane or to the worker node groups.","required":["targetVersion"],"properties":{"drainPolicy":{"$ref":"#\/components\/schemas\/DrainPolicy","description":"How the upgrade treats a node whose pods will not leave \u2014 a worker\nnode, or on an `ALL_IN_ONE` cluster an old control-plane VM, whose\nkubelet hosts pods too: `STRICT` (the default) stops the operation and\nleaves the node cordoned with its VM running; `FORCE` deletes it after a\nshorter wait. A `CONTROL_PLANE` upgrade rolls no worker and applies it to\nthe control-plane VMs only."},"scope":{"$ref":"#\/components\/schemas\/OperationScope","description":"Which part of the cluster to move. Absent means `ALL`: the control\nplane, then every node group."},"targetVersion":{"$ref":"#\/components\/schemas\/Version","description":"Target Kubernetes version to upgrade to"}}},"PaymentInfoView":{"type":"object","description":"The billing details of an owner: name, company, postal address and VAT number, with the problems that prevent them from being used for payment.","required":["fromOrga","errors"],"properties":{"address":{"type":["string","null"]},"city":{"type":["string","null"]},"company":{"type":["string","null"]},"country":{"type":["string","null"]},"errors":{"type":"object","description":"Problems found in the details, keyed by field name (such as `zipCode`); empty\nwhen the details are complete and valid.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"fromOrga":{"type":"boolean","description":"Whether the details belong to an organisation rather than a user."},"name":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"zipCode":{"type":["string","null"]}}},"Peer":{"oneOf":[{"type":"object","required":["id","publicKey","endpoint","hostname","parentMember","hv","type"],"properties":{"endpoint":{"$ref":"#\/components\/schemas\/WireguardEndpoint"},"hostname":{"type":"string"},"hv":{"type":"string","description":"Hypervisor the peer runs on."},"id":{"type":"string"},"label":{"type":["string","null"]},"parentEvent":{"type":["string","null"]},"parentMember":{"type":"string"},"publicKey":{"type":"string"},"routedPrefixes":{"type":"array","items":{"type":"string"},"description":"IP networks this peer routes (CIDR notation, e.g. `192.168.10.0\/24`);\nthe other peers of the group send traffic for them through this\npeer. Omitted when empty."},"type":{"type":"string","enum":["CleverPeer"]}}},{"type":"object","required":["id","publicKey","endpoint","hostname","parentMember","type"],"properties":{"endpoint":{"$ref":"#\/components\/schemas\/WireguardEndpoint"},"hostname":{"type":"string"},"id":{"type":"string"},"label":{"type":["string","null"]},"parentEvent":{"type":["string","null"]},"parentMember":{"type":"string"},"publicKey":{"type":"string"},"routedPrefixes":{"type":"array","items":{"type":"string"},"description":"IP networks this peer routes (CIDR notation, e.g. `192.168.10.0\/24`);\nthe other peers of the group send traffic for them through this\npeer. Omitted when empty."},"type":{"type":"string","enum":["ExternalPeer"]}}}],"description":"A WireGuard node of a network group, told apart by `type`: a `CleverPeer` is managed by Clever Cloud (an instance running on a hypervisor), an `ExternalPeer` is managed by the customer."},"PeerCreated":{"type":"object","description":"Result of a peer creation.","required":["peerId"],"properties":{"peerId":{"type":"string","description":"The newly created peer's ID."}}},"PluginName":{"type":"string","description":"Name of a plugin (add-on) the platform installs inside a cluster.","enum":["CILIUM","CORE_DNS","CSR_APPROVER","METRICS_SERVER","KONNECTIVITY","OTEL_COLLECTOR","KUBE_STATE_METRICS","CEPH_CSI","KARPENTER","CLUSTER_CORE"]},"PostgresqlClusterConsole":{"type":"object","description":"One shared PostgreSQL cluster a new add-on can be created on: its identifier, its label, its zone and the version it runs.","required":["id","label","zone","version","features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/PostgresqlFeatureFlag"},"description":"Always empty on this endpoint. The field is rendered, not omitted."},"id":{"type":"string","description":"Identifier of the cluster.","example":"cluster_af2b1a0e-9df3-4713-8ba8-451360d7b41c"},"label":{"type":"string","description":"Name of the cluster.","example":"mtl-postgresql-c9"},"version":{"type":"string","description":"PostgreSQL version the cluster runs.","example":"18"},"zone":{"type":"string","description":"Zone the cluster runs in.","example":"par"}}},"PostgresqlClusterConsoleViewV2":{"type":"object","description":"One shared PostgreSQL cluster a new add-on can be created on: its identifier, its label, its zone and the version it runs.","required":["id","label","zone","version"],"properties":{"dedicatedOptions":{"oneOf":[{"$ref":"#\/components\/schemas\/PostgresqlDedicatedOptions","description":"Always `None` on both V2 endpoints, and omitted from the payload\nrather than rendered as null."},{"type":"null"}]},"id":{"type":"string"},"label":{"type":"string"},"version":{"type":"string"},"zone":{"type":"string"}}},"PostgresqlDedicatedOptions":{"type":"object","description":"The names of the features one PostgreSQL version supports as a dedicated instance.","required":["features"],"properties":{"features":{"type":"array","items":{"type":"string"}}}},"PostgresqlDedicatedVersion":{"type":"object","description":"The features one PostgreSQL version supports as a dedicated instance, and whether each one is enabled by default.","required":["features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/PostgresqlFeatureFlag"},"description":"Every feature, in a fixed order, with its default."}}},"PostgresqlFeatureFlag":{"type":"object","description":"A PostgreSQL add-on feature, and whether it is enabled.","required":["name","enabled"],"properties":{"enabled":{"type":"boolean","description":"Whether the feature is enabled by default."},"name":{"type":"string","description":"Name of the feature.","example":"do-backup"}}},"PostgresqlProvidersConsole":{"type":"object","description":"What a PostgreSQL add-on can be created on, or moved to: the shared clusters, the versions available as a dedicated instance with the features each one supports, and the version used by default.","required":["providerId","clusters","dedicated","defaultDedicatedVersion"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/PostgresqlClusterConsole"},"description":"The shared clusters."},"dedicated":{"type":"object","description":"The versions available as a dedicated instance, keyed by version, each with the features it supports.","additionalProperties":{"$ref":"#\/components\/schemas\/PostgresqlDedicatedVersion"},"propertyNames":{"type":"string"}},"defaultDedicatedVersion":{"type":"string","description":"The version a new dedicated add-on runs when none is asked for.","example":"18"},"providerId":{"type":"string","description":"Identifier of the provider, `postgresql-addon`.","example":"postgresql-addon"}}},"PostgresqlProvidersConsoleViewV2":{"type":"object","description":"What a PostgreSQL add-on can be created on: the shared clusters, and the options each version available as a dedicated instance supports.","required":["clusters","dedicated"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/PostgresqlClusterConsoleViewV2"}},"dedicated":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/PostgresqlDedicatedOptions"},"propertyNames":{"type":"string"}}}},"PostgresqlVersionsView":{"type":"object","description":"What a PostgreSQL add-on can be created on, or moved to: the shared clusters and the versions available as a dedicated instance.","required":["clusters","dedicatedVersions"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/PostgresqlClusterConsoleViewV2"}},"dedicatedVersions":{"type":"array","items":{"type":"string"}}}},"PreorderLineView":{"type":"object","description":"A line of an add-on order's invoice preview.","required":["description","VAT","price"],"properties":{"VAT":{"type":"integer","format":"int64","description":"VAT amount."},"description":{"type":"string","description":"Description of the line item."},"pack":{"type":["string","null"],"description":"Pack name, when the line came from one."},"price":{"type":"number","format":"double","description":"Line price, excluding VAT."},"subDescription":{"type":["string","null"],"description":"Second line of the description; null on a zero-cost preorder."}}},"PresignedURL":{"type":"object","description":"A presigned URL to download a peer's WireGuard configuration from object storage.","required":["url"],"properties":{"url":{"type":"string","description":"Presigned URL (Cellar\/S3 compatible)."}}},"PresignedUrl":{"type":"object","description":"A presigned URL: it performs the operation it was issued for without any other credential, until it expires.","required":["url"],"properties":{"url":{"type":"string","description":"The presigned URL. It carries its own access token in the `authorization` query\nparameter: keep it secret."}}},"ProviderConsoleView":{"type":"object","description":"An add-on provider as the console shows it: its clusters, the dedicated versions it offers and the default one.","required":["providerId","dedicated","defaultDedicatedVersion"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/ClusterConsoleView"}},"dedicated":{"type":"object","description":"Offered dedicated versions, keyed by version, in the order the provider declares\nthem.","additionalProperties":{"$ref":"#\/components\/schemas\/DedicatedView"},"propertyNames":{"type":"string"}},"defaultDedicatedVersion":{"type":"string"},"providerId":{"type":"string"}}},"ProviderError":{"type":"object","description":"Error answered by some add-on providers: a human-readable `error`.","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable reason. Not a stable contract."}}},"PublicBaseEntry":{"type":"object","description":"The version of a plugin the platform installs on clusters running a given Kubernetes version, and its install order (ascending: a plugin others depend on, such as the network plugin, comes first).","required":["plugin","k8sVersion","pluginVersion","installOrder"],"properties":{"installOrder":{"type":"integer","format":"int32"},"k8sVersion":{"type":"string"},"plugin":{"$ref":"#\/components\/schemas\/PluginName","description":"The plugin, e.g. `CORE_DNS`."},"pluginVersion":{"type":"string"}}},"PublicMigrationEntry":{"type":"object","description":"A special migration step for one plugin when a cluster moves from one Kubernetes version (`fromK8s`) to another (`toK8s`). The transition is directional.","required":["plugin","fromK8s","toK8s","strategy"],"properties":{"fromK8s":{"type":"string"},"plugin":{"$ref":"#\/components\/schemas\/PluginName"},"strategy":{"$ref":"#\/components\/schemas\/MigrationStrategyTag"},"toK8s":{"type":"string"}}},"PublicPluginCatalog":{"type":"object","description":"The catalog of plugins the platform installs in clusters: the plugin versions per Kubernetes version (`bases`), and the special steps applied when a cluster changes Kubernetes version (`migrations`).","required":["bases","migrations"],"properties":{"bases":{"type":"array","items":{"$ref":"#\/components\/schemas\/PublicBaseEntry"}},"migrations":{"type":"array","items":{"$ref":"#\/components\/schemas\/PublicMigrationEntry"}}}},"Pulsar":{"type":"object","description":"A Pulsar add-on: its tenant and namespace, cluster, access token, lifecycle dates and cold-storage settings.","required":["id","owner_id","tenant","namespace","cluster_id","token","creation_date","status","plan","cold_storage_linked","cold_storage_must_be_provided"],"properties":{"ask_for_deletion_date":{"type":["string","null"],"format":"date-time","description":"When deletion was requested"},"cluster_id":{"type":"string","description":"Cluster ID the addon is deployed on"},"cold_storage_id":{"type":["string","null"],"description":"Cellar cold storage addon ID (if configured)"},"cold_storage_linked":{"type":"boolean","description":"Whether cold storage offload is linked"},"cold_storage_must_be_provided":{"type":"boolean","description":"Whether cold storage must be provisioned for this plan"},"creation_date":{"type":"string","format":"date-time","description":"Creation timestamp"},"deletion_date":{"type":["string","null"],"format":"date-time","description":"When deletion was completed"},"id":{"type":"string","description":"Provider-internal resource ID (pulsar_*)"},"namespace":{"type":"string","description":"Pulsar namespace name"},"owner_id":{"type":"string","description":"Owner (user or org) ID"},"plan":{"$ref":"#\/components\/schemas\/PulsarPlan","description":"Plan identifier"},"status":{"$ref":"#\/components\/schemas\/PulsarStatus","description":"Addon lifecycle status"},"tenant":{"type":"string","description":"Pulsar tenant name"},"token":{"type":"string","description":"Biscuit authentication token (base64url)"}}},"PulsarCluster":{"type":"object","description":"A Pulsar cluster: its endpoints and ports, version, zone, availability and the plans it supports.","required":["id","url","pulsar_port","version","available","zone","support_cold_storage","supported_plans"],"properties":{"admin_host":{"type":["string","null"],"description":"Host the platform's own calls to the cluster's admin API use when it differs\nfrom `url`; `null` means the admin API is reached on `url`.\n\nA DNS hostname: dot-separated labels of ASCII letters, digits and `-`,\neach 1 to 63 characters and neither starting nor ending with `-`, 253\ncharacters in total at most. Scheme and port come from\n`web_tls_port`\/`web_port`."},"available":{"type":"boolean","description":"Whether this cluster is available for new add-ons"},"id":{"type":"string","description":"Cluster identifier"},"pulsar_port":{"type":"integer","format":"int32","description":"Pulsar binary protocol port"},"pulsar_tls_port":{"type":["integer","null"],"format":"int32","description":"Pulsar TLS binary protocol port"},"support_cold_storage":{"type":"boolean","description":"Whether cold storage (Cellar offload) is supported"},"supported_plans":{"type":"array","items":{"type":"string"},"description":"Plans available on this cluster"},"url":{"type":"string","description":"Cluster hostname\/URL"},"version":{"type":"string","description":"Pulsar version of this cluster's brokers, refreshed every 10 minutes from the\nbrokers themselves (the lowest when they disagree), seeded when the cluster is\nregistered. Bookies and ZooKeeper are not covered."},"web_port":{"type":["integer","null"],"format":"int32","description":"HTTP admin port"},"web_tls_port":{"type":["integer","null"],"format":"int32","description":"HTTPS admin port"},"zone":{"type":"string","description":"Zone\/location identifier"}}},"PulsarPlan":{"type":"string","description":"Plan of a Pulsar add-on: `BETA` for a customer add-on; `ORGANISATION_LOGS`, `ORGANISATION_ACCESS_LOGS`, `ORGANISATION_AUDIT_LOGS` and `ORGANISATION_ACTIONS` for the add-ons Clever Cloud provisions for an organisation's own data.","enum":["BETA","ORGANISATION_LOGS","ORGANISATION_ACCESS_LOGS","ORGANISATION_AUDIT_LOGS","ORGANISATION_ACTIONS"]},"PulsarStatus":{"type":"string","description":"Lifecycle status of a Pulsar add-on: `ACTIVE`, `TO_DELETE` (deletion requested), `DELETED`, `NAMESPACE_DELETED` or `COLD_STORAGE_DELETED`.","enum":["ACTIVE","TO_DELETE","DELETED","NAMESPACE_DELETED","COLD_STORAGE_DELETED"]},"Quota":{"type":"object","description":"The Kubernetes quota of an organisation: its CPU and RAM ceilings.","required":["id","tenantId","tags","quotas"],"properties":{"id":{"type":"string","description":"The quota id, `quota_<uuid>`."},"quotas":{"type":"array","items":{"$ref":"#\/components\/schemas\/KnownQuotaItem"},"description":"The Kubernetes ceilings: CPU and RAM."},"tags":{"type":"array","items":{"type":"string"}},"tenantId":{"type":"string"}}},"RedeployControlPlanePayload":{"type":"object","description":"Request body to redeploy a cluster: optional base64-encoded YAML manifests applied before and after its control plane is replaced, and the drain policy. An absent, `null` or `{}` body starts the redeploy with the defaults, and every field is optional. Each list holds at most 32 entries; each entry is at most 262,144 characters of standard base64 and must decode to valid YAML whose documents are each a mapping with an `apiVersion`, a `kind` and a `metadata.name`, otherwise the request is refused with 400 before the redeploy starts. A manifest whose kind the cluster does not serve is accepted here and fails the redeploy when it is applied.","properties":{"afterYamls":{"type":"array","items":{"type":"string","maxLength":262144},"description":"Base64-encoded YAML manifests applied AFTER the control plane is\nreplaced: at most 32, each at most 262,144 characters.","maxItems":32},"beforeYamls":{"type":"array","items":{"type":"string","maxLength":262144},"description":"Base64-encoded YAML manifests applied BEFORE the control plane is\nreplaced: at most 32, each at most 262,144 characters.","maxItems":32},"drainPolicy":{"$ref":"#\/components\/schemas\/DrainPolicy","description":"How the redeploy treats a node whose pods will not leave \u2014 a worker\nnode, or on an `ALL_IN_ONE` cluster an old control-plane VM, whose\nkubelet hosts pods too: `STRICT` (the default) stops the operation and\nleaves the node cordoned with its VM running; `FORCE` deletes it after a\nshorter wait."}}},"RedisAddonFeature":{"type":"object","description":"One feature of a Redis version, named and either on or off, for instance whether the disk can be encrypted.","required":["name","enabled"],"properties":{"enabled":{"type":"boolean"},"name":{"type":"string"}}},"RedisClusterConsole":{"type":"object","description":"One shared Redis cluster a new add-on can be created on: its identifier, its label, its zone and the version it runs.","required":["id","label","zone","version"],"properties":{"dedicatedOptions":{},"id":{"type":"string"},"label":{"type":"string"},"version":{"type":"string"},"zone":{"type":"string"}}},"RedisDedicatedVersion":{"type":"object","description":"The features one Redis version supports as a dedicated instance.","required":["features"],"properties":{"features":{"type":"array","items":{"$ref":"#\/components\/schemas\/RedisAddonFeature"}}}},"RedisProviderCluster":{"type":"object","description":"One shared Redis cluster a new add-on can be created on: its identifier, its label, its zone, the version it runs and the features it supports.","required":["id","label","zone","version","features"],"properties":{"features":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"},"version":{"type":"string"},"zone":{"type":"string"}}},"RedisProviderInfo":{"type":"object","description":"What a Redis add-on can be created on: the shared clusters, the versions available as a dedicated instance with the features each one supports, and the version used by default.","required":["providerId","clusters","dedicated","defaultDedicatedVersion"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/RedisProviderCluster"}},"dedicated":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/RedisDedicatedVersion"},"propertyNames":{"type":"string"}},"defaultDedicatedVersion":{"type":"string"},"providerId":{"type":"string"}}},"RedisVersions":{"type":"object","description":"What a Redis add-on can be created on: the shared clusters and the versions available as a dedicated instance.","required":["clusters","dedicatedVersions"],"properties":{"clusters":{"type":"array","items":{"$ref":"#\/components\/schemas\/RedisClusterConsole"}},"dedicatedVersions":{"type":"array","items":{"type":"string"}}}},"Region":{"type":"object","description":"Region view returned by region endpoints.\n\nSource: ovd modules\/ipam\/types\/Region.scala \u2014 `Region`","required":["id","ownerId","provider","updatedAt"],"properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"ownerId":{"type":"string"},"provider":{"type":"string"},"tags":{"type":"array","items":{"type":"string"},"description":"Semantic tags (Flyway V5)."},"updatedAt":{"type":"string","format":"date-time"}}},"RegistriesConfig":{"type":"string","description":"Custom image registries configuration of a cluster, as a free-form string of at most 65,536 bytes once UTF-8 encoded (a limit in bytes, not characters), without a NUL character.","pattern":"^[^\\x00]*$"},"ReplicationFactorConfig":{"type":"object","description":"Bounds of the control-plane replication factor, inclusive.","required":["min","max"],"properties":{"max":{"type":"integer","format":"int32","description":"Maximum replication factor"},"min":{"type":"integer","format":"int32","description":"Minimum replication factor"}}},"ResourcesSpecView":{"type":"object","description":"Resources of a VM: CPU in millicores, memory in bytes, and disk in bytes (root volume plus extra volumes).","required":["cpuMillicores","memBytes","diskBytes"],"properties":{"cpuMillicores":{"type":"integer","format":"int32"},"diskBytes":{"type":"integer","format":"int64"},"memBytes":{"type":"integer","format":"int64"}}},"ResumeClusterPayload":{"type":"object","description":"Optional request body to resume a cluster's interrupted redeploy or upgrade; an absent body resumes with the defaults. `drainPolicy` applies to the drains the resumed operation runs again and is not inherited from the interrupted one: a resume without it is `STRICT`.","properties":{"drainPolicy":{"$ref":"#\/components\/schemas\/DrainPolicy","description":"How the resumed operation treats a node whose pods will not leave \u2014 a\nworker node, or on an `ALL_IN_ONE` cluster an old control-plane VM:\n`STRICT` (the default) keeps it cordoned and stops; `FORCE` deletes it\nafter a shorter wait."}}},"ScalingFactor":{"type":"number","format":"double","description":"A dimensionless scaling factor."},"SecondaryEmailPayload":{"type":"object","description":"Options for adding an email address to the user's account.","properties":{"make_primary":{"type":"boolean","description":"Make this address the user's primary email. Defaults to `false`."}}},"SecretView":{"type":"object","description":"The secret of an OAuth1 consumer.","required":["secret"],"properties":{"secret":{"type":"string","description":"Consumer secret, used with the consumer key to sign OAuth1 requests."}}},"SemanticTag":{"type":"string","description":"Semantic tag (simple 'tag' or key-value 'key:value')","example":"quota:brand-new"},"ServiceToken":{"allOf":[{"$ref":"#\/components\/schemas\/ServiceTokenMetadata"},{"type":"object","required":["creatorUserId"],"properties":{"creatorUserId":{"type":["string","null"],"description":"ID (`user_\u2026`) of the member who created the token; `null` when it is not known."}}}],"description":"A service token of an organisation, with the member who created it."},"ServiceTokenMetadata":{"type":"object","description":"A service token's metadata. The token value itself is never part of it.","required":["id","tenantId","productId","locationId","tokenType","name","description","revocationId","resourceId","tags","instigatorId","status","createdAt","expiredAt","revokedAt"],"properties":{"createdAt":{"type":"string","format":"date-time","description":"Creation date (RFC 3339)."},"description":{"type":["string","null"],"description":"Description given at creation."},"expiredAt":{"type":["string","null"],"format":"date-time","description":"Expiry date (RFC 3339)."},"id":{"type":"string","description":"Service token ID."},"instigatorId":{"type":"string","description":"Identity that issued the token on the platform's side; `creatorUserId`, on reads,\nnames the member who created it."},"locationId":{"type":"string","description":"ID of the location the token is issued for."},"name":{"type":["string","null"],"description":"Name given at creation."},"productId":{"type":"string","description":"ID of the product the token is issued for."},"resourceId":{"type":["string","null"],"description":"`null` for a token created through the service-token creation route, whose\nrestriction to applications and add-ons is carried by the token itself."},"revocationId":{"type":"string","description":"Revocation ID of the token, accepted in place of its ID to read or revoke it."},"revokedAt":{"type":["string","null"],"format":"date-time","description":"Revocation date (RFC 3339), `null` while the token is not revoked."},"status":{"$ref":"#\/components\/schemas\/ServiceTokenStatus","description":"Lifecycle state of the token."},"tags":{"type":"array","items":{"type":"string"},"description":"Tags of the token; empty for one created through the service-token creation route."},"tenantId":{"type":"string","description":"The organisation the token belongs to, as a `tenant_\u2026` ID: the organisation ID with\n`tenant_` in place of its `orga_` prefix."},"tokenType":{"type":"string","description":"Kind of token; `SELF_SUSTAINED_ACCESS` for one created through the service-token\ncreation route."}}},"ServiceTokenRole":{"type":"string","description":"Role a service token holds in its organisation.","enum":["ADMIN","ACCOUNTING","DEVELOPER","MANAGER"]},"ServiceTokenStatus":{"type":"string","description":"Lifecycle state of a service token.","enum":["ACTIVE","EXPIRED","REVOKED"]},"SocketAddress":{"type":"object","description":"A network address: a host (IP address) and a port.","required":["host","port"],"properties":{"host":{"type":"string"},"port":{"type":"integer","format":"int32","minimum":0}},"additionalProperties":false},"SshKeyView":{"type":"object","description":"An SSH public key of the user: its name, the key itself and its fingerprint.","required":["name","key","fingerprint"],"properties":{"fingerprint":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"}}},"SsoDataView":{"type":"object","description":"What the add-on provider's statistics dashboard needs to sign the caller in: its URL and a short-lived macaroon. The macaroon is a bearer credential: keep it secret.","required":["url","macaroon"],"properties":{"macaroon":{"type":"string","description":"Serialised macaroon, minted for this request, signed with the provider's password\nand valid for 15 minutes."},"url":{"type":"string","description":"URL of the statistics dashboard to sign in to; the same for every provider."}}},"StandaloneNode":{"type":"object","description":"A standalone node of a cluster: a single node managed on its own, with its flavor, taints, labels and status.","required":["id","clusterId","name","flavor","taints","labels","status"],"properties":{"clusterId":{"type":"string","description":"Parent cluster ID"},"description":{"type":["string","null"],"description":"Optional description"},"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor","description":"Node flavor"},"id":{"type":"string","description":"Node ID (the standalone node group's id)"},"labels":{"type":"object","description":"Kubernetes labels","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"name":{"$ref":"#\/components\/schemas\/NodeGroupName","description":"Node name"},"status":{"$ref":"#\/components\/schemas\/NodeStatusType","description":"Node status"},"tag":{"type":["string","null"],"description":"Optional tag"},"taints":{"type":"array","items":{"$ref":"#\/components\/schemas\/KubernetesTaint"},"description":"Kubernetes taints"}}},"StorageConfigurationPolicies":{"type":"object","description":"One side of a namespace storage policy: a size limit and a duration limit. In a response, an absent limit means none is set.","properties":{"durationInMinutes":{"type":["integer","null"],"format":"int64","description":"Duration limit in minutes."},"sizeInBytes":{"type":["integer","null"],"format":"int64","description":"Size limit, in bytes. A retention size is applied in whole MiB, rounded down."}}},"StoragePolicies":{"type":"object","description":"Storage policies of a Pulsar namespace: its retention limits (`retentionPolicies`) and the thresholds past which data is offloaded to cold storage (`offloadPolicies`). In a response, an absent side means no limit is set.","properties":{"offloadPolicies":{"oneOf":[{"$ref":"#\/components\/schemas\/StorageConfigurationPolicies"},{"type":"null"}]},"retentionPolicies":{"oneOf":[{"$ref":"#\/components\/schemas\/StorageConfigurationPolicies"},{"type":"null"}]}}},"SummaryAddonView":{"type":"object","description":"An add-on in the account summary.","required":["id","name","realId","providerId","logoUrl","systemTags","customerTags"],"properties":{"customerTags":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"},"description":"Tags set by the owner."},"id":{"type":"string","description":"Add-on ID (`addon_\u2026`)."},"logoUrl":{"type":["string","null"],"description":"Logo URL of the provider; `null` when none."},"name":{"type":["string","null"],"description":"Name of the add-on."},"providerId":{"type":["string","null"],"description":"Add-on provider ID (e.g. `postgresql-addon`); `null` when none."},"realId":{"type":"string","description":"Real ID of the add-on (e.g. `postgresql_\u2026`)."},"systemTags":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"},"description":"Tags set by Clever Cloud."}}},"SummaryAppView":{"type":"object","description":"An application in the account summary.","required":["id","name","instanceType","instanceVariant","variantSlug","archived","homogeneous","state","commit","variantLogoUrl","systemTags","customerTags"],"properties":{"archived":{"type":["boolean","null"],"description":"Whether the application is archived."},"commit":{"type":["string","null"],"description":"Deployed commit; `null` when the application has never been deployed."},"customerTags":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"},"description":"Tags set by the owner."},"homogeneous":{"type":["boolean","null"],"description":"Whether a deployment stops the running instances before starting the new ones, instead\nof a zero-downtime deployment."},"id":{"type":"string","description":"Application ID (`app_\u2026`)."},"instanceType":{"type":["string","null"],"description":"Instance type (e.g. `node`)."},"instanceVariant":{"type":["string","null"],"description":"Name of the instance variant."},"name":{"type":["string","null"],"description":"Name of the application."},"state":{"type":["string","null"],"description":"State of the application."},"systemTags":{"type":"array","items":{"$ref":"#\/components\/schemas\/SemanticTag"},"description":"Tags set by Clever Cloud."},"variantLogoUrl":{"type":["string","null"],"description":"Logo URL of the variant."},"variantSlug":{"type":["string","null"],"description":"Slug of the variant."}}},"SummaryConsumerView":{"type":"object","description":"An OAuth consumer in the account summary.","required":["key","name","picture"],"properties":{"key":{"type":"string","description":"OAuth consumer key."},"name":{"type":["string","null"],"description":"Name of the consumer."},"picture":{"type":["string","null"],"description":"Picture URL; `null` when none."}}},"SummaryOrgView":{"type":"object","description":"An organisation in the account summary: the user's role in it and its products.","required":["id","name","avatar","role","applications","addons","consumers","providers","vatState","canPay","canSEPA","cleverEnterprise","emergencyNumber","isTrusted","contextFlags"],"properties":{"addons":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SummaryAddonView"},"description":"Add-ons of the organisation."},"applications":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SummaryAppView"},"description":"Applications of the organisation."},"avatar":{"type":["string","null"],"description":"Avatar URL; `null` when none."},"canPay":{"type":"boolean","description":"Whether the organisation can pay: `false` when its VAT number is invalid."},"canSEPA":{"type":"boolean","description":"Whether the organisation can pay by SEPA direct debit."},"cleverEnterprise":{"type":"boolean","description":"Whether the organisation is a Clever Enterprise customer."},"consumers":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SummaryConsumerView"},"description":"OAuth consumers of the organisation."},"contextFlags":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFlag"},"description":"Restrictions the organisation's partner imposes; empty for none."},"emergencyNumber":{"type":["string","null"],"description":"Emergency contact phone number; `null` when not set."},"id":{"type":"string","description":"Organisation ID (`orga_\u2026`); the user's personal space appears with their user ID (`user_\u2026`)."},"isTrusted":{"type":"boolean","description":"Whether Clever Cloud marks the organisation as trusted."},"name":{"type":["string","null"],"description":"Name of the organisation."},"providers":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SummaryProviderView"},"description":"Add-on providers the organisation owns."},"role":{"type":["string","null"],"description":"The user's role in the organisation as stored (e.g. `ADMIN`, `MANAGER`, `DEVELOPER`,\n`ACCOUNTING`); `null` when not set."},"vatState":{"type":"string","description":"VAT validation state of the organisation."}}},"SummaryProviderView":{"type":"object","description":"An add-on provider an organisation owns, in the account summary.","required":["id","name"],"properties":{"id":{"type":"string","description":"Add-on provider ID."},"name":{"type":["string","null"],"description":"Name of the provider; `null` when not set."}}},"SummaryUserView":{"type":"object","description":"The authenticated user in their account summary, with the products of their personal space.","required":["id","email","name","avatar","lang","admin","canSEPA","partnerId","partnerName","partnerConsoleUrl","contextFlags","applications","addons","consumers"],"properties":{"addons":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SummaryAddonView"},"description":"Add-ons of the personal space."},"admin":{"type":"boolean","description":"Whether the account has platform administrator rights."},"applications":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SummaryAppView"},"description":"Applications of the personal space."},"avatar":{"type":["string","null"],"description":"Avatar URL; `null` when none."},"canSEPA":{"type":"boolean","description":"Always `false` here; see each organisation's `canSEPA`."},"consumers":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SummaryConsumerView"},"description":"OAuth consumers of the personal space."},"contextFlags":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFlag"},"description":"Restrictions the account's partner imposes; empty for none."},"email":{"type":["string","null"],"description":"Primary email address."},"id":{"type":"string","description":"User ID (`user_\u2026`)."},"lang":{"type":["string","null"],"description":"Preferred language (e.g. `EN`, `FR`); `null` when not set."},"name":{"type":["string","null"],"description":"Name; `null` when not set."},"partnerConsoleUrl":{"type":["string","null"],"description":"URL of the partner's console; `null` for none."},"partnerId":{"type":["string","null"],"description":"ID of the partner the account belongs to; `null` for none."},"partnerName":{"type":["string","null"],"description":"Name of the partner; `null` for none."}}},"SummaryView":{"type":"object","description":"The authenticated user's account summary: the user and the organisations they belong to, each with its applications, add-ons and OAuth consumers.","required":["user","organisations"],"properties":{"organisations":{"type":"array","items":{"$ref":"#\/components\/schemas\/SummaryOrgView"},"description":"The organisations the user is a member of."},"user":{"$ref":"#\/components\/schemas\/SummaryUserView","description":"The authenticated user, with the applications, add-ons and OAuth consumers of their personal space."}}},"SuperNovaFlavor":{"type":"object","description":"The flavor a running instance uses: its name, memory, CPUs and price.","required":["name","mem","cpus","price"],"properties":{"cpus":{"$ref":"#\/components\/schemas\/Vcpus"},"mem":{"type":"integer","format":"int32"},"name":{"type":"string"},"price":{"type":"number","format":"double"}}},"SuperNovaInstanceView":{"type":"object","description":"A running instance of an application: its state, address, flavor, and the deployment and commit it runs.","required":["id","appId","state"],"properties":{"appId":{"type":"string"},"appPort":{"type":["integer","null"],"format":"int32"},"commit":{"type":["string","null"]},"creationDate":{"type":["integer","null"],"format":"int64"},"deployId":{"type":["string","null"]},"deployNumber":{"type":["integer","null"],"format":"int32"},"displayName":{"type":["string","null"]},"flavor":{"oneOf":[{"$ref":"#\/components\/schemas\/SuperNovaFlavor"},{"type":"null"}]},"id":{"type":"string"},"instanceNumber":{"type":["integer","null"],"format":"int32"},"ip":{"type":["string","null"]},"state":{"type":"string"}}},"TaintEffect":{"type":"string","description":"Effect of a Kubernetes taint, spelled as in the Kubernetes API: `NoSchedule`, `PreferNoSchedule` or `NoExecute`.","enum":["NoSchedule","PreferNoSchedule","NoExecute"]},"TcpRedirView":{"type":"object","description":"A TCP or UDP redirection of an application: the namespace and the port allocated in it.","required":["namespace","port"],"properties":{"namespace":{"type":"string"},"port":{"type":"integer","format":"int64"}}},"TopicView":{"type":"object","description":"A topic of a Pulsar namespace.","required":["name"],"properties":{"name":{"type":"string","description":"Full topic name (e.g. \"persistent:\/\/tenant\/ns\/topic\")"}}},"TopologyConfig":{"oneOf":[{"type":"object","required":["replicationFactor","flavor","topology"],"properties":{"flavor":{"type":"string","description":"Control-plane node flavor; `ALL_IN_ONE` accepts `S`, `M`, `L`, `XL`. Accepted case-insensitively.","enum":["S","M","L","XL"]},"replicationFactor":{"$ref":"#\/components\/schemas\/ClusterReplicationFactor"},"topology":{"type":"string","enum":["ALL_IN_ONE"]}}},{"type":"object","required":["replicationFactor","flavor","topology"],"properties":{"flavor":{"type":"string","description":"Control-plane node flavor; `DEDICATED_COMPUTE` accepts `XS`, `S`, `M`, `L`, `XL`. Accepted case-insensitively.","enum":["XS","S","M","L","XL"]},"replicationFactor":{"$ref":"#\/components\/schemas\/ClusterReplicationFactor"},"topology":{"type":"string","enum":["DEDICATED_COMPUTE"]}}},{"type":"object","required":["components","topology"],"properties":{"components":{"$ref":"#\/components\/schemas\/DistributedComponentsConfig"},"topology":{"type":"string","enum":["DISTRIBUTED"]}}}],"description":"Control-plane topology of a cluster, tagged by `topology`. `ALL_IN_ONE` and `DEDICATED_COMPUTE` take a `replicationFactor` (1 to 5) and a `flavor`: `S`, `M`, `L` or `XL` for `ALL_IN_ONE`, `XS`, `S`, `M`, `L` or `XL` for `DEDICATED_COMPUTE`; `DISTRIBUTED` takes a flavor (any) and a replication factor per component under `components`. The service configuration lists the same flavors per topology."},"TopologyConstraints":{"type":"object","description":"What a control-plane topology accepts: its flavors and its replication-factor bounds.","required":["topology","availableFlavors","replicationFactor"],"properties":{"availableFlavors":{"type":"array","items":{"$ref":"#\/components\/schemas\/NodeFlavor"},"description":"Flavors this topology accepts, sorted by ascending CPU count, then RAM."},"replicationFactor":{"$ref":"#\/components\/schemas\/ReplicationFactorConfig","description":"Replication-factor bounds, the same on every topology."},"topology":{"$ref":"#\/components\/schemas\/TopologyType","description":"The topology these constraints apply to."}}},"TopologyType":{"type":"string","description":"Control-plane topology: `ALL_IN_ONE` (control plane and workloads share the same VMs), `DEDICATED_COMPUTE` (control plane on dedicated VMs) or `DISTRIBUTED` (each control-plane component sized separately). Accepted case-insensitively.","enum":["ALL_IN_ONE","DEDICATED_COMPUTE","DISTRIBUTED"]},"UndrainedNode":{"allOf":[{"$ref":"#\/components\/schemas\/DrainOutcome","description":"Why the drain did not complete."},{"type":"object","required":["nodeId","name"],"properties":{"name":{"type":"string","description":"The Kubernetes node name."},"nodeId":{"type":"string","description":"The node id."}}}],"description":"A node an operation left undrained: still `DRAINING`, cordoned, with its VM running. Carries the node id and name, and the fields of its drain outcome (`outcome`, plus `pods`, `reason`, `attachments` or `detail` depending on it)."},"UrlView":{"type":"object","description":"A URL.","required":["url"],"properties":{"url":{"type":"string"}}},"UserView":{"type":"object","description":"A user's profile: identity, contact and postal details, account status, preferred multi-factor authentication and partner.","required":["id","emailValidated","oauthApps","admin","canPay","preferredMFA","hasPassword"],"properties":{"address":{"type":["string","null"]},"admin":{"type":"boolean"},"avatar":{"type":["string","null"]},"canPay":{"type":"boolean","description":"Whether the profile holds what paying requires: name, phone, full postal\naddress and a validated email."},"city":{"type":["string","null"]},"contextFlags":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFlag"},"description":"Restrictions the user's partner imposes; always present, empty when there are\nnone."},"country":{"type":["string","null"]},"creationDate":{"type":["integer","null"],"format":"int64","description":"Account creation date, in milliseconds since the Unix epoch."},"email":{"type":["string","null"]},"emailValidated":{"type":"boolean"},"hasPassword":{"type":"boolean"},"id":{"type":"string"},"lang":{"type":["string","null"]},"name":{"type":["string","null"]},"oauthApps":{"type":"array","items":{"type":"string"},"description":"Git hosting services the user has linked, such as `github`."},"partnerConsoleUrl":{"type":["string","null"]},"partnerId":{"type":["string","null"]},"partnerName":{"type":["string","null"]},"phone":{"type":["string","null"]},"preferredMFA":{"type":"string","description":"Preferred multi-factor authentication kind; `NONE` when none is configured."},"zipcode":{"type":["string","null"]}}},"Vcpus":{"type":"integer","format":"int32","description":"A number of virtual CPUs."},"Version":{"type":"string","description":"A Kubernetes version, as a `MAJOR.MINOR` (`1.35`) or `MAJOR.MINOR.PATCH` string."},"VersionsConfig":{"type":"object","description":"The Kubernetes versions the platform offers, and the one a cluster creation uses when it names none.","required":["available","default"],"properties":{"available":{"type":"array","items":{"$ref":"#\/components\/schemas\/Version"},"description":"Versions cluster creation and upgrade accept, newest first."},"default":{"$ref":"#\/components\/schemas\/Version","description":"Version a create payload gets when it names none."}}},"VhostView":{"type":"object","description":"A domain name routed to an application.","required":["fqdn"],"properties":{"fqdn":{"type":"string","description":"Domain name followed by its path prefix, or by `\/` when it has none, such as\n`example.com\/`."}}},"VmDataView":{"type":"object","description":"A VM of the cluster: its id, name and resources.","required":["id","name","resourcesSpec"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"resourcesSpec":{"$ref":"#\/components\/schemas\/ResourcesSpecView"}}},"WannabeAddonFeature":{"type":"object","description":"Feature the plans of an add-on provider can set: its name and the type of its value.","required":["name","type"],"properties":{"name":{"type":"string"},"type":{"type":"string"}}},"WannabeAddonPlan":{"type":"object","description":"Add-on plan to create or update: its name, slug, price and feature values.","required":["name","price"],"properties":{"features":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/WannabeAddonPlanFeature"}},"name":{"type":"string"},"price":{"type":"number","format":"double"},"slug":{"type":["string","null"]}}},"WannabeAddonPlanFeature":{"type":"object","description":"Value of one feature on an add-on plan: the feature name, the value as displayed and its machine-readable form.","required":["name"],"properties":{"computableValue":{"type":["string","null"]},"name":{"type":"string"},"value":{"type":["string","null"]}}},"WannabeAddonProvider":{"type":"object","description":"Add-on provider to register: its identifier, name and API settings.","required":["id"],"properties":{"api":{"oneOf":[{"$ref":"#\/components\/schemas\/WannabeAddonProviderApi"},{"type":"null"}]},"id":{"type":"string"},"name":{"type":["string","null"]}}},"WannabeAddonProviderApi":{"type":"object","description":"API settings of an add-on provider: its test and production endpoints, its SSO salt and its API password. `test` and `production` are objects carrying a `base_url` and an `sso_url`, not plain URLs.","properties":{"password":{"type":["string","null"]},"production":{"oneOf":[{"$ref":"#\/components\/schemas\/WannabeAddonProviderApiUrl"},{"type":"null"}]},"sso_salt":{"type":["string","null"]},"test":{"oneOf":[{"$ref":"#\/components\/schemas\/WannabeAddonProviderApiUrl"},{"type":"null"}]}}},"WannabeAddonProviderApiUrl":{"type":"object","description":"One API endpoint of an add-on provider: its base URL and its SSO URL. Both are optional; a member left out is stored as `null`.","properties":{"base_url":{"type":["string","null"]},"sso_url":{"type":["string","null"]}}},"WannabeAddonProviderInfos":{"type":"object","description":"Descriptive details of an add-on provider to update. Every field is optional: an omitted field keeps its value.","properties":{"analyticsId":{"type":["string","null"]},"canUpgrade":{"type":["boolean","null"]},"googlePlusName":{"type":["string","null"]},"logoUrl":{"type":["string","null"]},"longDesc":{"type":["string","null"]},"name":{"type":["string","null"]},"openInNewTab":{"type":["boolean","null"]},"shortDesc":{"type":["string","null"]},"status":{"type":["string","null"]},"supportEmail":{"type":["string","null"]},"twitterName":{"type":["string","null"]},"website":{"type":["string","null"]}}},"WannabeAddonProvision":{"type":"object","description":"Add-on to create: its name, provider, plan, region and provider-specific options.","required":["name","plan","providerId","region"],"properties":{"name":{"type":"string","description":"Add-on display name."},"options":{"type":"object","description":"Provider-specific options, passed to the provider as strings; `null` is read as\nno options.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"plan":{"type":"string","description":"Plan identifier."},"providerId":{"type":"string","description":"Provider ID (e.g., \"postgresql-addon\")."},"region":{"type":"string","description":"Zone name, such as `par`; `par` when absent or `null`, and `eu` and `us` read as\n`par` and `mtl`."}}},"WannabeApplication":{"type":"object","description":"Settings of an application to create or update: name, runtime, region, scaling, build and deployment options, linked repository and environment variables.","properties":{"applianceId":{"type":["string","null"],"description":"Identifier of the appliance whose repository the application deploys from."},"archived":{"type":["boolean","null"]},"branch":{"type":["string","null"]},"buildFlavor":{"type":["string","null"]},"cancelOnPush":{"type":["boolean","null"]},"deploy":{"type":["string","null"]},"description":{"type":["string","null"]},"env":{"description":"Environment variables of the application, as an object mapping each name to its\nvalue. A number or boolean value is stored as its text."},"favourite":{"type":["boolean","null"]},"forceHttps":{"type":["string","null"]},"homogeneous":{"type":["boolean","null"]},"instanceLifetime":{"type":["string","null"],"description":"Lifetime of the application's instances: `REGULAR`, `MIGRATION` or `TASK`."},"instanceType":{"type":["string","null"]},"instanceVariant":{"type":["string","null"]},"instanceVersion":{"type":["string","null"]},"maxFlavor":{"type":["string","null"]},"maxInstances":{"oneOf":[{"$ref":"#\/components\/schemas\/InstanceCount"},{"type":"null"}]},"minFlavor":{"type":["string","null"]},"minInstances":{"oneOf":[{"$ref":"#\/components\/schemas\/InstanceCount"},{"type":"null"}]},"name":{"type":"string","description":"Application name. Required on creation, optional on update."},"oauthApp":{"oneOf":[{"$ref":"#\/components\/schemas\/WannabeOauthApp","description":"Owner and name of the repository on that Git hosting service."},{"type":"null"}]},"oauthAppId":{"type":["string","null"],"description":"Identifier of the repository on that Git hosting service."},"oauthService":{"type":["string","null"],"description":"Git hosting service the application's repository is linked through, such as `github`."},"publicGitRepositoryUrl":{"type":["string","null"],"description":"URL of a public Git repository the application deploys from."},"separateBuild":{"type":["boolean","null"]},"shutdownable":{"type":["boolean","null"]},"stickySessions":{"type":["boolean","null"]},"tags":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/SemanticTag"}},"zone":{"type":["string","null"]}}},"WannabeAvatarSource":{"type":"object","description":"Where to take the organisation's new avatar from, when it is not uploaded as an image.","properties":{"source":{"type":["string","null"],"description":"`github` or `gravatar`; anything else (or absent) is an invalid source."}}},"WannabeBranch":{"type":"object","description":"The Git branch an application deploys from.","properties":{"branch":{"type":["string","null"],"description":"Branch name; `null` or absent sets the branch back to `master`."}}},"WannabeBuildFlavor":{"type":"object","description":"The flavor an application's builds run on.","properties":{"flavorName":{"type":["string","null"],"description":"Name of the build flavor."}}},"WannabeEmailHook":{"type":"object","description":"Request body to create or replace an email hook. On update, every field replaces the stored value.","required":["name"],"properties":{"events":{"type":["array","null"],"items":{"type":"string"},"description":"Event types the email hook receives: `ACCOUNT_CREATION`,\n`ACCOUNT_DELETION`, `ACCOUNT_EDITION`, `ADDON_CREATION`,\n`ADDON_DELETION`, `APPLICATION_CREATION`, `APPLICATION_DELETION`,\n`APPLICATION_EDITION`, `APPLICATION_REDEPLOY`, `APPLICATION_STOP`,\n`CLEVER_TOOLS_REQUEST`, `CREDITS_ADDED`, `DEPLOYMENT_ACTION_BEGIN`,\n`DEPLOYMENT_ACTION_END`, `DEPLOYMENT_FAIL`, `DEPLOYMENT_SUCCESS`,\n`GIT_PUSH`, `ORGANISATION_CREATION`, `ORGANISATION_DELETION`,\n`ORGANISATION_EDITION`, `ORGANISATION_USER_ADDITION`,\n`ORGANISATION_USER_DELETION`, or the event groups listed by\n`GET \/v2\/notifications\/info\/events`. Absent, `null`, `[]`, or a list\nholding `ALL` or `*`, mean every event; an unknown key is refused."},"name":{"type":"string","description":"Name of the email hook, unique for its owner; it must not be blank on\ncreation."},"notified":{"type":"array","items":{"$ref":"#\/components\/schemas\/NotificationTarget"},"description":"Recipients of the email hook; at least one on creation. An empty list\non update restores the owner's default recipients."},"scope":{"type":["array","null"],"items":{"type":"string"},"description":"IDs of the applications (`app_\u2026`) and add-ons (`addon_\u2026`) whose events\nthe email hook receives; each must belong to the owner. Absent, `null`,\n`[]`, `[\"ALL\"]` or `[\"*\"]` mean every event of the owner."}}},"WannabeEnvVar":{"type":"object","description":"An environment variable: a name and its value.","required":["name","value"],"properties":{"name":{"type":"string","description":"Variable name."},"value":{"type":"string","description":"Variable value."}}},"WannabeExposedEnv":{"type":"object","description":"Environment variables an application exposes to the applications that depend on it, as an object mapping each name to its value.","additionalProperties":{"type":"string"}},"WannabeExternalPeer":{"type":"object","description":"Input to add an external (customer-managed) peer to a network group.","required":["label","peerRole","publicKey","parentMember"],"properties":{"hostname":{"type":["string","null"],"description":"DNS hostname."},"ip":{"type":["string","null"],"description":"Public address (SERVER peers)."},"label":{"type":"string","description":"Human-readable label."},"parentEvent":{"type":["string","null"],"description":"Deployment event that created this peer, when any."},"parentMember":{"type":"string","description":"Parent member this external peer belongs to."},"peerRole":{"type":"string","description":"Peer role: CLIENT | SERVER"},"port":{"type":["integer","null"],"format":"int32","description":"Public port (SERVER peers)."},"publicKey":{"type":"string","description":"WireGuard public key (base64, required for external peers)."}}},"WannabeLogExport":{"type":"object","description":"An export to start. At least one of `logs` and `accesslogs` must be `true`, `since` must not be in the future, and `until` must be after `since`; a body breaking any of these answers 400. Both bounds are inclusive, to the millisecond, and judged on each line's own date: two adjacent exports share the lines dated on their boundary.","required":["since"],"properties":{"accesslogs":{"type":"boolean","description":"Include the access logs. At least one of `logs` and `accesslogs` must be `true`."},"archive":{"oneOf":[{"$ref":"#\/components\/schemas\/LogExportArchive","description":"The archive; defaulted per file format (`targz` for json\/csv, `zip` for\navro\/parquet). Only `targz` is produced today: any other archive answers 501."},{"type":"null"}]},"color":{"type":"boolean","description":"Keep the colours (ANSI escapes) of each log line's message; `false` strips\nthem, as the log stream's `color=false` does. `true` when absent.","default":true},"fileFormat":{"$ref":"#\/components\/schemas\/LogExportFileFormat","description":"The shape of each file in the archive; `json` when absent. Only `json` is\nproduced today: any other file format answers 501."},"logs":{"type":"boolean","description":"Include the application \/ add-on logs. At least one of `logs` and `accesslogs`\nmust be `true`."},"resourceIds":{"type":["array","null"],"items":{"type":"string"},"description":"The resources to export, 1 to 2000; absent = every resource of the organisation\nthat has logs to read, a deleted add-on whose logs are still retained included.\nEach is an application id (`app_\u2026`) or an add-on's real id (`postgresql_\u2026`,\n`mysql_\u2026`\u2026); an add-on id (`addon_\u2026`) is refused, so the export lists the ids\nasked as they were written.","maxItems":2000,"minItems":1},"since":{"type":"string","format":"date-time","description":"Start of the window, RFC 3339, not in the future."},"until":{"type":["string","null"],"format":"date-time","description":"End of the window, RFC 3339, after `since`; absent or in the future = now."}}},"WannabeMFACreds":{"type":"object","description":"A code confirming a multi-factor authentication enrolment, and whether to revoke the user's other tokens.","properties":{"code":{"type":["string","null"],"description":"The TOTP code, or a recovery code, as a string or a number. A missing code is\nrejected as an invalid code."},"revokeTokens":{"type":"boolean","description":"Revoke every other token of the user once the enrolment is confirmed,\nkeeping the one that made this request. Defaults to `false`."}}},"WannabeMember":{"type":"object","description":"Member to invite into the organisation, or member to update. `email` designates the person to invite; `role` is one of `ADMIN`, `MANAGER`, `DEVELOPER`, `ACCOUNTING` or `NONE`; `job` is a free-text job title.","properties":{"email":{"type":["string","null"]},"job":{"type":["string","null"]},"role":{"type":["string","null"]}}},"WannabeNamespace":{"type":"object","description":"A TCP or UDP redirection to create in a namespace. The platform allocates the port.","properties":{"namespace":{"type":["string","null"],"description":"Namespace to create the redirection in."},"sourcePort":{"type":["integer","null"],"format":"int64","description":"Ignored: the platform allocates the port."}}},"WannabeNetworkGroup":{"type":"object","description":"Input to create a network group.","properties":{"description":{"type":["string","null"],"description":"Optional description."},"id":{"type":["string","null"],"description":"Optional explicit ID; generated if absent."},"label":{"type":["string","null"],"description":"Human-readable label for the network group."},"members":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/WannabeNetworkgroupMember"},"description":"Initial members to add upon creation."},"ownership":{"oneOf":[{"$ref":"#\/components\/schemas\/Ownership","description":"Who the group belongs to; absent means a customer group."},{"type":"null"}]},"tags":{"type":["array","null"],"items":{"type":"string"},"description":"Semantic tags."}}},"WannabeNetworkgroupMember":{"type":"object","description":"Input to add a member to a network group. `domainName` is optional: when absent, it is derived from the configured DNS suffix as `<member>.m.<network-group><suffix>`, the name the network group DNS resolves. A provided value must end with a configured suffix, otherwise the request is rejected with the error code `clever.network-group.bad-request.invalid-domain-name`.","required":["id","kind"],"properties":{"domainName":{"oneOf":[{"$ref":"#\/components\/schemas\/NetworkGroupDomainName","description":"Domain name for WireGuard routing; derived from the configured DNS\nsuffix when absent."},{"type":"null"}]},"id":{"type":"string","description":"Member ID (application\/addon ID)."},"kind":{"type":"string","description":"Member kind: APPLICATION | ADDON | EXTERNAL | LOADBALANCER (any case)."},"label":{"type":["string","null"],"description":"Human-readable label."}}},"WannabeOAuth1Consumer":{"type":"object","description":"OAuth1 consumer to create or update. `name` and `description` are required and non-empty, and `rights` is required. `url` and `picture`, when given, must be absolute URLs with an `http`, `https`, `ftp`, `file` or `mailto` scheme (`url` is linked from the OAuth consent page), and `baseUrl` a URI reference. Any violation answers 400, naming each field.","properties":{"baseUrl":{"type":["string","null"]},"description":{"type":["string","null"]},"name":{"type":["string","null"]},"picture":{"type":["string","null"]},"rights":{"type":["object","null"],"description":"Rights to grant the consumer: known right keys in snake_case (such as\n`access_personal_information`) mapped to booleans. Required and non-empty.","additionalProperties":{"type":"boolean"},"propertyNames":{"type":"string"}},"url":{"type":["string","null"]}}},"WannabeOauthApp":{"type":"object","description":"A repository on a Git hosting service, identified by its owner and its name.","properties":{"name":{"type":["string","null"]},"owner":{"type":["string","null"]}}},"WannabeOrganisation":{"type":"object","description":"Details to create an organisation with, or to replace an organisation's details with. `name` (at most 128 characters) and `description` (at most 256) are required.","required":["name","description"],"properties":{"VAT":{"type":["string","null"]},"address":{"type":["string","null"]},"billingEmail":{"type":["string","null"]},"city":{"type":["string","null"]},"company":{"type":["string","null"]},"country":{"type":["string","null"]},"customerFullName":{"type":["string","null"]},"description":{"type":"string"},"name":{"type":"string"},"zipcode":{"type":["string","null"]}}},"WannabePassword":{"type":"object","description":"A password change: the current password, the new one, and whether to revoke the user's other OAuth1 access tokens.","required":["newPassword"],"properties":{"dropTokens":{"type":["boolean","null"],"description":"Revoke every other OAuth1 access token of the user, keeping the one that\nmade this request."},"newPassword":{"type":"string"},"oldPassword":{"type":["string","null"]}}},"WannabePeer":{"type":"object","description":"Input to add a peer to a network group. `ip` and `port` are the peer's public endpoint: a `SERVER` peer is reached at `ip:port` from outside the mesh, and `port` is also its WireGuard listen port. The caller never chooses the peer's mesh address: the network group allocates it.","required":["id","peerRole","peerKind","parentMember"],"properties":{"hostname":{"type":["string","null"],"description":"DNS hostname for this peer."},"hv":{"type":["string","null"],"description":"Hypervisor the peer runs on; required for `CLEVER` peers."},"id":{"type":"string","description":"Peer identifier."},"ip":{"type":["string","null"],"description":"Public address (SERVER peers)."},"label":{"type":["string","null"],"description":"Human-readable label."},"parentEvent":{"type":["string","null"],"description":"Deployment event that created this peer, when any."},"parentMember":{"type":"string","description":"Parent member this peer belongs to."},"peerKind":{"type":"string","description":"Peer kind: CLEVER | EXTERNAL"},"peerRole":{"type":"string","description":"Peer role: CLIENT | SERVER"},"port":{"type":["integer","null"],"format":"int32","description":"Public port (SERVER peers)."},"publicKey":{"type":["string","null"],"description":"WireGuard public key (base64)."}}},"WannabePlanChange":{"type":"object","description":"Target plan, region and version of an add-on plan change or migration. A missing or blank `planId` or `region` answers 400, checked once the add-on is found.","properties":{"planId":{"type":"string","description":"Target plan ID."},"region":{"type":"string","description":"Target region\/zone name (e.g., \"par\")."},"version":{"type":["string","null"],"description":"Add-on version (e.g., PostgreSQL version)."}}},"WannabeServiceToken":{"type":"object","description":"Service token to create in an organisation.","required":["name","role"],"properties":{"description":{"type":["string","null"],"description":"Description of the token purpose."},"name":{"type":"string","description":"Human-readable name for the service token (required)."},"resources":{"type":["array","null"],"items":{"type":"string"},"description":"Identifiers of the applications (`app_\u2026`) and add-ons (`addon_\u2026`) the token is\nrestricted to; absent or empty gives access to the whole organisation."},"role":{"$ref":"#\/components\/schemas\/ServiceTokenRole","description":"Role assigned to the service token within the organisation."},"ttl_seconds":{"type":["integer","null"],"format":"int64","description":"TTL in seconds. Default: 90 days (7776000). Max: 1 year (31536000)."}}},"WannabeStandaloneNode":{"type":"object","description":"Request body to create a standalone node in a cluster.","required":["name","flavor"],"properties":{"description":{"type":["string","null"],"description":"Optional description, at most 4096 characters, no NUL character","maxLength":4096,"pattern":"^[^\\x00]*$"},"flavor":{"$ref":"#\/components\/schemas\/NodeFlavor","description":"Node flavor (VM size)"},"labels":{"type":["object","null"],"description":"Kubernetes labels: a map from label key to label value (see each one's rule).","additionalProperties":{"$ref":"#\/components\/schemas\/LabelValue"},"propertyNames":{"type":"string","description":"A Kubernetes label key: an optional prefix (a lowercase DNS subdomain of at most 253 characters) followed by `\/`, then a name of 1 to 63 letters, digits, `.`, `_` or `-` that starts and ends with a letter or digit; at most 317 characters in all.","maxLength":317,"pattern":"^([a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?)*\/)?[A-Za-z0-9]([A-Za-z0-9._-]{0,61}[A-Za-z0-9])?$"}},"name":{"$ref":"#\/components\/schemas\/NodeGroupName","description":"Node name (kubernetes resource name format)"},"tag":{"type":["string","null"],"description":"Optional tag, at most 1024 characters, no NUL character","maxLength":1024,"pattern":"^[^\\x00]*$"},"taints":{"type":["array","null"],"items":{"$ref":"#\/components\/schemas\/KubernetesTaint"},"description":"Kubernetes taints"}}},"WannabeUser":{"type":"object","description":"Profile fields of the authenticated user to update. Only the fields present and not `null` are changed.","properties":{"address":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"lang":{"type":["string","null"]},"name":{"type":["string","null"]},"phone":{"type":["string","null"]},"zipcode":{"type":["string","null"]}}},"WannabeValue":{"type":"object","description":"The new value of an environment variable.","required":["value"],"properties":{"value":{"type":"string","description":"Value of the variable. A number or boolean is stored as its text; `null`, an\nobject or an array is rejected."}}},"WannabeWebhook":{"type":"object","description":"Request body to create or replace a webhook. On update, every field replaces the stored value.","required":["name"],"properties":{"events":{"type":["array","null"],"items":{"type":"string"},"description":"Event types the webhook receives: `ACCOUNT_CREATION`,\n`ACCOUNT_DELETION`, `ACCOUNT_EDITION`, `ADDON_CREATION`,\n`ADDON_DELETION`, `APPLICATION_CREATION`, `APPLICATION_DELETION`,\n`APPLICATION_EDITION`, `APPLICATION_REDEPLOY`, `APPLICATION_STOP`,\n`CLEVER_TOOLS_REQUEST`, `CREDITS_ADDED`, `DEPLOYMENT_ACTION_BEGIN`,\n`DEPLOYMENT_ACTION_END`, `DEPLOYMENT_FAIL`, `DEPLOYMENT_SUCCESS`,\n`GIT_PUSH`, `ORGANISATION_CREATION`, `ORGANISATION_DELETION`,\n`ORGANISATION_EDITION`, `ORGANISATION_USER_ADDITION`,\n`ORGANISATION_USER_DELETION`, or the event groups listed by\n`GET \/v2\/notifications\/info\/events`. Absent, `null`, `[]`, or a list\nholding `ALL` or `*`, mean every event; an unknown key is refused."},"name":{"type":"string","description":"Name of the webhook, unique for its owner; it must not be blank on\ncreation."},"scope":{"type":["array","null"],"items":{"type":"string"},"description":"IDs of the applications (`app_\u2026`) and add-ons (`addon_\u2026`) whose events\nthe webhook receives; each must belong to the owner. Absent, `null`,\n`[]`, `[\"ALL\"]` or `[\"*\"]` mean every event of the owner."},"urls":{"type":"array","items":{"$ref":"#\/components\/schemas\/WebhookUrl"},"description":"URLs the webhook calls; at least one on creation."}}},"WebhookUrl":{"type":"object","description":"A URL a webhook calls, and the format of the payload it sends there.","required":["url","format"],"properties":{"format":{"type":"string","description":"Format of the payload: `raw` for the event as JSON, or a message for `slack`, `gitter` or `flowdock`.","enum":["raw","slack","gitter","flowdock"]},"url":{"type":"string","description":"URL called with an HTTP `POST` for each matching event; credentials in\nit (`https:\/\/user:password@\u2026`) are sent as HTTP Basic authentication.\nOn creation and update it must be an `http` or `https` URL, and an IP\naddress written in it must not be private, loopback or link-local."}}},"WebhookView":{"type":"object","description":"A webhook of a user or an organisation: the URLs called when an event of its owner matches its scope and events. A webhook disabled after more than 50 failed calls within two hours is no longer matched to events, and replacing it does not re-enable it; this state is not shown.","required":["id","name","ownerId","scope","events","urls"],"properties":{"events":{"type":"array","items":{"type":"string"},"description":"Event types the webhook receives: event keys such as\n`DEPLOYMENT_SUCCESS`, event groups such as `META_DEPLOYMENT_RESULT`, or\n`[\"ALL\"]` for every event. `NOTIMPLEMENTED` stands for a stored key that\nis no longer known."},"id":{"type":"string","description":"ID of the webhook."},"name":{"type":"string","description":"Name of the webhook, unique for its owner."},"ownerId":{"type":"string","description":"ID of the user (`user_\u2026`) or the organisation (`orga_\u2026`) that owns the webhook."},"scope":{"type":"array","items":{"type":"string"},"description":"IDs of the applications (`app_\u2026`) and add-ons (`addon_\u2026`) whose events\nthe webhook receives; empty when it receives every event of its owner."},"urls":{"type":"array","items":{"$ref":"#\/components\/schemas\/WebhookUrl"},"description":"URLs called for each matching event, in order, with their format."}}},"WireguardEndpoint":{"oneOf":[{"type":"object","required":["ngIp","type"],"properties":{"ngIp":{"type":"string"},"type":{"type":"string","enum":["ClientEndpoint"]}}},{"type":"object","required":["ngTerm","publicTerm","type"],"properties":{"ngTerm":{"$ref":"#\/components\/schemas\/SocketAddress"},"publicTerm":{"$ref":"#\/components\/schemas\/SocketAddress"},"type":{"type":"string","enum":["ServerEndpoint"]}}}],"description":"Where a peer sits in the mesh, told apart by `type`. A `ClientEndpoint` has its mesh address (`ngIp`); a `ServerEndpoint` also listens on `ngTerm` (mesh address and WireGuard port) and is reached from outside the mesh on `publicTerm`."},"addonId":{"type":"string","description":"Prefixed identifier with 'addon' prefix"},"appId":{"type":"string","description":"Prefixed identifier with 'app' prefix"},"cellarId":{"type":"string","description":"Prefixed identifier with 'cellar' prefix"},"elasticsearchId":{"type":"string","description":"Prefixed identifier with 'elasticsearch' prefix"},"matomoId":{"type":"string","description":"Prefixed identifier with 'matomo' prefix"},"metabaseId":{"type":"string","description":"Prefixed identifier with 'metabase' prefix"},"mysqlId":{"type":"string","description":"Prefixed identifier with 'mysql' prefix"},"ngId":{"type":"string","description":"Prefixed identifier with 'ng' prefix"},"otoroshiId":{"type":"string","description":"Prefixed identifier with 'otoroshi' prefix"},"postgresqlId":{"type":"string","description":"Prefixed identifier with 'postgresql' prefix"},"pulsarId":{"type":"string","description":"Prefixed identifier with 'pulsar' prefix"},"redisId":{"type":"string","description":"Prefixed identifier with 'redis' prefix"},"userId":{"type":"string","description":"Prefixed identifier with 'user' prefix"}},"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer","description":"A token sent as `Authorization: Bearer <token>`: an API token, a service token, or a Biscuit a module signs. The server tells them apart."},"oauth1":{"type":"apiKey","in":"header","name":"Authorization","description":"OAuth 1.0a signed request: an `Authorization: OAuth oauth_consumer_key=\"\u2026\", oauth_token=\"\u2026\", oauth_signature_method=\"\u2026\", oauth_signature=\"\u2026\", \u2026` header signed with the consumer and token secrets. This is the credential the platform's OAuth flow issues to users."}}},"tags":[{"name":"Products","description":"Product catalogue"},{"name":"Payments","description":"Billing details of organisations and personal spaces"},{"name":"Users","description":"The authenticated user's account and credentials, and other users' public details"},{"name":"Instances","description":"Application and add-on instances"},{"name":"Organisations","description":"Organisation management"},{"name":"Applications","description":"Application management"},{"name":"Add-ons","description":"Add-on management"},{"name":"Events","description":"Platform event streaming"},{"name":"Notifications","description":"Webhook and email hook notification management"},{"name":"Logs","description":"Log retrieval and SSE streaming"},{"name":"ConfigProvider","description":"ConfigProvider add-on provider"},{"name":"Matomo","description":"Matomo analytics add-on provider"},{"name":"Metabase","description":"Metabase add-on provider"},{"name":"NetworkGroups","description":"WireGuard-based private network group management"},{"name":"Kubernetes","description":"Kubernetes cluster management"},{"name":"Otoroshi","description":"Otoroshi API gateway add-on provider"},{"name":"Keycloak","description":"Keycloak IAM\/SSO add-on provider"},{"name":"LoadBalancerInfo","description":"Load balancers serving an application or an add-on"},{"name":"PostgreSQL","description":"PostgreSQL add-on provider"},{"name":"Redis","description":"Redis add-on provider"},{"name":"MySQL","description":"MySQL add-on provider"},{"name":"Elasticsearch","description":"Elasticsearch add-on provider"},{"name":"Jenkins","description":"Jenkins add-on provider"},{"name":"Auth","description":"Authentication and token issuance"},{"name":"Products","description":"Product and instance management"},{"name":"Materia","description":"Materia KV add-on provider"},{"name":"Pulsar","description":"Pulsar messaging add-on provider"},{"name":"Auth","description":"Authentication and OAuth"},{"name":"GitHub","description":"Linked GitHub account"},{"name":"Zones","description":"Deployment zone listing"}],"externalDocs":{"url":"https:\/\/www.clever.cloud\/developers\/api\/","description":"Clever Cloud API documentation"},"x-tagGroups":[{"name":"Accounts & organisations","tags":["GitHub","Organisations","Users"]},{"name":"Authentication & access","tags":["Auth"]},{"name":"Applications & deployment","tags":["Applications","Instances","Zones"]},{"name":"Products","tags":["Add-ons","Products"]},{"name":"Databases & storage","tags":["Elasticsearch","Materia","MySQL","PostgreSQL","Pulsar","Redis"]},{"name":"Managed services","tags":["ConfigProvider","Jenkins","Keycloak","Matomo","Metabase","Otoroshi"]},{"name":"Compute & Kubernetes","tags":["Kubernetes"]},{"name":"Networking","tags":["LoadBalancerInfo","NetworkGroups"]},{"name":"Observability","tags":["Events","Logs","Notifications"]},{"name":"Billing","tags":["Payments"]}]}