在GCP Secret Manager中添加用户管理的复制,需要按照以下步骤进行:
# 获取秘密的版本
versions = client.list_secret_versions(secret.name)
for version in versions:
if version.name == "my-secret/versions/1" and version.status == "READY" and not version.secret_version_id == "1" ```python
# 获取秘密的版本
versions = client.list_secret_versions(secret.name)
for version in versions:
if version.name == "my-secret/versions/1" and version.status == "READY" and not version.secret_version_id == "1"
{
print("复制成功")
}
领取专属 10元无门槛券
手把手带您无忧上云