include timeline ids in tenant details response

This commit is contained in:
Christian Schwarz
2023-12-13 14:03:12 +00:00
parent fae3e01522
commit d2d1432a65
4 changed files with 34 additions and 6 deletions

View File

@@ -64,6 +64,18 @@ impl Client {
resp.json().await.map_err(Error::ReceiveBody)
}
pub async fn tenant_details(
&self,
tenant_id: TenantId,
) -> Result<pageserver_api::models::TenantDetails> {
let uri = format!("{}/v1/tenant/{tenant_id}", self.mgmt_api_endpoint);
self.get(uri)
.await?
.json()
.await
.map_err(Error::ReceiveBody)
}
pub async fn list_timelines(
&self,
tenant_id: TenantId,