@@ -186,6 +186,7 @@ permissions -
186186|DeleteUpgrade | allow *pgo delete upgrade*
187187|CreateUser | allow *pgo create user*
188188|CreateFailover| allow *pgo failover*
189+ |ShowConfig | allow *pgo show config*
189190|User | allow *pgo user*
190191|Version | allow *pgo version*
191192|======================
@@ -469,39 +470,91 @@ su - $USER
469470Because the *apiserver* implements a REST API, it is possible to integrate with it using your own
470471application code. To demonstrate this, the following *curl* commands show the API usage -
471472
473+ Note: Some setups may require the user to add '?version=x.x' to the end of the commands.
474+
472475*pgo version*
473476....
474477curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/version
475478....
476479
477- *pgo show policy all*
480+ *pgo show policy <name>*
481+ ....
482+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/policies/<name>
483+ ....
484+
485+ *pgo delete policy <name>*
486+ ....
487+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/policiesdelete/<name>
488+ ....
489+
490+ *pgo show pvc <name>*
491+ ....
492+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/pvc/<name>
493+ ....
494+
495+ *pgo apply policy <name>*
496+ ....
497+ curl -v -X POST -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/policies/apply/<name>
498+ ....
499+
500+ *pgo show ingest <name>*
501+ ....
502+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/ingest/<name>
503+ ....
504+
505+ *pgo label*
506+ ....
507+ curl -v -X POST -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/label
508+ ....
509+
510+ *pgo load*
511+ ....
512+ curl -v -X POST -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/load
513+ ....
514+
515+ *pgo user*
516+ ....
517+ curl -v -X POST -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/user
518+ ....
519+
520+ *pgo users <name>*
521+ ....
522+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/users/<name>
523+ ....
524+
525+ *pgo delete user <name>*
526+ ....
527+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/usersdelete/<name>
528+ ....
529+
530+ *pgo show upgrade <name>*
478531....
479- curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/policies/all
532+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/upgrades/<name>
480533....
481534
482- *pgo show pvc danger *
535+ *pgo delete upgrade <name> *
483536....
484- curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/pvc/danger
537+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/upgradesdelete/<name>
485538....
486539
487- *pgo show cluster mycluster *
540+ *pgo show cluster <name> *
488541....
489- curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/clusters/mycluster
542+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/clusters/<name>
490543....
491544
492- *pgo show upgrade mycluster *
545+ *pgo delete cluster *
493546....
494- curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/upgrades/mycluster
547+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/clustersdelete/<name>
495548....
496549
497- *pgo test mycluster *
550+ *pgo test <name> *
498551....
499- curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/clusters/test/mycluster
552+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/clusters/test/<name>
500553....
501554
502- *pgo show backup mycluster *
555+ *pgo scale <name> *
503556....
504- curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/backups/mycluster
557+ curl -v -X GET -u readonlyuser:testpass -H "Content-Type: application/json" --insecure https://10.101.155.218:8443/clusters/scale/<name>
505558....
506559
507560== Deploying pgPool
0 commit comments