import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing Managed Redis instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.managedredis.get({ * name: "example-managed-redis", * resourceGroupName: "example-resources", * }); * export const managedRedisHostname = example.then(example => example.hostname); * export const managedRedisPrimaryAccessKey = example.then(example => example.defaultDatabases?.[0]?.primaryAccessKey); * export const managedRedisSecondaryAccessKey = example.then(example => example.defaultDatabases?.[0]?.secondaryAccessKey); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Cache` - 2025-07-01 */ export declare function get(args: GetArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking get. */ export interface GetArgs { /** * The name of the Managed Redis instance. */ name: string; /** * The name of the Resource Group where the Managed Redis instance exists. */ resourceGroupName: string; } /** * A collection of values returned by get. */ export interface GetResult { /** * A `customerManagedKey` block as defined below. */ readonly customerManagedKeys: outputs.managedredis.GetCustomerManagedKey[]; /** * A `defaultDatabase` block as defined below. */ readonly defaultDatabases: outputs.managedredis.GetDefaultDatabase[]; /** * Whether high availability is enabled for the Managed Redis instance. */ readonly highAvailabilityEnabled: boolean; /** * The DNS hostname of the Managed Redis instance. */ readonly hostname: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * An `identity` block as defined below. */ readonly identities: outputs.managedredis.GetIdentity[]; /** * The Azure Region where the Managed Redis instance exists. */ readonly location: string; /** * The name of the Redis module. */ readonly name: string; /** * The public network access setting for the Managed Redis instance. */ readonly publicNetworkAccess: string; readonly resourceGroupName: string; /** * The SKU name of the Managed Redis instance. */ readonly skuName: string; /** * A mapping of tags assigned to the Managed Redis instance. */ readonly tags: { [key: string]: string; }; } /** * Use this data source to access information about an existing Managed Redis instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.managedredis.get({ * name: "example-managed-redis", * resourceGroupName: "example-resources", * }); * export const managedRedisHostname = example.then(example => example.hostname); * export const managedRedisPrimaryAccessKey = example.then(example => example.defaultDatabases?.[0]?.primaryAccessKey); * export const managedRedisSecondaryAccessKey = example.then(example => example.defaultDatabases?.[0]?.secondaryAccessKey); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Cache` - 2025-07-01 */ export declare function getOutput(args: GetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking get. */ export interface GetOutputArgs { /** * The name of the Managed Redis instance. */ name: pulumi.Input; /** * The name of the Resource Group where the Managed Redis instance exists. */ resourceGroupName: pulumi.Input; }