GeolinQ
Support Portal

CreateTenant

Operation to create a new tenant under the root tenant. The operation CreateTenant is only allowed on the root tenant, because a child tenant does not contain tenants.

Element Required Description
TenantClass No Specifies the tenant class. GlTenant is the default
Properties Yes Start element for tenant properties
» Name Yes Unique name property of the tenant
» Description No Description property of the tenant
Administrator No Start element for administrator account. Central user management from the root tenant is assumed when no administrator account is created.
» Username Yes Username of the administrator
» Email No Optional email address of the administrator
» Password Yes Password for the administrator account
TenantURL Yes Start element for the URL of the tenant GeolinQ portal.
» Host Yes Hostnam of the tenant for example organisation.example.com
» Path No Additional path afer the host name
License No File name for the license file in ZIP archive
MapPosition No Default map position in the tenant. When no map position is specified the map position of the root tenant is used.
» BaseLayer No Baselayer of the map. Possible value are OSM for Open Street Map of BRT for the Dutch standard map.
» CRS No Coordinate system as EPSG code should be specified when no base layer is specified.
» DisplayCRS Yes Coordinate system as EPSG code should be specified for display purposes.
» PosX Yes X Coordinate for center position of the map.
» PosY Yes Y Coordinate for center position of the map.
» MapScale Yes Map scale of the map.
Operations No Optional tenant specific operations on the created tenant.

The element Operations contains the operations like for example ImportDatasource for the tenant. The CreateTenant operation will fork a new task, when the child tenant is created, to execute the script between Operations elements.

Example of the CreateTenant operation:

<CreateTenant>
  <TenantClass>MyTenantClass</TenantClass>
  <Properties>
    <Name>MyTenantName</Name>
  </Properties>
  <Administrator>
    <Username>Adminstrator</Username>
    <Email>administrator@example.com</Email>
    <Password>Secret</Password>
  </Administrator>
  <TenantURL>
    <Host>portal.example.com</Host>
    <Path>/adminportal/</Path>
  </TenantURL>
  <License>license.txt</License>
  <Operations>
    <ImportDatasource><FileName>datasource.xml</FileName></ImportDatasource>
  </Operations>
</CreateTenant>