Tenant Service
Tenants
The Tenant service can be used to manage the tenants in TSB. Tenants can be seen as organization units and line of business that have a set of resources. Every resource in TSB belongs to a tenant, and users can be assigned to tenants to get access to those resources (such as workspaces, traffic settings, etc). This service provides methods to manage the tenants that are available in the platform.
CreateTenant
rpc CreateTenant (tetrateio.api.tsb.v2.CreateTenantRequest) returns (tetrateio.api.tsb.v2.Tenant)
Requires CreateTenant
Create a new tenant in the platform that will be the home for a set of resources.
GetTenant
rpc GetTenant (tetrateio.api.tsb.v2.GetTenantRequest) returns (tetrateio.api.tsb.v2.Tenant)
Requires ReadTenant
Get the details of an existing tenant.
UpdateTenant
rpc UpdateTenant (tetrateio.api.tsb.v2.Tenant) returns (tetrateio.api.tsb.v2.Tenant)
Requires WriteTenant
Modify the detaiuls of the given tenant.
ListTenants
rpc ListTenants (tetrateio.api.tsb.v2.ListTenantsRequest) returns (tetrateio.api.tsb.v2.ListTenantsResponse)
List all tenants that are available.
DeleteTenant
rpc DeleteTenant (tetrateio.api.tsb.v2.DeleteTenantRequest) returns (google.protobuf.Empty)
Requires DeleteTenant
Delete a tenant from the paltform. Deleting a tenant will recursively delete all resources attached to the tenant, so use with caution. It will delete all workspaces and all settings that have been created in that tenant, so this operation should be done carefully, when it's safe to do so.
CreateTenantRequest
Request to create a tenant.
Field | Description | Validation Rule |
parent | string | – |
name | string | string = { |
tenant | tetrateio.api.tsb.v2.Tenant | message = { |
DeleteTenantRequest
Request to delete a tenant.
Field | Description | Validation Rule |
fqn | string | string = { |
GetTenantRequest
Request to retrieve a tenant.
Field | Description | Validation Rule |
fqn | string | string = { |
ListTenantsRequest
Request to list tenants.
Field | Description | Validation Rule |
parent | string | – |
ListTenantsResponse
List of available tenants.
Field | Description | Validation Rule |
tenants | List of tetrateio.api.tsb.v2.Tenant | – |
SyncTenantRequest
Request to synchronize a set of users and teams to TSB.
Field | Description | Validation Rule |
fqn | string | string = { |
sourceType | tetrateio.api.tsb.v2.SourceType | – |
users | List of tetrateio.api.tsb.v2.SyncTenantRequest.SyncUser | – |
teams | List of tetrateio.api.tsb.v2.SyncTenantRequest.SyncTeam | – |
SyncTeam
Information of a team as synchronized from the team source. This differs slightly from a TCC user since the fields here are raw info that does not have the context of the TCC hierarchy.
Field | Description | Validation Rule |
id | string = { | |
description | – | |
memberUserIds | List of string | – |
memberGroupIds | List of string | – |
SyncUser
Information of a user as synchronized from the team source. This differs slightly from a TCC user since the fields here are raw info that does not have the context of the TCC hierarchy.
Field | Description | Validation Rule |
id | string = { | |
description | – | |
– |
SyncTenantResponse
Details about the user and team synchronization operation.
Field | Description | Validation Rule |
failedUsers | tetrateio.api.tsb.v2.SyncTenantResponse.FailedIds | – |
failedTeams | tetrateio.api.tsb.v2.SyncTenantResponse.FailedIds | – |
FailedIds
Details of the entities (users/teams) taht failed to be synchronized.
Field | Description | Validation Rule |
removal | List of string | – |
addition | List of string | – |
update | List of string | – |