Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getMdbRedisCluster
Explore with Pulumi AI
Get information about a Yandex Managed Redis cluster. For more information, see the official documentation.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Yandex.GetMdbRedisCluster.InvokeAsync(new Yandex.GetMdbRedisClusterArgs
{
Name = "test",
}));
this.NetworkId = foo.Apply(foo => foo.NetworkId);
}
[Output("networkId")]
public Output<string> NetworkId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := "test"
foo, err := yandex.LookupMdbRedisCluster(ctx, &GetMdbRedisClusterArgs{
Name: &opt0,
}, nil)
if err != nil {
return err
}
ctx.Export("networkId", foo.NetworkId)
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
foo = yandex.get_mdb_redis_cluster(name="test")
pulumi.export("networkId", foo.network_id)
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const foo = pulumi.output(yandex.getMdbRedisCluster({
name: "test",
}));
export const networkId = foo.networkId;
Coming soon!
Using getMdbRedisCluster
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 getMdbRedisCluster(args: GetMdbRedisClusterArgs, opts?: InvokeOptions): Promise<GetMdbRedisClusterResult>
function getMdbRedisClusterOutput(args: GetMdbRedisClusterOutputArgs, opts?: InvokeOptions): Output<GetMdbRedisClusterResult>
def get_mdb_redis_cluster(cluster_id: Optional[str] = None,
deletion_protection: Optional[bool] = None,
folder_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMdbRedisClusterResult
def get_mdb_redis_cluster_output(cluster_id: Optional[pulumi.Input[str]] = None,
deletion_protection: Optional[pulumi.Input[bool]] = None,
folder_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMdbRedisClusterResult]
func LookupMdbRedisCluster(ctx *Context, args *LookupMdbRedisClusterArgs, opts ...InvokeOption) (*LookupMdbRedisClusterResult, error)
func LookupMdbRedisClusterOutput(ctx *Context, args *LookupMdbRedisClusterOutputArgs, opts ...InvokeOption) LookupMdbRedisClusterResultOutput
> Note: This function is named LookupMdbRedisCluster
in the Go SDK.
public static class GetMdbRedisCluster
{
public static Task<GetMdbRedisClusterResult> InvokeAsync(GetMdbRedisClusterArgs args, InvokeOptions? opts = null)
public static Output<GetMdbRedisClusterResult> Invoke(GetMdbRedisClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMdbRedisClusterResult> getMdbRedisCluster(GetMdbRedisClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getMdbRedisCluster:getMdbRedisCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The ID of the Redis cluster.
- Deletion
Protection bool - Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- The name of the Redis cluster.
- Cluster
Id string - The ID of the Redis cluster.
- Deletion
Protection bool - Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- The name of the Redis cluster.
- cluster
Id String - The ID of the Redis cluster.
- deletion
Protection Boolean - folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- The name of the Redis cluster.
- cluster
Id string - The ID of the Redis cluster.
- deletion
Protection boolean - folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name string
- The name of the Redis cluster.
- cluster_
id str - The ID of the Redis cluster.
- deletion_
protection bool - folder_
id str - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name str
- The name of the Redis cluster.
- cluster
Id String - The ID of the Redis cluster.
- deletion
Protection Boolean - folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- The name of the Redis cluster.
getMdbRedisCluster Result
The following output properties are available:
- Cluster
Id string - Configs
List<Get
Mdb Redis Cluster Config> - Configuration of the Redis cluster. The structure is documented below.
- Created
At string - Creation timestamp of the key.
- Deletion
Protection bool - Description string
- Description of the Redis cluster.
- Environment string
- Deployment environment of the Redis cluster.
- Folder
Id string - Health string
- Aggregated health of the cluster.
- Hosts
List<Get
Mdb Redis Cluster Host> - A host of the Redis cluster. The structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the Redis cluster.
- Maintenance
Windows List<GetMdb Redis Cluster Maintenance Window> - Name string
- Network
Id string - ID of the network, to which the Redis cluster belongs.
- Resources
List<Get
Mdb Redis Cluster Resource> - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- Security
Group List<string>Ids - A set of ids of security groups assigned to hosts of the cluster.
- bool
- Redis Cluster mode enabled/disabled.
- Status string
- Status of the cluster.
- Tls
Enabled bool - tls support mode enabled/disabled.
- Cluster
Id string - Configs
[]Get
Mdb Redis Cluster Config - Configuration of the Redis cluster. The structure is documented below.
- Created
At string - Creation timestamp of the key.
- Deletion
Protection bool - Description string
- Description of the Redis cluster.
- Environment string
- Deployment environment of the Redis cluster.
- Folder
Id string - Health string
- Aggregated health of the cluster.
- Hosts
[]Get
Mdb Redis Cluster Host - A host of the Redis cluster. The structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- A set of key/value label pairs to assign to the Redis cluster.
- Maintenance
Windows []GetMdb Redis Cluster Maintenance Window - Name string
- Network
Id string - ID of the network, to which the Redis cluster belongs.
- Resources
[]Get
Mdb Redis Cluster Resource - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- Security
Group []stringIds - A set of ids of security groups assigned to hosts of the cluster.
- bool
- Redis Cluster mode enabled/disabled.
- Status string
- Status of the cluster.
- Tls
Enabled bool - tls support mode enabled/disabled.
- cluster
Id String - configs
List<Get
Mdb Redis Cluster Config> - Configuration of the Redis cluster. The structure is documented below.
- created
At String - Creation timestamp of the key.
- deletion
Protection Boolean - description String
- Description of the Redis cluster.
- environment String
- Deployment environment of the Redis cluster.
- folder
Id String - health String
- Aggregated health of the cluster.
- hosts
List<Get
Mdb Redis Cluster Host> - A host of the Redis cluster. The structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Windows List<GetMdb Redis Cluster Maintenance Window> - name String
- network
Id String - ID of the network, to which the Redis cluster belongs.
- resources
List<Get
Mdb Redis Cluster Resource> - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Boolean
- Redis Cluster mode enabled/disabled.
- status String
- Status of the cluster.
- tls
Enabled Boolean - tls support mode enabled/disabled.
- cluster
Id string - configs
Get
Mdb Redis Cluster Config[] - Configuration of the Redis cluster. The structure is documented below.
- created
At string - Creation timestamp of the key.
- deletion
Protection boolean - description string
- Description of the Redis cluster.
- environment string
- Deployment environment of the Redis cluster.
- folder
Id string - health string
- Aggregated health of the cluster.
- hosts
Get
Mdb Redis Cluster Host[] - A host of the Redis cluster. The structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Windows GetMdb Redis Cluster Maintenance Window[] - name string
- network
Id string - ID of the network, to which the Redis cluster belongs.
- resources
Get
Mdb Redis Cluster Resource[] - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security
Group string[]Ids - A set of ids of security groups assigned to hosts of the cluster.
- boolean
- Redis Cluster mode enabled/disabled.
- status string
- Status of the cluster.
- tls
Enabled boolean - tls support mode enabled/disabled.
- cluster_
id str - configs
Sequence[Get
Mdb Redis Cluster Config] - Configuration of the Redis cluster. The structure is documented below.
- created_
at str - Creation timestamp of the key.
- deletion_
protection bool - description str
- Description of the Redis cluster.
- environment str
- Deployment environment of the Redis cluster.
- folder_
id str - health str
- Aggregated health of the cluster.
- hosts
Sequence[Get
Mdb Redis Cluster Host] - A host of the Redis cluster. The structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance_
windows Sequence[GetMdb Redis Cluster Maintenance Window] - name str
- network_
id str - ID of the network, to which the Redis cluster belongs.
- resources
Sequence[Get
Mdb Redis Cluster Resource] - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security_
group_ Sequence[str]ids - A set of ids of security groups assigned to hosts of the cluster.
- bool
- Redis Cluster mode enabled/disabled.
- status str
- Status of the cluster.
- tls_
enabled bool - tls support mode enabled/disabled.
- cluster
Id String - configs List<Property Map>
- Configuration of the Redis cluster. The structure is documented below.
- created
At String - Creation timestamp of the key.
- deletion
Protection Boolean - description String
- Description of the Redis cluster.
- environment String
- Deployment environment of the Redis cluster.
- folder
Id String - health String
- Aggregated health of the cluster.
- hosts List<Property Map>
- A host of the Redis cluster. The structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Windows List<Property Map> - name String
- network
Id String - ID of the network, to which the Redis cluster belongs.
- resources List<Property Map>
- Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Boolean
- Redis Cluster mode enabled/disabled.
- status String
- Status of the cluster.
- tls
Enabled Boolean - tls support mode enabled/disabled.
Supporting Types
GetMdbRedisClusterConfig
- Databases int
- Number of databases (changing requires redis-server restart).
- Maxmemory
Policy string - Redis key eviction policy for a dataset that reaches maximum memory.
- Notify
Keyspace stringEvents - Select the events that Redis will notify among a set of classes.
- Slowlog
Log intSlower Than - Log slow queries below this number in microseconds.
- Slowlog
Max intLen - Slow queries log length.
- Timeout int
- Close the connection after a client is idle for N seconds.
- Version string
- Version of Redis (5.0, 6.0 or 6.2).
- Databases int
- Number of databases (changing requires redis-server restart).
- Maxmemory
Policy string - Redis key eviction policy for a dataset that reaches maximum memory.
- Notify
Keyspace stringEvents - Select the events that Redis will notify among a set of classes.
- Slowlog
Log intSlower Than - Log slow queries below this number in microseconds.
- Slowlog
Max intLen - Slow queries log length.
- Timeout int
- Close the connection after a client is idle for N seconds.
- Version string
- Version of Redis (5.0, 6.0 or 6.2).
- databases Integer
- Number of databases (changing requires redis-server restart).
- maxmemory
Policy String - Redis key eviction policy for a dataset that reaches maximum memory.
- notify
Keyspace StringEvents - Select the events that Redis will notify among a set of classes.
- slowlog
Log IntegerSlower Than - Log slow queries below this number in microseconds.
- slowlog
Max IntegerLen - Slow queries log length.
- timeout Integer
- Close the connection after a client is idle for N seconds.
- version String
- Version of Redis (5.0, 6.0 or 6.2).
- databases number
- Number of databases (changing requires redis-server restart).
- maxmemory
Policy string - Redis key eviction policy for a dataset that reaches maximum memory.
- notify
Keyspace stringEvents - Select the events that Redis will notify among a set of classes.
- slowlog
Log numberSlower Than - Log slow queries below this number in microseconds.
- slowlog
Max numberLen - Slow queries log length.
- timeout number
- Close the connection after a client is idle for N seconds.
- version string
- Version of Redis (5.0, 6.0 or 6.2).
- databases int
- Number of databases (changing requires redis-server restart).
- maxmemory_
policy str - Redis key eviction policy for a dataset that reaches maximum memory.
- notify_
keyspace_ strevents - Select the events that Redis will notify among a set of classes.
- slowlog_
log_ intslower_ than - Log slow queries below this number in microseconds.
- slowlog_
max_ intlen - Slow queries log length.
- timeout int
- Close the connection after a client is idle for N seconds.
- version str
- Version of Redis (5.0, 6.0 or 6.2).
- databases Number
- Number of databases (changing requires redis-server restart).
- maxmemory
Policy String - Redis key eviction policy for a dataset that reaches maximum memory.
- notify
Keyspace StringEvents - Select the events that Redis will notify among a set of classes.
- slowlog
Log NumberSlower Than - Log slow queries below this number in microseconds.
- slowlog
Max NumberLen - Slow queries log length.
- timeout Number
- Close the connection after a client is idle for N seconds.
- version String
- Version of Redis (5.0, 6.0 or 6.2).
GetMdbRedisClusterHost
- Fqdn string
- The fully qualified domain name of the host.
- string
- The name of the shard to which the host belongs.
- Subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- Zone string
- The availability zone where the Redis host will be created.
- Fqdn string
- The fully qualified domain name of the host.
- string
- The name of the shard to which the host belongs.
- Subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- Zone string
- The availability zone where the Redis host will be created.
- fqdn String
- The fully qualified domain name of the host.
- String
- The name of the shard to which the host belongs.
- subnet
Id String - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone String
- The availability zone where the Redis host will be created.
- fqdn string
- The fully qualified domain name of the host.
- string
- The name of the shard to which the host belongs.
- subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone string
- The availability zone where the Redis host will be created.
- fqdn str
- The fully qualified domain name of the host.
- str
- The name of the shard to which the host belongs.
- subnet_
id str - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone str
- The availability zone where the Redis host will be created.
- fqdn String
- The fully qualified domain name of the host.
- String
- The name of the shard to which the host belongs.
- subnet
Id String - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone String
- The availability zone where the Redis host will be created.
GetMdbRedisClusterMaintenanceWindow
- Day string
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - Hour int
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- Type string
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window.
- Day string
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - Hour int
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- Type string
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window.
- day String
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour Integer
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type String
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window.
- day string
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour number
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type string
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window.
- day str
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour int
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type str
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window.
- day String
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour Number
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type String
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window.
GetMdbRedisClusterResource
- Disk
Size int - Volume of the storage available to a host, in gigabytes.
- Disk
Type stringId - Type of the storage of a host.
- Resource
Preset stringId
- Disk
Size int - Volume of the storage available to a host, in gigabytes.
- Disk
Type stringId - Type of the storage of a host.
- Resource
Preset stringId
- disk
Size Integer - Volume of the storage available to a host, in gigabytes.
- disk
Type StringId - Type of the storage of a host.
- resource
Preset StringId
- disk
Size number - Volume of the storage available to a host, in gigabytes.
- disk
Type stringId - Type of the storage of a host.
- resource
Preset stringId
- disk_
size int - Volume of the storage available to a host, in gigabytes.
- disk_
type_ strid - Type of the storage of a host.
- resource_
preset_ strid
- disk
Size Number - Volume of the storage available to a host, in gigabytes.
- disk
Type StringId - Type of the storage of a host.
- resource
Preset StringId
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.