Official Plugins (Kuzzle v2.x)
Multi Tenancy v1.x
2

exists #

Returns true if the tenant exists


Query Syntax #

HTTP #

URL: http://kuzzle:7512/_/multi-tenancy/tenants/:group/:name
Method: GET

Other protocols #

{
  "controller": "multi-tenancy/tenant",
  "action": "exists",

  "group": "teacher",
  "name": "liia"
}

Arguments #

  • group: Tenant group
  • name: Tenant name

Response #

Returns an object containing the following properties:

  • index: name of the existing index
  • profiles: list of existing profiles
  • collections: list of existing collections
{
  "status": 200,
  "error": null,
  "action": "exists",
  "controller": "multi-tenancy/tenant",
  "requestId": "<unique request identifier>",
  "result": {
    "exists": true
  }
}