SecretmanagerFunctions

Functions

Link copied to clipboard

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

suspend fun getRegionalSecret(location: String, project: String? = null, secretId: String): GetRegionalSecretResult
Link copied to clipboard

Retrieves the current IAM policy data for regionalsecret

suspend fun getRegionalSecretIamPolicy(location: String? = null, project: String? = null, secretId: String): GetRegionalSecretIamPolicyResult
Link copied to clipboard

Use this data source to list the Secret Manager Regional Secrets.

suspend fun getRegionalSecrets(filter: String? = null, location: String, project: String? = null): GetRegionalSecretsResult
Link copied to clipboard

Get the value and metadata from a Secret Manager regional secret version. For more information see the official documentation and API. If you don't need the metadata (i.e., if you want to use a more limited role to access the regional secret version only), see also the gcp.secretmanager.getRegionalSecretVersionAccess datasource.

suspend fun getRegionalSecretVersion(isSecretDataBase64: Boolean? = null, location: String? = null, project: String? = null, secret: String, version: String? = null): GetRegionalSecretVersionResult
Link copied to clipboard

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

suspend fun getRegionalSecretVersionAccess(isSecretDataBase64: Boolean? = null, location: String? = null, project: String? = null, secret: String, version: String? = null): GetRegionalSecretVersionAccessResult
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 and API. If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource.

suspend fun getSecretVersion(isSecretDataBase64: Boolean? = null, 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(isSecretDataBase64: Boolean? = null, project: String? = null, secret: String, version: String? = null): GetSecretVersionAccessResult