oracle / oracle/oci-python-sdk
Manual Endpoint Configuration Required for ZprClient in the OCI Python SDK
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 474
- Forks
- 321
- Avg merge
- 23m
- Merged PRs (30d)
- 4
Description
Update: This has been fixed in v2.135.2. If you are not able to upgrade to a non-affected version at this time, please use the workaround mentioned below
If you are using or want to use ZprClient in OCI Python SDK then you have to manually update the endpoint.
Description
Users of the OCI Python SDK who wish to utilize ZprClient must manually update the endpoint due to an incorrect configuration in the service endpoint. This issue affects the Zero Trust Packet Routing Service (ZPR) released in version 2.135.1.
Workaround
To resolve this issue, users need to manually set the endpoint when creating a ZprClient instance. Here's an example of how to do this:
zpr_client = oci.zpr.ZprClient(config, service_endpoint="https://zpr.{region}.oci.oraclecloud.com/")
Replace {region} with the appropriate region for your OCI deployment.
The correct endpoint for your specific region can be found in the Oracle Cloud Infrastructure API documentation here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue points to ZprClient and its service endpoint but names no source file or test. Check the v2.135.2 release and the ZPR API documentation first; the reported defect is done when users no longer need the manual service_endpoint workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100