Questions tagged [oci-python-sdk]

The Oracle Cloud Infrastructure Python SDK is a python package that provides an interface to the Oracle Cloud Infrastructure (OCI). Use this tag for questions related to using the Python SDK.

The Oracle Cloud Infrastructure Python SDK is a python package that provides an interface to the Oracle Cloud Infrastructure (OCI).

References

27 questions
0
votes
1 answer

reading response returns error python sdk OCI

I am trying to read and pass the response of work requests in OCI for my compartment. import oci import configparser import json from oci.work_requests import WorkRequestClient DEFAULT_CONFIG = "~/.oci/config" DEFAULT_PROFILE =…
0
votes
1 answer

Is it possible to store user credentials on generated Oracle wallet?

The OCI Phyton SDK has functions, like GenerateAutonomousDatabaseWalletDetails and generate_autonomous_database_wallet, to generate the database wallet. Is there any function that allows adding user credentials on the wallet for the available…
0
votes
1 answer

how to get a Pre-Authenticated request for an object in OCI object storage using python SDK?

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…
msaei
  • 13
  • 4
0
votes
3 answers

How to get all ip attached to compute using python oci

I want to use python oci package to get information about environment. how to list all IPs addresses (both public or private) attached to compute node? list_instances() does not provide this part of compute details unfortunately. thanks.
habakuk
  • 15
  • 3
0
votes
1 answer

IdentityClient.get_user() returns tenancy OCID in compartment_id field

I have a piece of Python code like this: oci_config = oci.config.from_file("config_file","profile_name") identity = oci.identity.IdentityClient(oci_config) user = identity.get_user(oci_config["user"]).data The user object returned has an…
Eddie Ho
  • 113
  • 1
  • 7
0
votes
2 answers

How can I retrieve Idp Group Users using, oci python SDK?

When I call list_users method for IdentityClient, It enlists the users (Including IDP users.) I have created the IDP Group Mapping in OCI Console. Now I want something where I can identify every specific IDP user's, IDP Group or the Permissions they…
0
votes
2 answers

Downloaded GZ files is showing 0 byte

I am using OCI Python SDK and when i am trying to download an object (from an OCI bucket) which is GZ format it is getting downloaded but the file size is zero byte. Attaching the code Any help is much appriciable. import os import oci import…
g1006c
  • 11
  • 1
0
votes
2 answers

Retrieve the credentials.zip file from GenerateAutonomousDataWarehouseWalletDetails

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…
0
votes
1 answer

Getting an AttributeError when I try to create a Oracle BMC SecurityList

I am trying to automate the creation of resources in Oracle BMC. I have this python code: import oraclebmc config = oraclebmc.config.from_file() network = oraclebmc.core.virtual_network_client.VirtualNetworkClient(config) compartment_id =…
0
votes
1 answer

Integrate oracle-bmcs-python-sdk in setup.py

I am installing dependencies of my package through setup.py file. If the package is not present in PyPI like oracle-bmcs-python-sdk , then how I can integrate it in my setup.py file. Currently we have public link of oracle bmc sdk:…
0
votes
1 answer

Bare Metal Cloud - Python SDK SSL/TLS exception

When trying to use the BMCS Python SDK, I get an SSL/TLS exception. Why? Exception: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
Joe
  • 2,500
  • 1
  • 14
  • 12
-1
votes
1 answer

Upload files to object storage using python SDK

I am using Python SDK for OCI. I tried the Upload manager example and its working perfectly fine when i try to upload files from file system. But i have to expose this python code as REST service (using flask) and files to be uploaded to object…
1
2