opentelekomcloud.RdsInstanceV1
Explore with Pulumi AI
Up-to-date reference of API arguments for RDS instance you can get at documentation portal
DEPRECATED Manages RDS instance v1 resource within OpenTelekomCloud.
Example Usage
Creating a PostgreSQL RDS instance
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const flavor = opentelekomcloud.getRdsFlavorsV1({
datastoreName: "PostgreSQL",
datastoreVersion: "16",
speccode: "rds.pg.x1.xlarge.4",
});
const secgrpRds = new opentelekomcloud.ComputeSecgroupV2("secgrpRds", {description: "Rds Security Group"});
const instance = new opentelekomcloud.RdsInstanceV1("instance", {
availabilityzone: "eu-de-01",
datastore: {
type: "PostgreSQL",
version: "16",
},
flavorref: flavor.then(flavor => flavor.id),
volume: {
type: "CLOUDSSD",
size: 200,
},
vpc: "c1095fe7-03df-4205-ad2d-6f4c181d436e",
dbrtpd: "P@ssw0rd1!9851",
dbport: "8635",
nics: {
subnetid: "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
securitygroup: {
id: secgrpRds.computeSecgroupV2Id,
},
backupstrategy: {
starttime: "04:00:00",
keepdays: 4,
},
ha: {
enable: true,
replicationmode: "async",
},
tag: {
foo: "bar",
key: "value",
},
}, {
dependsOn: ["opentelekomcloud_compute_secgroup_v2.secgrp_rds"],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
flavor = opentelekomcloud.get_rds_flavors_v1(datastore_name="PostgreSQL",
datastore_version="16",
speccode="rds.pg.x1.xlarge.4")
secgrp_rds = opentelekomcloud.ComputeSecgroupV2("secgrpRds", description="Rds Security Group")
instance = opentelekomcloud.RdsInstanceV1("instance",
availabilityzone="eu-de-01",
datastore={
"type": "PostgreSQL",
"version": "16",
},
flavorref=flavor.id,
volume={
"type": "CLOUDSSD",
"size": 200,
},
vpc="c1095fe7-03df-4205-ad2d-6f4c181d436e",
dbrtpd="P@ssw0rd1!9851",
dbport="8635",
nics={
"subnetid": "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
securitygroup={
"id": secgrp_rds.compute_secgroup_v2_id,
},
backupstrategy={
"starttime": "04:00:00",
"keepdays": 4,
},
ha={
"enable": True,
"replicationmode": "async",
},
tag={
"foo": "bar",
"key": "value",
},
opts = pulumi.ResourceOptions(depends_on=["opentelekomcloud_compute_secgroup_v2.secgrp_rds"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
flavor, err := opentelekomcloud.GetRdsFlavorsV1(ctx, &opentelekomcloud.GetRdsFlavorsV1Args{
DatastoreName: "PostgreSQL",
DatastoreVersion: "16",
Speccode: pulumi.StringRef("rds.pg.x1.xlarge.4"),
}, nil)
if err != nil {
return err
}
secgrpRds, err := opentelekomcloud.NewComputeSecgroupV2(ctx, "secgrpRds", &opentelekomcloud.ComputeSecgroupV2Args{
Description: pulumi.String("Rds Security Group"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewRdsInstanceV1(ctx, "instance", &opentelekomcloud.RdsInstanceV1Args{
Availabilityzone: pulumi.String("eu-de-01"),
Datastore: &opentelekomcloud.RdsInstanceV1DatastoreArgs{
Type: pulumi.String("PostgreSQL"),
Version: pulumi.String("16"),
},
Flavorref: pulumi.String(flavor.Id),
Volume: &opentelekomcloud.RdsInstanceV1VolumeArgs{
Type: pulumi.String("CLOUDSSD"),
Size: pulumi.Float64(200),
},
Vpc: pulumi.String("c1095fe7-03df-4205-ad2d-6f4c181d436e"),
Dbrtpd: pulumi.String("P@ssw0rd1!9851"),
Dbport: pulumi.String("8635"),
Nics: &opentelekomcloud.RdsInstanceV1NicsArgs{
Subnetid: pulumi.String("b65f8d25-c533-47e2-8601-cfaa265a3e3e"),
},
Securitygroup: &opentelekomcloud.RdsInstanceV1SecuritygroupArgs{
Id: secgrpRds.ComputeSecgroupV2Id,
},
Backupstrategy: &opentelekomcloud.RdsInstanceV1BackupstrategyArgs{
Starttime: pulumi.String("04:00:00"),
Keepdays: pulumi.Float64(4),
},
Ha: &opentelekomcloud.RdsInstanceV1HaArgs{
Enable: pulumi.Bool(true),
Replicationmode: pulumi.String("async"),
},
Tag: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
}, pulumi.DependsOn([]pulumi.Resource{
pulumi.Resource("opentelekomcloud_compute_secgroup_v2.secgrp_rds"),
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var flavor = Opentelekomcloud.GetRdsFlavorsV1.Invoke(new()
{
DatastoreName = "PostgreSQL",
DatastoreVersion = "16",
Speccode = "rds.pg.x1.xlarge.4",
});
var secgrpRds = new Opentelekomcloud.ComputeSecgroupV2("secgrpRds", new()
{
Description = "Rds Security Group",
});
var instance = new Opentelekomcloud.RdsInstanceV1("instance", new()
{
Availabilityzone = "eu-de-01",
Datastore = new Opentelekomcloud.Inputs.RdsInstanceV1DatastoreArgs
{
Type = "PostgreSQL",
Version = "16",
},
Flavorref = flavor.Apply(getRdsFlavorsV1Result => getRdsFlavorsV1Result.Id),
Volume = new Opentelekomcloud.Inputs.RdsInstanceV1VolumeArgs
{
Type = "CLOUDSSD",
Size = 200,
},
Vpc = "c1095fe7-03df-4205-ad2d-6f4c181d436e",
Dbrtpd = "P@ssw0rd1!9851",
Dbport = "8635",
Nics = new Opentelekomcloud.Inputs.RdsInstanceV1NicsArgs
{
Subnetid = "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
Securitygroup = new Opentelekomcloud.Inputs.RdsInstanceV1SecuritygroupArgs
{
Id = secgrpRds.ComputeSecgroupV2Id,
},
Backupstrategy = new Opentelekomcloud.Inputs.RdsInstanceV1BackupstrategyArgs
{
Starttime = "04:00:00",
Keepdays = 4,
},
Ha = new Opentelekomcloud.Inputs.RdsInstanceV1HaArgs
{
Enable = true,
Replicationmode = "async",
},
Tag =
{
{ "foo", "bar" },
{ "key", "value" },
},
}, new CustomResourceOptions
{
DependsOn =
{
"opentelekomcloud_compute_secgroup_v2.secgrp_rds",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetRdsFlavorsV1Args;
import com.pulumi.opentelekomcloud.ComputeSecgroupV2;
import com.pulumi.opentelekomcloud.ComputeSecgroupV2Args;
import com.pulumi.opentelekomcloud.RdsInstanceV1;
import com.pulumi.opentelekomcloud.RdsInstanceV1Args;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1DatastoreArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1VolumeArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1NicsArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1SecuritygroupArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1BackupstrategyArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1HaArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var flavor = OpentelekomcloudFunctions.getRdsFlavorsV1(GetRdsFlavorsV1Args.builder()
.datastoreName("PostgreSQL")
.datastoreVersion("16")
.speccode("rds.pg.x1.xlarge.4")
.build());
var secgrpRds = new ComputeSecgroupV2("secgrpRds", ComputeSecgroupV2Args.builder()
.description("Rds Security Group")
.build());
var instance = new RdsInstanceV1("instance", RdsInstanceV1Args.builder()
.availabilityzone("eu-de-01")
.datastore(RdsInstanceV1DatastoreArgs.builder()
.type("PostgreSQL")
.version("16")
.build())
.flavorref(flavor.applyValue(getRdsFlavorsV1Result -> getRdsFlavorsV1Result.id()))
.volume(RdsInstanceV1VolumeArgs.builder()
.type("CLOUDSSD")
.size(200)
.build())
.vpc("c1095fe7-03df-4205-ad2d-6f4c181d436e")
.dbrtpd("P@ssw0rd1!9851")
.dbport("8635")
.nics(RdsInstanceV1NicsArgs.builder()
.subnetid("b65f8d25-c533-47e2-8601-cfaa265a3e3e")
.build())
.securitygroup(RdsInstanceV1SecuritygroupArgs.builder()
.id(secgrpRds.computeSecgroupV2Id())
.build())
.backupstrategy(RdsInstanceV1BackupstrategyArgs.builder()
.starttime("04:00:00")
.keepdays(4)
.build())
.ha(RdsInstanceV1HaArgs.builder()
.enable(true)
.replicationmode("async")
.build())
.tag(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build(), CustomResourceOptions.builder()
.dependsOn("opentelekomcloud_compute_secgroup_v2.secgrp_rds")
.build());
}
}
resources:
secgrpRds:
type: opentelekomcloud:ComputeSecgroupV2
properties:
description: Rds Security Group
instance:
type: opentelekomcloud:RdsInstanceV1
properties:
availabilityzone: eu-de-01
datastore:
type: PostgreSQL
version: '16'
flavorref: ${flavor.id}
volume:
type: CLOUDSSD
size: 200
vpc: c1095fe7-03df-4205-ad2d-6f4c181d436e
dbrtpd: P@ssw0rd1!9851
dbport: '8635'
nics:
subnetid: b65f8d25-c533-47e2-8601-cfaa265a3e3e
securitygroup:
id: ${secgrpRds.computeSecgroupV2Id}
backupstrategy:
starttime: 04:00:00
keepdays: 4
ha:
enable: true
replicationmode: async
tag:
foo: bar
key: value
options:
dependsOn:
- opentelekomcloud_compute_secgroup_v2.secgrp_rds
variables:
flavor:
fn::invoke:
function: opentelekomcloud:getRdsFlavorsV1
arguments:
datastoreName: PostgreSQL
datastoreVersion: '16'
speccode: rds.pg.x1.xlarge.4
Creating a SQLServer RDS instance
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const flavor = opentelekomcloud.getRdsFlavorsV1({
datastoreName: "SQLServer",
datastoreVersion: "2022_SE",
speccode: "rds.mssql.c2.xlarge",
});
const secgrpRds = new opentelekomcloud.ComputeSecgroupV2("secgrpRds", {description: "Rds Security Group"});
const instance = new opentelekomcloud.RdsInstanceV1("instance", {
availabilityzone: "eu-de-01",
flavorref: flavor.then(flavor => flavor.id),
vpc: "c1095fe7-03df-4205-ad2d-6f4c181d436e",
dbport: "8635",
dbrtpd: "P@ssw0rd1!9851",
datastore: {
type: "SQLServer",
version: "2022_SE",
},
volume: {
type: "COMMON",
size: 200,
},
nics: {
subnetid: "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
securitygroup: {
id: secgrpRds.computeSecgroupV2Id,
},
backupstrategy: {
starttime: "04:00:00",
keepdays: 4,
},
}, {
dependsOn: ["opentelekomcloud_compute_secgroup_v2.secgrp_rds"],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
flavor = opentelekomcloud.get_rds_flavors_v1(datastore_name="SQLServer",
datastore_version="2022_SE",
speccode="rds.mssql.c2.xlarge")
secgrp_rds = opentelekomcloud.ComputeSecgroupV2("secgrpRds", description="Rds Security Group")
instance = opentelekomcloud.RdsInstanceV1("instance",
availabilityzone="eu-de-01",
flavorref=flavor.id,
vpc="c1095fe7-03df-4205-ad2d-6f4c181d436e",
dbport="8635",
dbrtpd="P@ssw0rd1!9851",
datastore={
"type": "SQLServer",
"version": "2022_SE",
},
volume={
"type": "COMMON",
"size": 200,
},
nics={
"subnetid": "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
securitygroup={
"id": secgrp_rds.compute_secgroup_v2_id,
},
backupstrategy={
"starttime": "04:00:00",
"keepdays": 4,
},
opts = pulumi.ResourceOptions(depends_on=["opentelekomcloud_compute_secgroup_v2.secgrp_rds"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
flavor, err := opentelekomcloud.GetRdsFlavorsV1(ctx, &opentelekomcloud.GetRdsFlavorsV1Args{
DatastoreName: "SQLServer",
DatastoreVersion: "2022_SE",
Speccode: pulumi.StringRef("rds.mssql.c2.xlarge"),
}, nil)
if err != nil {
return err
}
secgrpRds, err := opentelekomcloud.NewComputeSecgroupV2(ctx, "secgrpRds", &opentelekomcloud.ComputeSecgroupV2Args{
Description: pulumi.String("Rds Security Group"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewRdsInstanceV1(ctx, "instance", &opentelekomcloud.RdsInstanceV1Args{
Availabilityzone: pulumi.String("eu-de-01"),
Flavorref: pulumi.String(flavor.Id),
Vpc: pulumi.String("c1095fe7-03df-4205-ad2d-6f4c181d436e"),
Dbport: pulumi.String("8635"),
Dbrtpd: pulumi.String("P@ssw0rd1!9851"),
Datastore: &opentelekomcloud.RdsInstanceV1DatastoreArgs{
Type: pulumi.String("SQLServer"),
Version: pulumi.String("2022_SE"),
},
Volume: &opentelekomcloud.RdsInstanceV1VolumeArgs{
Type: pulumi.String("COMMON"),
Size: pulumi.Float64(200),
},
Nics: &opentelekomcloud.RdsInstanceV1NicsArgs{
Subnetid: pulumi.String("b65f8d25-c533-47e2-8601-cfaa265a3e3e"),
},
Securitygroup: &opentelekomcloud.RdsInstanceV1SecuritygroupArgs{
Id: secgrpRds.ComputeSecgroupV2Id,
},
Backupstrategy: &opentelekomcloud.RdsInstanceV1BackupstrategyArgs{
Starttime: pulumi.String("04:00:00"),
Keepdays: pulumi.Float64(4),
},
}, pulumi.DependsOn([]pulumi.Resource{
pulumi.Resource("opentelekomcloud_compute_secgroup_v2.secgrp_rds"),
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var flavor = Opentelekomcloud.GetRdsFlavorsV1.Invoke(new()
{
DatastoreName = "SQLServer",
DatastoreVersion = "2022_SE",
Speccode = "rds.mssql.c2.xlarge",
});
var secgrpRds = new Opentelekomcloud.ComputeSecgroupV2("secgrpRds", new()
{
Description = "Rds Security Group",
});
var instance = new Opentelekomcloud.RdsInstanceV1("instance", new()
{
Availabilityzone = "eu-de-01",
Flavorref = flavor.Apply(getRdsFlavorsV1Result => getRdsFlavorsV1Result.Id),
Vpc = "c1095fe7-03df-4205-ad2d-6f4c181d436e",
Dbport = "8635",
Dbrtpd = "P@ssw0rd1!9851",
Datastore = new Opentelekomcloud.Inputs.RdsInstanceV1DatastoreArgs
{
Type = "SQLServer",
Version = "2022_SE",
},
Volume = new Opentelekomcloud.Inputs.RdsInstanceV1VolumeArgs
{
Type = "COMMON",
Size = 200,
},
Nics = new Opentelekomcloud.Inputs.RdsInstanceV1NicsArgs
{
Subnetid = "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
Securitygroup = new Opentelekomcloud.Inputs.RdsInstanceV1SecuritygroupArgs
{
Id = secgrpRds.ComputeSecgroupV2Id,
},
Backupstrategy = new Opentelekomcloud.Inputs.RdsInstanceV1BackupstrategyArgs
{
Starttime = "04:00:00",
Keepdays = 4,
},
}, new CustomResourceOptions
{
DependsOn =
{
"opentelekomcloud_compute_secgroup_v2.secgrp_rds",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetRdsFlavorsV1Args;
import com.pulumi.opentelekomcloud.ComputeSecgroupV2;
import com.pulumi.opentelekomcloud.ComputeSecgroupV2Args;
import com.pulumi.opentelekomcloud.RdsInstanceV1;
import com.pulumi.opentelekomcloud.RdsInstanceV1Args;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1DatastoreArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1VolumeArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1NicsArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1SecuritygroupArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1BackupstrategyArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var flavor = OpentelekomcloudFunctions.getRdsFlavorsV1(GetRdsFlavorsV1Args.builder()
.datastoreName("SQLServer")
.datastoreVersion("2022_SE")
.speccode("rds.mssql.c2.xlarge")
.build());
var secgrpRds = new ComputeSecgroupV2("secgrpRds", ComputeSecgroupV2Args.builder()
.description("Rds Security Group")
.build());
var instance = new RdsInstanceV1("instance", RdsInstanceV1Args.builder()
.availabilityzone("eu-de-01")
.flavorref(flavor.applyValue(getRdsFlavorsV1Result -> getRdsFlavorsV1Result.id()))
.vpc("c1095fe7-03df-4205-ad2d-6f4c181d436e")
.dbport("8635")
.dbrtpd("P@ssw0rd1!9851")
.datastore(RdsInstanceV1DatastoreArgs.builder()
.type("SQLServer")
.version("2022_SE")
.build())
.volume(RdsInstanceV1VolumeArgs.builder()
.type("COMMON")
.size(200)
.build())
.nics(RdsInstanceV1NicsArgs.builder()
.subnetid("b65f8d25-c533-47e2-8601-cfaa265a3e3e")
.build())
.securitygroup(RdsInstanceV1SecuritygroupArgs.builder()
.id(secgrpRds.computeSecgroupV2Id())
.build())
.backupstrategy(RdsInstanceV1BackupstrategyArgs.builder()
.starttime("04:00:00")
.keepdays(4)
.build())
.build(), CustomResourceOptions.builder()
.dependsOn("opentelekomcloud_compute_secgroup_v2.secgrp_rds")
.build());
}
}
resources:
secgrpRds:
type: opentelekomcloud:ComputeSecgroupV2
properties:
description: Rds Security Group
instance:
type: opentelekomcloud:RdsInstanceV1
properties:
availabilityzone: eu-de-01
flavorref: ${flavor.id}
vpc: c1095fe7-03df-4205-ad2d-6f4c181d436e
dbport: '8635'
dbrtpd: P@ssw0rd1!9851
datastore:
type: SQLServer
version: 2022_SE
volume:
type: COMMON
size: 200
nics:
subnetid: b65f8d25-c533-47e2-8601-cfaa265a3e3e
securitygroup:
id: ${secgrpRds.computeSecgroupV2Id}
backupstrategy:
starttime: 04:00:00
keepdays: 4
options:
dependsOn:
- opentelekomcloud_compute_secgroup_v2.secgrp_rds
variables:
flavor:
fn::invoke:
function: opentelekomcloud:getRdsFlavorsV1
arguments:
datastoreName: SQLServer
datastoreVersion: 2022_SE
speccode: rds.mssql.c2.xlarge
Creating a MySQL RDS instance
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const flavor = opentelekomcloud.getRdsFlavorsV1({
datastoreName: "MySQL",
datastoreVersion: "8.0",
speccode: "rds.mysql.n1.2xlarge.2",
});
const secgrpRds = new opentelekomcloud.ComputeSecgroupV2("secgrpRds", {description: "Rds Security Group"});
const instance = new opentelekomcloud.RdsInstanceV1("instance", {
availabilityzone: "eu-de-01",
vpc: "c1095fe7-03df-4205-ad2d-6f4c181d436e",
dbport: "8635",
dbrtpd: "P@ssw0rd1!9851",
flavorref: flavor.then(flavor => flavor.id),
datastore: {
type: "MySQL",
version: "8.0",
},
volume: {
type: "CLOUDSSD",
size: 200,
},
nics: {
subnetid: "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
securitygroup: {
id: secgrpRds.computeSecgroupV2Id,
},
backupstrategy: {
starttime: "04:00:00",
keepdays: 4,
},
ha: {
enable: true,
replicationmode: "async",
},
}, {
dependsOn: ["opentelekomcloud_compute_secgroup_v2.secgrp_rds"],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
flavor = opentelekomcloud.get_rds_flavors_v1(datastore_name="MySQL",
datastore_version="8.0",
speccode="rds.mysql.n1.2xlarge.2")
secgrp_rds = opentelekomcloud.ComputeSecgroupV2("secgrpRds", description="Rds Security Group")
instance = opentelekomcloud.RdsInstanceV1("instance",
availabilityzone="eu-de-01",
vpc="c1095fe7-03df-4205-ad2d-6f4c181d436e",
dbport="8635",
dbrtpd="P@ssw0rd1!9851",
flavorref=flavor.id,
datastore={
"type": "MySQL",
"version": "8.0",
},
volume={
"type": "CLOUDSSD",
"size": 200,
},
nics={
"subnetid": "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
securitygroup={
"id": secgrp_rds.compute_secgroup_v2_id,
},
backupstrategy={
"starttime": "04:00:00",
"keepdays": 4,
},
ha={
"enable": True,
"replicationmode": "async",
},
opts = pulumi.ResourceOptions(depends_on=["opentelekomcloud_compute_secgroup_v2.secgrp_rds"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
flavor, err := opentelekomcloud.GetRdsFlavorsV1(ctx, &opentelekomcloud.GetRdsFlavorsV1Args{
DatastoreName: "MySQL",
DatastoreVersion: "8.0",
Speccode: pulumi.StringRef("rds.mysql.n1.2xlarge.2"),
}, nil)
if err != nil {
return err
}
secgrpRds, err := opentelekomcloud.NewComputeSecgroupV2(ctx, "secgrpRds", &opentelekomcloud.ComputeSecgroupV2Args{
Description: pulumi.String("Rds Security Group"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewRdsInstanceV1(ctx, "instance", &opentelekomcloud.RdsInstanceV1Args{
Availabilityzone: pulumi.String("eu-de-01"),
Vpc: pulumi.String("c1095fe7-03df-4205-ad2d-6f4c181d436e"),
Dbport: pulumi.String("8635"),
Dbrtpd: pulumi.String("P@ssw0rd1!9851"),
Flavorref: pulumi.String(flavor.Id),
Datastore: &opentelekomcloud.RdsInstanceV1DatastoreArgs{
Type: pulumi.String("MySQL"),
Version: pulumi.String("8.0"),
},
Volume: &opentelekomcloud.RdsInstanceV1VolumeArgs{
Type: pulumi.String("CLOUDSSD"),
Size: pulumi.Float64(200),
},
Nics: &opentelekomcloud.RdsInstanceV1NicsArgs{
Subnetid: pulumi.String("b65f8d25-c533-47e2-8601-cfaa265a3e3e"),
},
Securitygroup: &opentelekomcloud.RdsInstanceV1SecuritygroupArgs{
Id: secgrpRds.ComputeSecgroupV2Id,
},
Backupstrategy: &opentelekomcloud.RdsInstanceV1BackupstrategyArgs{
Starttime: pulumi.String("04:00:00"),
Keepdays: pulumi.Float64(4),
},
Ha: &opentelekomcloud.RdsInstanceV1HaArgs{
Enable: pulumi.Bool(true),
Replicationmode: pulumi.String("async"),
},
}, pulumi.DependsOn([]pulumi.Resource{
pulumi.Resource("opentelekomcloud_compute_secgroup_v2.secgrp_rds"),
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var flavor = Opentelekomcloud.GetRdsFlavorsV1.Invoke(new()
{
DatastoreName = "MySQL",
DatastoreVersion = "8.0",
Speccode = "rds.mysql.n1.2xlarge.2",
});
var secgrpRds = new Opentelekomcloud.ComputeSecgroupV2("secgrpRds", new()
{
Description = "Rds Security Group",
});
var instance = new Opentelekomcloud.RdsInstanceV1("instance", new()
{
Availabilityzone = "eu-de-01",
Vpc = "c1095fe7-03df-4205-ad2d-6f4c181d436e",
Dbport = "8635",
Dbrtpd = "P@ssw0rd1!9851",
Flavorref = flavor.Apply(getRdsFlavorsV1Result => getRdsFlavorsV1Result.Id),
Datastore = new Opentelekomcloud.Inputs.RdsInstanceV1DatastoreArgs
{
Type = "MySQL",
Version = "8.0",
},
Volume = new Opentelekomcloud.Inputs.RdsInstanceV1VolumeArgs
{
Type = "CLOUDSSD",
Size = 200,
},
Nics = new Opentelekomcloud.Inputs.RdsInstanceV1NicsArgs
{
Subnetid = "b65f8d25-c533-47e2-8601-cfaa265a3e3e",
},
Securitygroup = new Opentelekomcloud.Inputs.RdsInstanceV1SecuritygroupArgs
{
Id = secgrpRds.ComputeSecgroupV2Id,
},
Backupstrategy = new Opentelekomcloud.Inputs.RdsInstanceV1BackupstrategyArgs
{
Starttime = "04:00:00",
Keepdays = 4,
},
Ha = new Opentelekomcloud.Inputs.RdsInstanceV1HaArgs
{
Enable = true,
Replicationmode = "async",
},
}, new CustomResourceOptions
{
DependsOn =
{
"opentelekomcloud_compute_secgroup_v2.secgrp_rds",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetRdsFlavorsV1Args;
import com.pulumi.opentelekomcloud.ComputeSecgroupV2;
import com.pulumi.opentelekomcloud.ComputeSecgroupV2Args;
import com.pulumi.opentelekomcloud.RdsInstanceV1;
import com.pulumi.opentelekomcloud.RdsInstanceV1Args;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1DatastoreArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1VolumeArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1NicsArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1SecuritygroupArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1BackupstrategyArgs;
import com.pulumi.opentelekomcloud.inputs.RdsInstanceV1HaArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var flavor = OpentelekomcloudFunctions.getRdsFlavorsV1(GetRdsFlavorsV1Args.builder()
.datastoreName("MySQL")
.datastoreVersion("8.0")
.speccode("rds.mysql.n1.2xlarge.2")
.build());
var secgrpRds = new ComputeSecgroupV2("secgrpRds", ComputeSecgroupV2Args.builder()
.description("Rds Security Group")
.build());
var instance = new RdsInstanceV1("instance", RdsInstanceV1Args.builder()
.availabilityzone("eu-de-01")
.vpc("c1095fe7-03df-4205-ad2d-6f4c181d436e")
.dbport("8635")
.dbrtpd("P@ssw0rd1!9851")
.flavorref(flavor.applyValue(getRdsFlavorsV1Result -> getRdsFlavorsV1Result.id()))
.datastore(RdsInstanceV1DatastoreArgs.builder()
.type("MySQL")
.version("8.0")
.build())
.volume(RdsInstanceV1VolumeArgs.builder()
.type("CLOUDSSD")
.size(200)
.build())
.nics(RdsInstanceV1NicsArgs.builder()
.subnetid("b65f8d25-c533-47e2-8601-cfaa265a3e3e")
.build())
.securitygroup(RdsInstanceV1SecuritygroupArgs.builder()
.id(secgrpRds.computeSecgroupV2Id())
.build())
.backupstrategy(RdsInstanceV1BackupstrategyArgs.builder()
.starttime("04:00:00")
.keepdays(4)
.build())
.ha(RdsInstanceV1HaArgs.builder()
.enable(true)
.replicationmode("async")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn("opentelekomcloud_compute_secgroup_v2.secgrp_rds")
.build());
}
}
resources:
secgrpRds:
type: opentelekomcloud:ComputeSecgroupV2
properties:
description: Rds Security Group
instance:
type: opentelekomcloud:RdsInstanceV1
properties:
availabilityzone: eu-de-01
vpc: c1095fe7-03df-4205-ad2d-6f4c181d436e
dbport: '8635'
dbrtpd: P@ssw0rd1!9851
flavorref: ${flavor.id}
datastore:
type: MySQL
version: '8.0'
volume:
type: CLOUDSSD
size: 200
nics:
subnetid: b65f8d25-c533-47e2-8601-cfaa265a3e3e
securitygroup:
id: ${secgrpRds.computeSecgroupV2Id}
backupstrategy:
starttime: 04:00:00
keepdays: 4
ha:
enable: true
replicationmode: async
options:
dependsOn:
- opentelekomcloud_compute_secgroup_v2.secgrp_rds
variables:
flavor:
fn::invoke:
function: opentelekomcloud:getRdsFlavorsV1
arguments:
datastoreName: MySQL
datastoreVersion: '8.0'
speccode: rds.mysql.n1.2xlarge.2
Create RdsInstanceV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RdsInstanceV1(name: string, args: RdsInstanceV1Args, opts?: CustomResourceOptions);
@overload
def RdsInstanceV1(resource_name: str,
args: RdsInstanceV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def RdsInstanceV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
nics: Optional[RdsInstanceV1NicsArgs] = None,
availabilityzone: Optional[str] = None,
datastore: Optional[RdsInstanceV1DatastoreArgs] = None,
vpc: Optional[str] = None,
dbrtpd: Optional[str] = None,
flavorref: Optional[str] = None,
volume: Optional[RdsInstanceV1VolumeArgs] = None,
securitygroup: Optional[RdsInstanceV1SecuritygroupArgs] = None,
rds_instance_v1_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
ha: Optional[RdsInstanceV1HaArgs] = None,
tag: Optional[Mapping[str, str]] = None,
timeouts: Optional[RdsInstanceV1TimeoutsArgs] = None,
backupstrategy: Optional[RdsInstanceV1BackupstrategyArgs] = None,
dbport: Optional[str] = None)
func NewRdsInstanceV1(ctx *Context, name string, args RdsInstanceV1Args, opts ...ResourceOption) (*RdsInstanceV1, error)
public RdsInstanceV1(string name, RdsInstanceV1Args args, CustomResourceOptions? opts = null)
public RdsInstanceV1(String name, RdsInstanceV1Args args)
public RdsInstanceV1(String name, RdsInstanceV1Args args, CustomResourceOptions options)
type: opentelekomcloud:RdsInstanceV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RdsInstanceV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RdsInstanceV1Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RdsInstanceV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RdsInstanceV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RdsInstanceV1Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var rdsInstanceV1Resource = new Opentelekomcloud.RdsInstanceV1("rdsInstanceV1Resource", new()
{
Nics = new Opentelekomcloud.Inputs.RdsInstanceV1NicsArgs
{
Subnetid = "string",
},
Availabilityzone = "string",
Datastore = new Opentelekomcloud.Inputs.RdsInstanceV1DatastoreArgs
{
Type = "string",
Version = "string",
},
Vpc = "string",
Dbrtpd = "string",
Flavorref = "string",
Volume = new Opentelekomcloud.Inputs.RdsInstanceV1VolumeArgs
{
Size = 0,
Type = "string",
},
Securitygroup = new Opentelekomcloud.Inputs.RdsInstanceV1SecuritygroupArgs
{
Id = "string",
},
RdsInstanceV1Id = "string",
Name = "string",
Region = "string",
Ha = new Opentelekomcloud.Inputs.RdsInstanceV1HaArgs
{
Enable = false,
Replicationmode = "string",
},
Tag =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.RdsInstanceV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
Backupstrategy = new Opentelekomcloud.Inputs.RdsInstanceV1BackupstrategyArgs
{
Keepdays = 0,
Starttime = "string",
},
Dbport = "string",
});
example, err := opentelekomcloud.NewRdsInstanceV1(ctx, "rdsInstanceV1Resource", &opentelekomcloud.RdsInstanceV1Args{
Nics: &opentelekomcloud.RdsInstanceV1NicsArgs{
Subnetid: pulumi.String("string"),
},
Availabilityzone: pulumi.String("string"),
Datastore: &opentelekomcloud.RdsInstanceV1DatastoreArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
Vpc: pulumi.String("string"),
Dbrtpd: pulumi.String("string"),
Flavorref: pulumi.String("string"),
Volume: &opentelekomcloud.RdsInstanceV1VolumeArgs{
Size: pulumi.Float64(0),
Type: pulumi.String("string"),
},
Securitygroup: &opentelekomcloud.RdsInstanceV1SecuritygroupArgs{
Id: pulumi.String("string"),
},
RdsInstanceV1Id: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Ha: &opentelekomcloud.RdsInstanceV1HaArgs{
Enable: pulumi.Bool(false),
Replicationmode: pulumi.String("string"),
},
Tag: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.RdsInstanceV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Backupstrategy: &opentelekomcloud.RdsInstanceV1BackupstrategyArgs{
Keepdays: pulumi.Float64(0),
Starttime: pulumi.String("string"),
},
Dbport: pulumi.String("string"),
})
var rdsInstanceV1Resource = new RdsInstanceV1("rdsInstanceV1Resource", RdsInstanceV1Args.builder()
.nics(RdsInstanceV1NicsArgs.builder()
.subnetid("string")
.build())
.availabilityzone("string")
.datastore(RdsInstanceV1DatastoreArgs.builder()
.type("string")
.version("string")
.build())
.vpc("string")
.dbrtpd("string")
.flavorref("string")
.volume(RdsInstanceV1VolumeArgs.builder()
.size(0)
.type("string")
.build())
.securitygroup(RdsInstanceV1SecuritygroupArgs.builder()
.id("string")
.build())
.rdsInstanceV1Id("string")
.name("string")
.region("string")
.ha(RdsInstanceV1HaArgs.builder()
.enable(false)
.replicationmode("string")
.build())
.tag(Map.of("string", "string"))
.timeouts(RdsInstanceV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.backupstrategy(RdsInstanceV1BackupstrategyArgs.builder()
.keepdays(0)
.starttime("string")
.build())
.dbport("string")
.build());
rds_instance_v1_resource = opentelekomcloud.RdsInstanceV1("rdsInstanceV1Resource",
nics={
"subnetid": "string",
},
availabilityzone="string",
datastore={
"type": "string",
"version": "string",
},
vpc="string",
dbrtpd="string",
flavorref="string",
volume={
"size": 0,
"type": "string",
},
securitygroup={
"id": "string",
},
rds_instance_v1_id="string",
name="string",
region="string",
ha={
"enable": False,
"replicationmode": "string",
},
tag={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
backupstrategy={
"keepdays": 0,
"starttime": "string",
},
dbport="string")
const rdsInstanceV1Resource = new opentelekomcloud.RdsInstanceV1("rdsInstanceV1Resource", {
nics: {
subnetid: "string",
},
availabilityzone: "string",
datastore: {
type: "string",
version: "string",
},
vpc: "string",
dbrtpd: "string",
flavorref: "string",
volume: {
size: 0,
type: "string",
},
securitygroup: {
id: "string",
},
rdsInstanceV1Id: "string",
name: "string",
region: "string",
ha: {
enable: false,
replicationmode: "string",
},
tag: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
backupstrategy: {
keepdays: 0,
starttime: "string",
},
dbport: "string",
});
type: opentelekomcloud:RdsInstanceV1
properties:
availabilityzone: string
backupstrategy:
keepdays: 0
starttime: string
datastore:
type: string
version: string
dbport: string
dbrtpd: string
flavorref: string
ha:
enable: false
replicationmode: string
name: string
nics:
subnetid: string
rdsInstanceV1Id: string
region: string
securitygroup:
id: string
tag:
string: string
timeouts:
create: string
delete: string
volume:
size: 0
type: string
vpc: string
RdsInstanceV1 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RdsInstanceV1 resource accepts the following input properties:
- Availabilityzone string
- Specifies the ID of the AZ.
- Datastore
Rds
Instance V1Datastore - Specifies database information. The structure is described below.
- Dbrtpd string
- Specifies the password for user root of the database.
- Flavorref string
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- Nics
Rds
Instance V1Nics - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- Securitygroup
Rds
Instance V1Securitygroup - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- Volume
Rds
Instance V1Volume - Specifies the volume information. The structure is described below.
- Vpc string
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- Backupstrategy
Rds
Instance V1Backupstrategy - Specifies the advanced backup policy. The structure is described below.
- Dbport string
- Specifies the database port number.
- Ha
Rds
Instance V1Ha - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- Name string
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- Rds
Instance stringV1Id - Region string
- Tag Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Timeouts
Rds
Instance V1Timeouts
- Availabilityzone string
- Specifies the ID of the AZ.
- Datastore
Rds
Instance V1Datastore Args - Specifies database information. The structure is described below.
- Dbrtpd string
- Specifies the password for user root of the database.
- Flavorref string
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- Nics
Rds
Instance V1Nics Args - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- Securitygroup
Rds
Instance V1Securitygroup Args - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- Volume
Rds
Instance V1Volume Args - Specifies the volume information. The structure is described below.
- Vpc string
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- Backupstrategy
Rds
Instance V1Backupstrategy Args - Specifies the advanced backup policy. The structure is described below.
- Dbport string
- Specifies the database port number.
- Ha
Rds
Instance V1Ha Args - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- Name string
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- Rds
Instance stringV1Id - Region string
- Tag map[string]string
- Tags key/value pairs to associate with the instance.
- Timeouts
Rds
Instance V1Timeouts Args
- availabilityzone String
- Specifies the ID of the AZ.
- datastore
Rds
Instance V1Datastore - Specifies database information. The structure is described below.
- dbrtpd String
- Specifies the password for user root of the database.
- flavorref String
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- nics
Rds
Instance V1Nics - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- securitygroup
Rds
Instance V1Securitygroup - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- volume
Rds
Instance V1Volume - Specifies the volume information. The structure is described below.
- vpc String
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- backupstrategy
Rds
Instance V1Backupstrategy - Specifies the advanced backup policy. The structure is described below.
- dbport String
- Specifies the database port number.
- ha
Rds
Instance V1Ha - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- name String
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- rds
Instance StringV1Id - region String
- tag Map<String,String>
- Tags key/value pairs to associate with the instance.
- timeouts
Rds
Instance V1Timeouts
- availabilityzone string
- Specifies the ID of the AZ.
- datastore
Rds
Instance V1Datastore - Specifies database information. The structure is described below.
- dbrtpd string
- Specifies the password for user root of the database.
- flavorref string
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- nics
Rds
Instance V1Nics - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- securitygroup
Rds
Instance V1Securitygroup - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- volume
Rds
Instance V1Volume - Specifies the volume information. The structure is described below.
- vpc string
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- backupstrategy
Rds
Instance V1Backupstrategy - Specifies the advanced backup policy. The structure is described below.
- dbport string
- Specifies the database port number.
- ha
Rds
Instance V1Ha - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- name string
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- rds
Instance stringV1Id - region string
- tag {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- timeouts
Rds
Instance V1Timeouts
- availabilityzone str
- Specifies the ID of the AZ.
- datastore
Rds
Instance V1Datastore Args - Specifies database information. The structure is described below.
- dbrtpd str
- Specifies the password for user root of the database.
- flavorref str
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- nics
Rds
Instance V1Nics Args - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- securitygroup
Rds
Instance V1Securitygroup Args - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- volume
Rds
Instance V1Volume Args - Specifies the volume information. The structure is described below.
- vpc str
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- backupstrategy
Rds
Instance V1Backupstrategy Args - Specifies the advanced backup policy. The structure is described below.
- dbport str
- Specifies the database port number.
- ha
Rds
Instance V1Ha Args - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- name str
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- rds_
instance_ strv1_ id - region str
- tag Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- timeouts
Rds
Instance V1Timeouts Args
- availabilityzone String
- Specifies the ID of the AZ.
- datastore Property Map
- Specifies database information. The structure is described below.
- dbrtpd String
- Specifies the password for user root of the database.
- flavorref String
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- nics Property Map
- Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- securitygroup Property Map
- Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- volume Property Map
- Specifies the volume information. The structure is described below.
- vpc String
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- backupstrategy Property Map
- Specifies the advanced backup policy. The structure is described below.
- dbport String
- Specifies the database port number.
- ha Property Map
- Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- name String
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- rds
Instance StringV1Id - region String
- tag Map<String>
- Tags key/value pairs to associate with the instance.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the RdsInstanceV1 resource produces the following output properties:
- Created string
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- Hostname string
- Indicates the instance connection address. It is a blank string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Indicates the DB instance status.
- Type string
- Indicates the DB instance type, which can be master or readreplica.
- Updated string
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- Created string
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- Hostname string
- Indicates the instance connection address. It is a blank string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Indicates the DB instance status.
- Type string
- Indicates the DB instance type, which can be master or readreplica.
- Updated string
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- created String
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- hostname String
- Indicates the instance connection address. It is a blank string.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Indicates the DB instance status.
- type String
- Indicates the DB instance type, which can be master or readreplica.
- updated String
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- created string
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- hostname string
- Indicates the instance connection address. It is a blank string.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Indicates the DB instance status.
- type string
- Indicates the DB instance type, which can be master or readreplica.
- updated string
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- created str
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- hostname str
- Indicates the instance connection address. It is a blank string.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Indicates the DB instance status.
- type str
- Indicates the DB instance type, which can be master or readreplica.
- updated str
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- created String
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- hostname String
- Indicates the instance connection address. It is a blank string.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Indicates the DB instance status.
- type String
- Indicates the DB instance type, which can be master or readreplica.
- updated String
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
Look up Existing RdsInstanceV1 Resource
Get an existing RdsInstanceV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RdsInstanceV1State, opts?: CustomResourceOptions): RdsInstanceV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availabilityzone: Optional[str] = None,
backupstrategy: Optional[RdsInstanceV1BackupstrategyArgs] = None,
created: Optional[str] = None,
datastore: Optional[RdsInstanceV1DatastoreArgs] = None,
dbport: Optional[str] = None,
dbrtpd: Optional[str] = None,
flavorref: Optional[str] = None,
ha: Optional[RdsInstanceV1HaArgs] = None,
hostname: Optional[str] = None,
name: Optional[str] = None,
nics: Optional[RdsInstanceV1NicsArgs] = None,
rds_instance_v1_id: Optional[str] = None,
region: Optional[str] = None,
securitygroup: Optional[RdsInstanceV1SecuritygroupArgs] = None,
status: Optional[str] = None,
tag: Optional[Mapping[str, str]] = None,
timeouts: Optional[RdsInstanceV1TimeoutsArgs] = None,
type: Optional[str] = None,
updated: Optional[str] = None,
volume: Optional[RdsInstanceV1VolumeArgs] = None,
vpc: Optional[str] = None) -> RdsInstanceV1
func GetRdsInstanceV1(ctx *Context, name string, id IDInput, state *RdsInstanceV1State, opts ...ResourceOption) (*RdsInstanceV1, error)
public static RdsInstanceV1 Get(string name, Input<string> id, RdsInstanceV1State? state, CustomResourceOptions? opts = null)
public static RdsInstanceV1 get(String name, Output<String> id, RdsInstanceV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:RdsInstanceV1 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availabilityzone string
- Specifies the ID of the AZ.
- Backupstrategy
Rds
Instance V1Backupstrategy - Specifies the advanced backup policy. The structure is described below.
- Created string
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- Datastore
Rds
Instance V1Datastore - Specifies database information. The structure is described below.
- Dbport string
- Specifies the database port number.
- Dbrtpd string
- Specifies the password for user root of the database.
- Flavorref string
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- Ha
Rds
Instance V1Ha - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- Hostname string
- Indicates the instance connection address. It is a blank string.
- Name string
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- Nics
Rds
Instance V1Nics - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- Rds
Instance stringV1Id - Region string
- Securitygroup
Rds
Instance V1Securitygroup - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- Status string
- Indicates the DB instance status.
- Tag Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Timeouts
Rds
Instance V1Timeouts - Type string
- Indicates the DB instance type, which can be master or readreplica.
- Updated string
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- Volume
Rds
Instance V1Volume - Specifies the volume information. The structure is described below.
- Vpc string
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- Availabilityzone string
- Specifies the ID of the AZ.
- Backupstrategy
Rds
Instance V1Backupstrategy Args - Specifies the advanced backup policy. The structure is described below.
- Created string
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- Datastore
Rds
Instance V1Datastore Args - Specifies database information. The structure is described below.
- Dbport string
- Specifies the database port number.
- Dbrtpd string
- Specifies the password for user root of the database.
- Flavorref string
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- Ha
Rds
Instance V1Ha Args - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- Hostname string
- Indicates the instance connection address. It is a blank string.
- Name string
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- Nics
Rds
Instance V1Nics Args - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- Rds
Instance stringV1Id - Region string
- Securitygroup
Rds
Instance V1Securitygroup Args - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- Status string
- Indicates the DB instance status.
- Tag map[string]string
- Tags key/value pairs to associate with the instance.
- Timeouts
Rds
Instance V1Timeouts Args - Type string
- Indicates the DB instance type, which can be master or readreplica.
- Updated string
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- Volume
Rds
Instance V1Volume Args - Specifies the volume information. The structure is described below.
- Vpc string
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- availabilityzone String
- Specifies the ID of the AZ.
- backupstrategy
Rds
Instance V1Backupstrategy - Specifies the advanced backup policy. The structure is described below.
- created String
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- datastore
Rds
Instance V1Datastore - Specifies database information. The structure is described below.
- dbport String
- Specifies the database port number.
- dbrtpd String
- Specifies the password for user root of the database.
- flavorref String
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- ha
Rds
Instance V1Ha - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- hostname String
- Indicates the instance connection address. It is a blank string.
- name String
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- nics
Rds
Instance V1Nics - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- rds
Instance StringV1Id - region String
- securitygroup
Rds
Instance V1Securitygroup - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- status String
- Indicates the DB instance status.
- tag Map<String,String>
- Tags key/value pairs to associate with the instance.
- timeouts
Rds
Instance V1Timeouts - type String
- Indicates the DB instance type, which can be master or readreplica.
- updated String
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- volume
Rds
Instance V1Volume - Specifies the volume information. The structure is described below.
- vpc String
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- availabilityzone string
- Specifies the ID of the AZ.
- backupstrategy
Rds
Instance V1Backupstrategy - Specifies the advanced backup policy. The structure is described below.
- created string
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- datastore
Rds
Instance V1Datastore - Specifies database information. The structure is described below.
- dbport string
- Specifies the database port number.
- dbrtpd string
- Specifies the password for user root of the database.
- flavorref string
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- ha
Rds
Instance V1Ha - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- hostname string
- Indicates the instance connection address. It is a blank string.
- name string
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- nics
Rds
Instance V1Nics - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- rds
Instance stringV1Id - region string
- securitygroup
Rds
Instance V1Securitygroup - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- status string
- Indicates the DB instance status.
- tag {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- timeouts
Rds
Instance V1Timeouts - type string
- Indicates the DB instance type, which can be master or readreplica.
- updated string
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- volume
Rds
Instance V1Volume - Specifies the volume information. The structure is described below.
- vpc string
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- availabilityzone str
- Specifies the ID of the AZ.
- backupstrategy
Rds
Instance V1Backupstrategy Args - Specifies the advanced backup policy. The structure is described below.
- created str
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- datastore
Rds
Instance V1Datastore Args - Specifies database information. The structure is described below.
- dbport str
- Specifies the database port number.
- dbrtpd str
- Specifies the password for user root of the database.
- flavorref str
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- ha
Rds
Instance V1Ha Args - Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- hostname str
- Indicates the instance connection address. It is a blank string.
- name str
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- nics
Rds
Instance V1Nics Args - Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- rds_
instance_ strv1_ id - region str
- securitygroup
Rds
Instance V1Securitygroup Args - Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- status str
- Indicates the DB instance status.
- tag Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- timeouts
Rds
Instance V1Timeouts Args - type str
- Indicates the DB instance type, which can be master or readreplica.
- updated str
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- volume
Rds
Instance V1Volume Args - Specifies the volume information. The structure is described below.
- vpc str
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
- availabilityzone String
- Specifies the ID of the AZ.
- backupstrategy Property Map
- Specifies the advanced backup policy. The structure is described below.
- created String
- Indicates the creation time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- datastore Property Map
- Specifies database information. The structure is described below.
- dbport String
- Specifies the database port number.
- dbrtpd String
- Specifies the password for user root of the database.
- flavorref String
- Specifies the specification ID (flavors.id in the response message in Obtaining All DB Instance Specifications). If you want to enable ha for the rds instance, a flavor with ha speccode is required.
- ha Property Map
- Specifies the parameters configured on HA and is used when creating HA DB instances. The structure is described below. NOTICE: RDS for Microsoft SQL Server does not support creating HA DB instances and this parameter is not involved.
- hostname String
- Indicates the instance connection address. It is a blank string.
- name String
- Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant. The changes of the instance name will be suppressed in HA scenario.
- nics Property Map
- Specifies the nics information. For details about how to obtain this parameter value, see section "Subnet" in the Virtual Private Cloud API Reference. The structure is described below.
- rds
Instance StringV1Id - region String
- securitygroup Property Map
- Specifies the security group which the RDS DB instance belongs to. The structure is described below.
- status String
- Indicates the DB instance status.
- tag Map<String>
- Tags key/value pairs to associate with the instance.
- timeouts Property Map
- type String
- Indicates the DB instance type, which can be master or readreplica.
- updated String
- Indicates the update time in the following format: yyyy-mm-dd Thh:mm:ssZ.
- volume Property Map
- Specifies the volume information. The structure is described below.
- vpc String
- Specifies the VPC ID. For details about how to obtain this parameter value, see section "Virtual Private Cloud" in the Virtual Private Cloud API Reference.
Supporting Types
RdsInstanceV1Backupstrategy, RdsInstanceV1BackupstrategyArgs
- Keepdays double
- Specifies the number of days to retain the generated backup files. Its value range is 0 to 35. If this parameter is not specified or set to 0, the automated backup policy is disabled.
- Starttime string
- Indicates the backup start time that has been set. The backup task will be triggered within one hour after the backup start time. Valid value: The value cannot be empty. It must use the hh:mm:ss format and must be valid. The current time is the UTC time.
- Keepdays float64
- Specifies the number of days to retain the generated backup files. Its value range is 0 to 35. If this parameter is not specified or set to 0, the automated backup policy is disabled.
- Starttime string
- Indicates the backup start time that has been set. The backup task will be triggered within one hour after the backup start time. Valid value: The value cannot be empty. It must use the hh:mm:ss format and must be valid. The current time is the UTC time.
- keepdays Double
- Specifies the number of days to retain the generated backup files. Its value range is 0 to 35. If this parameter is not specified or set to 0, the automated backup policy is disabled.
- starttime String
- Indicates the backup start time that has been set. The backup task will be triggered within one hour after the backup start time. Valid value: The value cannot be empty. It must use the hh:mm:ss format and must be valid. The current time is the UTC time.
- keepdays number
- Specifies the number of days to retain the generated backup files. Its value range is 0 to 35. If this parameter is not specified or set to 0, the automated backup policy is disabled.
- starttime string
- Indicates the backup start time that has been set. The backup task will be triggered within one hour after the backup start time. Valid value: The value cannot be empty. It must use the hh:mm:ss format and must be valid. The current time is the UTC time.
- keepdays float
- Specifies the number of days to retain the generated backup files. Its value range is 0 to 35. If this parameter is not specified or set to 0, the automated backup policy is disabled.
- starttime str
- Indicates the backup start time that has been set. The backup task will be triggered within one hour after the backup start time. Valid value: The value cannot be empty. It must use the hh:mm:ss format and must be valid. The current time is the UTC time.
- keepdays Number
- Specifies the number of days to retain the generated backup files. Its value range is 0 to 35. If this parameter is not specified or set to 0, the automated backup policy is disabled.
- starttime String
- Indicates the backup start time that has been set. The backup task will be triggered within one hour after the backup start time. Valid value: The value cannot be empty. It must use the hh:mm:ss format and must be valid. The current time is the UTC time.
RdsInstanceV1Datastore, RdsInstanceV1DatastoreArgs
- Type string
- Specifies the DB engine. Currently, MySQL, PostgreSQL, and Microsoft SQL Server are supported. The value is MySQL, PostgreSQL, or SQLServer.
- Version string
Specifies the DB instance version.
- Available value for attributes
| type | version | |------------|---------------------------------------------------------------------------| | PostgreSQL | 9.5.5 9.6.3 9.6.5 | | MySQL | 5.6.33 5.6.30 5.6.34 5.6.35 5.6.36 5.7.17 5.7.20 | | SQLServer | 2014 SP2 SE |
- Type string
- Specifies the DB engine. Currently, MySQL, PostgreSQL, and Microsoft SQL Server are supported. The value is MySQL, PostgreSQL, or SQLServer.
- Version string
Specifies the DB instance version.
- Available value for attributes
| type | version | |------------|---------------------------------------------------------------------------| | PostgreSQL | 9.5.5 9.6.3 9.6.5 | | MySQL | 5.6.33 5.6.30 5.6.34 5.6.35 5.6.36 5.7.17 5.7.20 | | SQLServer | 2014 SP2 SE |
- type String
- Specifies the DB engine. Currently, MySQL, PostgreSQL, and Microsoft SQL Server are supported. The value is MySQL, PostgreSQL, or SQLServer.
- version String
Specifies the DB instance version.
- Available value for attributes
| type | version | |------------|---------------------------------------------------------------------------| | PostgreSQL | 9.5.5 9.6.3 9.6.5 | | MySQL | 5.6.33 5.6.30 5.6.34 5.6.35 5.6.36 5.7.17 5.7.20 | | SQLServer | 2014 SP2 SE |
- type string
- Specifies the DB engine. Currently, MySQL, PostgreSQL, and Microsoft SQL Server are supported. The value is MySQL, PostgreSQL, or SQLServer.
- version string
Specifies the DB instance version.
- Available value for attributes
| type | version | |------------|---------------------------------------------------------------------------| | PostgreSQL | 9.5.5 9.6.3 9.6.5 | | MySQL | 5.6.33 5.6.30 5.6.34 5.6.35 5.6.36 5.7.17 5.7.20 | | SQLServer | 2014 SP2 SE |
- type str
- Specifies the DB engine. Currently, MySQL, PostgreSQL, and Microsoft SQL Server are supported. The value is MySQL, PostgreSQL, or SQLServer.
- version str
Specifies the DB instance version.
- Available value for attributes
| type | version | |------------|---------------------------------------------------------------------------| | PostgreSQL | 9.5.5 9.6.3 9.6.5 | | MySQL | 5.6.33 5.6.30 5.6.34 5.6.35 5.6.36 5.7.17 5.7.20 | | SQLServer | 2014 SP2 SE |
- type String
- Specifies the DB engine. Currently, MySQL, PostgreSQL, and Microsoft SQL Server are supported. The value is MySQL, PostgreSQL, or SQLServer.
- version String
Specifies the DB instance version.
- Available value for attributes
| type | version | |------------|---------------------------------------------------------------------------| | PostgreSQL | 9.5.5 9.6.3 9.6.5 | | MySQL | 5.6.33 5.6.30 5.6.34 5.6.35 5.6.36 5.7.17 5.7.20 | | SQLServer | 2014 SP2 SE |
RdsInstanceV1Ha, RdsInstanceV1HaArgs
- Enable bool
- Specifies the configured parameters on the HA. Valid value: The value is true or false. The value true indicates creating HA DB instances. The value false indicates creating a single DB instance.
- Replicationmode string
- Specifies the replication mode for the standby DB instance. The value cannot be empty. For MySQL, the value is async or semisync. For PostgreSQL, the value is async or sync.
- Enable bool
- Specifies the configured parameters on the HA. Valid value: The value is true or false. The value true indicates creating HA DB instances. The value false indicates creating a single DB instance.
- Replicationmode string
- Specifies the replication mode for the standby DB instance. The value cannot be empty. For MySQL, the value is async or semisync. For PostgreSQL, the value is async or sync.
- enable Boolean
- Specifies the configured parameters on the HA. Valid value: The value is true or false. The value true indicates creating HA DB instances. The value false indicates creating a single DB instance.
- replicationmode String
- Specifies the replication mode for the standby DB instance. The value cannot be empty. For MySQL, the value is async or semisync. For PostgreSQL, the value is async or sync.
- enable boolean
- Specifies the configured parameters on the HA. Valid value: The value is true or false. The value true indicates creating HA DB instances. The value false indicates creating a single DB instance.
- replicationmode string
- Specifies the replication mode for the standby DB instance. The value cannot be empty. For MySQL, the value is async or semisync. For PostgreSQL, the value is async or sync.
- enable bool
- Specifies the configured parameters on the HA. Valid value: The value is true or false. The value true indicates creating HA DB instances. The value false indicates creating a single DB instance.
- replicationmode str
- Specifies the replication mode for the standby DB instance. The value cannot be empty. For MySQL, the value is async or semisync. For PostgreSQL, the value is async or sync.
- enable Boolean
- Specifies the configured parameters on the HA. Valid value: The value is true or false. The value true indicates creating HA DB instances. The value false indicates creating a single DB instance.
- replicationmode String
- Specifies the replication mode for the standby DB instance. The value cannot be empty. For MySQL, the value is async or semisync. For PostgreSQL, the value is async or sync.
RdsInstanceV1Nics, RdsInstanceV1NicsArgs
- Subnetid string
- Subnetid string
- subnetid String
- subnetid string
- subnetid str
- subnetid String
RdsInstanceV1Securitygroup, RdsInstanceV1SecuritygroupArgs
- Id string
Specifies the ID obtained from the securitygroup.
The
backupstrategy
block supports:
- Id string
Specifies the ID obtained from the securitygroup.
The
backupstrategy
block supports:
- id String
Specifies the ID obtained from the securitygroup.
The
backupstrategy
block supports:
- id string
Specifies the ID obtained from the securitygroup.
The
backupstrategy
block supports:
- id str
Specifies the ID obtained from the securitygroup.
The
backupstrategy
block supports:
- id String
Specifies the ID obtained from the securitygroup.
The
backupstrategy
block supports:
RdsInstanceV1Timeouts, RdsInstanceV1TimeoutsArgs
RdsInstanceV1Volume, RdsInstanceV1VolumeArgs
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.