Public API #
The Kuzzle PaaS backend exposes Kuzzle controllers to manage organizations, projects, environments and applications.
You can call the API with any Kuzzle SDK:
await kuzzle.query({
controller: 'org-environment',
action: 'list',
organizationId: 'paas-org-my-company',
projectId: 'my-project'
});The same actions are also exposed as HTTP routes. The route paths documented in this section are relative to your Kuzzle PaaS API endpoint.
Authentication #
Most actions require an authenticated Kuzzle user. Send the JWT returned by the authentication flow with your SDK or as a bearer token when using HTTP.
See Authentication.
Main resources #
Resource hierarchy #
Organization
+-- Project
+-- Environment
+-- ApplicationAn organization is the top-level tenant. A project belongs to one organization. An environment belongs to one project. An application belongs to one environment.
Common conventions #
organizationIdis the organization tenant index, for examplepaas-org-my-company.projectIdis the project (soft tenant) identifier inside the organization, for examplemy-project.environmentIdis the environment name, for examplestagingorproduction.applicationIdis the application_id, for exampleapiorwebapp.- Most scalar parameters (names, ids, flags) are passed as query parameters over HTTP and as top-level
queryarguments with the SDK. Structured payloads (an application definition, an image to deploy) are passed in the requestbody. - Long-running operations may return an acknowledgement (for example
"creating"or"deleted") before the platform has finished provisioning or deleting external resources. - The API returns plain domain objects for organization, project, environment and application resources.
Public controller summary #
| Controller | Purpose |
|---|---|
organization | Manage organizations, their members and roles, invitations, machine identities, and the projects they own. |
org-environment | Create, update, refresh, enable, disable and delete environments, and manage their monitoring, alerts and Keycloak realm. |
org-application | Create, update, deploy, enable, disable and delete applications, and read their deployable image versions and runtime status. |
org-apikey | Issue and revoke scoped API keys for a project's registry access. |
registry | Resolve a caller's registry access from an API key (used by the private package registry). |
sso | Generate a Keycloak logout URL. |
Transitional: the
legacy-deploycontroller re-serves the deploy and read routes expected bypaas-action@<=1.2.2during the migration to the organizations model. It will be removed in a future release; new integrations should use theorg-applicationcontroller.