Import Tenant Database
This request starts the import of a tenant database.
The import result is written to the tenant log
Resource
POST /tenants/<OID>/import
Where OID
is the database ID of the tenant (the databaseId field).
Parameters
None
Payload
The name of the database image to be imported.
The location of the image is resolved as follows:
-
if a backup schedule named initial_database exists then the location is read from that schedule.
-
if no schedule was found then the directory /usr/xelion/XCC/initdb is used.
Response
None
Context
Authorization |
Master |
Configuration |
Multi-tenant |
Errors
HTTP code | Xelion code | Description |
---|---|---|
400 |
10062 |
The tenant is active and must be stopped first. |
10063 |
Not the master tenant. |
|
10200 |
The database image name is missing. |
|
10203 |
The database image file wasn’t found. |
|
404 |
10060 |
No multi-tenant configuration. |
10100 |
No tenant with the specified ID exists. |
Example
Request
POST https://xelion.nl/api/v1/master/tenants/1/import
Payload
"db_image_20170211.dmp"