@@ -3,6 +3,7 @@ Crunchy PostgreSQL Operator API
3
3
4
4
The Crunchy PostgreSQL Operator API defines HTTP(S) interactions with the Crunchy PostgreSQL Operator.
5
5
6
+
6
7
## Direct API Calls
7
8
8
9
The 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
14
15
the same for all of your interactions with the API server and can be seen in the
15
16
following examples.
16
17
18
+
17
19
###### Get API Server Version
18
20
19
21
The most basic example of this interaction is getting the version of the API
@@ -50,15 +52,15 @@ cluster.
50
52
```
51
53
curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \
52
54
admin: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",
59
59
$PGO_APISERVER_URL/clusters
60
60
```
61
61
62
+
63
+
62
64
###### Show and Delete Cluster
63
65
The last two examples show you how to `show` and `delete` a cluster. Notice
64
66
how instead of passing `"Name":"mycluster"` you pass `"Clustername":"mycluster"
@@ -69,39 +71,35 @@ show all of the clusters that are in the given namespace.
69
71
```
70
72
curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \
71
73
admin: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"}' \
78
78
$PGO_APISERVER_URL/showclusters
79
79
```
80
80
81
81
```
82
82
curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \
83
83
admin: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"}' \
90
88
$PGO_APISERVER_URL/clustersdelete
91
89
```
92
90
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/
98
96
99
97
100
- Consumes:
101
- - application/json
98
+ Consumes:
99
+ - application/json
102
100
103
- Produces:
104
- - application/json
101
+ Produces:
102
+ - application/json
105
103
106
104
swagger:meta
107
105
*/
@@ -122,4 +120,4 @@ package v1
122
120
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123
121
See the License for the specific language governing permissions and
124
122
limitations under the License.
125
- */
123
+ */
0 commit comments