[serve] Add delete_backend call (#8252)

This commit is contained in:
Edward Oakes
2020-04-30 13:10:39 -05:00
committed by GitHub
parent c593fb09b7
commit 43be73e4cf
6 changed files with 141 additions and 23 deletions
+8
View File
@@ -157,6 +157,14 @@ Once we've done that, we can now query our endpoint via HTTP (we use `requests`
import requests
print(requests.get("http://127.0.0.1:8000/-/routes", timeout=0.5).text)
To delete a backend, we can use `serve.delete_backend`.
Note that the backend must not be use by any endpoints in order to be delete.
Once a backend is deleted, its tag can be reused.
.. code-block:: python
serve.delete_backend("simple_backend")
Configuring Backends
~~~~~~~~~~~~~~~~~~~~