Read a kept repo's state
const url = 'https://example.com/v1/system/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/kept-repo';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/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/kept-repo \ --header 'Authorization: Bearer <token>'A project’s kept repo, as the runtime records it: live, deleted, moved, held, erasure-requested or purged, and since when. Takes system:kept-repos:erase, on a runtime serving many tenants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Its state.
A kept repo’s state, as the runtime records it.
object
Example
{ "state": "live"}Missing / malformed / expired / revoked bearer token.
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:kept-repos:erase (system-scope-missing). On a runtime serving one tenant, any system key (system-key-scope-not-served, or system-scope-missing for one holding only the scopes it serves).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No tenant with that id, or a purged one (tenant-not-found); or a project the runtime has no record of (project-not-found).
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.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
GET /v1/system/tenants: List tenantsPOST /v1/system/tenants: Create a tenantGET /v1/system/tenants/{tenantId}: Read a tenantPATCH /v1/system/tenants/{tenantId}: Rename a tenant- Error code
authz-backend-unavailable - Error code
database-busy - Error code
project-not-found - Error code
system-key-scope-not-served - Error code
system-principal-required - Error code
system-scope-missing - Error code
tenant-not-found - Every error code