Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
volcengine.redis.getInstanceSpecs
Start a Neo task
Explain and create a volcengine.redis.getInstanceSpecs resource
Use this data source to query detailed information of redis instance specs
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
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.GetZonesArgs;
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.GetInstanceSpecsArgs;
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.getZones();
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(getZonesResult -> getZonesResult.zones()[0].id()))
.vpcId(fooVpc.id())
.build());
var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
.zoneIds(fooZones.applyValue(getZonesResult -> getZonesResult.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 fooInstanceSpecs = RedisFunctions.getInstanceSpecs(GetInstanceSpecsArgs.builder()
.instanceId(fooInstance.id())
.build());
}
}
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:getZones
Arguments: {}
fooInstanceSpecs:
fn::invoke:
Function: volcengine:redis:getInstanceSpecs
Arguments:
instanceId: ${fooInstance.id}
Using getInstanceSpecs
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 getInstanceSpecs(args: GetInstanceSpecsArgs, opts?: InvokeOptions): Promise<GetInstanceSpecsResult>
function getInstanceSpecsOutput(args: GetInstanceSpecsOutputArgs, opts?: InvokeOptions): Output<GetInstanceSpecsResult>def get_instance_specs(arch_type: Optional[str] = None,
instance_class: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceSpecsResult
def get_instance_specs_output(arch_type: Optional[pulumi.Input[str]] = None,
instance_class: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceSpecsResult]func GetInstanceSpecs(ctx *Context, args *GetInstanceSpecsArgs, opts ...InvokeOption) (*GetInstanceSpecsResult, error)
func GetInstanceSpecsOutput(ctx *Context, args *GetInstanceSpecsOutputArgs, opts ...InvokeOption) GetInstanceSpecsResultOutput> Note: This function is named GetInstanceSpecs in the Go SDK.
public static class GetInstanceSpecs
{
public static Task<GetInstanceSpecsResult> InvokeAsync(GetInstanceSpecsArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceSpecsResult> Invoke(GetInstanceSpecsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceSpecsResult> getInstanceSpecs(GetInstanceSpecsArgs args, InvokeOptions options)
public static Output<GetInstanceSpecsResult> getInstanceSpecs(GetInstanceSpecsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:redis/getInstanceSpecs:getInstanceSpecs
arguments:
# arguments dictionaryThe following arguments are supported:
- Arch
Type string - The architecture type of the Redis instance.
- Instance
Class string - The type of Redis instance.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Arch
Type string - The architecture type of the Redis instance.
- Instance
Class string - The type of Redis instance.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- arch
Type String - The architecture type of the Redis instance.
- instance
Class String - The type of Redis instance.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- arch
Type string - The architecture type of the Redis instance.
- instance
Class string - The type of Redis instance.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- arch_
type str - The architecture type of the Redis instance.
- instance_
class str - The type of Redis instance.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- arch
Type String - The architecture type of the Redis instance.
- instance
Class String - The type of Redis instance.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
getInstanceSpecs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Specs List<GetInstance Specs Instance Spec> - The List of Redis instance specifications.
- Total
Count int - The total count of query.
- Arch
Type string - The architecture type of the Redis instance.
- Instance
Class string - Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Specs []GetInstance Specs Instance Spec - The List of Redis instance specifications.
- Total
Count int - The total count of query.
- Arch
Type string - The architecture type of the Redis instance.
- Instance
Class string - Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Specs List<GetInstance Specs Instance Spec> - The List of Redis instance specifications.
- total
Count Integer - The total count of query.
- arch
Type String - The architecture type of the Redis instance.
- instance
Class String - name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Specs GetInstance Specs Instance Spec[] - The List of Redis instance specifications.
- total
Count number - The total count of query.
- arch
Type string - The architecture type of the Redis instance.
- instance
Class string - name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
specs Sequence[GetInstance Specs Instance Spec] - The List of Redis instance specifications.
- total_
count int - The total count of query.
- arch_
type str - The architecture type of the Redis instance.
- instance_
class str - name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Specs List<Property Map> - The List of Redis instance specifications.
- total
Count Number - The total count of query.
- arch
Type String - The architecture type of the Redis instance.
- instance
Class String - name
Regex String - output
File String
Supporting Types
GetInstanceSpecsInstanceSpec
- Arch
Type string - The architecture type of the Redis instance.
- Node
Numbers List<int> - The list of the number of nodes allowed to be used per shard. The number of nodes allowed for different instance types varies.
-
List<Get
Instance Specs Instance Spec Shard Capacity Spec> - The List of capacity specifications for a single shard.
- List<int>
- The list of shards that the instance is allowed to use. The number of shards allowed for use varies among different instance architecture types.
- Instance
Class string - The type of Redis instance.
- Arch
Type string - The architecture type of the Redis instance.
- Node
Numbers []int - The list of the number of nodes allowed to be used per shard. The number of nodes allowed for different instance types varies.
-
[]Get
Instance Specs Instance Spec Shard Capacity Spec - The List of capacity specifications for a single shard.
- []int
- The list of shards that the instance is allowed to use. The number of shards allowed for use varies among different instance architecture types.
- Instance
Class string - The type of Redis instance.
- arch
Type String - The architecture type of the Redis instance.
- node
Numbers List<Integer> - The list of the number of nodes allowed to be used per shard. The number of nodes allowed for different instance types varies.
-
List<Get
Instance Specs Instance Spec Shard Capacity Spec> - The List of capacity specifications for a single shard.
- List<Integer>
- The list of shards that the instance is allowed to use. The number of shards allowed for use varies among different instance architecture types.
- instance
Class String - The type of Redis instance.
- arch
Type string - The architecture type of the Redis instance.
- node
Numbers number[] - The list of the number of nodes allowed to be used per shard. The number of nodes allowed for different instance types varies.
-
Get
Instance Specs Instance Spec Shard Capacity Spec[] - The List of capacity specifications for a single shard.
- number[]
- The list of shards that the instance is allowed to use. The number of shards allowed for use varies among different instance architecture types.
- instance
Class string - The type of Redis instance.
- arch_
type str - The architecture type of the Redis instance.
- node_
numbers Sequence[int] - The list of the number of nodes allowed to be used per shard. The number of nodes allowed for different instance types varies.
-
Sequence[Get
Instance Specs Instance Spec Shard Capacity Spec] - The List of capacity specifications for a single shard.
- Sequence[int]
- The list of shards that the instance is allowed to use. The number of shards allowed for use varies among different instance architecture types.
- instance_
class str - The type of Redis instance.
- arch
Type String - The architecture type of the Redis instance.
- node
Numbers List<Number> - The list of the number of nodes allowed to be used per shard. The number of nodes allowed for different instance types varies.
- List<Property Map>
- The List of capacity specifications for a single shard.
- List<Number>
- The list of shards that the instance is allowed to use. The number of shards allowed for use varies among different instance architecture types.
- instance
Class String - The type of Redis instance.
GetInstanceSpecsInstanceSpecShardCapacitySpec
- Default
Bandwidth intPer Shard - The default bandwidth of the instance under the current memory capacity.
- Max
Additional intBandwidth Per Shard - The upper limit of bandwidth that an instance is allowed to modify under the current memory capacity.
- Max
Connections intPer Shard - The default maximum number of connections for a single shard.
- int
- Single-shard memory capacity.
- Default
Bandwidth intPer Shard - The default bandwidth of the instance under the current memory capacity.
- Max
Additional intBandwidth Per Shard - The upper limit of bandwidth that an instance is allowed to modify under the current memory capacity.
- Max
Connections intPer Shard - The default maximum number of connections for a single shard.
- int
- Single-shard memory capacity.
- default
Bandwidth IntegerPer Shard - The default bandwidth of the instance under the current memory capacity.
- max
Additional IntegerBandwidth Per Shard - The upper limit of bandwidth that an instance is allowed to modify under the current memory capacity.
- max
Connections IntegerPer Shard - The default maximum number of connections for a single shard.
- Integer
- Single-shard memory capacity.
- default
Bandwidth numberPer Shard - The default bandwidth of the instance under the current memory capacity.
- max
Additional numberBandwidth Per Shard - The upper limit of bandwidth that an instance is allowed to modify under the current memory capacity.
- max
Connections numberPer Shard - The default maximum number of connections for a single shard.
- number
- Single-shard memory capacity.
- default_
bandwidth_ intper_ shard - The default bandwidth of the instance under the current memory capacity.
- max_
additional_ intbandwidth_ per_ shard - The upper limit of bandwidth that an instance is allowed to modify under the current memory capacity.
- max_
connections_ intper_ shard - The default maximum number of connections for a single shard.
- int
- Single-shard memory capacity.
- default
Bandwidth NumberPer Shard - The default bandwidth of the instance under the current memory capacity.
- max
Additional NumberBandwidth Per Shard - The upper limit of bandwidth that an instance is allowed to modify under the current memory capacity.
- max
Connections NumberPer Shard - The default maximum number of connections for a single shard.
- Number
- Single-shard memory capacity.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
