skycloak_create_realm_export
Export a Keycloak realm to an encrypted archive. Provide an encryption password, then poll the export status until completion to retrieve the file.
Instructions
Export a Keycloak realm to an encrypted archive. Asynchronous: poll skycloak_get_realm_export until status is 'completed'. The archive is always encrypted, so encryption_password is required, and the same password is needed to import it again. This is a realm export (one realm's configuration); skycloak_create_export is the separate whole-cluster database export.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cluster_id": "<cluster_id>",
"realm": "<realm>",
"encryption_password": "<encryption_password>"
},
"name": "skycloak_create_realm_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | the realm to export | |
| cluster_id | Yes | the cluster ID | |
| encryption_password | Yes | password used to encrypt the archive; required, and needed again to import it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| realm | Yes | ||
| scope | Yes | ||
| status | Yes | ||
| progress | Yes | ||
| cluster_id | Yes | ||
| created_at | No | ||
| expires_at | No | ||
| completed_at | No | ||
| download_url | No | ||
| error_message | No | ||
| source_version | No | ||
| sha256_checksum | No |