You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where `<cid>` is your token/namespace. For convenience, in a *private cluster*,
157
157
we suggest using md5 hash of your public key as <cid>.
158
-
To test, lets create simple CBSDfile, where CLOUD_KEY - is your publickey string:
158
+
159
+
To test with curl, create valid payload file, e.g. `debian12.json`:
160
+
```
161
+
cat > debian11.json <<EOF
162
+
{
163
+
"imgsize": "10g",
164
+
"ram": "1g",
165
+
"cpus": 2,
166
+
"image": "debian12",
167
+
"pubkey": "ssh-ed25519 AAAA..XXX your@localhost"
168
+
}
169
+
EOF
170
+
```
171
+
Then send it to /create endpoint:
172
+
```
173
+
curl --no-progress-meter -X POST -H "Content-Type: application/json" -d @debian12.json http://127.0.0.1:65531/api/v1/create/vm1
174
+
```
175
+
176
+
to create 'vm1' or:
177
+
```
178
+
curl --no-progress-meter -X POST -H "Content-Type: application/json" -d @debian12.json http://127.0.0.1:65531/api/v1/create/_
179
+
```
180
+
181
+
to assign a VM name automatically.
182
+
183
+
### Via CBSDfile:
184
+
185
+
To test via CBSDfile, lets create simple CBSDfile, where CLOUD_KEY - is your publickey string:
159
186
```
160
187
CLOUD_URL="http://127.0.0.1:65531"
161
188
CLOUD_KEY="ssh-ed25519 AAAA..XXX your@localhost"
@@ -181,17 +208,11 @@ cbsd destroy
181
208
182
209
See documentation for detailed information and additional examples: [https://www.bsdstore.ru/en/cbsd_api_ssi.html](https://www.bsdstore.ru/en/cbsd_api_ssi.html)
183
210
184
-
## Contributing
211
+
## Get Support
185
212
186
-
* Fork me on GitHub: [https://github.com/cbsd/cbsd-mq-api.git](https://github.com/cbsd/cbsd-mq-api.git)
187
-
* Switch to 'develop' branch
188
-
* Commit your changes (`git commit -am 'Added some feature'`)
0 commit comments