mgmt_api: expose reset API

This commit is contained in:
Christian Schwarz
2024-01-11 11:31:15 +00:00
parent 7b1ffab269
commit e3fa914252

View File

@@ -221,4 +221,13 @@ impl Client {
.await
.map_err(Error::ReceiveBody)
}
pub async fn tenant_reset(&self, tenant_id: TenantId) -> Result<()> {
let uri = format!("{}/v1/tenant/{}/reset", self.mgmt_api_endpoint, tenant_id);
self.request(Method::POST, &uri, ())
.await?
.json()
.await
.map_err(Error::ReceiveBody)
}
}