How to add user managed replication in GCP Secret Manager using Python Below for the automatic replication
response = client.create_secret(parent, secret_id, {
'replication': {
'automatic': {},
},
})
How to add user managed replication in GCP Secret Manager using Python Below for the automatic replication
response = client.create_secret(parent, secret_id, {
'replication': {
'automatic': {},
},
})
Resolved as follows
# Create the secret.
response = client.create_secret(parent, secret_id, {
'replication': {
'user_managed': {'replicas': [{'location': 'europe-north1'}]},
},
})
Complete Source : https://github.com/deepakkallungal/gcp/blob/master/python/create-secret-user-managed.py
You can have a look to the API documentation
'replication': {
'user_managed': {
'replicas': [
'location': 'us-east1',
'location': 'us-central1'
]
},
},