We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
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:
- Key
Vault stringId - Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVaultData Source / Resource.
- Key
Vault stringId - Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVaultData Source / Resource.
- key
Vault StringId - Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVaultData Source / Resource.
- key
Vault stringId - Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVaultData Source / Resource.
- key_
vault_ strid - Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVaultData Source / Resource.
- key
Vault StringId - Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVaultData Source / Resource.
getSecrets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vault stringId - The Key Vault ID.
- Names List<string>
- List containing names of secrets that exist in this Key Vault.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Vault stringId - The Key Vault ID.
- Names []string
- List containing names of secrets that exist in this Key Vault.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Vault StringId - The Key Vault ID.
- names List<String>
- List containing names of secrets that exist in this Key Vault.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Vault stringId - The Key Vault ID.
- names string[]
- List containing names of secrets that exist in this Key Vault.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
vault_ strid - The Key Vault ID.
- names Sequence[str]
- List containing names of secrets that exist in this Key Vault.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Vault StringId - The Key Vault ID.
- names List<String>
- List containing names of secrets that exist in this Key Vault.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
