opentelekomcloud.DcsInstanceV1
Explore with Pulumi AI
Up-to-date reference of API arguments for DCS instance you can get at documentation portal
Manages a DCSv1 instance in the OpenTelekomCloud DCS Service.
Example Usage
Engine version 3.0 (security_group_id
is required):
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const networkId = config.requireObject("networkId");
const vpcId = config.requireObject("vpcId");
const secgroup1 = new opentelekomcloud.NetworkingSecgroupV2("secgroup1", {description: "secgroup_1"});
const az1 = opentelekomcloud.getDcsAzV1({
name: "eu-de-01",
});
const product1 = opentelekomcloud.getDcsProductV1({
specCode: "dcs.master_standby",
});
const instance1 = new opentelekomcloud.DcsInstanceV1("instance1", {
engineVersion: "3.0",
password: "0TCTestP@ssw0rd",
engine: "Redis",
capacity: 2,
vpcId: vpcId,
securityGroupId: secgroup1.networkingSecgroupV2Id,
subnetId: networkId,
availableZones: [az1.then(az1 => az1.id)],
productId: product1.then(product1 => product1.id),
backupPolicy: {
saveDays: 1,
backupType: "manual",
beginAt: "00:00-01:00",
periodType: "weekly",
backupAts: [
1,
2,
4,
6,
],
},
tags: {
environment: "basic",
managed_by: "terraform",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
network_id = config.require_object("networkId")
vpc_id = config.require_object("vpcId")
secgroup1 = opentelekomcloud.NetworkingSecgroupV2("secgroup1", description="secgroup_1")
az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
product1 = opentelekomcloud.get_dcs_product_v1(spec_code="dcs.master_standby")
instance1 = opentelekomcloud.DcsInstanceV1("instance1",
engine_version="3.0",
password="0TCTestP@ssw0rd",
engine="Redis",
capacity=2,
vpc_id=vpc_id,
security_group_id=secgroup1.networking_secgroup_v2_id,
subnet_id=network_id,
available_zones=[az1.id],
product_id=product1.id,
backup_policy={
"save_days": 1,
"backup_type": "manual",
"begin_at": "00:00-01:00",
"period_type": "weekly",
"backup_ats": [
1,
2,
4,
6,
],
},
tags={
"environment": "basic",
"managed_by": "terraform",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"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, "")
networkId := cfg.RequireObject("networkId")
vpcId := cfg.RequireObject("vpcId")
secgroup1, err := opentelekomcloud.NewNetworkingSecgroupV2(ctx, "secgroup1", &opentelekomcloud.NetworkingSecgroupV2Args{
Description: pulumi.String("secgroup_1"),
})
if err != nil {
return err
}
az1, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{
Name: pulumi.StringRef("eu-de-01"),
}, nil)
if err != nil {
return err
}
product1, err := opentelekomcloud.GetDcsProductV1(ctx, &opentelekomcloud.GetDcsProductV1Args{
SpecCode: pulumi.StringRef("dcs.master_standby"),
}, nil)
if err != nil {
return err
}
_, err = opentelekomcloud.NewDcsInstanceV1(ctx, "instance1", &opentelekomcloud.DcsInstanceV1Args{
EngineVersion: pulumi.String("3.0"),
Password: pulumi.String("0TCTestP@ssw0rd"),
Engine: pulumi.String("Redis"),
Capacity: pulumi.Float64(2),
VpcId: pulumi.Any(vpcId),
SecurityGroupId: secgroup1.NetworkingSecgroupV2Id,
SubnetId: pulumi.Any(networkId),
AvailableZones: pulumi.StringArray{
pulumi.String(az1.Id),
},
ProductId: pulumi.String(product1.Id),
BackupPolicy: &opentelekomcloud.DcsInstanceV1BackupPolicyArgs{
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),
pulumi.Float64(2),
pulumi.Float64(4),
pulumi.Float64(6),
},
},
Tags: pulumi.StringMap{
"environment": pulumi.String("basic"),
"managed_by": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var networkId = config.RequireObject<dynamic>("networkId");
var vpcId = config.RequireObject<dynamic>("vpcId");
var secgroup1 = new Opentelekomcloud.NetworkingSecgroupV2("secgroup1", new()
{
Description = "secgroup_1",
});
var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new()
{
Name = "eu-de-01",
});
var product1 = Opentelekomcloud.GetDcsProductV1.Invoke(new()
{
SpecCode = "dcs.master_standby",
});
var instance1 = new Opentelekomcloud.DcsInstanceV1("instance1", new()
{
EngineVersion = "3.0",
Password = "0TCTestP@ssw0rd",
Engine = "Redis",
Capacity = 2,
VpcId = vpcId,
SecurityGroupId = secgroup1.NetworkingSecgroupV2Id,
SubnetId = networkId,
AvailableZones = new[]
{
az1.Apply(getDcsAzV1Result => getDcsAzV1Result.Id),
},
ProductId = product1.Apply(getDcsProductV1Result => getDcsProductV1Result.Id),
BackupPolicy = new Opentelekomcloud.Inputs.DcsInstanceV1BackupPolicyArgs
{
SaveDays = 1,
BackupType = "manual",
BeginAt = "00:00-01:00",
PeriodType = "weekly",
BackupAts = new[]
{
1,
2,
4,
6,
},
},
Tags =
{
{ "environment", "basic" },
{ "managed_by", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.NetworkingSecgroupV2;
import com.pulumi.opentelekomcloud.NetworkingSecgroupV2Args;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args;
import com.pulumi.opentelekomcloud.inputs.GetDcsProductV1Args;
import com.pulumi.opentelekomcloud.DcsInstanceV1;
import com.pulumi.opentelekomcloud.DcsInstanceV1Args;
import com.pulumi.opentelekomcloud.inputs.DcsInstanceV1BackupPolicyArgs;
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 networkId = config.get("networkId");
final var vpcId = config.get("vpcId");
var secgroup1 = new NetworkingSecgroupV2("secgroup1", NetworkingSecgroupV2Args.builder()
.description("secgroup_1")
.build());
final var az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder()
.name("eu-de-01")
.build());
final var product1 = OpentelekomcloudFunctions.getDcsProductV1(GetDcsProductV1Args.builder()
.specCode("dcs.master_standby")
.build());
var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
.engineVersion("3.0")
.password("0TCTestP@ssw0rd")
.engine("Redis")
.capacity(2)
.vpcId(vpcId)
.securityGroupId(secgroup1.networkingSecgroupV2Id())
.subnetId(networkId)
.availableZones(az1.applyValue(getDcsAzV1Result -> getDcsAzV1Result.id()))
.productId(product1.applyValue(getDcsProductV1Result -> getDcsProductV1Result.id()))
.backupPolicy(DcsInstanceV1BackupPolicyArgs.builder()
.saveDays(1)
.backupType("manual")
.beginAt("00:00-01:00")
.periodType("weekly")
.backupAts(
1,
2,
4,
6)
.build())
.tags(Map.ofEntries(
Map.entry("environment", "basic"),
Map.entry("managed_by", "terraform")
))
.build());
}
}
configuration:
networkId:
type: dynamic
vpcId:
type: dynamic
resources:
secgroup1:
type: opentelekomcloud:NetworkingSecgroupV2
properties:
description: secgroup_1
instance1:
type: opentelekomcloud:DcsInstanceV1
properties:
engineVersion: '3.0'
password: 0TCTestP@ssw0rd
engine: Redis
capacity: 2
vpcId: ${vpcId}
securityGroupId: ${secgroup1.networkingSecgroupV2Id}
subnetId: ${networkId}
availableZones:
- ${az1.id}
productId: ${product1.id}
backupPolicy:
saveDays: 1
backupType: manual
beginAt: 00:00-01:00
periodType: weekly
backupAts:
- 1
- 2
- 4
- 6
tags:
environment: basic
managed_by: terraform
variables:
az1:
fn::invoke:
function: opentelekomcloud:getDcsAzV1
arguments:
name: eu-de-01
product1:
fn::invoke:
function: opentelekomcloud:getDcsProductV1
arguments:
specCode: dcs.master_standby
Engine version 5.0 (please pay attention of proper selection of the spec_code):
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({
name: "eu-de-01",
});
const product1 = opentelekomcloud.getDcsProductV1({
specCode: "redis.single.xu1.tiny.128",
});
const instance1 = new opentelekomcloud.DcsInstanceV1("instance1", {
engineVersion: "5.0",
password: "0TCTestP@ssw0rd",
engine: "Redis",
capacity: 0.125,
vpcId: data.opentelekomcloud_vpc_subnet_v1.shared_subnet.vpc_id,
subnetId: data.opentelekomcloud_vpc_subnet_v1.shared_subnet.network_id,
availableZones: [az1.then(az1 => az1.id)],
productId: product1.then(product1 => product1.id),
enableWhitelist: true,
whitelists: [
{
groupName: "test-group-name",
ipLists: [
"10.10.10.1",
"10.10.10.2",
],
},
{
groupName: "test-group-name-2",
ipLists: [
"10.10.10.11",
"10.10.10.3",
"10.10.10.4",
],
},
],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
product1 = opentelekomcloud.get_dcs_product_v1(spec_code="redis.single.xu1.tiny.128")
instance1 = opentelekomcloud.DcsInstanceV1("instance1",
engine_version="5.0",
password="0TCTestP@ssw0rd",
engine="Redis",
capacity=0.125,
vpc_id=data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["vpc_id"],
subnet_id=data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["network_id"],
available_zones=[az1.id],
product_id=product1.id,
enable_whitelist=True,
whitelists=[
{
"group_name": "test-group-name",
"ip_lists": [
"10.10.10.1",
"10.10.10.2",
],
},
{
"group_name": "test-group-name-2",
"ip_lists": [
"10.10.10.11",
"10.10.10.3",
"10.10.10.4",
],
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
az1, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{
Name: pulumi.StringRef("eu-de-01"),
}, nil)
if err != nil {
return err
}
product1, err := opentelekomcloud.GetDcsProductV1(ctx, &opentelekomcloud.GetDcsProductV1Args{
SpecCode: pulumi.StringRef("redis.single.xu1.tiny.128"),
}, nil)
if err != nil {
return err
}
_, err = opentelekomcloud.NewDcsInstanceV1(ctx, "instance1", &opentelekomcloud.DcsInstanceV1Args{
EngineVersion: pulumi.String("5.0"),
Password: pulumi.String("0TCTestP@ssw0rd"),
Engine: pulumi.String("Redis"),
Capacity: pulumi.Float64(0.125),
VpcId: pulumi.Any(data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Vpc_id),
SubnetId: pulumi.Any(data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Network_id),
AvailableZones: pulumi.StringArray{
pulumi.String(az1.Id),
},
ProductId: pulumi.String(product1.Id),
EnableWhitelist: pulumi.Bool(true),
Whitelists: opentelekomcloud.DcsInstanceV1WhitelistArray{
&opentelekomcloud.DcsInstanceV1WhitelistArgs{
GroupName: pulumi.String("test-group-name"),
IpLists: pulumi.StringArray{
pulumi.String("10.10.10.1"),
pulumi.String("10.10.10.2"),
},
},
&opentelekomcloud.DcsInstanceV1WhitelistArgs{
GroupName: pulumi.String("test-group-name-2"),
IpLists: pulumi.StringArray{
pulumi.String("10.10.10.11"),
pulumi.String("10.10.10.3"),
pulumi.String("10.10.10.4"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new()
{
Name = "eu-de-01",
});
var product1 = Opentelekomcloud.GetDcsProductV1.Invoke(new()
{
SpecCode = "redis.single.xu1.tiny.128",
});
var instance1 = new Opentelekomcloud.DcsInstanceV1("instance1", new()
{
EngineVersion = "5.0",
Password = "0TCTestP@ssw0rd",
Engine = "Redis",
Capacity = 0.125,
VpcId = data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Vpc_id,
SubnetId = data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Network_id,
AvailableZones = new[]
{
az1.Apply(getDcsAzV1Result => getDcsAzV1Result.Id),
},
ProductId = product1.Apply(getDcsProductV1Result => getDcsProductV1Result.Id),
EnableWhitelist = true,
Whitelists = new[]
{
new Opentelekomcloud.Inputs.DcsInstanceV1WhitelistArgs
{
GroupName = "test-group-name",
IpLists = new[]
{
"10.10.10.1",
"10.10.10.2",
},
},
new Opentelekomcloud.Inputs.DcsInstanceV1WhitelistArgs
{
GroupName = "test-group-name-2",
IpLists = new[]
{
"10.10.10.11",
"10.10.10.3",
"10.10.10.4",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args;
import com.pulumi.opentelekomcloud.inputs.GetDcsProductV1Args;
import com.pulumi.opentelekomcloud.DcsInstanceV1;
import com.pulumi.opentelekomcloud.DcsInstanceV1Args;
import com.pulumi.opentelekomcloud.inputs.DcsInstanceV1WhitelistArgs;
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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder()
.name("eu-de-01")
.build());
final var product1 = OpentelekomcloudFunctions.getDcsProductV1(GetDcsProductV1Args.builder()
.specCode("redis.single.xu1.tiny.128")
.build());
var instance1 = new DcsInstanceV1("instance1", DcsInstanceV1Args.builder()
.engineVersion("5.0")
.password("0TCTestP@ssw0rd")
.engine("Redis")
.capacity(0.125)
.vpcId(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().vpc_id())
.subnetId(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().network_id())
.availableZones(az1.applyValue(getDcsAzV1Result -> getDcsAzV1Result.id()))
.productId(product1.applyValue(getDcsProductV1Result -> getDcsProductV1Result.id()))
.enableWhitelist(true)
.whitelists(
DcsInstanceV1WhitelistArgs.builder()
.groupName("test-group-name")
.ipLists(
"10.10.10.1",
"10.10.10.2")
.build(),
DcsInstanceV1WhitelistArgs.builder()
.groupName("test-group-name-2")
.ipLists(
"10.10.10.11",
"10.10.10.3",
"10.10.10.4")
.build())
.build());
}
}
resources:
instance1:
type: opentelekomcloud:DcsInstanceV1
properties:
engineVersion: '5.0'
password: 0TCTestP@ssw0rd
engine: Redis
capacity: 0.125
vpcId: ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.vpc_id}
subnetId: ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.network_id}
availableZones:
- ${az1.id}
productId: ${product1.id}
enableWhitelist: true
whitelists:
- groupName: test-group-name
ipLists:
- 10.10.10.1
- 10.10.10.2
- groupName: test-group-name-2
ipLists:
- 10.10.10.11
- 10.10.10.3
- 10.10.10.4
variables:
az1:
fn::invoke:
function: opentelekomcloud:getDcsAzV1
arguments:
name: eu-de-01
product1:
fn::invoke:
function: opentelekomcloud:getDcsProductV1
arguments:
specCode: redis.single.xu1.tiny.128
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,
engine: Optional[str] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
product_id: Optional[str] = None,
engine_version: Optional[str] = None,
capacity: Optional[float] = None,
available_zones: Optional[Sequence[str]] = None,
configurations: Optional[Sequence[DcsInstanceV1ConfigurationArgs]] = None,
period_type: Optional[str] = None,
enable_whitelist: Optional[bool] = None,
dcs_instance_v1_id: Optional[str] = None,
begin_at: Optional[str] = None,
maintain_begin: Optional[str] = None,
maintain_end: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
description: Optional[str] = None,
private_ip: Optional[str] = None,
backup_type: Optional[str] = None,
save_days: Optional[float] = None,
security_group_id: Optional[str] = None,
backup_policy: Optional[DcsInstanceV1BackupPolicyArgs] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DcsInstanceV1TimeoutsArgs] = None,
backup_ats: Optional[Sequence[float]] = None,
whitelists: Optional[Sequence[DcsInstanceV1WhitelistArgs]] = 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: opentelekomcloud: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 Opentelekomcloud.DcsInstanceV1("dcsInstanceV1Resource", new()
{
Engine = "string",
VpcId = "string",
SubnetId = "string",
ProductId = "string",
EngineVersion = "string",
Capacity = 0,
AvailableZones = new[]
{
"string",
},
Configurations = new[]
{
new Opentelekomcloud.Inputs.DcsInstanceV1ConfigurationArgs
{
ParameterId = "string",
ParameterName = "string",
ParameterValue = "string",
},
},
EnableWhitelist = false,
DcsInstanceV1Id = "string",
MaintainBegin = "string",
MaintainEnd = "string",
Name = "string",
Password = "string",
Description = "string",
PrivateIp = "string",
SecurityGroupId = "string",
BackupPolicy = new Opentelekomcloud.Inputs.DcsInstanceV1BackupPolicyArgs
{
BackupAts = new[]
{
0,
},
BeginAt = "string",
PeriodType = "string",
BackupType = "string",
SaveDays = 0,
},
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.DcsInstanceV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Whitelists = new[]
{
new Opentelekomcloud.Inputs.DcsInstanceV1WhitelistArgs
{
GroupName = "string",
IpLists = new[]
{
"string",
},
},
},
});
example, err := opentelekomcloud.NewDcsInstanceV1(ctx, "dcsInstanceV1Resource", &opentelekomcloud.DcsInstanceV1Args{
Engine: pulumi.String("string"),
VpcId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
ProductId: pulumi.String("string"),
EngineVersion: pulumi.String("string"),
Capacity: pulumi.Float64(0),
AvailableZones: pulumi.StringArray{
pulumi.String("string"),
},
Configurations: opentelekomcloud.DcsInstanceV1ConfigurationArray{
&opentelekomcloud.DcsInstanceV1ConfigurationArgs{
ParameterId: pulumi.String("string"),
ParameterName: pulumi.String("string"),
ParameterValue: pulumi.String("string"),
},
},
EnableWhitelist: pulumi.Bool(false),
DcsInstanceV1Id: pulumi.String("string"),
MaintainBegin: pulumi.String("string"),
MaintainEnd: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
Description: pulumi.String("string"),
PrivateIp: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
BackupPolicy: &opentelekomcloud.DcsInstanceV1BackupPolicyArgs{
BackupAts: pulumi.Float64Array{
pulumi.Float64(0),
},
BeginAt: pulumi.String("string"),
PeriodType: pulumi.String("string"),
BackupType: pulumi.String("string"),
SaveDays: pulumi.Float64(0),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.DcsInstanceV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Whitelists: opentelekomcloud.DcsInstanceV1WhitelistArray{
&opentelekomcloud.DcsInstanceV1WhitelistArgs{
GroupName: pulumi.String("string"),
IpLists: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var dcsInstanceV1Resource = new DcsInstanceV1("dcsInstanceV1Resource", DcsInstanceV1Args.builder()
.engine("string")
.vpcId("string")
.subnetId("string")
.productId("string")
.engineVersion("string")
.capacity(0)
.availableZones("string")
.configurations(DcsInstanceV1ConfigurationArgs.builder()
.parameterId("string")
.parameterName("string")
.parameterValue("string")
.build())
.enableWhitelist(false)
.dcsInstanceV1Id("string")
.maintainBegin("string")
.maintainEnd("string")
.name("string")
.password("string")
.description("string")
.privateIp("string")
.securityGroupId("string")
.backupPolicy(DcsInstanceV1BackupPolicyArgs.builder()
.backupAts(0)
.beginAt("string")
.periodType("string")
.backupType("string")
.saveDays(0)
.build())
.tags(Map.of("string", "string"))
.timeouts(DcsInstanceV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.whitelists(DcsInstanceV1WhitelistArgs.builder()
.groupName("string")
.ipLists("string")
.build())
.build());
dcs_instance_v1_resource = opentelekomcloud.DcsInstanceV1("dcsInstanceV1Resource",
engine="string",
vpc_id="string",
subnet_id="string",
product_id="string",
engine_version="string",
capacity=0,
available_zones=["string"],
configurations=[{
"parameter_id": "string",
"parameter_name": "string",
"parameter_value": "string",
}],
enable_whitelist=False,
dcs_instance_v1_id="string",
maintain_begin="string",
maintain_end="string",
name="string",
password="string",
description="string",
private_ip="string",
security_group_id="string",
backup_policy={
"backup_ats": [0],
"begin_at": "string",
"period_type": "string",
"backup_type": "string",
"save_days": 0,
},
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
whitelists=[{
"group_name": "string",
"ip_lists": ["string"],
}])
const dcsInstanceV1Resource = new opentelekomcloud.DcsInstanceV1("dcsInstanceV1Resource", {
engine: "string",
vpcId: "string",
subnetId: "string",
productId: "string",
engineVersion: "string",
capacity: 0,
availableZones: ["string"],
configurations: [{
parameterId: "string",
parameterName: "string",
parameterValue: "string",
}],
enableWhitelist: false,
dcsInstanceV1Id: "string",
maintainBegin: "string",
maintainEnd: "string",
name: "string",
password: "string",
description: "string",
privateIp: "string",
securityGroupId: "string",
backupPolicy: {
backupAts: [0],
beginAt: "string",
periodType: "string",
backupType: "string",
saveDays: 0,
},
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
whitelists: [{
groupName: "string",
ipLists: ["string"],
}],
});
type: opentelekomcloud:DcsInstanceV1
properties:
availableZones:
- string
backupPolicy:
backupAts:
- 0
backupType: string
beginAt: string
periodType: string
saveDays: 0
capacity: 0
configurations:
- parameterId: string
parameterName: string
parameterValue: string
dcsInstanceV1Id: string
description: string
enableWhitelist: false
engine: string
engineVersion: string
maintainBegin: string
maintainEnd: string
name: string
password: string
privateIp: string
productId: string
securityGroupId: string
subnetId: string
tags:
string: string
timeouts:
create: string
delete: string
update: string
vpcId: string
whitelists:
- groupName: string
ipLists:
- 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 of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- Capacity double
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Engine string
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - Engine
Version string - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - Product
Id string - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- Subnet
Id string - Specifies the subnet Network ID. Changing this creates a new instance.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new instance.
- Backup
Ats List<double> - See Argument Reference above.
- Backup
Policy DcsInstance V1Backup Policy - Describes the backup configuration to be used with the instance.
- Backup
Type string - See Argument Reference above.
- Begin
At string - See Argument Reference above.
- Configurations
List<Dcs
Instance V1Configuration> - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- Dcs
Instance stringV1Id - Description string
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - Enable
Whitelist bool - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06:00
.- Name string
- Indicates the name of an instance. An instance name starts with a letter,
consists of
4
to64
characters, and supports only letters, digits, and hyphens (-). - Password string
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- Period
Type string - See Argument Reference above.
- Private
Ip string - IP address that is manually specified for a DCS instance.
- Save
Days double - See Argument Reference above.
- Security
Group stringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - Dictionary<string, string>
- The key/value pairs to associate with the dcs instance.
- Timeouts
Dcs
Instance V1Timeouts - Whitelists
List<Dcs
Instance V1Whitelist> - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- Available
Zones []string IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- Capacity float64
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Engine string
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - Engine
Version string - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - Product
Id string - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- Subnet
Id string - Specifies the subnet Network ID. Changing this creates a new instance.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new instance.
- Backup
Ats []float64 - See Argument Reference above.
- Backup
Policy DcsInstance V1Backup Policy Args - Describes the backup configuration to be used with the instance.
- Backup
Type string - See Argument Reference above.
- Begin
At string - See Argument Reference above.
- Configurations
[]Dcs
Instance V1Configuration Args - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- Dcs
Instance stringV1Id - Description string
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - Enable
Whitelist bool - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06:00
.- Name string
- Indicates the name of an instance. An instance name starts with a letter,
consists of
4
to64
characters, and supports only letters, digits, and hyphens (-). - Password string
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- Period
Type string - See Argument Reference above.
- Private
Ip string - IP address that is manually specified for a DCS instance.
- Save
Days float64 - See Argument Reference above.
- Security
Group stringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - map[string]string
- The key/value pairs to associate with the dcs instance.
- Timeouts
Dcs
Instance V1Timeouts Args - Whitelists
[]Dcs
Instance V1Whitelist Args - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available
Zones List<String> IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- capacity Double
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- engine String
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine
Version String - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - product
Id String - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- subnet
Id String - Specifies the subnet Network ID. Changing this creates a new instance.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new instance.
- backup
Ats List<Double> - See Argument Reference above.
- backup
Policy DcsInstance V1Backup Policy - Describes the backup configuration to be used with the instance.
- backup
Type String - See Argument Reference above.
- begin
At String - See Argument Reference above.
- configurations
List<Dcs
Instance V1Configuration> - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- dcs
Instance StringV1Id - description String
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable
Whitelist Boolean - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06:00
.- name String
- Indicates the name of an instance. An instance name starts with a letter,
consists of
4
to64
characters, and supports only letters, digits, and hyphens (-). - password String
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period
Type String - See Argument Reference above.
- private
Ip String - IP address that is manually specified for a DCS instance.
- save
Days Double - See Argument Reference above.
- security
Group StringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - Map<String,String>
- The key/value pairs to associate with the dcs instance.
- timeouts
Dcs
Instance V1Timeouts - whitelists
List<Dcs
Instance V1Whitelist> - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available
Zones string[] IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- capacity number
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- engine string
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine
Version string - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - product
Id string - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- subnet
Id string - Specifies the subnet Network ID. Changing this creates a new instance.
- vpc
Id string - Specifies the VPC ID. Changing this creates a new instance.
- backup
Ats number[] - See Argument Reference above.
- backup
Policy DcsInstance V1Backup Policy - Describes the backup configuration to be used with the instance.
- backup
Type string - See Argument Reference above.
- begin
At string - See Argument Reference above.
- configurations
Dcs
Instance V1Configuration[] - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- dcs
Instance stringV1Id - description string
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable
Whitelist boolean - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06:00
.- name string
- Indicates the name of an instance. An instance name starts with a letter,
consists of
4
to64
characters, and supports only letters, digits, and hyphens (-). - password string
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period
Type string - See Argument Reference above.
- private
Ip string - IP address that is manually specified for a DCS instance.
- save
Days number - See Argument Reference above.
- security
Group stringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - {[key: string]: string}
- The key/value pairs to associate with the dcs instance.
- timeouts
Dcs
Instance V1Timeouts - whitelists
Dcs
Instance V1Whitelist[] - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available_
zones Sequence[str] IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- capacity float
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- engine str
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine_
version str - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - product_
id str - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- subnet_
id str - Specifies the subnet Network ID. Changing this creates a new instance.
- vpc_
id str - Specifies the VPC ID. Changing this creates a new instance.
- backup_
ats Sequence[float] - See Argument Reference above.
- backup_
policy DcsInstance V1Backup Policy Args - Describes the backup configuration to be used with the instance.
- backup_
type str - See Argument Reference above.
- begin_
at str - See Argument Reference above.
- configurations
Sequence[Dcs
Instance V1Configuration Args] - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- dcs_
instance_ strv1_ id - description str
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable_
whitelist bool - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06:00
.- name str
- Indicates the name of an instance. An instance name starts with a letter,
consists of
4
to64
characters, and supports only letters, digits, and hyphens (-). - password str
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period_
type str - See Argument Reference above.
- private_
ip str - IP address that is manually specified for a DCS instance.
- save_
days float - See Argument Reference above.
- security_
group_ strid - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - Mapping[str, str]
- The key/value pairs to associate with the dcs instance.
- timeouts
Dcs
Instance V1Timeouts Args - whitelists
Sequence[Dcs
Instance V1Whitelist Args] - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available
Zones List<String> IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- capacity Number
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- engine String
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine
Version String - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - product
Id String - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- subnet
Id String - Specifies the subnet Network ID. Changing this creates a new instance.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new instance.
- backup
Ats List<Number> - See Argument Reference above.
- backup
Policy Property Map - Describes the backup configuration to be used with the instance.
- backup
Type String - See Argument Reference above.
- begin
At String - See Argument Reference above.
- configurations List<Property Map>
- Describes the array of configuration items of the DCS instance. Configured values can be found here.
- dcs
Instance StringV1Id - description String
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable
Whitelist Boolean - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06:00
.- name String
- Indicates the name of an instance. An instance name starts with a letter,
consists of
4
to64
characters, and supports only letters, digits, and hyphens (-). - password String
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period
Type String - See Argument Reference above.
- private
Ip String - IP address that is manually specified for a DCS instance.
- save
Days Number - See Argument Reference above.
- security
Group StringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - Map<String>
- The key/value pairs to associate with the dcs instance.
- timeouts Property Map
- whitelists List<Property Map>
- Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
Outputs
All input properties are implicitly available as output properties. Additionally, the DcsInstanceV1 resource produces the following output properties:
- Created
At string - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - 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 the tenant's VPC.
- Max
Memory double - Overall memory size. Unit: MB.
- No
Password stringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - Order
Id string - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- Port double
- Port of the cache node.
- Resource
Spec stringCode - Resource specifications.
- Security
Group stringName - Indicates the name of a security group.
- Status string
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- 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.
- User
Name string - Username.
- Vpc
Name string - Indicates the name of a vpc.
- Created
At string - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - 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 the tenant's VPC.
- Max
Memory float64 - Overall memory size. Unit: MB.
- No
Password stringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - Order
Id string - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- Port float64
- Port of the cache node.
- Resource
Spec stringCode - Resource specifications.
- Security
Group stringName - Indicates the name of a security group.
- Status string
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- 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.
- User
Name string - Username.
- Vpc
Name string - Indicates the name of a vpc.
- created
At String - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - 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 the tenant's VPC.
- max
Memory Double - Overall memory size. Unit: MB.
- no
Password StringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order
Id String - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- port Double
- Port of the cache node.
- resource
Spec StringCode - Resource specifications.
- security
Group StringName - Indicates the name of a security group.
- status String
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- 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.
- user
Name String - Username.
- vpc
Name String - Indicates the name of a vpc.
- created
At string - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - 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 the tenant's VPC.
- max
Memory number - Overall memory size. Unit: MB.
- no
Password stringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order
Id string - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- port number
- Port of the cache node.
- resource
Spec stringCode - Resource specifications.
- security
Group stringName - Indicates the name of a security group.
- status string
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- 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.
- user
Name string - Username.
- vpc
Name string - Indicates the name of a vpc.
- created_
at str - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - 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 the tenant's VPC.
- max_
memory float - Overall memory size. Unit: MB.
- no_
password_ straccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order_
id str - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- port float
- Port of the cache node.
- resource_
spec_ strcode - Resource specifications.
- security_
group_ strname - Indicates the name of a security group.
- status str
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- 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.
- user_
name str - Username.
- vpc_
name str - Indicates the name of a vpc.
- created
At String - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - 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 the tenant's VPC.
- max
Memory Number - Overall memory size. Unit: MB.
- no
Password StringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order
Id String - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- port Number
- Port of the cache node.
- resource
Spec StringCode - Resource specifications.
- security
Group StringName - Indicates the name of a security group.
- status String
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- 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.
- user
Name String - Username.
- 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,
available_zones: Optional[Sequence[str]] = None,
backup_ats: Optional[Sequence[float]] = None,
backup_policy: Optional[DcsInstanceV1BackupPolicyArgs] = None,
backup_type: Optional[str] = None,
begin_at: Optional[str] = None,
capacity: Optional[float] = None,
configurations: Optional[Sequence[DcsInstanceV1ConfigurationArgs]] = None,
created_at: Optional[str] = None,
dcs_instance_v1_id: Optional[str] = None,
description: Optional[str] = None,
enable_whitelist: Optional[bool] = None,
engine: Optional[str] = None,
engine_version: 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,
no_password_access: Optional[str] = None,
order_id: Optional[str] = None,
password: Optional[str] = None,
period_type: Optional[str] = None,
port: Optional[float] = None,
private_ip: Optional[str] = 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_id: Optional[str] = None,
subnet_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[DcsInstanceV1TimeoutsArgs] = None,
used_memory: Optional[float] = None,
user_id: Optional[str] = None,
user_name: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_name: Optional[str] = None,
whitelists: Optional[Sequence[DcsInstanceV1WhitelistArgs]] = 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: opentelekomcloud: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.
- Available
Zones List<string> IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- Backup
Ats List<double> - See Argument Reference above.
- Backup
Policy DcsInstance V1Backup Policy - Describes the backup configuration to be used with the instance.
- Backup
Type string - See Argument Reference above.
- Begin
At string - See Argument Reference above.
- Capacity double
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Configurations
List<Dcs
Instance V1Configuration> - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- Created
At string - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - Dcs
Instance stringV1Id - Description string
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - Enable
Whitelist bool - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - Engine string
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - Engine
Version string - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - Internal
Version string - Internal DCS version.
- Ip string
- Cache node's IP address in the 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06: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
to64
characters, and supports only letters, digits, and hyphens (-). - No
Password stringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - Order
Id string - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- Password string
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- Period
Type string - See Argument Reference above.
- Port double
- Port of the cache node.
- Private
Ip string - IP address that is manually specified for a DCS instance.
- Product
Id string - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- Resource
Spec stringCode - Resource specifications.
- Save
Days double - See Argument Reference above.
- Security
Group stringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - Security
Group stringName - Indicates the name of a security group.
- Status string
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- Subnet
Id string - Specifies the subnet Network ID. Changing this creates a new instance.
- Subnet
Name string - Indicates the name of a subnet.
- Dictionary<string, string>
- The key/value pairs to associate with the dcs instance.
- Timeouts
Dcs
Instance V1Timeouts - Used
Memory double - Size of the used memory. Unit: MB.
- User
Id string - Indicates a user ID.
- User
Name string - Username.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new instance.
- Vpc
Name string - Indicates the name of a vpc.
- Whitelists
List<Dcs
Instance V1Whitelist> - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- Available
Zones []string IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- Backup
Ats []float64 - See Argument Reference above.
- Backup
Policy DcsInstance V1Backup Policy Args - Describes the backup configuration to be used with the instance.
- Backup
Type string - See Argument Reference above.
- Begin
At string - See Argument Reference above.
- Capacity float64
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- Configurations
[]Dcs
Instance V1Configuration Args - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- Created
At string - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - Dcs
Instance stringV1Id - Description string
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - Enable
Whitelist bool - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - Engine string
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - Engine
Version string - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - Internal
Version string - Internal DCS version.
- Ip string
- Cache node's IP address in the 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06: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
to64
characters, and supports only letters, digits, and hyphens (-). - No
Password stringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - Order
Id string - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- Password string
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- Period
Type string - See Argument Reference above.
- Port float64
- Port of the cache node.
- Private
Ip string - IP address that is manually specified for a DCS instance.
- Product
Id string - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- Resource
Spec stringCode - Resource specifications.
- Save
Days float64 - See Argument Reference above.
- Security
Group stringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - Security
Group stringName - Indicates the name of a security group.
- Status string
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- Subnet
Id string - Specifies the subnet Network ID. Changing this creates a new instance.
- Subnet
Name string - Indicates the name of a subnet.
- map[string]string
- The key/value pairs to associate with the dcs instance.
- Timeouts
Dcs
Instance V1Timeouts Args - Used
Memory float64 - Size of the used memory. Unit: MB.
- User
Id string - Indicates a user ID.
- User
Name string - Username.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new instance.
- Vpc
Name string - Indicates the name of a vpc.
- Whitelists
[]Dcs
Instance V1Whitelist Args - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available
Zones List<String> IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- backup
Ats List<Double> - See Argument Reference above.
- backup
Policy DcsInstance V1Backup Policy - Describes the backup configuration to be used with the instance.
- backup
Type String - See Argument Reference above.
- begin
At String - See Argument Reference above.
- capacity Double
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- configurations
List<Dcs
Instance V1Configuration> - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- created
At String - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - dcs
Instance StringV1Id - description String
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable
Whitelist Boolean - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - engine String
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine
Version String - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - internal
Version String - Internal DCS version.
- ip String
- Cache node's IP address in the 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06: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
to64
characters, and supports only letters, digits, and hyphens (-). - no
Password StringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order
Id String - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- password String
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period
Type String - See Argument Reference above.
- port Double
- Port of the cache node.
- private
Ip String - IP address that is manually specified for a DCS instance.
- product
Id String - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- resource
Spec StringCode - Resource specifications.
- save
Days Double - See Argument Reference above.
- security
Group StringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - security
Group StringName - Indicates the name of a security group.
- status String
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- subnet
Id String - Specifies the subnet Network ID. Changing this creates a new instance.
- subnet
Name String - Indicates the name of a subnet.
- Map<String,String>
- The key/value pairs to associate with the dcs instance.
- timeouts
Dcs
Instance V1Timeouts - used
Memory Double - Size of the used memory. Unit: MB.
- user
Id String - Indicates a user ID.
- user
Name String - Username.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new instance.
- vpc
Name String - Indicates the name of a vpc.
- whitelists
List<Dcs
Instance V1Whitelist> - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available
Zones string[] IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- backup
Ats number[] - See Argument Reference above.
- backup
Policy DcsInstance V1Backup Policy - Describes the backup configuration to be used with the instance.
- backup
Type string - See Argument Reference above.
- begin
At string - See Argument Reference above.
- capacity number
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- configurations
Dcs
Instance V1Configuration[] - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- created
At string - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - dcs
Instance stringV1Id - description string
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable
Whitelist boolean - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - engine string
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine
Version string - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - internal
Version string - Internal DCS version.
- ip string
- Cache node's IP address in the 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06: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
to64
characters, and supports only letters, digits, and hyphens (-). - no
Password stringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order
Id string - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- password string
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period
Type string - See Argument Reference above.
- port number
- Port of the cache node.
- private
Ip string - IP address that is manually specified for a DCS instance.
- product
Id string - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- resource
Spec stringCode - Resource specifications.
- save
Days number - See Argument Reference above.
- security
Group stringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - security
Group stringName - Indicates the name of a security group.
- status string
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- subnet
Id string - Specifies the subnet Network ID. Changing this creates a new instance.
- subnet
Name string - Indicates the name of a subnet.
- {[key: string]: string}
- The key/value pairs to associate with the dcs instance.
- timeouts
Dcs
Instance V1Timeouts - used
Memory number - Size of the used memory. Unit: MB.
- user
Id string - Indicates a user ID.
- user
Name string - Username.
- vpc
Id string - Specifies the VPC ID. Changing this creates a new instance.
- vpc
Name string - Indicates the name of a vpc.
- whitelists
Dcs
Instance V1Whitelist[] - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available_
zones Sequence[str] IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- backup_
ats Sequence[float] - See Argument Reference above.
- backup_
policy DcsInstance V1Backup Policy Args - Describes the backup configuration to be used with the instance.
- backup_
type str - See Argument Reference above.
- begin_
at str - See Argument Reference above.
- capacity float
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- configurations
Sequence[Dcs
Instance V1Configuration Args] - Describes the array of configuration items of the DCS instance. Configured values can be found here.
- created_
at str - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - dcs_
instance_ strv1_ id - description str
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable_
whitelist bool - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - engine str
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine_
version str - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - internal_
version str - Internal DCS version.
- ip str
- Cache node's IP address in the 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06: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
to64
characters, and supports only letters, digits, and hyphens (-). - no_
password_ straccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order_
id str - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- password str
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period_
type str - See Argument Reference above.
- port float
- Port of the cache node.
- private_
ip str - IP address that is manually specified for a DCS instance.
- product_
id str - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- resource_
spec_ strcode - Resource specifications.
- save_
days float - See Argument Reference above.
- security_
group_ strid - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - security_
group_ strname - Indicates the name of a security group.
- status str
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- subnet_
id str - Specifies the subnet Network ID. Changing this creates a new instance.
- subnet_
name str - Indicates the name of a subnet.
- Mapping[str, str]
- The key/value pairs to associate with the dcs instance.
- timeouts
Dcs
Instance V1Timeouts Args - used_
memory float - Size of the used memory. Unit: MB.
- user_
id str - Indicates a user ID.
- user_
name str - Username.
- vpc_
id str - Specifies the VPC ID. Changing this creates a new instance.
- vpc_
name str - Indicates the name of a vpc.
- whitelists
Sequence[Dcs
Instance V1Whitelist Args] - Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
- available
Zones List<String> IDs of the AZs where cache nodes reside. For details on how to query AZs, see Querying AZ Information or use opentelekomcloud.getDcsAzV1 data source:
import * as pulumi from "@pulumi/pulumi"; import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const az1 = opentelekomcloud.getDcsAzV1({ name: "eu-de-01", });
import pulumi import pulumi_opentelekomcloud as opentelekomcloud az1 = opentelekomcloud.get_dcs_az_v1(name="eu-de-01")
using System.Collections.Generic; using System.Linq; using Pulumi; using Opentelekomcloud = Pulumi.Opentelekomcloud; return await Deployment.RunAsync(() => { var az1 = Opentelekomcloud.GetDcsAzV1.Invoke(new() { Name = "eu-de-01", }); });
package main import ( "github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := opentelekomcloud.GetDcsAzV1(ctx, &opentelekomcloud.GetDcsAzV1Args{ Name: pulumi.StringRef("eu-de-01"), }, nil) if err != nil { return err } return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions; import com.pulumi.opentelekomcloud.inputs.GetDcsAzV1Args; 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 az1 = OpentelekomcloudFunctions.getDcsAzV1(GetDcsAzV1Args.builder() .name("eu-de-01") .build()); } }
variables: az1: fn::invoke: function: opentelekomcloud:getDcsAzV1 arguments: name: eu-de-01
Changing this creates a new instance.
- backup
Ats List<Number> - See Argument Reference above.
- backup
Policy Property Map - Describes the backup configuration to be used with the instance.
- backup
Type String - See Argument Reference above.
- begin
At String - See Argument Reference above.
- capacity Number
- Indicates the Cache capacity. Unit: GB.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
0.125
,0.25
,0.5
,1
,2
,4
,8
,16
,32
and64
. Cluster instance specifications support4
,8
,16
,24
,32
,48
,64
,96
,128
,192
,256
,384
,512
,768
and1024
. - Redis3.0: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
. Proxy cluster instance specifications support64
,128
,256
,512
, and1024
. - Memcached: Stand-alone and active/standby type instance values:
2
,4
,8
,16
,32
and64
.
- Redis4.0, Redis5.0 and Redis6.0: Stand-alone and active/standby type instance values:
- configurations List<Property Map>
- Describes the array of configuration items of the DCS instance. Configured values can be found here.
- created
At String - Time at which the DCS instance is created. For example,
2017-03-31T12:24:46.297Z
. - dcs
Instance StringV1Id - description String
- Indicates the description of an instance. It is a character
string containing not more than
1024
characters. - enable
Whitelist Boolean - Specifies whether to enable or disable
whitelist
. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withwhitelist
. - engine String
- Indicates a cache engine. Only
Redis
is supported. Changing this creates a new instance. - engine
Version String - Indicates the version of a cache engine, which can be
3.0
/4.0
/5.0
/6.0
. Changing this creates a new instance. - internal
Version String - Internal DCS version.
- ip String
- Cache node's IP address in the 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 to22:00
,02:00
,06:00
,10:00
,14:00
, or18: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 is22:00
, the end time is02:00
.Parameters
maintain_begin
andmaintain_end
must be set in pairs. If parametermaintain_end
is left blank, parametermaintain_begin
is also blank. In this case, the system automatically allocates the default start time02:00
and the default end time06: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
to64
characters, and supports only letters, digits, and hyphens (-). - no
Password StringAccess - An indicator of whether a DCS instance can be accessed in password-free mode.
true
when password not set. - order
Id String - An order ID is generated only in the monthly or yearly billing mode. In other billing modes, no value is returned for this parameter.
- password String
- Indicates the password of an instance. An instance password must meet the following complexity requirements: Must be 8 to 32 characters long. Must contain at least 3 of the following character types: lowercase letters, uppercase letters, digits, and special characters: `~!@#$^&*()-_=+|{}:,<>./? Changing this creates a new instance.
- period
Type String - See Argument Reference above.
- port Number
- Port of the cache node.
- private
Ip String - IP address that is manually specified for a DCS instance.
- product
Id String - Product ID used to differentiate DCS instance types. Changing this creates a new instance.
- resource
Spec StringCode - Resource specifications.
- save
Days Number - See Argument Reference above.
- security
Group StringId - Security group ID. This parameter is mandatory when
engine_version
is3.0
. - security
Group StringName - Indicates the name of a security group.
- status String
- Cache instance status. One of
CREATING
,CREATEFAILED
,RUNNING
,ERROR
,RESTARTING
,EXTENDING
,RESTORING
- subnet
Id String - Specifies the subnet Network ID. Changing this creates a new instance.
- subnet
Name String - Indicates the name of a subnet.
- Map<String>
- The key/value pairs to associate with the dcs instance.
- timeouts Property Map
- used
Memory Number - Size of the used memory. Unit: MB.
- user
Id String - Indicates a user ID.
- user
Name String - Username.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new instance.
- vpc
Name String - Indicates the name of a vpc.
- whitelists List<Property Map>
- Describes the
whitelist
groups to be used with the instance. Only available whenengine_version
is set to4.0
/5.0
. Parameter have to be used together withenable_whitelist
. Resource fields:
Supporting Types
DcsInstanceV1BackupPolicy, DcsInstanceV1BackupPolicyArgs
- Backup
Ats List<double> - Day in a week on which backup starts. Range:
1
–7
. Where:1
indicates Monday;7
indicates Sunday. - Begin
At string - Time at which backup starts.
00:00-01:00
indicates that backup starts at00:00:00
. - Period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported.
- Backup
Type string - Backup type. Valid values are:
auto
automatic backup,manual
manual backup (default). - Save
Days double - Retention time. Unit: day. Range:
1
–7
.
- Backup
Ats []float64 - Day in a week on which backup starts. Range:
1
–7
. Where:1
indicates Monday;7
indicates Sunday. - Begin
At string - Time at which backup starts.
00:00-01:00
indicates that backup starts at00:00:00
. - Period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported.
- Backup
Type string - Backup type. Valid values are:
auto
automatic backup,manual
manual backup (default). - Save
Days float64 - Retention time. Unit: day. Range:
1
–7
.
- backup
Ats List<Double> - Day in a week on which backup starts. Range:
1
–7
. Where:1
indicates Monday;7
indicates Sunday. - begin
At String - Time at which backup starts.
00:00-01:00
indicates that backup starts at00:00:00
. - period
Type String - Interval at which backup is performed. Currently, only weekly backup is supported.
- backup
Type String - Backup type. Valid values are:
auto
automatic backup,manual
manual backup (default). - save
Days Double - Retention time. Unit: day. Range:
1
–7
.
- backup
Ats number[] - Day in a week on which backup starts. Range:
1
–7
. Where:1
indicates Monday;7
indicates Sunday. - begin
At string - Time at which backup starts.
00:00-01:00
indicates that backup starts at00:00:00
. - period
Type string - Interval at which backup is performed. Currently, only weekly backup is supported.
- backup
Type string - Backup type. Valid values are:
auto
automatic backup,manual
manual backup (default). - save
Days number - Retention time. Unit: day. Range:
1
–7
.
- backup_
ats Sequence[float] - Day in a week on which backup starts. Range:
1
–7
. Where:1
indicates Monday;7
indicates Sunday. - begin_
at str - Time at which backup starts.
00:00-01:00
indicates that backup starts at00:00:00
. - period_
type str - Interval at which backup is performed. Currently, only weekly backup is supported.
- backup_
type str - Backup type. Valid values are:
auto
automatic backup,manual
manual backup (default). - save_
days float - Retention time. Unit: day. Range:
1
–7
.
- backup
Ats List<Number> - Day in a week on which backup starts. Range:
1
–7
. Where:1
indicates Monday;7
indicates Sunday. - begin
At String - Time at which backup starts.
00:00-01:00
indicates that backup starts at00:00:00
. - period
Type String - Interval at which backup is performed. Currently, only weekly backup is supported.
- backup
Type String - Backup type. Valid values are:
auto
automatic backup,manual
manual backup (default). - save
Days Number - Retention time. Unit: day. Range:
1
–7
.
DcsInstanceV1Configuration, DcsInstanceV1ConfigurationArgs
- Parameter
Id string - Configuration item ID.
- Parameter
Name string - Configuration item name.
- Parameter
Value string - Value of the configuration item.
- Parameter
Id string - Configuration item ID.
- Parameter
Name string - Configuration item name.
- Parameter
Value string - Value of the configuration item.
- parameter
Id String - Configuration item ID.
- parameter
Name String - Configuration item name.
- parameter
Value String - Value of the configuration item.
- parameter
Id string - Configuration item ID.
- parameter
Name string - Configuration item name.
- parameter
Value string - Value of the configuration item.
- parameter_
id str - Configuration item ID.
- parameter_
name str - Configuration item name.
- parameter_
value str - Value of the configuration item.
- parameter
Id String - Configuration item ID.
- parameter
Name String - Configuration item name.
- parameter
Value String - Value of the configuration item.
DcsInstanceV1Timeouts, DcsInstanceV1TimeoutsArgs
DcsInstanceV1Whitelist, DcsInstanceV1WhitelistArgs
- Group
Name string - Whitelist group name. A maximum of four groups can be created for each instance.
- Ip
Lists List<string> - List of IP addresses in the whitelist group. A maximum of 20 IP addresses or IP address ranges can be added to an instance. Separate multiple IP addresses or IP address ranges with commas (,). IP address 0.0.0.0 and IP address range 0.0.0/0 are not supported.
- Group
Name string - Whitelist group name. A maximum of four groups can be created for each instance.
- Ip
Lists []string - List of IP addresses in the whitelist group. A maximum of 20 IP addresses or IP address ranges can be added to an instance. Separate multiple IP addresses or IP address ranges with commas (,). IP address 0.0.0.0 and IP address range 0.0.0/0 are not supported.
- group
Name String - Whitelist group name. A maximum of four groups can be created for each instance.
- ip
Lists List<String> - List of IP addresses in the whitelist group. A maximum of 20 IP addresses or IP address ranges can be added to an instance. Separate multiple IP addresses or IP address ranges with commas (,). IP address 0.0.0.0 and IP address range 0.0.0/0 are not supported.
- group
Name string - Whitelist group name. A maximum of four groups can be created for each instance.
- ip
Lists string[] - List of IP addresses in the whitelist group. A maximum of 20 IP addresses or IP address ranges can be added to an instance. Separate multiple IP addresses or IP address ranges with commas (,). IP address 0.0.0.0 and IP address range 0.0.0/0 are not supported.
- group_
name str - Whitelist group name. A maximum of four groups can be created for each instance.
- ip_
lists Sequence[str] - List of IP addresses in the whitelist group. A maximum of 20 IP addresses or IP address ranges can be added to an instance. Separate multiple IP addresses or IP address ranges with commas (,). IP address 0.0.0.0 and IP address range 0.0.0/0 are not supported.
- group
Name String - Whitelist group name. A maximum of four groups can be created for each instance.
- ip
Lists List<String> - List of IP addresses in the whitelist group. A maximum of 20 IP addresses or IP address ranges can be added to an instance. Separate multiple IP addresses or IP address ranges with commas (,). IP address 0.0.0.0 and IP address range 0.0.0/0 are not supported.
Import
DCS instance can be imported using id
, e.g.
$ pulumi import opentelekomcloud:index/dcsInstanceV1:DcsInstanceV1 instance instance_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.