Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

TenantService

Nikos Vasilakis edited this page Nov 13, 2015 · 2 revisions

Overview

The tenant service exposes a REST API to manage tenants in Xenon. Tenants can also be nested by specifying a parentLink so that a "super" tenant can manage multiple tenants.

Authorization

Service resources can refer to a specific tenant using a tenantLink field in the resource PODO, for example:

public static class ServiceFooState extends ServiceDocument {
    public String tenantLink;
}

The authorization service can then filter out resources with a tenant role using a query on the tenantLink field. See this page for more details on authn/authz.

REST API

URI Path

/core/tenants

POST

TenantState

{
   "id": <id>
   "name": <name>
}

Creates a new tenant with the specified ID and name. If ID is not set, the system automatically generates a random UUID.

GET

Retrieves tenant information.

PATCH

TenantState

{
   "name": <name>
}

Modifies an existing tenant. Tenant ID cannot be modified.

Clone this wiki locally