I want to create pre-authenticated request for an object inside a bucket in the OCI object storage using python SDK. I found out that I can use get_preauthenticated_request for the bucket to put objects inside the bucket but not to get the objects pre-authenticated. I can create a pre-authenticated request using the OCI console but I need to do it in a python script. can anybody help me in this issue?
how to get a Pre-Authenticated request for an object in OCI object storage using python SDK?
1.8k Views Asked by msaei At
1
There are 1 best solutions below
Related Questions in ORACLE-CLOUD-INFRASTRUCTURE
- Bare Metal Cloud - Python SDK SSL/TLS exception
- How to connect oracle Cloud Instance using Oracle Cloud Shell?
- How to connect to OCI machine if the sshd is not responding?
- The total amount of free network bandwidth an always free compute can use for a month or some period of time
- Terraform and OCI : "The existing Db System with ID <OCID> has a conflicting state of UPDATING" when creating multiple databases
- Not able to configure Elasticsearch snapshot repository using OCI Amazon S3 Compatibility API
- Connect Oracle Autonomous Database in Microsoft Azure Data Factory
- how to get a Pre-Authenticated request for an object in OCI object storage using python SDK?
- Should com.oracle.bmc.monitoring.MonitoringClient be closed every time after querying for metrics?
- How to upload data with cyrillic in Oracle ADW?
- Reuse Load Balancer for K8s Services
- how to connect to oracle free cloud using mobaxterm?
- Using swift style access with rclone and non-classic OCI object storage
- how to get all IP in VNIC [Oracle Cloud Using API]
- I finalized Oracle Cloud Always Free Boot Volumes
Related Questions in OCI-PYTHON-SDK
- Bare Metal Cloud - Python SDK SSL/TLS exception
- how to get a Pre-Authenticated request for an object in OCI object storage using python SDK?
- How to get all ip attached to compute using python oci
- I am trying to add the Tag (freefrom_tag) for particular compute instances in OCI using python script and facing TypeError
- How can I retrieve Idp Group Users using, oci python SDK?
- IdentityClient.get_user() returns tenancy OCID in compartment_id field
- Latest OCI SDK documantation page API reference does not list all service clients
- Is the 'key_content' field safe to use in the OCI Python SDK?
- Creating compute instance from instance configuration
- reading response returns error python sdk OCI
- Integrate oracle-bmcs-python-sdk in setup.py
- Check instance metrics
- Downloaded GZ files is showing 0 byte
- Is it possible to store user credentials on generated Oracle wallet?
- Retrieve the credentials.zip file from GenerateAutonomousDataWarehouseWalletDetails
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use
create_preauthenticated_request(see code) for both buckets and individual objects.The difference is in the access type:
ANY_OBJECT_WRITEis for the whole bucketOBJECT_READ,OBJECT_READ_WRITEandOBJECT_WRITEare for objectsSo you should be able to create a Pre-Authenticated Request with something like
You can find more on the request details here and for the request itself here.
Let me know if this works for you, I don't have an account to test against at the moment.