Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.redis.Instances
Explore with Pulumi AI
Use this data source to query detailed information of redis instances
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.Zones.Invoke();
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
VpcId = fooVpc.Id,
});
var fooInstance = new Volcengine.Redis.Instance("fooInstance", new()
{
ZoneIds = new[]
{
fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
},
InstanceName = "acc-test-tf-redis",
ShardedCluster = 1,
Password = "1qaz!QAZ12",
NodeNumber = 2,
ShardCapacity = 1024,
ShardNumber = 2,
EngineVersion = "5.0",
SubnetId = fooSubnet.Id,
DeletionProtection = "disabled",
VpcAuthMode = "close",
ChargeType = "PostPaid",
Port = 6381,
ProjectName = "default",
});
var fooInstances = Volcengine.Redis.Instances.Invoke(new()
{
InstanceId = fooInstance.Id,
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/redis"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.Zones(ctx, nil, nil)
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: *pulumi.String(fooZones.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
fooInstance, err := redis.NewInstance(ctx, "fooInstance", &redis.InstanceArgs{
ZoneIds: pulumi.StringArray{
*pulumi.String(fooZones.Zones[0].Id),
},
InstanceName: pulumi.String("acc-test-tf-redis"),
ShardedCluster: pulumi.Int(1),
Password: pulumi.String("1qaz!QAZ12"),
NodeNumber: pulumi.Int(2),
ShardCapacity: pulumi.Int(1024),
ShardNumber: pulumi.Int(2),
EngineVersion: pulumi.String("5.0"),
SubnetId: fooSubnet.ID(),
DeletionProtection: pulumi.String("disabled"),
VpcAuthMode: pulumi.String("close"),
ChargeType: pulumi.String("PostPaid"),
Port: pulumi.Int(6381),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
_ = redis.InstancesOutput(ctx, redis.InstancesOutputArgs{
InstanceId: fooInstance.ID(),
}, nil)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.redis.Instance;
import com.pulumi.volcengine.redis.InstanceArgs;
import com.pulumi.volcengine.redis.RedisFunctions;
import com.pulumi.volcengine.redis.inputs.InstancesArgs;
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 fooZones = EcsFunctions.Zones();
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
.vpcId(fooVpc.id())
.build());
var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
.zoneIds(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
.instanceName("acc-test-tf-redis")
.shardedCluster(1)
.password("1qaz!QAZ12")
.nodeNumber(2)
.shardCapacity(1024)
.shardNumber(2)
.engineVersion("5.0")
.subnetId(fooSubnet.id())
.deletionProtection("disabled")
.vpcAuthMode("close")
.chargeType("PostPaid")
.port(6381)
.projectName("default")
.build());
final var fooInstances = RedisFunctions.Instances(InstancesArgs.builder()
.instanceId(fooInstance.id())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=foo_zones.zones[0].id,
vpc_id=foo_vpc.id)
foo_instance = volcengine.redis.Instance("fooInstance",
zone_ids=[foo_zones.zones[0].id],
instance_name="acc-test-tf-redis",
sharded_cluster=1,
password="1qaz!QAZ12",
node_number=2,
shard_capacity=1024,
shard_number=2,
engine_version="5.0",
subnet_id=foo_subnet.id,
deletion_protection="disabled",
vpc_auth_mode="close",
charge_type="PostPaid",
port=6381,
project_name="default")
foo_instances = volcengine.redis.instances_output(instance_id=foo_instance.id)
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
vpcId: fooVpc.id,
});
const fooInstance = new volcengine.redis.Instance("fooInstance", {
zoneIds: [fooZones.then(fooZones => fooZones.zones?.[0]?.id)],
instanceName: "acc-test-tf-redis",
shardedCluster: 1,
password: "1qaz!QAZ12",
nodeNumber: 2,
shardCapacity: 1024,
shardNumber: 2,
engineVersion: "5.0",
subnetId: fooSubnet.id,
deletionProtection: "disabled",
vpcAuthMode: "close",
chargeType: "PostPaid",
port: 6381,
projectName: "default",
});
const fooInstances = volcengine.redis.InstancesOutput({
instanceId: fooInstance.id,
});
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${fooZones.zones[0].id}
vpcId: ${fooVpc.id}
fooInstance:
type: volcengine:redis:Instance
properties:
zoneIds:
- ${fooZones.zones[0].id}
instanceName: acc-test-tf-redis
shardedCluster: 1
password: 1qaz!QAZ12
nodeNumber: 2
shardCapacity: 1024
shardNumber: 2
engineVersion: '5.0'
subnetId: ${fooSubnet.id}
deletionProtection: disabled
vpcAuthMode: close
chargeType: PostPaid
port: 6381
projectName: default
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:Zones
Arguments: {}
fooInstances:
fn::invoke:
Function: volcengine:redis:Instances
Arguments:
instanceId: ${fooInstance.id}
Using Instances
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function instances(args: InstancesArgs, opts?: InvokeOptions): Promise<InstancesResult>
function instancesOutput(args: InstancesOutputArgs, opts?: InvokeOptions): Output<InstancesResult>
def instances(charge_type: Optional[str] = None,
engine_version: Optional[str] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
sharded_cluster: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Sequence[InstancesTag]] = None,
vpc_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> InstancesResult
def instances_output(charge_type: Optional[pulumi.Input[str]] = None,
engine_version: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
instance_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
sharded_cluster: Optional[pulumi.Input[int]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[InstancesTagArgs]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[InstancesResult]
func Instances(ctx *Context, args *InstancesArgs, opts ...InvokeOption) (*InstancesResult, error)
func InstancesOutput(ctx *Context, args *InstancesOutputArgs, opts ...InvokeOption) InstancesResultOutput
public static class Instances
{
public static Task<InstancesResult> InvokeAsync(InstancesArgs args, InvokeOptions? opts = null)
public static Output<InstancesResult> Invoke(InstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<InstancesResult> instances(InstancesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:redis:Instances
arguments:
# arguments dictionary
The following arguments are supported:
- Charge
Type string - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - Engine
Version string - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - Instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- Instance
Name string - The name of redis instance to query. This field supports fuzzy queries.
- Name
Regex string - A name regex of redis.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of redis instance to query.
- int
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- Status string
- The status of redis instance to query.
- List<Instances
Tag> - Tags.
- Vpc
Id string - The vpc id of redis instance to query. This field supports fuzzy queries.
- Zone
Id string - The zone id of redis instance to query. This field supports fuzzy queries.
- Charge
Type string - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - Engine
Version string - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - Instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- Instance
Name string - The name of redis instance to query. This field supports fuzzy queries.
- Name
Regex string - A name regex of redis.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of redis instance to query.
- int
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- Status string
- The status of redis instance to query.
- []Instances
Tag - Tags.
- Vpc
Id string - The vpc id of redis instance to query. This field supports fuzzy queries.
- Zone
Id string - The zone id of redis instance to query. This field supports fuzzy queries.
- charge
Type String - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - engine
Version String - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - instance
Id String - The id of redis instance to query. This field supports fuzzy queries.
- instance
Name String - The name of redis instance to query. This field supports fuzzy queries.
- name
Regex String - A name regex of redis.
- output
File String - File name where to save data source results.
- project
Name String - The project name of redis instance to query.
- Integer
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status String
- The status of redis instance to query.
- List<Instances
Tag> - Tags.
- vpc
Id String - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone
Id String - The zone id of redis instance to query. This field supports fuzzy queries.
- charge
Type string - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - engine
Version string - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- instance
Name string - The name of redis instance to query. This field supports fuzzy queries.
- name
Regex string - A name regex of redis.
- output
File string - File name where to save data source results.
- project
Name string - The project name of redis instance to query.
- number
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status string
- The status of redis instance to query.
- Instances
Tag[] - Tags.
- vpc
Id string - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone
Id string - The zone id of redis instance to query. This field supports fuzzy queries.
- charge_
type str - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - engine_
version str - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - instance_
id str - The id of redis instance to query. This field supports fuzzy queries.
- instance_
name str - The name of redis instance to query. This field supports fuzzy queries.
- name_
regex str - A name regex of redis.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of redis instance to query.
- int
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status str
- The status of redis instance to query.
- Sequence[Instances
Tag] - Tags.
- vpc_
id str - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone_
id str - The zone id of redis instance to query. This field supports fuzzy queries.
- charge
Type String - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - engine
Version String - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - instance
Id String - The id of redis instance to query. This field supports fuzzy queries.
- instance
Name String - The name of redis instance to query. This field supports fuzzy queries.
- name
Regex String - A name regex of redis.
- output
File String - File name where to save data source results.
- project
Name String - The project name of redis instance to query.
- Number
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status String
- The status of redis instance to query.
- List<Property Map>
- Tags.
- vpc
Id String - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone
Id String - The zone id of redis instance to query. This field supports fuzzy queries.
Instances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<Instances
Instance> - The collection of redis instances query.
- Total
Count int - The total count of redis instances query.
- Charge
Type string - The charge type of the redis instance.
- Engine
Version string - The engine version of the redis instance.
- Instance
Id string - The id of the redis instance.
- Instance
Name string - The name of the redis instance.
- Name
Regex string - Output
File string - Project
Name string - The project name of the redis instance.
- int
- Whether enable sharded cluster for the redis instance.
- Status string
- The status of the redis instance.
- List<Instances
Tag> - Tags.
- Vpc
Id string - The vpc ID of the redis instance.
- Zone
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]Instances
Instance - The collection of redis instances query.
- Total
Count int - The total count of redis instances query.
- Charge
Type string - The charge type of the redis instance.
- Engine
Version string - The engine version of the redis instance.
- Instance
Id string - The id of the redis instance.
- Instance
Name string - The name of the redis instance.
- Name
Regex string - Output
File string - Project
Name string - The project name of the redis instance.
- int
- Whether enable sharded cluster for the redis instance.
- Status string
- The status of the redis instance.
- []Instances
Tag - Tags.
- Vpc
Id string - The vpc ID of the redis instance.
- Zone
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- instances
List<Instances
Instance> - The collection of redis instances query.
- total
Count Integer - The total count of redis instances query.
- charge
Type String - The charge type of the redis instance.
- engine
Version String - The engine version of the redis instance.
- instance
Id String - The id of the redis instance.
- instance
Name String - The name of the redis instance.
- name
Regex String - output
File String - project
Name String - The project name of the redis instance.
- Integer
- Whether enable sharded cluster for the redis instance.
- status String
- The status of the redis instance.
- List<Instances
Tag> - Tags.
- vpc
Id String - The vpc ID of the redis instance.
- zone
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- instances
Instances
Instance[] - The collection of redis instances query.
- total
Count number - The total count of redis instances query.
- charge
Type string - The charge type of the redis instance.
- engine
Version string - The engine version of the redis instance.
- instance
Id string - The id of the redis instance.
- instance
Name string - The name of the redis instance.
- name
Regex string - output
File string - project
Name string - The project name of the redis instance.
- number
- Whether enable sharded cluster for the redis instance.
- status string
- The status of the redis instance.
- Instances
Tag[] - Tags.
- vpc
Id string - The vpc ID of the redis instance.
- zone
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[Instances
Instance] - The collection of redis instances query.
- total_
count int - The total count of redis instances query.
- charge_
type str - The charge type of the redis instance.
- engine_
version str - The engine version of the redis instance.
- instance_
id str - The id of the redis instance.
- instance_
name str - The name of the redis instance.
- name_
regex str - output_
file str - project_
name str - The project name of the redis instance.
- int
- Whether enable sharded cluster for the redis instance.
- status str
- The status of the redis instance.
- Sequence[Instances
Tag] - Tags.
- vpc_
id str - The vpc ID of the redis instance.
- zone_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- instances List<Property Map>
- The collection of redis instances query.
- total
Count Number - The total count of redis instances query.
- charge
Type String - The charge type of the redis instance.
- engine
Version String - The engine version of the redis instance.
- instance
Id String - The id of the redis instance.
- instance
Name String - The name of the redis instance.
- name
Regex String - output
File String - project
Name String - The project name of the redis instance.
- Number
- Whether enable sharded cluster for the redis instance.
- status String
- The status of the redis instance.
- List<Property Map>
- Tags.
- vpc
Id String - The vpc ID of the redis instance.
- zone
Id String
Supporting Types
InstancesInstance
- Backup
Plan InstancesInstance Backup Plan - The list of backup plans.
- Capacity
Instances
Instance Capacity - The memory capacity information.
- Charge
Type string - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - Create
Time string - The creation time of the redis instance.
- Deletion
Protection string - whether enable deletion protection.
- Engine
Version string - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - Expired
Time string - The expire time of the redis instance, valid when charge type is
PrePaid
. - Id string
- The id of the redis instance.
- Instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- Instance
Name string - The name of redis instance to query. This field supports fuzzy queries.
- Maintenance
Time string - The maintainable time of the redis instance.
- Node
Ids List<string> - The list of redis instance node IDs.
- Node
Number int - The number of nodes in each shard.
- Params
List<Instances
Instance Param> - The list of params.
- Project
Name string - The project name of redis instance to query.
- Region
Id string - The region id of the redis instance.
- double
- The memory capacity of each shard. Unit: GiB.
- int
- The number of shards in the redis instance.
- int
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- Status string
- The status of redis instance to query.
- Subnet
Id string - The subnet id of the redis instance.
- List<Instances
Instance Tag> - Tags.
- Visit
Addrs List<InstancesInstance Visit Addr> - The list of connection information.
- Vpc
Auth stringMode - Whether to enable password-free access when connecting to an instance through a private network.
- Vpc
Id string - The vpc id of redis instance to query. This field supports fuzzy queries.
- Zone
Ids List<string> - The list of zone ID which the redis instance belongs.
- Backup
Plan InstancesInstance Backup Plan - The list of backup plans.
- Capacity
Instances
Instance Capacity - The memory capacity information.
- Charge
Type string - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - Create
Time string - The creation time of the redis instance.
- Deletion
Protection string - whether enable deletion protection.
- Engine
Version string - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - Expired
Time string - The expire time of the redis instance, valid when charge type is
PrePaid
. - Id string
- The id of the redis instance.
- Instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- Instance
Name string - The name of redis instance to query. This field supports fuzzy queries.
- Maintenance
Time string - The maintainable time of the redis instance.
- Node
Ids []string - The list of redis instance node IDs.
- Node
Number int - The number of nodes in each shard.
- Params
[]Instances
Instance Param - The list of params.
- Project
Name string - The project name of redis instance to query.
- Region
Id string - The region id of the redis instance.
- float64
- The memory capacity of each shard. Unit: GiB.
- int
- The number of shards in the redis instance.
- int
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- Status string
- The status of redis instance to query.
- Subnet
Id string - The subnet id of the redis instance.
- []Instances
Instance Tag - Tags.
- Visit
Addrs []InstancesInstance Visit Addr - The list of connection information.
- Vpc
Auth stringMode - Whether to enable password-free access when connecting to an instance through a private network.
- Vpc
Id string - The vpc id of redis instance to query. This field supports fuzzy queries.
- Zone
Ids []string - The list of zone ID which the redis instance belongs.
- backup
Plan InstancesInstance Backup Plan - The list of backup plans.
- capacity
Instances
Instance Capacity - The memory capacity information.
- charge
Type String - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - create
Time String - The creation time of the redis instance.
- deletion
Protection String - whether enable deletion protection.
- engine
Version String - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - expired
Time String - The expire time of the redis instance, valid when charge type is
PrePaid
. - id String
- The id of the redis instance.
- instance
Id String - The id of redis instance to query. This field supports fuzzy queries.
- instance
Name String - The name of redis instance to query. This field supports fuzzy queries.
- maintenance
Time String - The maintainable time of the redis instance.
- node
Ids List<String> - The list of redis instance node IDs.
- node
Number Integer - The number of nodes in each shard.
- params
List<Instances
Instance Param> - The list of params.
- project
Name String - The project name of redis instance to query.
- region
Id String - The region id of the redis instance.
- Double
- The memory capacity of each shard. Unit: GiB.
- Integer
- The number of shards in the redis instance.
- Integer
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status String
- The status of redis instance to query.
- subnet
Id String - The subnet id of the redis instance.
- List<Instances
Instance Tag> - Tags.
- visit
Addrs List<InstancesInstance Visit Addr> - The list of connection information.
- vpc
Auth StringMode - Whether to enable password-free access when connecting to an instance through a private network.
- vpc
Id String - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone
Ids List<String> - The list of zone ID which the redis instance belongs.
- backup
Plan InstancesInstance Backup Plan - The list of backup plans.
- capacity
Instances
Instance Capacity - The memory capacity information.
- charge
Type string - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - create
Time string - The creation time of the redis instance.
- deletion
Protection string - whether enable deletion protection.
- engine
Version string - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - expired
Time string - The expire time of the redis instance, valid when charge type is
PrePaid
. - id string
- The id of the redis instance.
- instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- instance
Name string - The name of redis instance to query. This field supports fuzzy queries.
- maintenance
Time string - The maintainable time of the redis instance.
- node
Ids string[] - The list of redis instance node IDs.
- node
Number number - The number of nodes in each shard.
- params
Instances
Instance Param[] - The list of params.
- project
Name string - The project name of redis instance to query.
- region
Id string - The region id of the redis instance.
- number
- The memory capacity of each shard. Unit: GiB.
- number
- The number of shards in the redis instance.
- number
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status string
- The status of redis instance to query.
- subnet
Id string - The subnet id of the redis instance.
- Instances
Instance Tag[] - Tags.
- visit
Addrs InstancesInstance Visit Addr[] - The list of connection information.
- vpc
Auth stringMode - Whether to enable password-free access when connecting to an instance through a private network.
- vpc
Id string - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone
Ids string[] - The list of zone ID which the redis instance belongs.
- backup_
plan InstancesInstance Backup Plan - The list of backup plans.
- capacity
Instances
Instance Capacity - The memory capacity information.
- charge_
type str - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - create_
time str - The creation time of the redis instance.
- deletion_
protection str - whether enable deletion protection.
- engine_
version str - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - expired_
time str - The expire time of the redis instance, valid when charge type is
PrePaid
. - id str
- The id of the redis instance.
- instance_
id str - The id of redis instance to query. This field supports fuzzy queries.
- instance_
name str - The name of redis instance to query. This field supports fuzzy queries.
- maintenance_
time str - The maintainable time of the redis instance.
- node_
ids Sequence[str] - The list of redis instance node IDs.
- node_
number int - The number of nodes in each shard.
- params
Sequence[Instances
Instance Param] - The list of params.
- project_
name str - The project name of redis instance to query.
- region_
id str - The region id of the redis instance.
- float
- The memory capacity of each shard. Unit: GiB.
- int
- The number of shards in the redis instance.
- int
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status str
- The status of redis instance to query.
- subnet_
id str - The subnet id of the redis instance.
- Sequence[Instances
Instance Tag] - Tags.
- visit_
addrs Sequence[InstancesInstance Visit Addr] - The list of connection information.
- vpc_
auth_ strmode - Whether to enable password-free access when connecting to an instance through a private network.
- vpc_
id str - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone_
ids Sequence[str] - The list of zone ID which the redis instance belongs.
- backup
Plan Property Map - The list of backup plans.
- capacity Property Map
- The memory capacity information.
- charge
Type String - The charge type of redis instance to query. Valid values:
PostPaid
,PrePaid
. - create
Time String - The creation time of the redis instance.
- deletion
Protection String - whether enable deletion protection.
- engine
Version String - The engine version of redis instance to query. Valid values:
4.0
,5.0
,6.0
. - expired
Time String - The expire time of the redis instance, valid when charge type is
PrePaid
. - id String
- The id of the redis instance.
- instance
Id String - The id of redis instance to query. This field supports fuzzy queries.
- instance
Name String - The name of redis instance to query. This field supports fuzzy queries.
- maintenance
Time String - The maintainable time of the redis instance.
- node
Ids List<String> - The list of redis instance node IDs.
- node
Number Number - The number of nodes in each shard.
- params List<Property Map>
- The list of params.
- project
Name String - The project name of redis instance to query.
- region
Id String - The region id of the redis instance.
- Number
- The memory capacity of each shard. Unit: GiB.
- Number
- The number of shards in the redis instance.
- Number
- Whether enable sharded cluster for redis instance. Valid values: 0, 1.
- status String
- The status of redis instance to query.
- subnet
Id String - The subnet id of the redis instance.
- List<Property Map>
- Tags.
- visit
Addrs List<Property Map> - The list of connection information.
- vpc
Auth StringMode - Whether to enable password-free access when connecting to an instance through a private network.
- vpc
Id String - The vpc id of redis instance to query. This field supports fuzzy queries.
- zone
Ids List<String> - The list of zone ID which the redis instance belongs.
InstancesInstanceBackupPlan
- Active bool
- Whether enable auto backup.
- Backup
Hour int - The time period to start performing the backup. The value range is any integer between 0 and 23, where 0 means that the system will perform the backup in the period of 00:00~01:00, 1 means that the backup will be performed in the period of 01:00~02:00, and so on.
- Backup
Type string - The backup type.
- Expect
Next stringBackup Time - The expected time for the next backup to be performed.
- Instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- Last
Update stringTime - The last time the backup policy was modified.
- Periods List<int>
- The backup cycle. The value can be any integer between 1 and 7. Among them, 1 means backup every Monday, 2 means backup every Tuesday, and so on.
- Ttl int
- The number of days to keep backups, the default is 7 days.
- Active bool
- Whether enable auto backup.
- Backup
Hour int - The time period to start performing the backup. The value range is any integer between 0 and 23, where 0 means that the system will perform the backup in the period of 00:00~01:00, 1 means that the backup will be performed in the period of 01:00~02:00, and so on.
- Backup
Type string - The backup type.
- Expect
Next stringBackup Time - The expected time for the next backup to be performed.
- Instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- Last
Update stringTime - The last time the backup policy was modified.
- Periods []int
- The backup cycle. The value can be any integer between 1 and 7. Among them, 1 means backup every Monday, 2 means backup every Tuesday, and so on.
- Ttl int
- The number of days to keep backups, the default is 7 days.
- active Boolean
- Whether enable auto backup.
- backup
Hour Integer - The time period to start performing the backup. The value range is any integer between 0 and 23, where 0 means that the system will perform the backup in the period of 00:00~01:00, 1 means that the backup will be performed in the period of 01:00~02:00, and so on.
- backup
Type String - The backup type.
- expect
Next StringBackup Time - The expected time for the next backup to be performed.
- instance
Id String - The id of redis instance to query. This field supports fuzzy queries.
- last
Update StringTime - The last time the backup policy was modified.
- periods List<Integer>
- The backup cycle. The value can be any integer between 1 and 7. Among them, 1 means backup every Monday, 2 means backup every Tuesday, and so on.
- ttl Integer
- The number of days to keep backups, the default is 7 days.
- active boolean
- Whether enable auto backup.
- backup
Hour number - The time period to start performing the backup. The value range is any integer between 0 and 23, where 0 means that the system will perform the backup in the period of 00:00~01:00, 1 means that the backup will be performed in the period of 01:00~02:00, and so on.
- backup
Type string - The backup type.
- expect
Next stringBackup Time - The expected time for the next backup to be performed.
- instance
Id string - The id of redis instance to query. This field supports fuzzy queries.
- last
Update stringTime - The last time the backup policy was modified.
- periods number[]
- The backup cycle. The value can be any integer between 1 and 7. Among them, 1 means backup every Monday, 2 means backup every Tuesday, and so on.
- ttl number
- The number of days to keep backups, the default is 7 days.
- active bool
- Whether enable auto backup.
- backup_
hour int - The time period to start performing the backup. The value range is any integer between 0 and 23, where 0 means that the system will perform the backup in the period of 00:00~01:00, 1 means that the backup will be performed in the period of 01:00~02:00, and so on.
- backup_
type str - The backup type.
- expect_
next_ strbackup_ time - The expected time for the next backup to be performed.
- instance_
id str - The id of redis instance to query. This field supports fuzzy queries.
- last_
update_ strtime - The last time the backup policy was modified.
- periods Sequence[int]
- The backup cycle. The value can be any integer between 1 and 7. Among them, 1 means backup every Monday, 2 means backup every Tuesday, and so on.
- ttl int
- The number of days to keep backups, the default is 7 days.
- active Boolean
- Whether enable auto backup.
- backup
Hour Number - The time period to start performing the backup. The value range is any integer between 0 and 23, where 0 means that the system will perform the backup in the period of 00:00~01:00, 1 means that the backup will be performed in the period of 01:00~02:00, and so on.
- backup
Type String - The backup type.
- expect
Next StringBackup Time - The expected time for the next backup to be performed.
- instance
Id String - The id of redis instance to query. This field supports fuzzy queries.
- last
Update StringTime - The last time the backup policy was modified.
- periods List<Number>
- The backup cycle. The value can be any integer between 1 and 7. Among them, 1 means backup every Monday, 2 means backup every Tuesday, and so on.
- ttl Number
- The number of days to keep backups, the default is 7 days.
InstancesInstanceCapacity
InstancesInstanceParam
- Current
Value string - Current value of the configuration parameter.
- Default
Value string - Default value of the configuration parameter.
- Description string
- The description of this option item.
- Editable
For boolInstance - Whether the current redis instance supports editing this parameter.
- Need
Reboot bool - Whether need to reboot the redis instance when modifying this parameter.
- Options
List<Instances
Instance Param Option> - The list of options. Valid when the configuration parameter type is
Radio
. - Param
Name string - The name of the configuration parameter.
- Range string
- The valid value range of the numeric type configuration parameter.
- Type string
- The type of the configuration parameter.
- Unit string
- The unit of the numeric type configuration parameter.
- Current
Value string - Current value of the configuration parameter.
- Default
Value string - Default value of the configuration parameter.
- Description string
- The description of this option item.
- Editable
For boolInstance - Whether the current redis instance supports editing this parameter.
- Need
Reboot bool - Whether need to reboot the redis instance when modifying this parameter.
- Options
[]Instances
Instance Param Option - The list of options. Valid when the configuration parameter type is
Radio
. - Param
Name string - The name of the configuration parameter.
- Range string
- The valid value range of the numeric type configuration parameter.
- Type string
- The type of the configuration parameter.
- Unit string
- The unit of the numeric type configuration parameter.
- current
Value String - Current value of the configuration parameter.
- default
Value String - Default value of the configuration parameter.
- description String
- The description of this option item.
- editable
For BooleanInstance - Whether the current redis instance supports editing this parameter.
- need
Reboot Boolean - Whether need to reboot the redis instance when modifying this parameter.
- options
List<Instances
Instance Param Option> - The list of options. Valid when the configuration parameter type is
Radio
. - param
Name String - The name of the configuration parameter.
- range String
- The valid value range of the numeric type configuration parameter.
- type String
- The type of the configuration parameter.
- unit String
- The unit of the numeric type configuration parameter.
- current
Value string - Current value of the configuration parameter.
- default
Value string - Default value of the configuration parameter.
- description string
- The description of this option item.
- editable
For booleanInstance - Whether the current redis instance supports editing this parameter.
- need
Reboot boolean - Whether need to reboot the redis instance when modifying this parameter.
- options
Instances
Instance Param Option[] - The list of options. Valid when the configuration parameter type is
Radio
. - param
Name string - The name of the configuration parameter.
- range string
- The valid value range of the numeric type configuration parameter.
- type string
- The type of the configuration parameter.
- unit string
- The unit of the numeric type configuration parameter.
- current_
value str - Current value of the configuration parameter.
- default_
value str - Default value of the configuration parameter.
- description str
- The description of this option item.
- editable_
for_ boolinstance - Whether the current redis instance supports editing this parameter.
- need_
reboot bool - Whether need to reboot the redis instance when modifying this parameter.
- options
Sequence[Instances
Instance Param Option] - The list of options. Valid when the configuration parameter type is
Radio
. - param_
name str - The name of the configuration parameter.
- range str
- The valid value range of the numeric type configuration parameter.
- type str
- The type of the configuration parameter.
- unit str
- The unit of the numeric type configuration parameter.
- current
Value String - Current value of the configuration parameter.
- default
Value String - Default value of the configuration parameter.
- description String
- The description of this option item.
- editable
For BooleanInstance - Whether the current redis instance supports editing this parameter.
- need
Reboot Boolean - Whether need to reboot the redis instance when modifying this parameter.
- options List<Property Map>
- The list of options. Valid when the configuration parameter type is
Radio
. - param
Name String - The name of the configuration parameter.
- range String
- The valid value range of the numeric type configuration parameter.
- type String
- The type of the configuration parameter.
- unit String
- The unit of the numeric type configuration parameter.
InstancesInstanceParamOption
- Description string
- The description of this option item.
- Value string
- The Value of Tags.
- Description string
- The description of this option item.
- Value string
- The Value of Tags.
- description String
- The description of this option item.
- value String
- The Value of Tags.
- description string
- The description of this option item.
- value string
- The Value of Tags.
- description str
- The description of this option item.
- value str
- The Value of Tags.
- description String
- The description of this option item.
- value String
- The Value of Tags.
InstancesInstanceTag
InstancesInstanceVisitAddr
InstancesTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.