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",
});
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")
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
})
}
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",
});
});
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());
}
}
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: {}
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 string
- The unique name of the resource.
- args RedisInstanceArgs
- 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 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 string
- The unique name of the resource.
- args RedisInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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:
- Availability
Zone string - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- Instance
Type string - The type of Redis instance, please visit the instance type table for more details.
- Auto
Backup string - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - Backup
Begin doubleTime - Charge
Type string - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Duration double
- The duration that you will buy the Redis instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Engine
Version 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
-_
. - Redis
Instance stringId - The ID of the resource Redis instance.
- Standby
Zone 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.
- Subnet
Id 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
). - Vpc
Id string - The ID of VPC linked to the Redis instance.
- Availability
Zone string - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- Instance
Type string - The type of Redis instance, please visit the instance type table for more details.
- Auto
Backup string - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - Backup
Begin float64Time - Charge
Type string - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Duration float64
- The duration that you will buy the Redis instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Engine
Version 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
-_
. - Redis
Instance stringId - The ID of the resource Redis instance.
- Standby
Zone 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.
- Subnet
Id 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
). - Vpc
Id string - The ID of VPC linked to the Redis instance.
- availability
Zone String - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- instance
Type String - The type of Redis instance, please visit the instance type table for more details.
- auto
Backup String - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - backup
Begin DoubleTime - charge
Type String - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration Double
- The duration that you will buy the Redis instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - engine
Version 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
-_
. - redis
Instance StringId - The ID of the resource Redis instance.
- standby
Zone 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.
- subnet
Id 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
). - vpc
Id String - The ID of VPC linked to the Redis instance.
- availability
Zone string - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- instance
Type string - The type of Redis instance, please visit the instance type table for more details.
- auto
Backup string - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - backup
Begin numberTime - charge
Type string - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration number
- The duration that you will buy the Redis instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - engine
Version 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
-_
. - redis
Instance stringId - The ID of the resource Redis instance.
- standby
Zone 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.
- subnet
Id 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
). - vpc
Id string - The ID of VPC linked to the Redis instance.
- availability_
zone str - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- instance_
type 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_ floattime - charge_
type str - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration float
- The duration that you will buy the Redis instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(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_ strid - 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.
- availability
Zone String - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- instance
Type String - The type of Redis instance, please visit the instance type table for more details.
- auto
Backup String - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - backup
Begin NumberTime - charge
Type String - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - duration Number
- The duration that you will buy the Redis instance (Default:
1
). The value is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - engine
Version 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
-_
. - redis
Instance StringId - The ID of the resource Redis instance.
- standby
Zone 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.
- subnet
Id 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
). - vpc
Id 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:
- Create
Time string - The creation time of Redis instance, formatted by RFC3339 time string.
- Expire
Time string - The expiration time of Redis instance, formatted by RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets List<RedisInstance Ip Set> - ip_set is a nested type. ip_set documented below.
- Status string
- The status of KV Redis instance.
- Create
Time string - The creation time of Redis instance, formatted by RFC3339 time string.
- Expire
Time string - The expiration time of Redis instance, formatted by RFC3339 time string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets []RedisInstance Ip Set - ip_set is a nested type. ip_set documented below.
- Status string
- The status of KV Redis instance.
- create
Time String - The creation time of Redis instance, formatted by RFC3339 time string.
- expire
Time String - The expiration time of Redis instance, formatted by RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Sets List<RedisInstance Ip Set> - ip_set is a nested type. ip_set documented below.
- status String
- The status of KV Redis instance.
- create
Time string - The creation time of Redis instance, formatted by RFC3339 time string.
- expire
Time string - The expiration time of Redis instance, formatted by RFC3339 time string.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Sets RedisInstance Ip Set[] - 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[RedisInstance Ip Set] - ip_set is a nested type. ip_set documented below.
- status str
- The status of KV Redis instance.
- create
Time String - The creation time of Redis instance, formatted by RFC3339 time string.
- expire
Time String - The expiration time of Redis instance, formatted by RFC3339 time string.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Sets 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
- 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.
- Auto
Backup string - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - Availability
Zone string - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- Backup
Begin doubleTime - Charge
Type string - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Create
Time 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 is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Engine
Version string - The version of engine of active-standby Redis.
- Expire
Time string - The expiration time of Redis instance, formatted by RFC3339 time string.
- Instance
Type string - The type of Redis instance, please visit the instance type table for more details.
- Ip
Sets List<RedisInstance Ip Set> - 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
-_
. - Redis
Instance stringId - The ID of the resource Redis instance.
- Standby
Zone 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.
- Subnet
Id 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
). - Vpc
Id string - The ID of VPC linked to the Redis instance.
- Auto
Backup string - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - Availability
Zone string - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- Backup
Begin float64Time - Charge
Type string - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - Create
Time 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 is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - Engine
Version string - The version of engine of active-standby Redis.
- Expire
Time string - The expiration time of Redis instance, formatted by RFC3339 time string.
- Instance
Type string - The type of Redis instance, please visit the instance type table for more details.
- Ip
Sets []RedisInstance Ip Set Args - 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
-_
. - Redis
Instance stringId - The ID of the resource Redis instance.
- Standby
Zone 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.
- Subnet
Id 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
). - Vpc
Id string - The ID of VPC linked to the Redis instance.
- auto
Backup String - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - availability
Zone String - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- backup
Begin DoubleTime - charge
Type String - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time 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 is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - engine
Version String - The version of engine of active-standby Redis.
- expire
Time String - The expiration time of Redis instance, formatted by RFC3339 time string.
- instance
Type String - The type of Redis instance, please visit the instance type table for more details.
- ip
Sets List<RedisInstance Ip Set> - 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
-_
. - redis
Instance StringId - The ID of the resource Redis instance.
- standby
Zone 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.
- subnet
Id 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
). - vpc
Id String - The ID of VPC linked to the Redis instance.
- auto
Backup string - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - availability
Zone string - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- backup
Begin numberTime - charge
Type string - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time 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 is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - engine
Version string - The version of engine of active-standby Redis.
- expire
Time string - The expiration time of Redis instance, formatted by RFC3339 time string.
- instance
Type string - The type of Redis instance, please visit the instance type table for more details.
- ip
Sets RedisInstance Ip Set[] - 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
-_
. - redis
Instance stringId - The ID of the resource Redis instance.
- standby
Zone 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.
- subnet
Id 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
). - vpc
Id 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_ floattime - charge_
type str - The charge type of Redis instance, possible values are:
year
,month
anddynamic
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 is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(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[RedisInstance Ip Set Args] - 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_ strid - 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.
- auto
Backup String - Enable or not start auto backup of Redis instance, only support for Active-Standby Redis, possible values are:
enable
,disable
. - availability
Zone String - Availability zone where Redis instance is located. Such as: "cn-bj2-02". You may refer to list of availability zone
- backup
Begin NumberTime - charge
Type String - The charge type of Redis instance, possible values are:
year
,month
anddynamic
as pay by hour (specific permission required). (Default:month
). - create
Time 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 is0
when pay by month and the instance will be valid till the last day of that month. It is not required whendynamic
(pay by hour). - engine
Version String - The version of engine of active-standby Redis.
- expire
Time String - The expiration time of Redis instance, formatted by RFC3339 time string.
- instance
Type String - The type of Redis instance, please visit the instance type table for more details.
- ip
Sets 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
-_
. - redis
Instance StringId - The ID of the resource Redis instance.
- standby
Zone 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.
- subnet
Id 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
). - vpc
Id String - The ID of VPC linked to the Redis instance.
Supporting Types
RedisInstanceIpSet, RedisInstanceIpSetArgs
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloud
Terraform Provider.