published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
The basic unit of Redis cache database is the instance. An instance is an independent, virtualized database runtime environment, consisting of multiple data nodes and proxy nodes. The Redis engine runs on the data nodes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const redisInstanceDemo = new volcenginecc.redis.Instance("RedisInstanceDemo", {
instanceName: "RedisInstance",
shardedCluster: 1,
password: "********",
nodeNumber: 2,
shardCapacity: 512,
shardNumber: 2,
engineVersion: "5.0",
vpcId: "vpc-13f8xxxx",
subnetId: "vpc_subnet-xxxx",
deletionProtection: "disabled",
chargeType: "PostPaid",
port: 6381,
projectName: "default",
tags: [{
key: "env",
value: "test",
}],
multiAz: "enabled",
configureNodes: [
{
az: "cn-beijing-a",
},
{
az: "cn-beijing-b",
},
],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
redis_instance_demo = volcenginecc.redis.Instance("RedisInstanceDemo",
instance_name="RedisInstance",
sharded_cluster=1,
password="********",
node_number=2,
shard_capacity=512,
shard_number=2,
engine_version="5.0",
vpc_id="vpc-13f8xxxx",
subnet_id="vpc_subnet-xxxx",
deletion_protection="disabled",
charge_type="PostPaid",
port=6381,
project_name="default",
tags=[{
"key": "env",
"value": "test",
}],
multi_az="enabled",
configure_nodes=[
{
"az": "cn-beijing-a",
},
{
"az": "cn-beijing-b",
},
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/redis"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redis.NewInstance(ctx, "RedisInstanceDemo", &redis.InstanceArgs{
InstanceName: pulumi.String("RedisInstance"),
ShardedCluster: pulumi.Int(1),
Password: pulumi.String("********"),
NodeNumber: pulumi.Int(2),
ShardCapacity: pulumi.Int(512),
ShardNumber: pulumi.Int(2),
EngineVersion: pulumi.String("5.0"),
VpcId: pulumi.String("vpc-13f8xxxx"),
SubnetId: pulumi.String("vpc_subnet-xxxx"),
DeletionProtection: pulumi.String("disabled"),
ChargeType: pulumi.String("PostPaid"),
Port: pulumi.Int(6381),
ProjectName: pulumi.String("default"),
Tags: redis.InstanceTagArray{
&redis.InstanceTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
MultiAz: pulumi.String("enabled"),
ConfigureNodes: redis.InstanceConfigureNodeArray{
&redis.InstanceConfigureNodeArgs{
Az: pulumi.String("cn-beijing-a"),
},
&redis.InstanceConfigureNodeArgs{
Az: pulumi.String("cn-beijing-b"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var redisInstanceDemo = new Volcenginecc.Redis.Instance("RedisInstanceDemo", new()
{
InstanceName = "RedisInstance",
ShardedCluster = 1,
Password = "********",
NodeNumber = 2,
ShardCapacity = 512,
ShardNumber = 2,
EngineVersion = "5.0",
VpcId = "vpc-13f8xxxx",
SubnetId = "vpc_subnet-xxxx",
DeletionProtection = "disabled",
ChargeType = "PostPaid",
Port = 6381,
ProjectName = "default",
Tags = new[]
{
new Volcenginecc.Redis.Inputs.InstanceTagArgs
{
Key = "env",
Value = "test",
},
},
MultiAz = "enabled",
ConfigureNodes = new[]
{
new Volcenginecc.Redis.Inputs.InstanceConfigureNodeArgs
{
Az = "cn-beijing-a",
},
new Volcenginecc.Redis.Inputs.InstanceConfigureNodeArgs
{
Az = "cn-beijing-b",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.redis.Instance;
import com.volcengine.volcenginecc.redis.InstanceArgs;
import com.pulumi.volcenginecc.redis.inputs.InstanceTagArgs;
import com.pulumi.volcenginecc.redis.inputs.InstanceConfigureNodeArgs;
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) {
var redisInstanceDemo = new Instance("redisInstanceDemo", InstanceArgs.builder()
.instanceName("RedisInstance")
.shardedCluster(1)
.password("********")
.nodeNumber(2)
.shardCapacity(512)
.shardNumber(2)
.engineVersion("5.0")
.vpcId("vpc-13f8xxxx")
.subnetId("vpc_subnet-xxxx")
.deletionProtection("disabled")
.chargeType("PostPaid")
.port(6381)
.projectName("default")
.tags(InstanceTagArgs.builder()
.key("env")
.value("test")
.build())
.multiAz("enabled")
.configureNodes(
InstanceConfigureNodeArgs.builder()
.az("cn-beijing-a")
.build(),
InstanceConfigureNodeArgs.builder()
.az("cn-beijing-b")
.build())
.build());
}
}
resources:
redisInstanceDemo:
type: volcenginecc:redis:Instance
name: RedisInstanceDemo
properties:
instanceName: RedisInstance
shardedCluster: 1
password: '********'
nodeNumber: 2
shardCapacity: 512
shardNumber: 2
engineVersion: '5.0'
vpcId: vpc-13f8xxxx
subnetId: vpc_subnet-xxxx
deletionProtection: disabled
chargeType: PostPaid
port: 6381
projectName: default
tags:
- key: env
value: test
multiAz: enabled
configureNodes:
- az: cn-beijing-a
- az: cn-beijing-b
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
multi_az: Optional[str] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
sharded_cluster: Optional[int] = None,
configure_nodes: Optional[Sequence[InstanceConfigureNodeArgs]] = None,
shard_capacity: Optional[int] = None,
node_number: Optional[int] = None,
engine_version: Optional[str] = None,
deletion_protection: Optional[str] = None,
project_name: Optional[str] = None,
no_auth_mode: Optional[str] = None,
allow_list_ids: Optional[Sequence[str]] = None,
parameter_group_id: Optional[str] = None,
password: Optional[str] = None,
port: Optional[int] = None,
instance_name: Optional[str] = None,
purchase_months: Optional[int] = None,
reserve_additional_bandwidth: Optional[bool] = None,
create_backup: Optional[bool] = None,
shard_number: Optional[int] = None,
charge_type: Optional[str] = None,
backup_point_name: Optional[str] = None,
tags: Optional[Sequence[InstanceTagArgs]] = None,
auto_renew: Optional[bool] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: volcenginecc:redis:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Instance 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 Instance resource accepts the following input properties:
- Configure
Nodes List<Volcengine.Instance Configure Node> - Engine
Version string - Database version number.
- Multi
Az string - Set the deployment scheme for the instance's availability zone.
- Node
Number int - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- int
- Memory capacity of each shard in the instance. Unit: MiB.
- int
- Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- Subnet
Id string - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
- Vpc
Id string - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- Allow
List List<string>Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- Auto
Renew bool - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- Backup
Point stringName - Set a backup name for the full backup created before changes.
- Charge
Type string - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- Create
Backup bool - Whether to create a backup before making changes.
- Deletion
Protection string - Enable or disable instance deletion protection.
- Instance
Name string - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- No
Auth stringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- Parameter
Group stringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- Password string
- Set the password for the default account of the default database.
- Port int
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- Project
Name string - Project to which the instance belongs.
- Purchase
Months int - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- Reserve
Additional boolBandwidth - Set whether to reserve additional bandwidth
- int
- Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
-
List<Volcengine.
Instance Tag>
- Configure
Nodes []InstanceConfigure Node Args - Engine
Version string - Database version number.
- Multi
Az string - Set the deployment scheme for the instance's availability zone.
- Node
Number int - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- int
- Memory capacity of each shard in the instance. Unit: MiB.
- int
- Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- Subnet
Id string - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
- Vpc
Id string - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- Allow
List []stringIds - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- Auto
Renew bool - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- Backup
Point stringName - Set a backup name for the full backup created before changes.
- Charge
Type string - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- Create
Backup bool - Whether to create a backup before making changes.
- Deletion
Protection string - Enable or disable instance deletion protection.
- Instance
Name string - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- No
Auth stringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- Parameter
Group stringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- Password string
- Set the password for the default account of the default database.
- Port int
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- Project
Name string - Project to which the instance belongs.
- Purchase
Months int - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- Reserve
Additional boolBandwidth - Set whether to reserve additional bandwidth
- int
- Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
-
[]Instance
Tag Args
- configure
Nodes List<InstanceConfigure Node> - engine
Version String - Database version number.
- multi
Az String - Set the deployment scheme for the instance's availability zone.
- node
Number Integer - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- Integer
- Memory capacity of each shard in the instance. Unit: MiB.
- Integer
- Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- subnet
Id String - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
- vpc
Id String - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- allow
List List<String>Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto
Renew Boolean - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup
Point StringName - Set a backup name for the full backup created before changes.
- charge
Type String - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- create
Backup Boolean - Whether to create a backup before making changes.
- deletion
Protection String - Enable or disable instance deletion protection.
- instance
Name String - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- no
Auth StringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- parameter
Group StringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password String
- Set the password for the default account of the default database.
- port Integer
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- project
Name String - Project to which the instance belongs.
- purchase
Months Integer - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve
Additional BooleanBandwidth - Set whether to reserve additional bandwidth
- Integer
- Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
-
List<Instance
Tag>
- configure
Nodes InstanceConfigure Node[] - engine
Version string - Database version number.
- multi
Az string - Set the deployment scheme for the instance's availability zone.
- node
Number number - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- number
- Memory capacity of each shard in the instance. Unit: MiB.
- number
- Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- subnet
Id string - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
- vpc
Id string - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- allow
List string[]Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto
Renew boolean - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup
Point stringName - Set a backup name for the full backup created before changes.
- charge
Type string - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- create
Backup boolean - Whether to create a backup before making changes.
- deletion
Protection string - Enable or disable instance deletion protection.
- instance
Name string - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- no
Auth stringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- parameter
Group stringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password string
- Set the password for the default account of the default database.
- port number
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- project
Name string - Project to which the instance belongs.
- purchase
Months number - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve
Additional booleanBandwidth - Set whether to reserve additional bandwidth
- number
- Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
-
Instance
Tag[]
- configure_
nodes Sequence[InstanceConfigure Node Args] - engine_
version str - Database version number.
- multi_
az str - Set the deployment scheme for the instance's availability zone.
- node_
number int - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- int
- Memory capacity of each shard in the instance. Unit: MiB.
- int
- Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- subnet_
id str - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
- vpc_
id str - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- allow_
list_ Sequence[str]ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto_
renew bool - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup_
point_ strname - Set a backup name for the full backup created before changes.
- charge_
type str - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- create_
backup bool - Whether to create a backup before making changes.
- deletion_
protection str - Enable or disable instance deletion protection.
- instance_
name str - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- no_
auth_ strmode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- parameter_
group_ strid - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password str
- Set the password for the default account of the default database.
- port int
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- project_
name str - Project to which the instance belongs.
- purchase_
months int - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve_
additional_ boolbandwidth - Set whether to reserve additional bandwidth
- int
- Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
-
Sequence[Instance
Tag Args]
- configure
Nodes List<Property Map> - engine
Version String - Database version number.
- multi
Az String - Set the deployment scheme for the instance's availability zone.
- node
Number Number - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- Number
- Memory capacity of each shard in the instance. Unit: MiB.
- Number
- Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- subnet
Id String - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
- vpc
Id String - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- allow
List List<String>Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto
Renew Boolean - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup
Point StringName - Set a backup name for the full backup created before changes.
- charge
Type String - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- create
Backup Boolean - Whether to create a backup before making changes.
- deletion
Protection String - Enable or disable instance deletion protection.
- instance
Name String - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- no
Auth StringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- parameter
Group StringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password String
- Set the password for the default account of the default database.
- port Number
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- project
Name String - Project to which the instance belongs.
- purchase
Months Number - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve
Additional BooleanBandwidth - Set whether to reserve additional bandwidth
- Number
- Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Blue
Green stringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- Capacity
Volcengine.
Instance Capacity - Capacity information of the instance.
- Create
Time string - Creation time of the instance.
- Data
Layout string - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- Expired
Time string - Instance expiration time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Class string - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- Instance
Id string - Instance ID.
- Instance
Shards List<Volcengine.Instance Instance Shard> - Maintenance
Time string - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- Max
Connections int - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- Node
Ids List<string> - List of Proxy and Server node IDs.
- Private
Address string - The domain name for the instance's private network connection address.
- Private
Port string - Port number for the instance's private network connection address.
- Service
Type string - Service type of the instance
- Status string
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- Vi
Pv6 string - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- Vip string
- IPv4 address corresponding to the instance's private network connection address.
- Visit
Addrs List<Volcengine.Instance Visit Addr> - Vpc
Auth stringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- Zone
Ids List<string> - List of available zones where the instance is located.
- Blue
Green stringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- Capacity
Instance
Capacity - Capacity information of the instance.
- Create
Time string - Creation time of the instance.
- Data
Layout string - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- Expired
Time string - Instance expiration time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Class string - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- Instance
Id string - Instance ID.
- Instance
Shards []InstanceInstance Shard - Maintenance
Time string - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- Max
Connections int - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- Node
Ids []string - List of Proxy and Server node IDs.
- Private
Address string - The domain name for the instance's private network connection address.
- Private
Port string - Port number for the instance's private network connection address.
- Service
Type string - Service type of the instance
- Status string
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- Vi
Pv6 string - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- Vip string
- IPv4 address corresponding to the instance's private network connection address.
- Visit
Addrs []InstanceVisit Addr - Vpc
Auth stringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- Zone
Ids []string - List of available zones where the instance is located.
- blue
Green StringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity
Instance
Capacity - Capacity information of the instance.
- create
Time String - Creation time of the instance.
- data
Layout String - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- expired
Time String - Instance expiration time.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Class String - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance
Id String - Instance ID.
- instance
Shards List<InstanceInstance Shard> - maintenance
Time String - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max
Connections Integer - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- node
Ids List<String> - List of Proxy and Server node IDs.
- private
Address String - The domain name for the instance's private network connection address.
- private
Port String - Port number for the instance's private network connection address.
- service
Type String - Service type of the instance
- status String
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- vi
Pv6 String - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip String
- IPv4 address corresponding to the instance's private network connection address.
- visit
Addrs List<InstanceVisit Addr> - vpc
Auth StringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- zone
Ids List<String> - List of available zones where the instance is located.
- blue
Green stringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity
Instance
Capacity - Capacity information of the instance.
- create
Time string - Creation time of the instance.
- data
Layout string - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- expired
Time string - Instance expiration time.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Class string - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance
Id string - Instance ID.
- instance
Shards InstanceInstance Shard[] - maintenance
Time string - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max
Connections number - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- node
Ids string[] - List of Proxy and Server node IDs.
- private
Address string - The domain name for the instance's private network connection address.
- private
Port string - Port number for the instance's private network connection address.
- service
Type string - Service type of the instance
- status string
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- vi
Pv6 string - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip string
- IPv4 address corresponding to the instance's private network connection address.
- visit
Addrs InstanceVisit Addr[] - vpc
Auth stringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- zone
Ids string[] - List of available zones where the instance is located.
- blue_
green_ strrole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity
Instance
Capacity - Capacity information of the instance.
- create_
time str - Creation time of the instance.
- data_
layout str - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- expired_
time str - Instance expiration time.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
class str - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance_
id str - Instance ID.
- instance_
shards Sequence[InstanceInstance Shard] - maintenance_
time str - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max_
connections int - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- node_
ids Sequence[str] - List of Proxy and Server node IDs.
- private_
address str - The domain name for the instance's private network connection address.
- private_
port str - Port number for the instance's private network connection address.
- service_
type str - Service type of the instance
- status str
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- vi_
pv6 str - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip str
- IPv4 address corresponding to the instance's private network connection address.
- visit_
addrs Sequence[InstanceVisit Addr] - vpc_
auth_ strmode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- zone_
ids Sequence[str] - List of available zones where the instance is located.
- blue
Green StringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity Property Map
- Capacity information of the instance.
- create
Time String - Creation time of the instance.
- data
Layout String - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- expired
Time String - Instance expiration time.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Class String - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance
Id String - Instance ID.
- instance
Shards List<Property Map> - maintenance
Time String - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max
Connections Number - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- node
Ids List<String> - List of Proxy and Server node IDs.
- private
Address String - The domain name for the instance's private network connection address.
- private
Port String - Port number for the instance's private network connection address.
- service
Type String - Service type of the instance
- status String
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- vi
Pv6 String - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip String
- IPv4 address corresponding to the instance's private network connection address.
- visit
Addrs List<Property Map> - vpc
Auth StringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- zone
Ids List<String> - List of available zones where the instance is located.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_list_ids: Optional[Sequence[str]] = None,
auto_renew: Optional[bool] = None,
backup_point_name: Optional[str] = None,
blue_green_role: Optional[str] = None,
capacity: Optional[InstanceCapacityArgs] = None,
charge_type: Optional[str] = None,
configure_nodes: Optional[Sequence[InstanceConfigureNodeArgs]] = None,
create_backup: Optional[bool] = None,
create_time: Optional[str] = None,
data_layout: Optional[str] = None,
deletion_protection: Optional[str] = None,
engine_version: Optional[str] = None,
expired_time: Optional[str] = None,
instance_class: Optional[str] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_shards: Optional[Sequence[InstanceInstanceShardArgs]] = None,
maintenance_time: Optional[str] = None,
max_connections: Optional[int] = None,
multi_az: Optional[str] = None,
no_auth_mode: Optional[str] = None,
node_ids: Optional[Sequence[str]] = None,
node_number: Optional[int] = None,
parameter_group_id: Optional[str] = None,
password: Optional[str] = None,
port: Optional[int] = None,
private_address: Optional[str] = None,
private_port: Optional[str] = None,
project_name: Optional[str] = None,
purchase_months: Optional[int] = None,
reserve_additional_bandwidth: Optional[bool] = None,
service_type: Optional[str] = None,
shard_capacity: Optional[int] = None,
shard_number: Optional[int] = None,
sharded_cluster: Optional[int] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[InstanceTagArgs]] = None,
vi_pv6: Optional[str] = None,
vip: Optional[str] = None,
visit_addrs: Optional[Sequence[InstanceVisitAddrArgs]] = None,
vpc_auth_mode: Optional[str] = None,
vpc_id: Optional[str] = None,
zone_ids: Optional[Sequence[str]] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources: _: type: volcenginecc:redis:Instance 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.
- Allow
List List<string>Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- Auto
Renew bool - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- Backup
Point stringName - Set a backup name for the full backup created before changes.
- Blue
Green stringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- Capacity
Volcengine.
Instance Capacity - Capacity information of the instance.
- Charge
Type string - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- Configure
Nodes List<Volcengine.Instance Configure Node> - Create
Backup bool - Whether to create a backup before making changes.
- Create
Time string - Creation time of the instance.
- Data
Layout string - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- Deletion
Protection string - Enable or disable instance deletion protection.
- Engine
Version string - Database version number.
- Expired
Time string - Instance expiration time.
- Instance
Class string - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- Instance
Id string - Instance ID.
- Instance
Name string - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- Instance
Shards List<Volcengine.Instance Instance Shard> - Maintenance
Time string - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- Max
Connections int - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- Multi
Az string - Set the deployment scheme for the instance's availability zone.
- No
Auth stringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- Node
Ids List<string> - List of Proxy and Server node IDs.
- Node
Number int - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- Parameter
Group stringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- Password string
- Set the password for the default account of the default database.
- Port int
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- Private
Address string - The domain name for the instance's private network connection address.
- Private
Port string - Port number for the instance's private network connection address.
- Project
Name string - Project to which the instance belongs.
- Purchase
Months int - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- Reserve
Additional boolBandwidth - Set whether to reserve additional bandwidth
- Service
Type string - Service type of the instance
- Shard
Capacity int - Memory capacity of each shard in the instance. Unit: MiB.
- Shard
Number int - Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
- Sharded
Cluster int - Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- Status string
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- Subnet
Id string - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
-
List<Volcengine.
Instance Tag> - Vi
Pv6 string - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- Vip string
- IPv4 address corresponding to the instance's private network connection address.
- Visit
Addrs List<Volcengine.Instance Visit Addr> - Vpc
Auth stringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- Vpc
Id string - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- Zone
Ids List<string> - List of available zones where the instance is located.
- Allow
List []stringIds - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- Auto
Renew bool - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- Backup
Point stringName - Set a backup name for the full backup created before changes.
- Blue
Green stringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- Capacity
Instance
Capacity Args - Capacity information of the instance.
- Charge
Type string - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- Configure
Nodes []InstanceConfigure Node Args - Create
Backup bool - Whether to create a backup before making changes.
- Create
Time string - Creation time of the instance.
- Data
Layout string - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- Deletion
Protection string - Enable or disable instance deletion protection.
- Engine
Version string - Database version number.
- Expired
Time string - Instance expiration time.
- Instance
Class string - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- Instance
Id string - Instance ID.
- Instance
Name string - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- Instance
Shards []InstanceInstance Shard Args - Maintenance
Time string - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- Max
Connections int - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- Multi
Az string - Set the deployment scheme for the instance's availability zone.
- No
Auth stringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- Node
Ids []string - List of Proxy and Server node IDs.
- Node
Number int - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- Parameter
Group stringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- Password string
- Set the password for the default account of the default database.
- Port int
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- Private
Address string - The domain name for the instance's private network connection address.
- Private
Port string - Port number for the instance's private network connection address.
- Project
Name string - Project to which the instance belongs.
- Purchase
Months int - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- Reserve
Additional boolBandwidth - Set whether to reserve additional bandwidth
- Service
Type string - Service type of the instance
- Shard
Capacity int - Memory capacity of each shard in the instance. Unit: MiB.
- Shard
Number int - Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
- Sharded
Cluster int - Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- Status string
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- Subnet
Id string - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
-
[]Instance
Tag Args - Vi
Pv6 string - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- Vip string
- IPv4 address corresponding to the instance's private network connection address.
- Visit
Addrs []InstanceVisit Addr Args - Vpc
Auth stringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- Vpc
Id string - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- Zone
Ids []string - List of available zones where the instance is located.
- allow
List List<String>Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto
Renew Boolean - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup
Point StringName - Set a backup name for the full backup created before changes.
- blue
Green StringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity
Instance
Capacity - Capacity information of the instance.
- charge
Type String - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- configure
Nodes List<InstanceConfigure Node> - create
Backup Boolean - Whether to create a backup before making changes.
- create
Time String - Creation time of the instance.
- data
Layout String - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- deletion
Protection String - Enable or disable instance deletion protection.
- engine
Version String - Database version number.
- expired
Time String - Instance expiration time.
- instance
Class String - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance
Id String - Instance ID.
- instance
Name String - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- instance
Shards List<InstanceInstance Shard> - maintenance
Time String - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max
Connections Integer - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- multi
Az String - Set the deployment scheme for the instance's availability zone.
- no
Auth StringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- node
Ids List<String> - List of Proxy and Server node IDs.
- node
Number Integer - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- parameter
Group StringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password String
- Set the password for the default account of the default database.
- port Integer
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- private
Address String - The domain name for the instance's private network connection address.
- private
Port String - Port number for the instance's private network connection address.
- project
Name String - Project to which the instance belongs.
- purchase
Months Integer - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve
Additional BooleanBandwidth - Set whether to reserve additional bandwidth
- service
Type String - Service type of the instance
- shard
Capacity Integer - Memory capacity of each shard in the instance. Unit: MiB.
- shard
Number Integer - Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
- sharded
Cluster Integer - Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- status String
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- subnet
Id String - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
-
List<Instance
Tag> - vi
Pv6 String - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip String
- IPv4 address corresponding to the instance's private network connection address.
- visit
Addrs List<InstanceVisit Addr> - vpc
Auth StringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- vpc
Id String - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- zone
Ids List<String> - List of available zones where the instance is located.
- allow
List string[]Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto
Renew boolean - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup
Point stringName - Set a backup name for the full backup created before changes.
- blue
Green stringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity
Instance
Capacity - Capacity information of the instance.
- charge
Type string - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- configure
Nodes InstanceConfigure Node[] - create
Backup boolean - Whether to create a backup before making changes.
- create
Time string - Creation time of the instance.
- data
Layout string - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- deletion
Protection string - Enable or disable instance deletion protection.
- engine
Version string - Database version number.
- expired
Time string - Instance expiration time.
- instance
Class string - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance
Id string - Instance ID.
- instance
Name string - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- instance
Shards InstanceInstance Shard[] - maintenance
Time string - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max
Connections number - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- multi
Az string - Set the deployment scheme for the instance's availability zone.
- no
Auth stringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- node
Ids string[] - List of Proxy and Server node IDs.
- node
Number number - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- parameter
Group stringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password string
- Set the password for the default account of the default database.
- port number
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- private
Address string - The domain name for the instance's private network connection address.
- private
Port string - Port number for the instance's private network connection address.
- project
Name string - Project to which the instance belongs.
- purchase
Months number - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve
Additional booleanBandwidth - Set whether to reserve additional bandwidth
- service
Type string - Service type of the instance
- shard
Capacity number - Memory capacity of each shard in the instance. Unit: MiB.
- shard
Number number - Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
- sharded
Cluster number - Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- status string
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- subnet
Id string - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
-
Instance
Tag[] - vi
Pv6 string - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip string
- IPv4 address corresponding to the instance's private network connection address.
- visit
Addrs InstanceVisit Addr[] - vpc
Auth stringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- vpc
Id string - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- zone
Ids string[] - List of available zones where the instance is located.
- allow_
list_ Sequence[str]ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto_
renew bool - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup_
point_ strname - Set a backup name for the full backup created before changes.
- blue_
green_ strrole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity
Instance
Capacity Args - Capacity information of the instance.
- charge_
type str - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- configure_
nodes Sequence[InstanceConfigure Node Args] - create_
backup bool - Whether to create a backup before making changes.
- create_
time str - Creation time of the instance.
- data_
layout str - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- deletion_
protection str - Enable or disable instance deletion protection.
- engine_
version str - Database version number.
- expired_
time str - Instance expiration time.
- instance_
class str - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance_
id str - Instance ID.
- instance_
name str - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- instance_
shards Sequence[InstanceInstance Shard Args] - maintenance_
time str - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max_
connections int - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- multi_
az str - Set the deployment scheme for the instance's availability zone.
- no_
auth_ strmode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- node_
ids Sequence[str] - List of Proxy and Server node IDs.
- node_
number int - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- parameter_
group_ strid - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password str
- Set the password for the default account of the default database.
- port int
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- private_
address str - The domain name for the instance's private network connection address.
- private_
port str - Port number for the instance's private network connection address.
- project_
name str - Project to which the instance belongs.
- purchase_
months int - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve_
additional_ boolbandwidth - Set whether to reserve additional bandwidth
- service_
type str - Service type of the instance
- shard_
capacity int - Memory capacity of each shard in the instance. Unit: MiB.
- shard_
number int - Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
- sharded_
cluster int - Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- status str
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- subnet_
id str - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
-
Sequence[Instance
Tag Args] - vi_
pv6 str - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip str
- IPv4 address corresponding to the instance's private network connection address.
- visit_
addrs Sequence[InstanceVisit Addr Args] - vpc_
auth_ strmode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- vpc_
id str - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- zone_
ids Sequence[str] - List of available zones where the instance is located.
- allow
List List<String>Ids - Allowlist ID list. If left empty, the new instance will not be added to any allowlist by default. You can call the DescribeAllowLists API to query all IP allowlist information, including allowlist IDs, for the specified region under your account. Each instance supports binding up to 100 allowlists, and you can batch bind up to 100 allowlists at a time. Each instance supports binding up to 1000 IP addresses or CIDR-format IP address ranges.
- auto
Renew Boolean - Whether to enable auto-renewal. Value options: false (default): Disabled; true: Enabled.
- backup
Point StringName - Set a backup name for the full backup created before changes.
- blue
Green StringRole - Blue-green deployment role of the instance. Valid values: Blue: blue instance. Green: green instance. This parameter is returned only for Redis instances that have used the blue-green deployment feature.
- capacity Property Map
- Capacity information of the instance.
- charge
Type String - Instance billing type. Value options: PrePaid: Subscription (also called prepaid). PostPaid: Pay-as-you-go (also called postpaid).
- configure
Nodes List<Property Map> - create
Backup Boolean - Whether to create a backup before making changes.
- create
Time String - Creation time of the instance.
- data
Layout String - Data storage type of the instance. This parameter is only relevant for Enterprise Edition instances (ServiceType=Enterprise). Community Edition instances (ServiceType=Basic) do not involve data storage type, and DataLayout is always set to RAM. If this parameter is left empty, data storage type is not used as a filter.
- deletion
Protection String - Enable or disable instance deletion protection.
- engine
Version String - Database version number.
- expired
Time String - Instance expiration time.
- instance
Class String - Type of Redis instance. Valid values: PrimarySecondary: primary-secondary instance; Standalone: single-node instance. If this parameter is left empty, instance type is not used as a filter. For more information about instance types, see Product Architecture.
- instance
Id String - Instance ID.
- instance
Name String - Instance name. Naming rules: Cannot start with a digit or hyphen (-); can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-); length must be 1–128 characters.
- instance
Shards List<Property Map> - maintenance
Time String - Maintenance window for the instance, format: HH:mm-HH:mm (UTC+8).
- max
Connections Number - Current maximum connections per shard for the instance. The default connection limit per shard is 10,000. You can also call the ModifyDBInstanceMaxConn API to adjust the maximum connections per shard based on your business needs.
- multi
Az String - Set the deployment scheme for the instance's availability zone.
- no
Auth StringMode - Enable or disable password-free access for new instances. Valid values: open: enable password-free access; close (default): disable password-free access.
- node
Ids List<String> - List of Proxy and Server node IDs.
- node
Number Number - Number of nodes in each shard. Value range: 1–6. By default, each account can create up to 4 nodes of 256 MiB specification per region. To increase the quota limit to 10, see Account Quotas. A value of 1 creates a single-node instance; a value greater than 1 creates a primary-secondary instance. For details on the differences between these two types of instances, see Feature Differences.
- parameter
Group StringId - The parameter template to be applied to the new instance. Redis for Cache Database creates a default system parameter template for each database version, which includes all parameters supported by that version and their default values. If this parameter is left blank, the system will select and apply the corresponding version's system parameter template for the new instance based on the database version you set (i.e., EngineVersion). You can call the DescribeParameterGroups API to query basic information about all parameter templates under your account and region, including the parameter template ID.
- password String
- Set the password for the default account of the default database.
- port Number
- Custom port number for the private network connection address. Value range: 1024~65535. If this parameter is left blank, the private network connection address uses port 6379 by default. After the instance is created, you can also modify the port number of the private network address. For instructions, see Modify Port Number.
- private
Address String - The domain name for the instance's private network connection address.
- private
Port String - Port number for the instance's private network connection address.
- project
Name String - Project to which the instance belongs.
- purchase
Months Number - Purchase duration, unit: month. Value options: Monthly purchase: 1, 2, 3, 4, 5, 6, 7, 8, 9. Annual purchase: 12, 24, 36. When ChargeType is PrePaid, this parameter is required.
- reserve
Additional BooleanBandwidth - Set whether to reserve additional bandwidth
- service
Type String - Service type of the instance
- shard
Capacity Number - Memory capacity of each shard in the instance. Unit: MiB.
- shard
Number Number - Number of shards in the instance. Value range: 2–256. Specify this parameter only when ShardedCluster is set to 1 (enabled).
- sharded
Cluster Number - Whether to enable sharded cluster. Value options: 0: Disabled. 1: Enabled.
- status String
- Service type of the instance. Value options: Basic (default): Community Edition; Enterprise: Enterprise Edition.
- subnet
Id String - Set the subnet ID for the instance. Subnets have availability zone attributes; you must select a subnet in the target private network that belongs to the same availability zone as the instance. A subnet is an IP address block within a private network. All cloud resources in the private network must be deployed in a subnet. The subnet assigns private IP addresses to cloud resources. You can call the CreateSubnet API to create a subnet. You can call the DescribeSubnets API to query the list of all subnets in a specified availability zone, including subnet IDs.
- List<Property Map>
- vi
Pv6 String - The IPv6 address corresponding to the instance's private network connection address. This parameter is returned only if the instance uses an IPv6 address.
- vip String
- IPv4 address corresponding to the instance's private network connection address.
- visit
Addrs List<Property Map> - vpc
Auth StringMode - Enable or disable password-free access. Valid values: open: enable password-free access; close: disable password-free access. Values are case-insensitive.
- vpc
Id String - Set the private network ID for the instance. It is recommended that the Redis instance and the ECS instance you want to connect to are in the same private network; otherwise, they cannot communicate optimally via the internal network. You can call the CreateVpc API to create a private network. You can call the DescribeVpcs API to query private network information that meets specified conditions, including the private network ID.
- zone
Ids List<String> - List of available zones where the instance is located.
Supporting Types
InstanceCapacity, InstanceCapacityArgs
InstanceConfigureNode, InstanceConfigureNodeArgs
- Az string
- The availability zone each node belongs to.
- Az string
- The availability zone each node belongs to.
- az String
- The availability zone each node belongs to.
- az string
- The availability zone each node belongs to.
- az str
- The availability zone each node belongs to.
- az String
- The availability zone each node belongs to.
InstanceInstanceShard, InstanceInstanceShardArgs
- Node
Number int - Number of nodes in each shard
- Server
Nodes List<Volcengine.Instance Instance Shard Server Node> - string
- Shard ID.
- Node
Number int - Number of nodes in each shard
- Server
Nodes []InstanceInstance Shard Server Node - string
- Shard ID.
- node
Number Integer - Number of nodes in each shard
- server
Nodes List<InstanceInstance Shard Server Node> - String
- Shard ID.
- node
Number number - Number of nodes in each shard
- server
Nodes InstanceInstance Shard Server Node[] - string
- Shard ID.
- node_
number int - Number of nodes in each shard
- server_
nodes Sequence[InstanceInstance Shard Server Node] - str
- Shard ID.
- node
Number Number - Number of nodes in each shard
- server
Nodes List<Property Map> - String
- Shard ID.
InstanceInstanceShardServerNode, InstanceInstanceShardServerNodeArgs
- Current
Role string - Current role of the node. Valid values: PrimaryNode: primary node; SecondaryNode: secondary node.
- Node
Id string - Node ID.
- Status string
- Node status. Valid values: deploy: starting; running: running; loading: loading data; error: error.
- Zone
Id string - Availability zone where the node is located.
- Current
Role string - Current role of the node. Valid values: PrimaryNode: primary node; SecondaryNode: secondary node.
- Node
Id string - Node ID.
- Status string
- Node status. Valid values: deploy: starting; running: running; loading: loading data; error: error.
- Zone
Id string - Availability zone where the node is located.
- current
Role String - Current role of the node. Valid values: PrimaryNode: primary node; SecondaryNode: secondary node.
- node
Id String - Node ID.
- status String
- Node status. Valid values: deploy: starting; running: running; loading: loading data; error: error.
- zone
Id String - Availability zone where the node is located.
- current
Role string - Current role of the node. Valid values: PrimaryNode: primary node; SecondaryNode: secondary node.
- node
Id string - Node ID.
- status string
- Node status. Valid values: deploy: starting; running: running; loading: loading data; error: error.
- zone
Id string - Availability zone where the node is located.
- current_
role str - Current role of the node. Valid values: PrimaryNode: primary node; SecondaryNode: secondary node.
- node_
id str - Node ID.
- status str
- Node status. Valid values: deploy: starting; running: running; loading: loading data; error: error.
- zone_
id str - Availability zone where the node is located.
- current
Role String - Current role of the node. Valid values: PrimaryNode: primary node; SecondaryNode: secondary node.
- node
Id String - Node ID.
- status String
- Node status. Valid values: deploy: starting; running: running; loading: loading data; error: error.
- zone
Id String - Availability zone where the node is located.
InstanceTag, InstanceTagArgs
InstanceVisitAddr, InstanceVisitAddrArgs
- Addr
Type string - Connection address type. Value options: Private: Private network connection address; Public: Public network connection address; DirectLink: Direct connection address.
- Address string
- IP address or domain name.
- Eip
Id string - EIP ID bound to the instance's public address. This parameter is returned only when the connection address type (AddrType) is Public.
- Port string
- Port number.
- Vi
Pv6 string - IPv6 address corresponding to the connection address.
- Vip string
- The IPv4 address corresponding to the connection address.
- Addr
Type string - Connection address type. Value options: Private: Private network connection address; Public: Public network connection address; DirectLink: Direct connection address.
- Address string
- IP address or domain name.
- Eip
Id string - EIP ID bound to the instance's public address. This parameter is returned only when the connection address type (AddrType) is Public.
- Port string
- Port number.
- Vi
Pv6 string - IPv6 address corresponding to the connection address.
- Vip string
- The IPv4 address corresponding to the connection address.
- addr
Type String - Connection address type. Value options: Private: Private network connection address; Public: Public network connection address; DirectLink: Direct connection address.
- address String
- IP address or domain name.
- eip
Id String - EIP ID bound to the instance's public address. This parameter is returned only when the connection address type (AddrType) is Public.
- port String
- Port number.
- vi
Pv6 String - IPv6 address corresponding to the connection address.
- vip String
- The IPv4 address corresponding to the connection address.
- addr
Type string - Connection address type. Value options: Private: Private network connection address; Public: Public network connection address; DirectLink: Direct connection address.
- address string
- IP address or domain name.
- eip
Id string - EIP ID bound to the instance's public address. This parameter is returned only when the connection address type (AddrType) is Public.
- port string
- Port number.
- vi
Pv6 string - IPv6 address corresponding to the connection address.
- vip string
- The IPv4 address corresponding to the connection address.
- addr_
type str - Connection address type. Value options: Private: Private network connection address; Public: Public network connection address; DirectLink: Direct connection address.
- address str
- IP address or domain name.
- eip_
id str - EIP ID bound to the instance's public address. This parameter is returned only when the connection address type (AddrType) is Public.
- port str
- Port number.
- vi_
pv6 str - IPv6 address corresponding to the connection address.
- vip str
- The IPv4 address corresponding to the connection address.
- addr
Type String - Connection address type. Value options: Private: Private network connection address; Public: Public network connection address; DirectLink: Direct connection address.
- address String
- IP address or domain name.
- eip
Id String - EIP ID bound to the instance's public address. This parameter is returned only when the connection address type (AddrType) is Public.
- port String
- Port number.
- vi
Pv6 String - IPv6 address corresponding to the connection address.
- vip String
- The IPv4 address corresponding to the connection address.
Import
$ pulumi import volcenginecc:redis/instance:Instance example "instance_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
