MENU
リストア - Database API v1
Description
ダンプしたDBをリストアする
Request URL
Database API v1.0 POST /v1/databases/(uuid: database_id)/action
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | Userトークン |
database_id | - | URI | UUID | データベースID |
restore | - | plain | dict | - |
backup_id | - | plain | UUID | バックアップID |
Request Json
{ "restore": { "backup_id": "c89f2a7d-0175-446a-bd00-fd2c6a9b0927" } }
Normal response codes
202 - Success
Error response codes
400 - Bad Request
401 - Access Denied
404 - Not Found
Repeatable
No
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl -i -X POST \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \ -d '{ "restore": { "backup_id": "c89f2a7d-0175-446a-bd00-fd2c6a9b0927" } }' \ https://database-hosting.tyo1.conoha.io/v1/databases/148147ba-8999-4901-9cd6-634db82f80ea/action
- RES
HTTP/1.1 202 Success Date: Tue, 09 Dec 2014 01:46:58 GMT Server: Apache Content-Length: 1003 Content-Type: application/json