mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-28 10:30:40 +00:00
mgmt_api: expose reset API
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user