Create read replica virtual database server (POST /v1.0/{tenantId}/instances/{instanceId})
Creates a read replica virtual database server.
Request URI
{tenantID}
Project ID of the owner of the instance
Data Type | Cardinality |
---|---|
String | 1..1 |
{instanceId}
ID of the virtual database server
Data Type | Cardinality |
---|---|
String | 1..1 |
Request Parameters
action
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | readreplica |
readreplica
A read replica instance starts if this parameter is defined.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | 1..1 | action | None |
instance
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | flavorRef volume id name availabilityZone autoMinorVersionUpgrade port publiclyAccessible subnetGroupId securityGroupIds. subnetGroupId parameterGroupId downloadLogExtension |
flavorRef
ID of the predefined hardware resource list
Specify an existing flavor ID
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 1..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
- Only alphanumeric characters and hyphens can be used
- The string must start with a letter
- A hyphen cannot be used at the end of the string
- Two or more consecutive hyphens cannot be used
- Up to 63 characters
Default: random value
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..1 | Instance | None |
name
- Only alphanumeric characters and hyphens can be used
- The string must start with a letter
- A hyphen cannot be used at the end of the string
- Two or more consecutive hyphens cannot be used
- Up to 255 characters
Default value: Random value
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 |
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 |
subnetGroupId
Subnet group where the virtual database server will be deployed to
Default: default subnet group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 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 |
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
VPC security group list
Default value: default security group
Note: Specify the VPC security group.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list | 0..1 | Instance | None |
parameterGroupId
Parameter group
Default value: default parameter group
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 0..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 parameterGroupId pendingModifiedValues preferredBackupWindow preferredMaintenanceWindow publiclyAccessible readReplicaDBInstanceIdentifiers readReplicaSrcDBInstanceIdentifier replicaStatus subnetGroupId securityGroupIds downloadLogExtension |
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
Internal 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 |
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 |
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
Read replica instance associated with this virtual database server
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list | instance | None |
readReplicaSrcDBInstanceIdentifier
If this virtual database server was a read replica: ID of the virtual database server of the source replica
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | instance | None |
replicaStatus
Status of the read replica
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 |
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 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 |
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 |
Example of Request
{
"action":{"readreplica":""},
"instance": {
"flavorRef": "1",
"volume":{
"size": 20,
"type": "M1"
}
"name": "json_rack_instance",
"availabilityZone" : "jp-east-1a",
"subnetGroupId":"subnetGroup1",
"port":1234,
"preferredBackupWindow":"17:00-18:00",
"preferredMaintenanceWindow":"Sun:19:00-Sun:20:00",
"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",
"privateAddress":"fujitsu.s5.dbaas.a23w4e5r6tg7yuhjik",
"privateIp":"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",
"downloadLogExtension": false,
"publiclyAccessible" : true,
"readReplicaSrcDBInstanceIdentifier " : "qawsertb-39be-492-be31-3d6fewab43d7",
"subnetGroupId":"subnetGroup1",
"securityGroupIds":[
{"securityGroupId" : "secid1"},
{"securityGroupId" : "secid2"}
],
}
}