Read a tenant
GET
/v1/system/tenants/{tenantId}
const url = 'https://example.com/v1/system/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/system/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Its state, switch, image prefix and dates. Takes system:tenants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The tenant.
Media typeapplication/json
A tenant, as the operator sees it: never its content.
object
Example
{ "state": "active"}Missing / malformed / expired / revoked bearer token.
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}A tenant’s key or session (system-principal-required), or a system key without system:tenants (system-scope-missing).
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No tenant with that id, or a purged one (tenant-not-found).
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
PATCH /v1/system/tenants/{tenantId}: Rename a tenantGET /v1/system/tenants: List tenantsPOST /v1/system/tenants: Create a tenantPOST /v1/system/tenants/{tenantId}/close: Close a tenant- Kindgi 0.3.0
- Error code
authz-backend-unavailable - Error code
database-busy - Error code
system-principal-required - Error code
system-scope-missing - Error code
tenant-not-found - Every error code