Azure Classic
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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: azure:keyvault/getSecrets:getSecrets
Arguments:
# Arguments dictionary
The 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.KeyVault
Data Source / Resource.
- Key
Vault stringId Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVault
Data Source / Resource.
- key
Vault StringId Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVault
Data Source / Resource.
- key
Vault stringId Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVault
Data Source / Resource.
- key_
vault_ strid Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVault
Data Source / Resource.
- key
Vault StringId Specifies the ID of the Key Vault instance to fetch secret names from, available on the
azure.keyvault.KeyVault
Data 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
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
List containing names of secrets that exist in this Key Vault.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.