File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,6 +308,18 @@ def download_parallel(files):
308308 # Transparent connexion between executor.map() and the caller of download_parallel()
309309 yield from executor .map (download_thread , files )
310310
311+ def generic_get (endpoint )-> list :
312+ url = __PREFIX + endpoint
313+ rq = SESSION .get (url , headers = __headers )
314+ manage_errors (rq )
315+ return rq .json ()
316+
317+ def generic_put (endpoint ,data )-> list :
318+ url = __PREFIX + endpoint
319+ rq = SESSION .put (url , headers = __headers , json = data )
320+ manage_errors (rq )
321+ return rq .json ()
322+
311323################################ EXECUTIONS ###################################
312324# -----------------------------------------------------------------------------
313325def list_executions ()-> list :
Original file line number Diff line number Diff line change 1+ This is an admin-level tool to manage VIP apps descriptors.
2+
3+ For commands that communicate with a VIP instance, set these two
4+ environment variables:
5+ - ` export VIP_API_URL=... ` # VIP-portal host URL (without /rest)
6+ - ` export VIP_API_KEY=... ` # Your API key (admin level required)
7+
8+ Then see usage with:
9+ ` python3 ./vipapps/vipapps.py --help `
10+ or ` python3 ./vipapps/vipapps.py <command> --help `
You can’t perform that action at this time.
0 commit comments