prefect.server.api.admin
Routes for admin-level interactions with the Prefect REST API.
clear_database(db=Depends(provide_database_interface), confirm=Body(False, embed=True, description='Pass confirm=True to confirm you want to modify the database.'), response=None)
async
Clear all database tables without dropping them.
Source code in src/prefect/server/api/admin.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
create_database(db=Depends(provide_database_interface), confirm=Body(False, embed=True, description='Pass confirm=True to confirm you want to modify the database.'), response=None)
async
Create all database objects.
Source code in src/prefect/server/api/admin.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|
drop_database(db=Depends(provide_database_interface), confirm=Body(False, embed=True, description='Pass confirm=True to confirm you want to modify the database.'), response=None)
async
Drop all database objects.
Source code in src/prefect/server/api/admin.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|
read_settings()
async
Get the current Prefect REST API settings.
Secret setting values will be obfuscated.
Source code in src/prefect/server/api/admin.py
16 17 18 19 20 21 22 23 |
|
read_version()
async
Returns the Prefect version number
Source code in src/prefect/server/api/admin.py
26 27 28 29 |
|