We recommend using Azure Native.
azure.keyvault.getSecrets
Use this data source to retrieve a list of secret names from an existing Key Vault Secret.
Using getSecrets
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 getSecrets(args: GetSecretsArgs, opts?: InvokeOptions): Promise<GetSecretsResult>
function getSecretsOutput(args: GetSecretsOutputArgs, opts?: InvokeOptions): Output<GetSecretsResult>def get_secrets(key_vault_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetSecretsResult
def get_secrets_output(key_vault_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetSecretsResult]func GetSecrets(ctx *Context, args *GetSecretsArgs, opts ...InvokeOption) (*GetSecretsResult, error)
func GetSecretsOutput(ctx *Context, args *GetSecretsOutputArgs, opts ...InvokeOption) GetSecretsResultOutput> Note: This function is named GetSecrets in the Go SDK.
public static class GetSecrets 
{
    public static Task<GetSecretsResult> InvokeAsync(GetSecretsArgs args, InvokeOptions? opts = null)
    public static Output<GetSecretsResult> Invoke(GetSecretsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecretsResult> getSecrets(GetSecretsArgs args, InvokeOptions options)
public static Output<GetSecretsResult> getSecrets(GetSecretsArgs args, InvokeOptions options)
fn::invoke:
  function: azure:keyvault/getSecrets:getSecrets
  arguments:
    # arguments dictionaryThe following arguments are supported:
- KeyVault stringId 
- Specifies the ID of the Key Vault instance to fetch secret names from, available on the - azure.keyvault.KeyVaultData Source / Resource.- Note: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. 
- KeyVault stringId 
- Specifies the ID of the Key Vault instance to fetch secret names from, available on the - azure.keyvault.KeyVaultData Source / Resource.- Note: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. 
- keyVault StringId 
- Specifies the ID of the Key Vault instance to fetch secret names from, available on the - azure.keyvault.KeyVaultData Source / Resource.- Note: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. 
- keyVault stringId 
- Specifies the ID of the Key Vault instance to fetch secret names from, available on the - azure.keyvault.KeyVaultData Source / Resource.- Note: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. 
- key_vault_ strid 
- Specifies the ID of the Key Vault instance to fetch secret names from, available on the - azure.keyvault.KeyVaultData Source / Resource.- Note: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. 
- keyVault StringId 
- Specifies the ID of the Key Vault instance to fetch secret names from, available on the - azure.keyvault.KeyVaultData Source / Resource.- Note: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. 
getSecrets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- KeyVault stringId 
- Names List<string>
- List containing names of secrets that exist in this Key Vault.
- Secrets
List<GetSecrets Secret> 
- One or more secretsblocks as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- KeyVault stringId 
- Names []string
- List containing names of secrets that exist in this Key Vault.
- Secrets
[]GetSecrets Secret 
- One or more secretsblocks as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- keyVault StringId 
- names List<String>
- List containing names of secrets that exist in this Key Vault.
- secrets
List<GetSecrets Secret> 
- One or more secretsblocks as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- keyVault stringId 
- names string[]
- List containing names of secrets that exist in this Key Vault.
- secrets
GetSecrets Secret[] 
- One or more secretsblocks as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- key_vault_ strid 
- names Sequence[str]
- List containing names of secrets that exist in this Key Vault.
- secrets
Sequence[GetSecrets Secret] 
- One or more secretsblocks as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- keyVault StringId 
- names List<String>
- List containing names of secrets that exist in this Key Vault.
- secrets List<Property Map>
- One or more secretsblocks as defined below.
Supporting Types
GetSecretsSecret  
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.
