SecretmanagerFunctions

Functions

Link copied to clipboard

Use this data source to get information about a Secret Manager Secret

suspend fun getSecret(argument: suspend GetSecretPlainArgsBuilder.() -> Unit): GetSecretResult
suspend fun getSecret(project: String? = null, secretId: String): GetSecretResult
Link copied to clipboard

Retrieves the current IAM policy data for secret

suspend fun getSecretIamPolicy(project: String? = null, secretId: String): GetSecretIamPolicyResult
Link copied to clipboard

Use this data source to list the Secret Manager Secrets

suspend fun getSecrets(argument: suspend GetSecretsPlainArgsBuilder.() -> Unit): GetSecretsResult
suspend fun getSecrets(filter: String? = null, project: String? = null): GetSecretsResult
Link copied to clipboard

Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource.

suspend fun getSecretVersion(project: String? = null, secret: String, version: String? = null): GetSecretVersionResult
Link copied to clipboard

Get the value from a Secret Manager secret version. This is similar to the gcp.secretmanager.SecretVersion datasource, but it only requires the Secret Manager Secret Accessor role. For more information see the official documentation and API.

suspend fun getSecretVersionAccess(project: String? = null, secret: String, version: String? = null): GetSecretVersionAccessResult