Tenant
Retrieve a list of tenants and their details.
Bearer authentication
Include soft-deleted tenants in the response when true.
falseFilter tenants by name
Filter tenants by alias
Executed successfully.
The id of the tenant.
1001The universally unique identifier of the tenant.
The internal system name of the tenant.
The name of the tenant as shown to users within the tenant.
An optional alias for the tenant.
The current status of the tenant. Possible values:
- Creating
- Failed
- Updating
- Deleted
- Deleting
- Ready
The date and time when the tenant was created.
The date and time when the tenant was last updated.
The signer details for the tenant's EULA (End User License Agreement).
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/tenants HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"name": "example",
"displayName": "Example",
"alias": "example-alias",
"status": "Ready",
"tenantId": 123,
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-02T00:00:00Z",
"deletedAt": null
}
]Bearer authentication
The name of the tenant.
namePattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$An optional alias for the tenant. Must be unique across all tenant names and aliases.
tenant-aliasPattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$The email of the tenant's admin user.
first@run.aiPattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$The password for the tenant's admin user. Must contain at least 1 special character, 1 uppercase letter, 1 lowercase letter, 1 digit, and be at least 8 characters long.
The role assigned to the tenant's admin user. Possible value: System administrator.
Created
additional data for tenant creation
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
POST /api/v1/tenants HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 460
{
"name": "name",
"alias": "tenant-alias",
"email": "first@run.ai",
"password": "text",
"contractType": "normal",
"role": "System administrator",
"metricStore": {
"read": {
"url": "http://mimir-nginx.mimir-test.svc:80/api/v1/query",
"auth": {
"basic": {
"username": "text",
"password": "text"
}
},
"headers": {
"X-Scope-OrgID": "id"
}
},
"write": {
"url": "http://mimir-nginx.mimir-test.svc:80/api/v1/query",
"auth": {
"basic": {
"username": "text",
"password": "text"
}
},
"headers": {
"X-Scope-OrgID": "id"
}
}
}
}{
"tenant": {
"id": 1,
"name": "example",
"displayName": "Example",
"status": "Ready",
"tenantId": 123,
"eulaSigningUser": {
"email": "user@tenant",
"date": "2020-01-01T00:00:00Z",
"ip": "192.168.10.210",
"contract_type": "normal"
},
"created_at": "2020-01-01T00:00:00Z",
"updated_at": "2020-01-02T00:00:00Z",
"deleted_at": null
},
"additionalData": {
"tenantDomain": "tenant.test.run.ai",
"customerUser": {
"user@tenant": "Abc!23"
}
}
}Bearer authentication
The id of the tenant to retrieve
Executed successfully.
The id of the tenant.
1001The universally unique identifier of the tenant.
The internal system name of the tenant.
The name of the tenant as shown to users within the tenant.
An optional alias for the tenant.
The current status of the tenant. Possible values:
- Creating
- Failed
- Updating
- Deleted
- Deleting
- Ready
The date and time when the tenant was created.
The date and time when the tenant was last updated.
The signer details for the tenant's EULA (End User License Agreement).
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/tenants/{tenantId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"name": "example",
"displayName": "Example",
"alias": "example-alias",
"status": "Ready",
"tenantId": 123,
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-02T00:00:00Z",
"deletedAt": null
}Bearer authentication
The id of the tenant to retrieve
Boolean indicator for soft/hard delete
tenant uid that was deleted.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v1/tenants/{tenantId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"uid": "text"
}Update tenant properties such as alias.
Bearer authentication
The id of the tenant to retrieve
An optional alias for the tenant. Must be unique across all tenant names and aliases.
tenant-aliasPattern: ^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$Tenant updated successfully.
The id of the tenant.
1001The universally unique identifier of the tenant.
The internal system name of the tenant.
The name of the tenant as shown to users within the tenant.
An optional alias for the tenant.
The current status of the tenant. Possible values:
- Creating
- Failed
- Updating
- Deleted
- Deleting
- Ready
The date and time when the tenant was created.
The date and time when the tenant was last updated.
The signer details for the tenant's EULA (End User License Agreement).
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
PATCH /api/v1/tenants/{tenantId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"alias": "tenant-alias"
}{
"id": 1,
"name": "example",
"displayName": "Example",
"alias": "example-alias",
"status": "Ready",
"tenantId": 123,
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-02T00:00:00Z",
"deletedAt": null
}Last updated