Rebuild instance
POSThttps://core-pl.ocplanet.cloud/backend/api/openstack/instances/:instance_id/rebuild
Host: https://core.ocplanet.cloud
Rebuild the specified instance. In this case, all current data on instance will be destroyed.
Request
- application/json
Body
image stringrequired
ssh_keys stringrequired
ssh_key stringrequired
root_password stringrequired
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
{
"detail": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Use 'OpenAPIToken {token}' as the value
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://core-pl.ocplanet.cloud/backend/api/openstack/instances/:instance_id/rebuild' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"image": "string",
"ssh_keys": "string",
"ssh_key": "string",
"root_password": "string"
}'
ResponseClear