Restore virtual database server to point in time (POST /v1.0/{tenantId}/instances/{instanceId})
Restores a virtual database server from an automatic backup (a backup taken automatically when a virtual database server is created, based on the setting conditions of the system).
- When restoring a virtual database server by recovering to a point in time, a new virtual database server will be created. The original virtual database server, of which the DB snapshot was taken, will not be overwritten. As this is a new virtual database server, new FQDN/IP settings will be configured, and it will be billed separately from the original virtual database server.
- When creating a virtual database server from a DB snapshot manually created using DB snapshot (API (Create DB snapshot (POST /v1.0/{tenantId}/snapshots))), use POST /v1.0/{tenantId}/instances described in Restore virtual database server from DB snapshot (POST /v1.0/{tenantId}/instances).
Request URI
{tenantID}
Project ID of the owner of the instance
Data Type | Cardinality |
---|---|
String | 1..1 |
{instanceId}
ID of the virtual database server
If there is a DB instance from which the restore originated, the same ID can not be specified.
Data Type | Cardinality |
---|---|
String | 1..1 |
Request Parameters
action
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | restoretopointintime |
restoretopointintime
If this parameter is defined, restore the database virtual server from the automatic backup (the backup automatically acquired by the system according to the setting condition at the time of creation of the database virtual server).
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | 1..1 | action | None |
restore
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | restoreTime useLatestRestorableTime |
restoreTime
Time to be restored to
Note 1: Specify a time that is earlier than the most recent restorable time.
Note 2: Specify the time in UTC.
Example: 2009-09-07T23:45:00Z
Note 1: An error will be returned if no value is specified when UseLatestRestorableTime is set to "false".
Note 2: No value can be specified when UseLatestRestorableTime is set to "true".
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
DateTime | 0..1 | restore | None |
useLatestRestorableTime
Restores a virtual database server from the last backup.
Default: false
This parameter cannot be specified if RestoreTime is specified.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | restore | None |
instance
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | flavorRef volume id name description availabilityZone subnetGroupId multi multiAZ port preferredBackupWindow preferredMaintenanceWindow preferredRecoveryTime autoMaintenance publiclyAccessible securityGroupIds parameterGroupId backupRetentionPeriod autoMinorVersionUpgrade masterUserPassword downloadLogExtension |
flavorRef
ID of the predefined hardware resource list
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
volume
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Volume structures | 1..1 | Instance | size type |
size
Size of the data disk
10 to 10240 (GB)
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Integer | 1..1 | volume | None |
type
Disk type
M1
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | volume | None |
id
ID of the virtual database server
Default: random value
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
name
Name of the virtual database server
Default value: Random value
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
description
Description of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
availabilityZone
Availability zone where the instance will be created
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 1..1 | Instance | None |
subnetGroupId
Subnet group where the virtual database server will be deployed to.
The subnet group must contain multiple subnets that belong to different availability zones. The subnets must belong to at least two different availability zones.
Default: default subnet group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
multi
Multi-DB option
true | false
Default values: false
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | Instance | None |
multiAZ
Multi-availability zone option
true | false
Default value: false
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | Instance | None |
port
Port number
1024 to 32767
Default value: 26500
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Integer | 0..1 | Instance | None |
preferredBackupWindow
Backup time slot
Format: hh24:mi-hh24:mi
Default:
A random 30-minute period within the 10 hour-period prescribed for each region
Specify the time slot in which to perform daily backup, if automatic backup is enabled.
- East Japan (east-1): 17:00-03:00 UTC
- West Japan (west-1): 17:00-03:00 UTC
Specify the time in UTC.
It is not possible to specify a time slot that overlaps with PreferredMaintenanceWindow.
Backup may take longer than 30 minutes in some conditions.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
preferredMaintenanceWindow
Maintenance time slot
Format:
ddd:hh24:mi-ddd:hh24:mi
Default:
A random 30-minute period within the 10-hour period prescribed for each region (the day of the week is also determined randomly) Note: Specify the time slot in which to perform weekly maintenance.
Specify a time slot from 30 minutes to 23 hours 30 minutes.
A 30-minute period within the 10-hour period prescribed for each region will be randomly determined (the day of the week is also determined randomly).
Example: Sun:05:00-Sun:06:00
Value of day portion: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
preferredRecoveryTime
Time to start automatic recovery
This parameter can only be specified if redundancy configuration is used for the virtual database server (this can only be specified if multi = true)
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
preferredRecoveryTime structure |
0..1 | preferredRecoveryTime structure |
0..1 |
applyImmediately
If this parameter is defined, automatic recovery will be immediately performed when DB operation is degraded to a single node.
It is only possible to specify "applyImmediately" or "time" in the "preferredRecoveryTime" structure.
default value: true
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | preferredRecoveryTime | None |
time
If this parameter is defined, automatic recovery will be performed at the time specified in the parameter value.
It is only possible to specify "applyImmediately" or "time" in the "preferredRecoveryTime" structure.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | preferredRecoveryTime | None |
autoMaintenance
Whether automatic maintenance is performed or not
true | false
Default value : true
true: Automatic maintenance is performed.
False: Automatic maintenance is not performed.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | Instance | None |
publiclyAccessible
Whether connection from the Internet is possible during deployment of the virtual database server
true | false
Default value: false
true: External Internet connections are permitted.
false: Only access from within the VPC is permitted.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | Instance | None |
securityGroupIds.
Name of the VPC security group
Default value: Default Security Group of the subnet group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list | 0..1 | Instance | None |
parameterGroupId
Name of the DB parameter group
Default value: default parameter group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
backupRetentionPeriod
Backup retention period
Note: Automatic backup will not be performed when the value is 0.
0 to 10
Default: 1
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Integer | 0..1 | Instance | None |
autoMinorVersionUpgrade
Automatic minor version upgrade
true | false
Default value : true
This parameter has no effect.
To apply a minor version upgrade, execute API "Start/Restart the virtual database server" with the parameter "applyPatch" set to true.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | Instance | None |
masterUserName
- Specify alphanumeric characters and underscores only.
- The first character must be a letter or an underscore.
- Up to 63 characters.
- Specify the same value as the masterUserName of the restoration source.
Default value: postgres
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
masterUserPassword
Administrator password
- Alphanumeric characters and symbols other than ' (single quotation mark) can be used
- Up to 1,024 characters.
When restoreTime has been specified, specify the value for masterUserPassword using the password for the virtual database server at the specified point in time. When "true" has been specified for useLatestRestorableTime, specify the value for masterUserPassword using the current password for the virtual database server.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 1..1 | Instance | None |
downloadLogExtension
Log extension feature
true | false
Default value: false
true: Enables log extension. When this function is enabled, the disk capacity used for managing log information increases by approximately 10% of the DB log size.
false: Disables log extension.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | 0..1 | Instance | None |
Response Headers
Status
Returns the status of the request.
- 400:
- badRequest
- 401:
- unauthorized
- 403:
- forbidden
- 404:
- itemNotFound
- 413:
- overLimit
- 422:
- unprocessableEntity
- 500:
- instanceFault
- 501:
- notImplemented
- 503:
- serviceUnavailable
- 504:
- gatewayTimeout
Data Type | Cardinality |
---|---|
Int | 1..1 |
Response Elements
instance
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | created flavor id links name status updated volume privateAddress publicAddress privateIp publicIp port characterSet collate autoMinorVersionUpgrade availabilityZone backupRetentionPeriod engine engineVersion engineMinorVersion masterUserName multi multiAZ parameterGroupId pendingModifiedValues preferredBackupWindow preferredMaintenanceWindow autoMaintenance publiclyAccessible readReplicaDBInstanceIdentifiers readReplicaSrcDBInstanceIdentifier secondaryAvailabilityZone replicaStatus subnetGroupId securityGroupIds downloadLogExtension readReplicaDBInstances readReplicaSrcDBInstance |
created
The creation date and time
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Date | instance | None |
flavor
Virtual server specifications
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Flavor structures | instance | None |
id
ID of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
links
URI to the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
name
Name of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
status
Status of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
updated
Update date and time
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Date | instance | None |
volume
Disk type and size of data storage
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Volume structures | instance | None |
privateAddress
Address to the Virtual server that is running the virtual database server (FQDN format)
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
publicAddress
Global address to the Virtual server where the virtual database server is running (FQDN format)
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
privateIp
Internal IP address to the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
publicIp
Global IP address of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
port
Port number
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Integer | instance | None |
characterSet
Database encoding
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
collate
Database collating sequence
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
autoMinorVersionUpgrade
Flag to indicate whether to perform automatic minor version upgrade
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | instance | None |
availabilityZone
Availability zone where the virtual database server is running
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
backupRetentionPeriod
Backup retention period
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Integer | instance | None |
engine
Database type
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
engineVersion
Database version
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
engineMinorVersion
Database minor version
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
masterUserName
Administrator user name
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
multi
Multi-DB option
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | instance | None |
multiAZ
Multi-availability zone option
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | instance | None |
parameterGroupId
ID of the DB parameter group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
pendingModifiedValues
List of parameters that will be updated at the next restart
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
PendingModifiedValues structures | instance | None |
preferredBackupWindow
Backup time slot
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
preferredMaintenanceWindow
Maintenance time slot
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
publiclyAccessible
Whether connection from the Internet is possible during deployment of the virtual database server
true: Public IP address will be allocated.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | instance | None |
readReplicaDBInstanceIdentifiers
This parameter has been integrated into readReplicaDBInstances. It will always return an empty list.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list | instance | None |
readReplicaSrcDBInstanceIdentifier
This parameter has been integrated into readReplicaSrcDBInstance. It will always return null.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
secondaryAvailabilityZone
If the duplication option is "true":
Availability zone where the secondary virtual database server is running
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
replicaStatus
Status of the read replica
Replicating or Error
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
subnetGroupId
ID of DB subnet group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
securityGroupIds
List of VPC security group IDs
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list | instance | None |
downloadLogExtension
Log extension feature
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | instance | None |
readReplicaDBInstances
Read replica instance associated with this database virtual server
Operations performed on the read replica are reflected asynchronously.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
ReadReplicaDBInstance Structure list | instance |
region tenantId id |
readReplicaSrcDBInstance
Source database virtual server
Operations performed on the source database virtual server are reflected asynchronously.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
ReadReplicaSrcDBInstance Structure list | instance |
region tenantId id |
flavor
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | id links |
id
Flavor ID
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | Flavor | None |
links
Flavor URI
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | Flavor | None |
pendingModifiedValues
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | volume backupRetentionPeriod flavor id name parameterGroupId engineVersion masterUserName masterUserPassword multi multiAZ port engineMinorVersion securityUpdate |
volume
Disk type and size of data storage
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Volume structures | PendingModifiedValues | None |
backupRetentionPeriod
Backup retention period
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
flavor
Virtual server specifications
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Flavor | PendingModifiedValues | None |
id
ID of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
name
Name of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
parameterGroupId
ID of the DB parameter group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
engineVersion
Database version
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
masterUserName
Master user name of the virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
masterUserPassword
Password of the master user of the virtual database server
For security reasons, return values are masked as "***".
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
multi
Multi-DB option
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | PendingModifiedValues | None |
multiAZ
Multi-availability zone option
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | PendingModifiedValues | None |
port
Port number
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Integer | PendingModifiedValues | None |
engineMinorVersion
Minor version of the database
When a minor version of the database is released, you can apply patches.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | PendingModifiedValues | None |
securityUpdate
Presence/absence of security update
Patch application can be implemented when security update is released.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean | PendingModifiedValues | None |
volume
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | size type |
size
Size of the data storage
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | Volume | None |
type
Type of the data storage
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | Volume | None |
region
Region of the read replica associated with this database virtual server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | readReplicaDBInstances | None |
tenantId
Project ID of the read replica associated with this database virtual server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | readReplicaDBInstances | None |
id
ID of the read replica associated with this database virtual server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | readReplicaDBInstances | None |
region
Region of the source database virtual server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | readReplicaSrcDBInstance | None |
tenantId
Project ID of the source database virtual server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | readReplicaSrcDBInstance | None |
id
ID of the source database virtual server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | readReplicaSrcDBInstance | None |
Example of Request
{
"action":{"restoretopointintime":""}
"restoreTime":"2014-07-10 10:00:00",
"instance":{
"flavorRef":"1",
"name":"json-rack-instance",
"volume":{
"size":100
},
"availabilityZone":"jp-east-1a",
"multi":true
"multiAZ":true,
"subnetGroupId":"subnetGroup1",
"port":1234,
"preferredBackupWindow":"17:00-18:00",
"preferredMaintenanceWindow":"Sun:19:00-Sun:20:00",
"preferredRecoveryTime":{
"applyImmediately" : true,
},
"autoMaintenance":true,
"publiclyAccessible":true,
"securityGroupIds":[
{"securityGroupId":"secid1"},
{"securityGroupId":"secid2"}
],
"parameterGroupId":"paramid1",
}
}
Example of Response
{
"instance":{
"created":"2013-03-18T19:09:17",
"flavor":{
"id": "1",
"links": [
{
"href": "http://database.{region-name}.tps5.fujitsu.com/v1.0/1234/flavors/1",
"rel": "self"
}
]
},
"id":"44b277eb-39be-4921-be31-3d61b43651d7",
"links": [
{
"href":"http://database.{region-name}.tps5.fujitsu.com/v1.0/1234/instances/ 44b277eb-39be-4921-be31-3d61b43651d7",
"rel": "self"
},
],
"status": "BUILD"
"volume": {
"size": 20,
"type":"M1"
}
"name":"json-rack-instance",
"publicAddress":"fujitsu.s5.dbaas.a23w4e5r6tg7yuhjik",
"ip":"10.125.52.214",
"port":26500,
"characterSet":"UTF-8",
"collate":"C",
"autoMinorVersionUpgrade":true,
"availabilityZone":"jp-east-1a",
"backupRetentionPeriod":10,
"engine":"enterprisepostgres",
"engineVersion":"9.6",
"engineMinorVersion":"0",
"multiAZ":true,
"parameterGroupId":"paramid1",
"preferredBackupWindow":"17:00-18:00",
"preferredMaintenanceWindow":"Sun:19:00-Sun:20:00",
"preferredRecoveryTime":{
"applyImmediately":true,
"time":none,
},
"autoMaintenance":true,
"downloadLogExtension":false,
"publiclyAccessible":true,
"subnetGroupId":"subnetGroup1",
"securityGroupIds.":[
{"securityGroupId":"secid1"},
{"securityGroupId":"secid2"}
],
"readReplicaDBInstances": [],
"readReplicaSrcDBInstance": {},
"replicaStatus": null,
"readReplicaDBInstanceIdentifiers": [],
"readReplicaSrcDBInstanceIdentifier": null
}
}