flexibleengine.DcsInstanceV1
Explore with Pulumi AI
Manages a DCS instance in the flexibleengine DCS Service.
Example Usage
DCS instance for Redis 5.0
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const myPassword = config.requireObject("myPassword");
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: exampleVpc.vpcV1Id,
});
const product1 = flexibleengine.getDcsProductV1({
engine: "redis",
engineVersion: "4.0;5.0",
cacheMode: "cluster",
capacity: 8,
replicaCount: 2,
});
const instance1 = new flexibleengine.DcsInstanceV1("instance1", {
engine: "Redis",
engineVersion: "5.0",
password: myPassword,
productId: product1.then(product1 => product1.id),
capacity: 8,
vpcId: exampleVpc.vpcV1Id,
networkId: exampleSubnet.vpcSubnetV1Id,
availableZones: [
"eu-west-0a",
"eu-west-0b",
],
saveDays: 1,
backupType: "manual",
beginAt: "00:00-01:00",
periodType: "weekly",
backupAts: [1],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
my_password = config.require_object("myPassword")
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=example_vpc.vpc_v1_id)
product1 = flexibleengine.get_dcs_product_v1(engine="redis",
engine_version="4.0;5.0",
cache_mode="cluster",
capacity=8,
replica_count=2)
instance1 = flexibleengine.DcsInstanceV1("instance1",
engine="Redis",
engine_version="5.0",
password=my_password,
product_id=product1.id,
capacity=8,
vpc_id=example_vpc.vpc_v1_id,
network_id=example_subnet.vpc_subnet_v1_id,
available_zones=[
"eu-west-0a",
"eu-west-0b",
],
save_days=1,
backup_type="manual",
begin_at="00:00-01:00",
period_type="weekly",
backup_ats=[1])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
myPassword := cfg.RequireObject("myPassword")
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: exampleVpc.VpcV1Id,
})
if err != nil {
return err
}
product1, err := flexibleengine.GetDcsProductV1(ctx, &flexibleengine.GetDcsProductV1Args{
Engine: pulumi.StringRef("redis"),
EngineVersion: pulumi.StringRef("4.0;5.0"),
CacheMode: pulumi.StringRef("cluster"),
Capacity: pulumi.Float64Ref(8),
ReplicaCount: pulumi.Float64Ref(2),
}, nil)
if err != nil {
return err
}
_, err = flexibleengine.NewDcsInstanceV1(ctx, "instance1", &flexibleengine.DcsInstanceV1Args{
Engine: pulumi.String("Redis"),
EngineVersion: pulumi.String("5.0"),
Password: pulumi.Any(myPassword),
ProductId: pulumi.String(product1.Id),
Capacity: pulumi.Float64(8),
VpcId: exampleVpc.VpcV1Id,
NetworkId: exampleSubnet.VpcSubnetV1Id,
AvailableZones: pulumi.StringArray{
pulumi.String("eu-west-0a"),
pulumi.String("eu-west-0b"),
},
SaveDays: pulumi.Float64(1),
BackupType: pulumi.String("manual"),
BeginAt: pulumi.String("00:00-01:00"),
PeriodType: pulumi.String("weekly"),
BackupAts: pulumi.Float64Array{
pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var myPassword = config.RequireObject<dynamic>("myPassword");
var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = exampleVpc.VpcV1Id,
});
var product1 = Flexibleengine.GetDcsProductV1.Invoke(new()
{
Engine = "redis",
EngineVersion = "4.0;5.0",
CacheMode = "cluster",
Capacity = 8,
ReplicaCount = 2,
});
var instance1 = new Flexibleengine.DcsInstanceV1("instance1", new()
{
Engine = "Redis",
EngineVersion = "5.0",
Password = myPassword,
ProductId = product1.Apply(getDcsProductV1Result => getDcsProductV1Result.Id),
Capacity = 8,
VpcId = exampleVpc.VpcV1Id,
NetworkId = exampleSubnet.VpcSubnetV1Id,
AvailableZones = new[]
{
"eu-west-0a",
"eu-west-0b",
},
SaveDays = 1,
BackupType = "manual",
BeginAt = "00:00-01:00",
PeriodType = "weekly",
BackupAts = new[]
{
1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetDcsProductV1Args;
import com.pulumi.flexibleengine.DcsInstanceV1;
import com.pulumi.flexibleengine.DcsInstanceV1Args;
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 config = ctx.config();
final var myPassword = config.get("myPassword");
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(exampleVpc.vpcV1Id())
.build());
final var product1 = FlexibleengineFunctions.getDcsProductV1(GetDcsProductV1Args.builder()
.engine("redis")
.engineVersion("4.0;5.0")
.cacheMode("cluster")
.capacity(8)
.replicaCount(2)
.build());
var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
.engine("Redis")
.engineVersion("5.0")
.password(myPassword)
.productId(product1.applyValue(getDcsProductV1Result -> getDcsProductV1Result.id()))
.capacity(8)
.vpcId(exampleVpc.vpcV1Id())
.networkId(exampleSubnet.vpcSubnetV1Id())
.availableZones(
"eu-west-0a",
"eu-west-0b")
.saveDays(1)
.backupType("manual")
.beginAt("00:00-01:00")
.periodType("weekly")
.backupAts(1)
.build());
}
}
configuration:
myPassword:
type: dynamic
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
exampleSubnet:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${exampleVpc.vpcV1Id}
instance1:
type: flexibleengine:DcsInstanceV1
properties:
engine: Redis
engineVersion: '5.0'
password: ${myPassword}
productId: ${product1.id}
capacity: 8
vpcId: ${exampleVpc.vpcV1Id}
networkId: ${exampleSubnet.vpcSubnetV1Id}
availableZones:
- eu-west-0a
- eu-west-0b
saveDays: 1
backupType: manual
beginAt: 00:00-01:00
periodType: weekly
backupAts:
- 1
variables:
product1:
fn::invoke:
function: flexibleengine:getDcsProductV1
arguments:
engine: redis
engineVersion: 4.0;5.0
cacheMode: cluster
capacity: 8
replicaCount: 2
DCS instance for Redis 3.0
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const myPassword = config.requireObject("myPassword");
const vpcId = config.requireObject("vpcId");
const networkId = config.requireObject("networkId");
const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {});
const instance1 = new flexibleengine.DcsInstanceV1("instance1", {
engine: "Redis",
engineVersion: "3.0",
password: myPassword,
productId: "dcs.master_standby-h",
capacity: 2,
vpcId: flexibleengine_vpc_v1.example_vpc.id,
networkId: flexibleengine_vpc_subnet_v1.example_subnet.id,
securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
availableZones: ["eu-west-0a"],
saveDays: 1,
backupType: "manual",
beginAt: "00:00-01:00",
periodType: "weekly",
backupAts: [1],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
my_password = config.require_object("myPassword")
vpc_id = config.require_object("vpcId")
network_id = config.require_object("networkId")
example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup")
instance1 = flexibleengine.DcsInstanceV1("instance1",
engine="Redis",
engine_version="3.0",
password=my_password,
product_id="dcs.master_standby-h",
capacity=2,
vpc_id=flexibleengine_vpc_v1["example_vpc"]["id"],
network_id=flexibleengine_vpc_subnet_v1["example_subnet"]["id"],
security_group_id=example_secgroup.networking_secgroup_v2_id,
available_zones=["eu-west-0a"],
save_days=1,
backup_type="manual",
begin_at="00:00-01:00",
period_type="weekly",
backup_ats=[1])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
myPassword := cfg.RequireObject("myPassword")
vpcId := cfg.RequireObject("vpcId")
networkId := cfg.RequireObject("networkId")
exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", nil)
if err != nil {
return err
}
_, err = flexibleengine.NewDcsInstanceV1(ctx, "instance1", &flexibleengine.DcsInstanceV1Args{
Engine: pulumi.String("Redis"),
EngineVersion: pulumi.String("3.0"),
Password: pulumi.Any(myPassword),
ProductId: pulumi.String("dcs.master_standby-h"),
Capacity: pulumi.Float64(2),
VpcId: pulumi.Any(flexibleengine_vpc_v1.Example_vpc.Id),
NetworkId: pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Id),
SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
AvailableZones: pulumi.StringArray{
pulumi.String("eu-west-0a"),
},
SaveDays: pulumi.Float64(1),
BackupType: pulumi.String("manual"),
BeginAt: pulumi.String("00:00-01:00"),
PeriodType: pulumi.String("weekly"),
BackupAts: pulumi.Float64Array{
pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var myPassword = config.RequireObject<dynamic>("myPassword");
var vpcId = config.RequireObject<dynamic>("vpcId");
var networkId = config.RequireObject<dynamic>("networkId");
var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup");
var instance1 = new Flexibleengine.DcsInstanceV1("instance1", new()
{
Engine = "Redis",
EngineVersion = "3.0",
Password = myPassword,
ProductId = "dcs.master_standby-h",
Capacity = 2,
VpcId = flexibleengine_vpc_v1.Example_vpc.Id,
NetworkId = flexibleengine_vpc_subnet_v1.Example_subnet.Id,
SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
AvailableZones = new[]
{
"eu-west-0a",
},
SaveDays = 1,
BackupType = "manual",
BeginAt = "00:00-01:00",
PeriodType = "weekly",
BackupAts = new[]
{
1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.NetworkingSecgroupV2;
import com.pulumi.flexibleengine.DcsInstanceV1;
import com.pulumi.flexibleengine.DcsInstanceV1Args;
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 config = ctx.config();
final var myPassword = config.get("myPassword");
final var vpcId = config.get("vpcId");
final var networkId = config.get("networkId");
var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup");
var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
.engine("Redis")
.engineVersion("3.0")
.password(myPassword)
.productId("dcs.master_standby-h")
.capacity(2)
.vpcId(flexibleengine_vpc_v1.example_vpc().id())
.networkId(flexibleengine_vpc_subnet_v1.example_subnet().id())
.securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
.availableZones("eu-west-0a")
.saveDays(1)
.backupType("manual")
.beginAt("00:00-01:00")
.periodType("weekly")
.backupAts(1)
.build());
}
}
configuration:
myPassword:
type: dynamic
vpcId:
type: dynamic
networkId:
type: dynamic
resources:
exampleSecgroup:
type: flexibleengine:NetworkingSecgroupV2
instance1:
type: flexibleengine:DcsInstanceV1
properties:
engine: Redis
engineVersion: '3.0'
password: ${myPassword}
productId: dcs.master_standby-h
capacity: 2
vpcId: ${flexibleengine_vpc_v1.example_vpc.id}
networkId: ${flexibleengine_vpc_subnet_v1.example_subnet.id}
securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
availableZones:
- eu-west-0a
saveDays: 1
backupType: manual
beginAt: 00:00-01:00
periodType: weekly
backupAts:
- 1
DCS instance for Memcached
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const myPassword = config.requireObject("myPassword");
const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {});
const instance1 = new flexibleengine.DcsInstanceV1("instance1", {
engine: "Memcached",
accessUser: "admin",
password: myPassword,
productId: "dcs.memcached.master_standby-h",
capacity: 2,
vpcId: flexibleengine_vpc_v1.example_vpc.id,
networkId: flexibleengine_vpc_subnet_v1.example_subnet.id,
securityGroupId: exampleSecgroup.networkingSecgroupV2Id,
availableZones: ["eu-west-0a"],
saveDays: 1,
backupType: "manual",
beginAt: "00:00-01:00",
periodType: "weekly",
backupAts: [1],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
my_password = config.require_object("myPassword")
example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup")
instance1 = flexibleengine.DcsInstanceV1("instance1",
engine="Memcached",
access_user="admin",
password=my_password,
product_id="dcs.memcached.master_standby-h",
capacity=2,
vpc_id=flexibleengine_vpc_v1["example_vpc"]["id"],
network_id=flexibleengine_vpc_subnet_v1["example_subnet"]["id"],
security_group_id=example_secgroup.networking_secgroup_v2_id,
available_zones=["eu-west-0a"],
save_days=1,
backup_type="manual",
begin_at="00:00-01:00",
period_type="weekly",
backup_ats=[1])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
myPassword := cfg.RequireObject("myPassword")
exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", nil)
if err != nil {
return err
}
_, err = flexibleengine.NewDcsInstanceV1(ctx, "instance1", &flexibleengine.DcsInstanceV1Args{
Engine: pulumi.String("Memcached"),
AccessUser: pulumi.String("admin"),
Password: pulumi.Any(myPassword),
ProductId: pulumi.String("dcs.memcached.master_standby-h"),
Capacity: pulumi.Float64(2),
VpcId: pulumi.Any(flexibleengine_vpc_v1.Example_vpc.Id),
NetworkId: pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Id),
SecurityGroupId: exampleSecgroup.NetworkingSecgroupV2Id,
AvailableZones: pulumi.StringArray{
pulumi.String("eu-west-0a"),
},
SaveDays: pulumi.Float64(1),
BackupType: pulumi.String("manual"),
BeginAt: pulumi.String("00:00-01:00"),
PeriodType: pulumi.String("weekly"),
BackupAts: pulumi.Float64Array{
pulumi.Float64(1),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var myPassword = config.RequireObject<dynamic>("myPassword");
var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup");
var instance1 = new Flexibleengine.DcsInstanceV1("instance1", new()
{
Engine = "Memcached",
AccessUser = "admin",
Password = myPassword,
ProductId = "dcs.memcached.master_standby-h",
Capacity = 2,
VpcId = flexibleengine_vpc_v1.Example_vpc.Id,
NetworkId = flexibleengine_vpc_subnet_v1.Example_subnet.Id,
SecurityGroupId = exampleSecgroup.NetworkingSecgroupV2Id,
AvailableZones = new[]
{
"eu-west-0a",
},
SaveDays = 1,
BackupType = "manual",
BeginAt = "00:00-01:00",
PeriodType = "weekly",
BackupAts = new[]
{
1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.NetworkingSecgroupV2;
import com.pulumi.flexibleengine.DcsInstanceV1;
import com.pulumi.flexibleengine.DcsInstanceV1Args;
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 config = ctx.config();
final var myPassword = config.get("myPassword");
var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup");
var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
.engine("Memcached")
.accessUser("admin")
.password(myPassword)
.productId("dcs.memcached.master_standby-h")
.capacity(2)
.vpcId(flexibleengine_vpc_v1.example_vpc().id())
.networkId(flexibleengine_vpc_subnet_v1.example_subnet().id())
.securityGroupId(exampleSecgroup.networkingSecgroupV2Id())
.availableZones("eu-west-0a")
.saveDays(1)
.backupType("manual")
.beginAt("00:00-01:00")
.periodType("weekly")
.backupAts(1)
.build());
}
}
configuration:
myPassword:
type: dynamic
resources:
exampleSecgroup:
type: flexibleengine:NetworkingSecgroupV2
instance1:
type: flexibleengine:DcsInstanceV1
properties:
engine: Memcached
accessUser: admin
password: ${myPassword}
productId: dcs.memcached.master_standby-h
capacity: 2
vpcId: ${flexibleengine_vpc_v1.example_vpc.id}
networkId: ${flexibleengine_vpc_subnet_v1.example_subnet.id}
securityGroupId: ${exampleSecgroup.networkingSecgroupV2Id}
availableZones:
- eu-west-0a
saveDays: 1
backupType: manual
beginAt: 00:00-01:00
periodType: weekly
backupAts:
- 1
Create DcsInstanceV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DcsInstanceV1(name: string, args: DcsInstanceV1Args, opts?: CustomResourceOptions);
@overload
def DcsInstanceV1(resource_name: str,
args: DcsInstanceV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def DcsInstanceV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
password: Optional[str] = None,
available_zones: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
network_id: Optional[str] = None,
engine: Optional[str] = None,
capacity: Optional[float] = None,
dcs_instance_v1_id: Optional[str] = None,
access_user: Optional[str] = None,
maintain_begin: Optional[str] = None,
engine_version: Optional[str] = None,
instance_type: Optional[str] = None,
begin_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
backup_type: Optional[str] = None,
maintain_end: Optional[str] = None,
period_type: Optional[str] = None,
port: Optional[float] = None,
product_id: Optional[str] = None,
save_days: Optional[float] = None,
security_group_id: Optional[str] = None,
timeouts: Optional[DcsInstanceV1TimeoutsArgs] = None,
backup_ats: Optional[Sequence[float]] = None)
func NewDcsInstanceV1(ctx *Context, name string, args DcsInstanceV1Args, opts ...ResourceOption) (*DcsInstanceV1, error)
public DcsInstanceV1(string name, DcsInstanceV1Args args, CustomResourceOptions? opts = null)
public DcsInstanceV1(String name, DcsInstanceV1Args args)
public DcsInstanceV1(String name, DcsInstanceV1Args args, CustomResourceOptions options)
type: flexibleengine:DcsInstanceV1
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 DcsInstanceV1Args
- 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 DcsInstanceV1Args
- 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 DcsInstanceV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DcsInstanceV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DcsInstanceV1Args
- 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 dcsInstanceV1Resource = new Flexibleengine.DcsInstanceV1("dcsInstanceV1Resource", new()
{
Password = "string",
AvailableZones = new[]
{
"string",
},
VpcId = "string",
NetworkId = "string",
Engine = "string",
Capacity = 0,
DcsInstanceV1Id = "string",
AccessUser = "string",
MaintainBegin = "string",
EngineVersion = "string",
BeginAt = "string",
Description = "string",
Name = "string",
BackupType = "string",
MaintainEnd = "string",
PeriodType = "string",
Port = 0,
ProductId = "string",
SaveDays = 0,
SecurityGroupId = "string",
Timeouts = new Flexibleengine.Inputs.DcsInstanceV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
BackupAts = new[]
{
0,
},
});
example, err := flexibleengine.NewDcsInstanceV1(ctx, "dcsInstanceV1Resource", &flexibleengine.DcsInstanceV1Args{
Password: pulumi.String("string"),
AvailableZones: pulumi.StringArray{
pulumi.String("string"),
},
VpcId: pulumi.String("string"),
NetworkId: pulumi.String("string"),
Engine: pulumi.String("string"),
Capacity: pulumi.Float64(0),
DcsInstanceV1Id: pulumi.String("string"),
AccessUser: pulumi.String("string"),
MaintainBegin: pulumi.String("string"),
EngineVersion: pulumi.String("string"),
BeginAt: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
BackupType: pulumi.String("string"),
MaintainEnd: pulumi.String("string"),
PeriodType: pulumi.String("string"),
Port: pulumi.Float64(0),
ProductId: pulumi.String("string"),
SaveDays: pulumi.Float64(0),
SecurityGroupId: pulumi.String("string"),
Timeouts: &flexibleengine.DcsInstanceV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
BackupAts: pulumi.Float64Array{
pulumi.Float64(0),
},
})
var dcsInstanceV1Resource = new DcsInstanceV1("dcsInstanceV1Resource", DcsInstanceV1Args.builder()
.password("string")
.availableZones("string")
.vpcId("string")
.networkId("string")
.engine("string")
.capacity(0)
.dcsInstanceV1Id("string")
.accessUser("string")
.maintainBegin("string")
.engineVersion("string")
.beginAt("string")
.description("string")
.name("string")
.backupType("string")
.maintainEnd("string")
.periodType("string")
.port(0)
.productId("string")
.saveDays(0)
.securityGroupId("string")
.timeouts(DcsInstanceV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.backupAts(0)
.build());
dcs_instance_v1_resource = flexibleengine.DcsInstanceV1("dcsInstanceV1Resource",
password="string",
available_zones=["string"],
vpc_id="string",
network_id="string",
engine="string",
capacity=0,
dcs_instance_v1_id="string",
access_user="string",
maintain_begin="string",
engine_version="string",
begin_at="string",
description="string",
name="string",
backup_type="string",
maintain_end="string",
period_type="string",
port=0,
product_id="string",
save_days=0,
security_group_id="string",
timeouts={
"create": "string",
"delete": "string",
},
backup_ats=[0])
const dcsInstanceV1Resource = new flexibleengine.DcsInstanceV1("dcsInstanceV1Resource", {
password: "string",
availableZones: ["string"],
vpcId: "string",
networkId: "string",
engine: "string",
capacity: 0,
dcsInstanceV1Id: "string",
accessUser: "string",
maintainBegin: "string",
engineVersion: "string",
beginAt: "string",
description: "string",
name: "string",
backupType: "string",
maintainEnd: "string",
periodType: "string",
port: 0,
productId: "string",
saveDays: 0,
securityGroupId: "string",
timeouts: {
create: "string",
"delete": "string",
},
backupAts: [0],
});
type: flexibleengine:DcsInstanceV1
properties:
accessUser: string
availableZones:
- string
backupAts:
- 0
backupType: string
beginAt: string
capacity: 0
dcsInstanceV1Id: string
description: string
engine: string
engineVersion: string
maintainBegin: string
maintainEnd: string
name: string
networkId: string
password: string
periodType: string
port: 0
productId: string
saveDays: 0
securityGroupId: string
timeouts:
create: string
delete: string
vpcId: string
DcsInstanceV1 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 DcsInstanceV1 resource accepts the following input properties:
- Available
Zones List<string> - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- Capacity double
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- Engine string
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- Network
Id string - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- Password string
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- Vpc
Id string - Specifies the id of the VPC. Changing this creates a new instance.
- Access
User string - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- Backup
Ats List<double> - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- Backup
Type string - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- Begin
At string - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- Dcs
Instance stringV1Id - The resource ID in UUID format.
- Description string
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- Engine
Version string - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- Instance
Type string - Maintain
Begin string - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- Maintain
End string - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- Name string
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- Period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- Port double
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- Product
Id string Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- Save
Days double - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- Security
Group stringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- Timeouts
Dcs
Instance V1Timeouts
- Available
Zones []string - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- Capacity float64
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- Engine string
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- Network
Id string - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- Password string
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- Vpc
Id string - Specifies the id of the VPC. Changing this creates a new instance.
- Access
User string - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- Backup
Ats []float64 - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- Backup
Type string - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- Begin
At string - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- Dcs
Instance stringV1Id - The resource ID in UUID format.
- Description string
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- Engine
Version string - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- Instance
Type string - Maintain
Begin string - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- Maintain
End string - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- Name string
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- Period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- Port float64
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- Product
Id string Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- Save
Days float64 - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- Security
Group stringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- Timeouts
Dcs
Instance V1Timeouts Args
- available
Zones List<String> - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- capacity Double
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- engine String
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- network
Id String - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password String
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- vpc
Id String - Specifies the id of the VPC. Changing this creates a new instance.
- access
User String - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- backup
Ats List<Double> - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup
Type String - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin
At String - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- dcs
Instance StringV1Id - The resource ID in UUID format.
- description String
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine
Version String - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance
Type String - maintain
Begin String - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain
End String - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- name String
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- period
Type String - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port Double
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product
Id String Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- save
Days Double - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security
Group StringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- timeouts
Dcs
Instance V1Timeouts
- available
Zones string[] - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- capacity number
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- engine string
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- network
Id string - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password string
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- vpc
Id string - Specifies the id of the VPC. Changing this creates a new instance.
- access
User string - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- backup
Ats number[] - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup
Type string - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin
At string - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- dcs
Instance stringV1Id - The resource ID in UUID format.
- description string
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine
Version string - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance
Type string - maintain
Begin string - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain
End string - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- name string
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port number
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product
Id string Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- save
Days number - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security
Group stringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- timeouts
Dcs
Instance V1Timeouts
- available_
zones Sequence[str] - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- capacity float
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- engine str
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- network_
id str - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password str
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- vpc_
id str - Specifies the id of the VPC. Changing this creates a new instance.
- access_
user str - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- backup_
ats Sequence[float] - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup_
type str - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin_
at str - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- dcs_
instance_ strv1_ id - The resource ID in UUID format.
- description str
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine_
version str - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance_
type str - maintain_
begin str - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain_
end str - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- name str
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- period_
type str - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port float
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product_
id str Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- save_
days float - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security_
group_ strid - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- timeouts
Dcs
Instance V1Timeouts Args
- available
Zones List<String> - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- capacity Number
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- engine String
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- network
Id String - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password String
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- vpc
Id String - Specifies the id of the VPC. Changing this creates a new instance.
- access
User String - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- backup
Ats List<Number> - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup
Type String - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin
At String - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- dcs
Instance StringV1Id - The resource ID in UUID format.
- description String
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine
Version String - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance
Type String - maintain
Begin String - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain
End String - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- name String
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- period
Type String - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port Number
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product
Id String Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- save
Days Number - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security
Group StringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DcsInstanceV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Version string - Internal DCS version.
- Ip string
- Cache node's IP address in tenant's VPC.
- Max
Memory double - Overall memory size. Unit: MB.
- Resource
Spec stringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- Security
Group stringName - Indicates the name of a security group.
- Status string
- Status of the Cache instance.
- Subnet
Name string - Indicates the name of a subnet.
- Used
Memory double - Size of the used memory. Unit: MB.
- User
Id string - Indicates a user ID.
- Vpc
Name string - Indicates the name of a vpc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Version string - Internal DCS version.
- Ip string
- Cache node's IP address in tenant's VPC.
- Max
Memory float64 - Overall memory size. Unit: MB.
- Resource
Spec stringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- Security
Group stringName - Indicates the name of a security group.
- Status string
- Status of the Cache instance.
- Subnet
Name string - Indicates the name of a subnet.
- Used
Memory float64 - Size of the used memory. Unit: MB.
- User
Id string - Indicates a user ID.
- Vpc
Name string - Indicates the name of a vpc.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Version String - Internal DCS version.
- ip String
- Cache node's IP address in tenant's VPC.
- max
Memory Double - Overall memory size. Unit: MB.
- resource
Spec StringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- security
Group StringName - Indicates the name of a security group.
- status String
- Status of the Cache instance.
- subnet
Name String - Indicates the name of a subnet.
- used
Memory Double - Size of the used memory. Unit: MB.
- user
Id String - Indicates a user ID.
- vpc
Name String - Indicates the name of a vpc.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Version string - Internal DCS version.
- ip string
- Cache node's IP address in tenant's VPC.
- max
Memory number - Overall memory size. Unit: MB.
- resource
Spec stringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- security
Group stringName - Indicates the name of a security group.
- status string
- Status of the Cache instance.
- subnet
Name string - Indicates the name of a subnet.
- used
Memory number - Size of the used memory. Unit: MB.
- user
Id string - Indicates a user ID.
- vpc
Name string - Indicates the name of a vpc.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
version str - Internal DCS version.
- ip str
- Cache node's IP address in tenant's VPC.
- max_
memory float - Overall memory size. Unit: MB.
- resource_
spec_ strcode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- security_
group_ strname - Indicates the name of a security group.
- status str
- Status of the Cache instance.
- subnet_
name str - Indicates the name of a subnet.
- used_
memory float - Size of the used memory. Unit: MB.
- user_
id str - Indicates a user ID.
- vpc_
name str - Indicates the name of a vpc.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Version String - Internal DCS version.
- ip String
- Cache node's IP address in tenant's VPC.
- max
Memory Number - Overall memory size. Unit: MB.
- resource
Spec StringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- security
Group StringName - Indicates the name of a security group.
- status String
- Status of the Cache instance.
- subnet
Name String - Indicates the name of a subnet.
- used
Memory Number - Size of the used memory. Unit: MB.
- user
Id String - Indicates a user ID.
- vpc
Name String - Indicates the name of a vpc.
Look up Existing DcsInstanceV1 Resource
Get an existing DcsInstanceV1 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?: DcsInstanceV1State, opts?: CustomResourceOptions): DcsInstanceV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_user: Optional[str] = None,
available_zones: Optional[Sequence[str]] = None,
backup_ats: Optional[Sequence[float]] = None,
backup_type: Optional[str] = None,
begin_at: Optional[str] = None,
capacity: Optional[float] = None,
dcs_instance_v1_id: Optional[str] = None,
description: Optional[str] = None,
engine: Optional[str] = None,
engine_version: Optional[str] = None,
instance_type: Optional[str] = None,
internal_version: Optional[str] = None,
ip: Optional[str] = None,
maintain_begin: Optional[str] = None,
maintain_end: Optional[str] = None,
max_memory: Optional[float] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
password: Optional[str] = None,
period_type: Optional[str] = None,
port: Optional[float] = None,
product_id: Optional[str] = None,
resource_spec_code: Optional[str] = None,
save_days: Optional[float] = None,
security_group_id: Optional[str] = None,
security_group_name: Optional[str] = None,
status: Optional[str] = None,
subnet_name: Optional[str] = None,
timeouts: Optional[DcsInstanceV1TimeoutsArgs] = None,
used_memory: Optional[float] = None,
user_id: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_name: Optional[str] = None) -> DcsInstanceV1
func GetDcsInstanceV1(ctx *Context, name string, id IDInput, state *DcsInstanceV1State, opts ...ResourceOption) (*DcsInstanceV1, error)
public static DcsInstanceV1 Get(string name, Input<string> id, DcsInstanceV1State? state, CustomResourceOptions? opts = null)
public static DcsInstanceV1 get(String name, Output<String> id, DcsInstanceV1State state, CustomResourceOptions options)
resources: _: type: flexibleengine:DcsInstanceV1 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.
- Access
User string - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- Available
Zones List<string> - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- Backup
Ats List<double> - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- Backup
Type string - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- Begin
At string - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- Capacity double
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- Dcs
Instance stringV1Id - The resource ID in UUID format.
- Description string
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- Engine string
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- Engine
Version string - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- Instance
Type string - Internal
Version string - Internal DCS version.
- Ip string
- Cache node's IP address in tenant's VPC.
- Maintain
Begin string - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- Maintain
End string - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- Max
Memory double - Overall memory size. Unit: MB.
- Name string
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- Network
Id string - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- Password string
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- Period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- Port double
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- Product
Id string Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- Resource
Spec stringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- Save
Days double - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- Security
Group stringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- Security
Group stringName - Indicates the name of a security group.
- Status string
- Status of the Cache instance.
- Subnet
Name string - Indicates the name of a subnet.
- Timeouts
Dcs
Instance V1Timeouts - Used
Memory double - Size of the used memory. Unit: MB.
- User
Id string - Indicates a user ID.
- Vpc
Id string - Specifies the id of the VPC. Changing this creates a new instance.
- Vpc
Name string - Indicates the name of a vpc.
- Access
User string - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- Available
Zones []string - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- Backup
Ats []float64 - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- Backup
Type string - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- Begin
At string - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- Capacity float64
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- Dcs
Instance stringV1Id - The resource ID in UUID format.
- Description string
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- Engine string
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- Engine
Version string - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- Instance
Type string - Internal
Version string - Internal DCS version.
- Ip string
- Cache node's IP address in tenant's VPC.
- Maintain
Begin string - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- Maintain
End string - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- Max
Memory float64 - Overall memory size. Unit: MB.
- Name string
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- Network
Id string - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- Password string
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- Period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- Port float64
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- Product
Id string Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- Resource
Spec stringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- Save
Days float64 - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- Security
Group stringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- Security
Group stringName - Indicates the name of a security group.
- Status string
- Status of the Cache instance.
- Subnet
Name string - Indicates the name of a subnet.
- Timeouts
Dcs
Instance V1Timeouts Args - Used
Memory float64 - Size of the used memory. Unit: MB.
- User
Id string - Indicates a user ID.
- Vpc
Id string - Specifies the id of the VPC. Changing this creates a new instance.
- Vpc
Name string - Indicates the name of a vpc.
- access
User String - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- available
Zones List<String> - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- backup
Ats List<Double> - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup
Type String - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin
At String - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- capacity Double
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- dcs
Instance StringV1Id - The resource ID in UUID format.
- description String
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine String
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- engine
Version String - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance
Type String - internal
Version String - Internal DCS version.
- ip String
- Cache node's IP address in tenant's VPC.
- maintain
Begin String - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain
End String - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- max
Memory Double - Overall memory size. Unit: MB.
- name String
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- network
Id String - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password String
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- period
Type String - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port Double
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product
Id String Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- resource
Spec StringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- save
Days Double - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security
Group StringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- security
Group StringName - Indicates the name of a security group.
- status String
- Status of the Cache instance.
- subnet
Name String - Indicates the name of a subnet.
- timeouts
Dcs
Instance V1Timeouts - used
Memory Double - Size of the used memory. Unit: MB.
- user
Id String - Indicates a user ID.
- vpc
Id String - Specifies the id of the VPC. Changing this creates a new instance.
- vpc
Name String - Indicates the name of a vpc.
- access
User string - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- available
Zones string[] - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- backup
Ats number[] - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup
Type string - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin
At string - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- capacity number
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- dcs
Instance stringV1Id - The resource ID in UUID format.
- description string
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine string
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- engine
Version string - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance
Type string - internal
Version string - Internal DCS version.
- ip string
- Cache node's IP address in tenant's VPC.
- maintain
Begin string - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain
End string - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- max
Memory number - Overall memory size. Unit: MB.
- name string
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- network
Id string - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password string
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port number
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product
Id string Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- resource
Spec stringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- save
Days number - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security
Group stringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- security
Group stringName - Indicates the name of a security group.
- status string
- Status of the Cache instance.
- subnet
Name string - Indicates the name of a subnet.
- timeouts
Dcs
Instance V1Timeouts - used
Memory number - Size of the used memory. Unit: MB.
- user
Id string - Indicates a user ID.
- vpc
Id string - Specifies the id of the VPC. Changing this creates a new instance.
- vpc
Name string - Indicates the name of a vpc.
- access_
user str - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- available_
zones Sequence[str] - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- backup_
ats Sequence[float] - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup_
type str - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin_
at str - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- capacity float
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- dcs_
instance_ strv1_ id - The resource ID in UUID format.
- description str
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine str
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- engine_
version str - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance_
type str - internal_
version str - Internal DCS version.
- ip str
- Cache node's IP address in tenant's VPC.
- maintain_
begin str - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain_
end str - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- max_
memory float - Overall memory size. Unit: MB.
- name str
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- network_
id str - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password str
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- period_
type str - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port float
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product_
id str Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- resource_
spec_ strcode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- save_
days float - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security_
group_ strid - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- security_
group_ strname - Indicates the name of a security group.
- status str
- Status of the Cache instance.
- subnet_
name str - Indicates the name of a subnet.
- timeouts
Dcs
Instance V1Timeouts Args - used_
memory float - Size of the used memory. Unit: MB.
- user_
id str - Indicates a user ID.
- vpc_
id str - Specifies the id of the VPC. Changing this creates a new instance.
- vpc_
name str - Indicates the name of a vpc.
- access
User String - Username used for accessing a DCS instance after password authentication. A username starts with a letter, consists of 1 to 64 characters, and supports only letters, digits, and hyphens (-). Changing this creates a new instance.
- available
Zones List<String> - IDs or Names of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information. Changing this creates a new instance.
- backup
Ats List<Number> - Day in a week on which backup starts. Range: 1–7. Where: 1 indicates Monday; 7 indicates Sunday. Changing this creates a new instance.
- backup
Type String - Backup type. Options: auto: automatic backup. manual: manual backup. Changing this creates a new instance.
- begin
At String - Time at which backup starts. "00:00-01:00" indicates that backup starts at 00:00:00. Changing this creates a new instance.
- capacity Number
- Indicates the Cache capacity. Unit: GB. For a DCS Redis or Memcached instance in single-node or master/standby mode, the cache capacity can be 2 GB, 4 GB, 8 GB, 16 GB, 32 GB, or 64 GB. For a DCS Redis instance in cluster mode, the cache capacity can be 64, 128, 256, 512, or 1024 GB. Changing this creates a new instance.
- dcs
Instance StringV1Id - The resource ID in UUID format.
- description String
- Indicates the description of an instance. It is a character string containing not more than 1024 characters.
- engine String
- Indicates a cache engine. Valid values are Redis and Memcached. Changing this creates a new instance.
- engine
Version String - Indicates the version of a cache engine. This parameter is only supported and mandatory for Redis engine. Changing this creates a new instance.
- instance
Type String - internal
Version String - Internal DCS version.
- ip String
- Cache node's IP address in tenant's VPC.
- maintain
Begin String - Indicates the time at which a maintenance time window starts. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The start time must be set to 22:00, 02:00, 06:00, 10:00, 14:00, or 18:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_begin is left blank, parameter maintain_end is also blank. In this case, the system automatically allocates the default start time 02:00.
- maintain
End String - Indicates the time at which a maintenance time window ends. Format: HH:mm:ss. The start time and end time of a maintenance time window must indicate the time segment of a supported maintenance time window. For details, see section Querying Maintenance Time Windows. The end time is four hours later than the start time. For example, if the start time is 22:00, the end time is 02:00. Parameters maintain_begin and maintain_end must be set in pairs. If parameter maintain_end is left blank, parameter maintain_begin is also blank. In this case, the system automatically allocates the default end time 06:00.
- max
Memory Number - Overall memory size. Unit: MB.
- name String
- Indicates the name of an instance. An instance name starts with a letter, consists of 4 to 64 characters, and supports only letters, digits, and hyphens (-).
- network
Id String - Specifies the ID of the VPC subnet. Changing this creates a new instance.
- password String
- Password of a DCS instance. The password of a DCS Redis instance must meet the following complexity requirements: Changing this creates a new instance.
- period
Type String - Interval at which backup is performed. Currently, only weekly backup is supported. Changing this creates a new instance.
- port Number
- Port customization, which is supported only by Redis 4.0 and Redis 5.0 instances and not by Redis 3.0 and Memcached instances. The values ranges from 1 to 65535. The default value is 6379. Changing this creates a new instance.
- product
Id String Product ID used to differentiate DCS instance types.
For Redis 4.0/5.0 instance, please use flexibleengine.getDcsProductV1 to get the ID of an available product.
For Redis 3.0 instance, the valid values are
dcs.master_standby-h
,dcs.single_node-h
anddcs.cluster-h
.For Memcached instance, the valid values are
dcs.memcached.master_standby-h
anddcs.memcached.single_node-h
.
Changing this creates a new instance.
- resource
Spec StringCode - Resource specifications. dcs.single_node: indicates a DCS instance in single-node mode. dcs.master_standby: indicates a DCS instance in master/standby mode. dcs.cluster: indicates a DCS instance in cluster mode.
- save
Days Number - Retention time. Unit: day. Range: 1–7. Changing this creates a new instance.
- security
Group StringId - Specifies the id of the security group which the instance belongs to. This parameter is only supported and mandatory for Memcached and Redis 3.0 versions.
- security
Group StringName - Indicates the name of a security group.
- status String
- Status of the Cache instance.
- subnet
Name String - Indicates the name of a subnet.
- timeouts Property Map
- used
Memory Number - Size of the used memory. Unit: MB.
- user
Id String - Indicates a user ID.
- vpc
Id String - Specifies the id of the VPC. Changing this creates a new instance.
- vpc
Name String - Indicates the name of a vpc.
Supporting Types
DcsInstanceV1Timeouts, DcsInstanceV1TimeoutsArgs
Import
DCS instances can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/dcsInstanceV1:DcsInstanceV1 instance_1 8a1b2c3d-4e5f-6g7h-8i9j-0k1l2m3n4o5p
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.