1. Packages
  2. Ucloud Provider
  3. API Docs
  4. RedisInstance
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.RedisInstance

Explore with Pulumi AI

The UCloud Redis instance is a key-value online storage service compatible with the Redis protocol.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";

const _default = ucloud.getZones({});
const master = new ucloud.RedisInstance("master", {
    availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
    instanceType: "redis-master-2",
    password: "2018_Tfacc",
    engineVersion: "4.0",
    tag: "tf-example",
});
const distributed = new ucloud.RedisInstance("distributed", {
    availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
    instanceType: "redis-distributed-16",
    tag: "tf-example",
});
Copy
import pulumi
import pulumi_ucloud as ucloud

default = ucloud.get_zones()
master = ucloud.RedisInstance("master",
    availability_zone=default.zones[0].id,
    instance_type="redis-master-2",
    password="2018_Tfacc",
    engine_version="4.0",
    tag="tf-example")
distributed = ucloud.RedisInstance("distributed",
    availability_zone=default.zones[0].id,
    instance_type="redis-distributed-16",
    tag="tf-example")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := ucloud.GetZones(ctx, &ucloud.GetZonesArgs{}, nil)
		if err != nil {
			return err
		}
		_, err = ucloud.NewRedisInstance(ctx, "master", &ucloud.RedisInstanceArgs{
			AvailabilityZone: pulumi.String(_default.Zones[0].Id),
			InstanceType:     pulumi.String("redis-master-2"),
			Password:         pulumi.String("2018_Tfacc"),
			EngineVersion:    pulumi.String("4.0"),
			Tag:              pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		_, err = ucloud.NewRedisInstance(ctx, "distributed", &ucloud.RedisInstanceArgs{
			AvailabilityZone: pulumi.String(_default.Zones[0].Id),
			InstanceType:     pulumi.String("redis-distributed-16"),
			Tag:              pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;

return await Deployment.RunAsync(() => 
{
    var @default = Ucloud.GetZones.Invoke();

    var master = new Ucloud.RedisInstance("master", new()
    {
        AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        InstanceType = "redis-master-2",
        Password = "2018_Tfacc",
        EngineVersion = "4.0",
        Tag = "tf-example",
    });

    var distributed = new Ucloud.RedisInstance("distributed", new()
    {
        AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        InstanceType = "redis-distributed-16",
        Tag = "tf-example",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.UcloudFunctions;
import com.pulumi.ucloud.inputs.GetZonesArgs;
import com.pulumi.ucloud.RedisInstance;
import com.pulumi.ucloud.RedisInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var default = UcloudFunctions.getZones();

        var master = new RedisInstance("master", RedisInstanceArgs.builder()
            .availabilityZone(default_.zones()[0].id())
            .instanceType("redis-master-2")
            .password("2018_Tfacc")
            .engineVersion("4.0")
            .tag("tf-example")
            .build());

        var distributed = new RedisInstance("distributed", RedisInstanceArgs.builder()
            .availabilityZone(default_.zones()[0].id())
            .instanceType("redis-distributed-16")
            .tag("tf-example")
            .build());

    }
}
Copy
resources:
  master:
    type: ucloud:RedisInstance
    properties:
      availabilityZone: ${default.zones[0].id}
      instanceType: redis-master-2
      password: 2018_Tfacc
      engineVersion: '4.0'
      tag: tf-example
  distributed:
    type: ucloud:RedisInstance
    properties:
      availabilityZone: ${default.zones[0].id}
      instanceType: redis-distributed-16
      tag: tf-example
variables:
  default:
    fn::invoke:
      function: ucloud:getZones
      arguments: {}
Copy

Create RedisInstance Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RedisInstance(name: string, args: RedisInstanceArgs, opts?: CustomResourceOptions);
@overload
def RedisInstance(resource_name: str,
                  args: RedisInstanceArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def RedisInstance(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  instance_type: Optional[str] = None,
                  availability_zone: Optional[str] = None,
                  charge_type: Optional[str] = None,
                  auto_backup: Optional[str] = None,
                  duration: Optional[float] = None,
                  engine_version: Optional[str] = None,
                  backup_begin_time: Optional[float] = None,
                  name: Optional[str] = None,
                  password: Optional[str] = None,
                  redis_instance_id: Optional[str] = None,
                  standby_zone: Optional[str] = None,
                  subnet_id: Optional[str] = None,
                  tag: Optional[str] = None,
                  vpc_id: Optional[str] = None)
func NewRedisInstance(ctx *Context, name string, args RedisInstanceArgs, opts ...ResourceOption) (*RedisInstance, error)
public RedisInstance(string name, RedisInstanceArgs args, CustomResourceOptions? opts = null)
public RedisInstance(String name, RedisInstanceArgs args)
public RedisInstance(String name, RedisInstanceArgs args, CustomResourceOptions options)
type: ucloud:RedisInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RedisInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RedisInstanceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RedisInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RedisInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RedisInstanceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var redisInstanceResource = new Ucloud.RedisInstance("redisInstanceResource", new()
{
    InstanceType = "string",
    AvailabilityZone = "string",
    ChargeType = "string",
    AutoBackup = "string",
    Duration = 0,
    EngineVersion = "string",
    BackupBeginTime = 0,
    Name = "string",
    Password = "string",
    RedisInstanceId = "string",
    StandbyZone = "string",
    SubnetId = "string",
    Tag = "string",
    VpcId = "string",
});
Copy
example, err := ucloud.NewRedisInstance(ctx, "redisInstanceResource", &ucloud.RedisInstanceArgs{
InstanceType: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
ChargeType: pulumi.String("string"),
AutoBackup: pulumi.String("string"),
Duration: pulumi.Float64(0),
EngineVersion: pulumi.String("string"),
BackupBeginTime: pulumi.Float64(0),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
RedisInstanceId: pulumi.String("string"),
StandbyZone: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Tag: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
Copy
var redisInstanceResource = new RedisInstance("redisInstanceResource", RedisInstanceArgs.builder()
    .instanceType("string")
    .availabilityZone("string")
    .chargeType("string")
    .autoBackup("string")
    .duration(0)
    .engineVersion("string")
    .backupBeginTime(0)
    .name("string")
    .password("string")
    .redisInstanceId("string")
    .standbyZone("string")
    .subnetId("string")
    .tag("string")
    .vpcId("string")
    .build());
Copy
redis_instance_resource = ucloud.RedisInstance("redisInstanceResource",
    instance_type="string",
    availability_zone="string",
    charge_type="string",
    auto_backup="string",
    duration=0,
    engine_version="string",
    backup_begin_time=0,
    name="string",
    password="string",
    redis_instance_id="string",
    standby_zone="string",
    subnet_id="string",
    tag="string",
    vpc_id="string")
Copy
const redisInstanceResource = new ucloud.RedisInstance("redisInstanceResource", {
    instanceType: "string",
    availabilityZone: "string",
    chargeType: "string",
    autoBackup: "string",
    duration: 0,
    engineVersion: "string",
    backupBeginTime: 0,
    name: "string",
    password: "string",
    redisInstanceId: "string",
    standbyZone: "string",
    subnetId: "string",
    tag: "string",
    vpcId: "string",
});
Copy
type: ucloud:RedisInstance
properties:
    autoBackup: string
    availabilityZone: string
    backupBeginTime: 0
    chargeType: string
    duration: 0
    engineVersion: string
    instanceType: string
    name: string
    password: string
    redisInstanceId: string
    standbyZone: string
    subnetId: string
    tag: string
    vpcId: string
Copy

RedisInstance 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 RedisInstance resource accepts the following input properties:

AvailabilityZone This property is required. string
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
InstanceType This property is required. string
The type of Redis instance, please visit the instance type table for more details.


AutoBackup string
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
BackupBeginTime double
ChargeType string
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
Duration double
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
EngineVersion string
The version of engine of active-standby Redis.
Name string
Password string
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
RedisInstanceId string
The ID of the resource Redis instance.
StandbyZone string
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
SubnetId string
The ID of subnet linked to the Redis instance.
Tag string
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
VpcId string
The ID of VPC linked to the Redis instance.
AvailabilityZone This property is required. string
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
InstanceType This property is required. string
The type of Redis instance, please visit the instance type table for more details.


AutoBackup string
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
BackupBeginTime float64
ChargeType string
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
Duration float64
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
EngineVersion string
The version of engine of active-standby Redis.
Name string
Password string
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
RedisInstanceId string
The ID of the resource Redis instance.
StandbyZone string
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
SubnetId string
The ID of subnet linked to the Redis instance.
Tag string
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
VpcId string
The ID of VPC linked to the Redis instance.
availabilityZone This property is required. String
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
instanceType This property is required. String
The type of Redis instance, please visit the instance type table for more details.


autoBackup String
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
backupBeginTime Double
chargeType String
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
duration Double
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engineVersion String
The version of engine of active-standby Redis.
name String
password String
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redisInstanceId String
The ID of the resource Redis instance.
standbyZone String
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
subnetId String
The ID of subnet linked to the Redis instance.
tag String
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId String
The ID of VPC linked to the Redis instance.
availabilityZone This property is required. string
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
instanceType This property is required. string
The type of Redis instance, please visit the instance type table for more details.


autoBackup string
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
backupBeginTime number
chargeType string
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
duration number
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engineVersion string
The version of engine of active-standby Redis.
name string
password string
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redisInstanceId string
The ID of the resource Redis instance.
standbyZone string
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
subnetId string
The ID of subnet linked to the Redis instance.
tag string
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId string
The ID of VPC linked to the Redis instance.
availability_zone This property is required. str
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
instance_type This property is required. str
The type of Redis instance, please visit the instance type table for more details.


auto_backup str
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
backup_begin_time float
charge_type str
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
duration float
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engine_version str
The version of engine of active-standby Redis.
name str
password str
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redis_instance_id str
The ID of the resource Redis instance.
standby_zone str
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
subnet_id str
The ID of subnet linked to the Redis instance.
tag str
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpc_id str
The ID of VPC linked to the Redis instance.
availabilityZone This property is required. String
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
instanceType This property is required. String
The type of Redis instance, please visit the instance type table for more details.


autoBackup String
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
backupBeginTime Number
chargeType String
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
duration Number
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engineVersion String
The version of engine of active-standby Redis.
name String
password String
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redisInstanceId String
The ID of the resource Redis instance.
standbyZone String
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
subnetId String
The ID of subnet linked to the Redis instance.
tag String
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId String
The ID of VPC linked to the Redis instance.

Outputs

All input properties are implicitly available as output properties. Additionally, the RedisInstance resource produces the following output properties:

CreateTime string
The creation time of Redis instance, formatted by RFC3339 time string.
ExpireTime string
The expiration time of Redis instance, formatted by RFC3339 time string.
Id string
The provider-assigned unique ID for this managed resource.
IpSets List<RedisInstanceIpSet>
ip_set is a nested type. ip_set documented below.
Status string
The status of KV Redis instance.
CreateTime string
The creation time of Redis instance, formatted by RFC3339 time string.
ExpireTime string
The expiration time of Redis instance, formatted by RFC3339 time string.
Id string
The provider-assigned unique ID for this managed resource.
IpSets []RedisInstanceIpSet
ip_set is a nested type. ip_set documented below.
Status string
The status of KV Redis instance.
createTime String
The creation time of Redis instance, formatted by RFC3339 time string.
expireTime String
The expiration time of Redis instance, formatted by RFC3339 time string.
id String
The provider-assigned unique ID for this managed resource.
ipSets List<RedisInstanceIpSet>
ip_set is a nested type. ip_set documented below.
status String
The status of KV Redis instance.
createTime string
The creation time of Redis instance, formatted by RFC3339 time string.
expireTime string
The expiration time of Redis instance, formatted by RFC3339 time string.
id string
The provider-assigned unique ID for this managed resource.
ipSets RedisInstanceIpSet[]
ip_set is a nested type. ip_set documented below.
status string
The status of KV Redis instance.
create_time str
The creation time of Redis instance, formatted by RFC3339 time string.
expire_time str
The expiration time of Redis instance, formatted by RFC3339 time string.
id str
The provider-assigned unique ID for this managed resource.
ip_sets Sequence[RedisInstanceIpSet]
ip_set is a nested type. ip_set documented below.
status str
The status of KV Redis instance.
createTime String
The creation time of Redis instance, formatted by RFC3339 time string.
expireTime String
The expiration time of Redis instance, formatted by RFC3339 time string.
id String
The provider-assigned unique ID for this managed resource.
ipSets List<Property Map>
ip_set is a nested type. ip_set documented below.
status String
The status of KV Redis instance.

Look up Existing RedisInstance Resource

Get an existing RedisInstance 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?: RedisInstanceState, opts?: CustomResourceOptions): RedisInstance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_backup: Optional[str] = None,
        availability_zone: Optional[str] = None,
        backup_begin_time: Optional[float] = None,
        charge_type: Optional[str] = None,
        create_time: Optional[str] = None,
        duration: Optional[float] = None,
        engine_version: Optional[str] = None,
        expire_time: Optional[str] = None,
        instance_type: Optional[str] = None,
        ip_sets: Optional[Sequence[RedisInstanceIpSetArgs]] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        redis_instance_id: Optional[str] = None,
        standby_zone: Optional[str] = None,
        status: Optional[str] = None,
        subnet_id: Optional[str] = None,
        tag: Optional[str] = None,
        vpc_id: Optional[str] = None) -> RedisInstance
func GetRedisInstance(ctx *Context, name string, id IDInput, state *RedisInstanceState, opts ...ResourceOption) (*RedisInstance, error)
public static RedisInstance Get(string name, Input<string> id, RedisInstanceState? state, CustomResourceOptions? opts = null)
public static RedisInstance get(String name, Output<String> id, RedisInstanceState state, CustomResourceOptions options)
resources:  _:    type: ucloud:RedisInstance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AutoBackup string
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
AvailabilityZone string
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
BackupBeginTime double
ChargeType string
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
CreateTime string
The creation time of Redis instance, formatted by RFC3339 time string.
Duration double
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
EngineVersion string
The version of engine of active-standby Redis.
ExpireTime string
The expiration time of Redis instance, formatted by RFC3339 time string.
InstanceType string
The type of Redis instance, please visit the instance type table for more details.


IpSets List<RedisInstanceIpSet>
ip_set is a nested type. ip_set documented below.
Name string
Password string
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
RedisInstanceId string
The ID of the resource Redis instance.
StandbyZone string
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
Status string
The status of KV Redis instance.
SubnetId string
The ID of subnet linked to the Redis instance.
Tag string
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
VpcId string
The ID of VPC linked to the Redis instance.
AutoBackup string
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
AvailabilityZone string
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
BackupBeginTime float64
ChargeType string
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
CreateTime string
The creation time of Redis instance, formatted by RFC3339 time string.
Duration float64
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
EngineVersion string
The version of engine of active-standby Redis.
ExpireTime string
The expiration time of Redis instance, formatted by RFC3339 time string.
InstanceType string
The type of Redis instance, please visit the instance type table for more details.


IpSets []RedisInstanceIpSetArgs
ip_set is a nested type. ip_set documented below.
Name string
Password string
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
RedisInstanceId string
The ID of the resource Redis instance.
StandbyZone string
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
Status string
The status of KV Redis instance.
SubnetId string
The ID of subnet linked to the Redis instance.
Tag string
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
VpcId string
The ID of VPC linked to the Redis instance.
autoBackup String
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
availabilityZone String
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
backupBeginTime Double
chargeType String
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
createTime String
The creation time of Redis instance, formatted by RFC3339 time string.
duration Double
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engineVersion String
The version of engine of active-standby Redis.
expireTime String
The expiration time of Redis instance, formatted by RFC3339 time string.
instanceType String
The type of Redis instance, please visit the instance type table for more details.


ipSets List<RedisInstanceIpSet>
ip_set is a nested type. ip_set documented below.
name String
password String
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redisInstanceId String
The ID of the resource Redis instance.
standbyZone String
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
status String
The status of KV Redis instance.
subnetId String
The ID of subnet linked to the Redis instance.
tag String
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId String
The ID of VPC linked to the Redis instance.
autoBackup string
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
availabilityZone string
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
backupBeginTime number
chargeType string
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
createTime string
The creation time of Redis instance, formatted by RFC3339 time string.
duration number
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engineVersion string
The version of engine of active-standby Redis.
expireTime string
The expiration time of Redis instance, formatted by RFC3339 time string.
instanceType string
The type of Redis instance, please visit the instance type table for more details.


ipSets RedisInstanceIpSet[]
ip_set is a nested type. ip_set documented below.
name string
password string
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redisInstanceId string
The ID of the resource Redis instance.
standbyZone string
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
status string
The status of KV Redis instance.
subnetId string
The ID of subnet linked to the Redis instance.
tag string
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId string
The ID of VPC linked to the Redis instance.
auto_backup str
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
availability_zone str
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
backup_begin_time float
charge_type str
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
create_time str
The creation time of Redis instance, formatted by RFC3339 time string.
duration float
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engine_version str
The version of engine of active-standby Redis.
expire_time str
The expiration time of Redis instance, formatted by RFC3339 time string.
instance_type str
The type of Redis instance, please visit the instance type table for more details.


ip_sets Sequence[RedisInstanceIpSetArgs]
ip_set is a nested type. ip_set documented below.
name str
password str
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redis_instance_id str
The ID of the resource Redis instance.
standby_zone str
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
status str
The status of KV Redis instance.
subnet_id str
The ID of subnet linked to the Redis instance.
tag str
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpc_id str
The ID of VPC linked to the Redis instance.
autoBackup String
Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are: enable, disable.
availabilityZone String
Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
backupBeginTime Number
chargeType String
The charge type of Redis instance, possible values are: year, month and dynamic as pay by hour (specific permission required). (Default: month).
createTime String
The creation time of Redis instance, formatted by RFC3339 time string.
duration Number
The duration that you will buy the Redis instance (Default: 1). The value is 0 when pay by month and the instance will be valid till the last day of that month. It is not required when dynamic (pay by hour).
engineVersion String
The version of engine of active-standby Redis.
expireTime String
The expiration time of Redis instance, formatted by RFC3339 time string.
instanceType String
The type of Redis instance, please visit the instance type table for more details.


ipSets List<Property Map>
ip_set is a nested type. ip_set documented below.
name String
password String
The password for active-standby Redis instance which should have 6-36 characters. It must contain at least 3 items of Capital letters, small letter, numbers and special characters. The special characters include -_.
redisInstanceId String
The ID of the resource Redis instance.
standbyZone String
Availability zone where the standby Redis instance is located for the high availability Redis instance with multiple zone; only be supported for Active-Standby Redis, not be supported for Distributed Redis.
status String
The status of KV Redis instance.
subnetId String
The ID of subnet linked to the Redis instance.
tag String
A tag assigned to Redis instance, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or an empty string is filled in, then default tag will be assigned. (Default: Default).
vpcId String
The ID of VPC linked to the Redis instance.

Supporting Types

RedisInstanceIpSet
, RedisInstanceIpSetArgs

Ip This property is required. string
The virtual ip of Redis instance.
Port This property is required. double
The port on which Redis instance accepts connections, it is 6379 by default.
Ip This property is required. string
The virtual ip of Redis instance.
Port This property is required. float64
The port on which Redis instance accepts connections, it is 6379 by default.
ip This property is required. String
The virtual ip of Redis instance.
port This property is required. Double
The port on which Redis instance accepts connections, it is 6379 by default.
ip This property is required. string
The virtual ip of Redis instance.
port This property is required. number
The port on which Redis instance accepts connections, it is 6379 by default.
ip This property is required. str
The virtual ip of Redis instance.
port This property is required. float
The port on which Redis instance accepts connections, it is 6379 by default.
ip This property is required. String
The virtual ip of Redis instance.
port This property is required. Number
The port on which Redis instance accepts connections, it is 6379 by default.

Package Details

Repository
ucloud ucloud/terraform-provider-ucloud
License
Notes
This Pulumi package is based on the ucloud Terraform Provider.