Tous les exemples de code Secret Manager

This page contains code samples for Secret Manager. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

Access secret version

Gets the version of a secret.

View in documentation

Add secret version

Adds a new version of the secret.

View in documentation

View in documentation

Destroy secret version

Deletes one of the versions of a secret.

View in documentation

Disable secret version

Makes a specific version of a secret inaccessible.

View in documentation

Enable secret version

Makes a specific version of a secret accessible.

View in documentation

Get secret version

Gets a secret's version metadata.

View in documentation

IAM grant access

Sets roles/secretmanager.secretAccessor policy.

View in documentation

IAM revoke access

Revokes roles/secretmanager.secretAccessor policy.

View in documentation

List secret versions

Lists all versions of a secret.

View in documentation

View in documentation

View in documentation