Skip to main content

Create a deployment from a realm export.

POST 

/clusters/:id/deployments/import

Creates a new deployment on this cluster from an exported Keycloak realm JSON file. The realm is imported asynchronously; poll the returned deployment until its state leaves PENDING. Importing users is not supported — the file must not contain a users array. The cluster must be ACTIVE, and the number of deployments is limited by the cluster's tier.

Request

Responses

Deployment created; import started. The response has no body; Location holds the new deployment's URL, whose last path segment is its ID.

Response Headers
    Location

    URL of the created deployment.