24 questions
0
votes
1
answer
375
views
Python OCI SDK DatabaseClient Returning SSL "Certificate Verify Failed" Error
I am attempting to use the OCI module for Python to connect to my Oracle OCI databases to retrieve a list of backups for the database. I have copied some code a colleague used to do another task with ...
1
vote
1
answer
264
views
I am trying to add the Tag (freefrom_tag) for particular compute instances in OCI using python script and facing TypeError
Please find the error
update_volume_response = core_client.update_instance(instance_id=i.id, update_instance_details = oci.core.models.UpdateInstanceDetails(freeform_tags))
TypeError: ...
0
votes
1
answer
212
views
Latest OCI SDK documantation page API reference does not list all service clients
Latest 2.88.1 (updated 11/15) documentation site under API reference, it does not list all service clients for navigation and search.
oci sdk 2.88.0 lists dozens of service clients.
oci sdk 2.88.1 ...
1
vote
1
answer
2k
views
No such file or directory: '/opt/ml/input/data/test/revenue_train.csv' Sagemaker [SM_CHANNEL_TRAIN]
I am trying to deploy my RandomForestClassifier on Amazon Sagemaker using Python SDK. I have been following this example https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-script-...
4
votes
1
answer
6k
views
Get list of all compartments in OCI Tenancy
I am trying to get the list of all compartments (including child compartments) in OCI Tenancy using Python SDK.
But the below OCI API does not give the root compartment details.
Is there a way to get ...
1
vote
1
answer
720
views
OCI response returns a list object with one entry
The response.data attribute seems to return a Python list type object, with just one entry. To get the response data into a Python dict object I have to strip out the list contents before using the ...
0
votes
1
answer
215
views
Python sdk OCI : Remove backup policy of boot volume
How do we remove the assigned backup policy of boot volume attached to an instance using python sdk OCI package
Didn't find with UpdateBootVolume
https://docs.oracle.com/en-us/iaas/api/#/en/iaas/...
0
votes
1
answer
327
views
Python oci sdk question regarding boot volume backup
How do we find boot volume backups of the particular instance using python oci package
list_boot_volume_backups function will return all the backups in the compartment.
ref: https://docs.oracle.com/en-...
0
votes
1
answer
921
views
Can't import ModelConfigurationDetails in the OCI notebooksession using conda env
I am using OCI notebook session for model deployment. cloned oci-python-sdk in the env.
env: Python [conda env:generalmachinelearningforgpusv1]
(/home/datascience/conda/generalmachinelearningforgpusv1)...
0
votes
1
answer
882
views
Creating compute instance from instance configuration
I want to create a compute instance using oci-python-sdk in the same way as I would by clicking 'launch instance' in the "compute >> instance configurations >> instance configuration ...
0
votes
1
answer
507
views
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 = "...
0
votes
1
answer
242
views
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 ...
-1
votes
1
answer
2k
views
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 (...
0
votes
1
answer
2k
views
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 ...
0
votes
3
answers
2k
views
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 ...