We are trying to download the wallet credentials.zip file for Autonomous Datawarehouse via Python SDK.
We have an option called --file
when we do the same operation using oci cli.
oci db autonomous-data-warehouse generate-wallet --autonomous-data-warehouse-id <ocid> --password <my_admin_password> --file <filename.zip>
We are trying the same thing using the python sdk, but we do not get an option to download the zip file. We are executing the below code:
wallet=database_client.generate_autonomous_data_warehouse_wallet("oicd",Password).
We get a response of 200.
But how do we download the zip file?
We tried wallet.data
and wallet.headers
. Not sure which sub-options to use.
Would be great if someone could help us on this!
Try something like this:
The response object (your
wallet
) has adata
field that needs to be streamed into a zip-file.