@@ -3,6 +3,7 @@ Crunchy PostgreSQL Operator API
33
44The Crunchy PostgreSQL Operator API defines HTTP(S) interactions with the Crunchy PostgreSQL Operator. 
55
6+ 
67## Direct API Calls 
78
89The API can also be accessed by interacting directly with the API server. This 
@@ -14,6 +15,7 @@ that includes the content type and the `--insecure` flag. These flags will be
1415the same for all of your interactions with the API server and can be seen in the 
1516following examples. 
1617
18+ 
1719###### Get API Server Version 
1820
1921The most basic example of this interaction is getting the version of the API 
@@ -50,15 +52,15 @@ cluster.
5052``` 
5153curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \ 
5254admin:examplepassword -H "Content-Type:application/json" --insecure -X \ 
53- 
54- 	POST --data \ 
55- 	    '{"ClientVersion":"4.7.9", 
56- 	    "Namespace":"pgouser1", 
57- 	    "Name":"mycluster", 
58- 
55+ POST --data \ 
56+     '{"ClientVersion":"4.7.9", 
57+     "Namespace":"pgouser1", 
58+     "Name":"mycluster", 
5959$PGO_APISERVER_URL/clusters 
6060``` 
6161
62+ 
63+ 
6264###### Show and Delete Cluster 
6365The last two examples show you how to `show` and `delete` a cluster. Notice 
6466how instead of passing `"Name":"mycluster"` you pass `"Clustername":"mycluster" 
@@ -69,39 +71,35 @@ show all of the clusters that are in the given namespace.
6971``` 
7072curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \ 
7173admin:examplepassword -H "Content-Type:application/json" --insecure -X \ 
72- 
73- 	POST --data \ 
74- 	  '{"ClientVersion":"4.7.9", 
75- 	  "Namespace":"pgouser1", 
76- 	  "Clustername":"mycluster"}' \ 
77- 
74+ POST --data \ 
75+   '{"ClientVersion":"4.7.9", 
76+   "Namespace":"pgouser1", 
77+   "Clustername":"mycluster"}' \ 
7878$PGO_APISERVER_URL/showclusters 
7979``` 
8080
8181``` 
8282curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \ 
8383admin:examplepassword -H "Content-Type:application/json" --insecure -X \ 
84- 
85- 	POST --data \ 
86- 	  '{"ClientVersion":"4.7.9", 
87- 	  "Namespace":"pgouser1", 
88- 	  "Clustername":"mycluster"}' \ 
89- 
84+ POST --data \ 
85+   '{"ClientVersion":"9", 
86+   "Namespace":"pgouser1", 
87+   "Clustername":"mycluster"}' \ 
9088$PGO_APISERVER_URL/clustersdelete 
9189``` 
9290
93- 	 Schemes: http, https
94- 	 BasePath: /
95- 	 Version: 4.7.9
96- 	 License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0
97- 	 Contact: Crunchy Data<[email protected] > https://www.crunchydata.com/91+    Schemes: http, https
92+    BasePath: /
93+    Version: 4.7.9
94+    License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0
95+    Contact: Crunchy Data<[email protected] > https://www.crunchydata.com/9896
9997
100- 	       Consumes:
101- 	       - application/json
98+          Consumes:
99+          - application/json
102100
103- 	       Produces:
104- 	       - application/json
101+          Produces:
102+          - application/json
105103
106104swagger:meta 
107105*/ 
@@ -122,4 +120,4 @@ package v1
122120 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
123121 See the License for the specific language governing permissions and 
124122 limitations under the License. 
125- */ 
123+ */ 
0 commit comments