Class GetCache
Inheritance
System.Object
GetCache
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Redis
Assembly: Pulumi.Azure.dll
Syntax
public static class GetCache
Methods
View SourceInvokeAsync(GetCacheArgs, InvokeOptions)
Use this data source to access information about an existing Redis Cache
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Redis.GetCache.InvokeAsync(new Azure.Redis.GetCacheArgs
{
Name = "myrediscache",
ResourceGroupName = "redis-cache",
}));
this.PrimaryAccessKey = example.Apply(example => example.PrimaryAccessKey);
this.Hostname = example.Apply(example => example.Hostname);
}
[Output("primaryAccessKey")]
public Output<string> PrimaryAccessKey { get; set; }
[Output("hostname")]
public Output<string> Hostname { get; set; }
}
Declaration
public static Task<GetCacheResult> InvokeAsync(GetCacheArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCacheArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetCacheResult> |