Tenant Manager API
Create a new tenant
id | string <uuid> A UUID identifying this attribute | ||||||||
name required | string[a-z][a-z0-9_]{0,29}[a-z0-9] Tenant name | ||||||||
description | string Tenant description | ||||||||
type | string (Tenant Type Schema) Default: "default" Enum: "default" "virtual" Tenant type | ||||||||
secure | boolean The flag shows whether the particular tenant is secure or not | ||||||||
Array of objects (Tenant Attribute Schema) List of tenant attributes | |||||||||
Array
| |||||||||
object (Metadata Schema) Metadata about creation and changes to records, provided by the server (client should not provide) | |||||||||
|
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "type": "default",
- "secure": true,
- "attributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "type": "default",
- "secure": true,
- "attributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
Get tenants by query
query | string A CQL query string with search conditions. |
offset | integer >= 0 Default: 0 Skip over a number of elements by specifying an offset value for the query. |
limit | integer [ 0 .. 500 ] Default: 10 Limit the number of elements returned in the response. |
{- "tenants": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "type": "default",
- "secure": true,
- "attributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "totalRecords": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "type": "default",
- "secure": true,
- "attributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
Update a tenant
id required | string <uuid> Entity id |
id | string <uuid> A UUID identifying this attribute | ||||||||
name required | string[a-z][a-z0-9_]{0,29}[a-z0-9] Tenant name | ||||||||
description | string Tenant description | ||||||||
type | string (Tenant Type Schema) Default: "default" Enum: "default" "virtual" Tenant type | ||||||||
secure | boolean The flag shows whether the particular tenant is secure or not | ||||||||
Array of objects (Tenant Attribute Schema) List of tenant attributes | |||||||||
Array
| |||||||||
object (Metadata Schema) Metadata about creation and changes to records, provided by the server (client should not provide) | |||||||||
|
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "type": "default",
- "secure": true,
- "attributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "type": "default",
- "secure": true,
- "attributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
Retrieve list of available tenant attributes by tenant id
tenantId required | string <uuid> Tenant id |
query | string A CQL query string with search conditions. |
offset | integer >= 0 Default: 0 Skip over a number of elements by specifying an offset value for the query. |
limit | integer [ 0 .. 500 ] Default: 10 Limit the number of elements returned in the response. |
{- "tenantAttributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "totalRecords": 0
}
Create or replace tenant-attributes associated with the specified tenant. Idempotent operation
tenantId required | string <uuid> Tenant id |
required | Array of objects (Tenant Attribute Schema) List of tenant attributes | ||||||||
Array
| |||||||||
totalRecords | integer |
{- "tenantAttributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "totalRecords": 0
}
{- "tenantAttributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
], - "totalRecords": 0
}
Retrieve tenant attribute by id
tenantId required | string <uuid> Tenant id |
id required | string <uuid> Entity id |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
Update tenant attribute
tenantId required | string <uuid> Tenant id |
id required | string <uuid> Entity id |
id | string <uuid> A UUID identifying this attribute | ||||||||
key required | string Key for this attribute | ||||||||
value required | string Value for this attribute | ||||||||
object (Metadata Schema) Metadata about creation and changes to records, provided by the server (client should not provide) | |||||||||
|
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "value": "string",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "modifiedBy": "07ff0787-1af5-4fc4-9832-7aaeaa962a5e"
}
}