Class GetSecret
Inheritance
System.Object
GetSecret
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.KeyVault
Assembly: Pulumi.Azure.dll
Syntax
public static class GetSecret
Methods
View SourceInvokeAsync(GetSecretArgs, InvokeOptions)
Use this data source to access information about an existing Key Vault Secret.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.KeyVault.GetSecret.InvokeAsync(new Azure.KeyVault.GetSecretArgs
{
Name = "secret-sauce",
KeyVaultId = data.Azurerm_key_vault.Existing.Id,
}));
this.SecretValue = example.Apply(example => example.Value);
}
[Output("secretValue")]
public Output<string> SecretValue { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSecretArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetSecretResult> |