How to add user managed replication in GCP Secret Manager using Python

Viewed 201

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': {},
    },
})
2 Answers

You can have a look to the API documentation

 'replication': {
   'user_managed': {
      'replicas': [
         'location': 'us-east1',
         'location': 'us-central1'
       ]
    },
 },

Related