I two tenancies in Oracle Cloud Infrastructure where Tenancy1 is login tenancy containing IAM configurations and Tenancy2 is my target tenancy. I configured cross tenancy auth (Endorse and Admit IAM policies) where I login to the login tenancy (Tenancy1) and use the override_tenancy url param to access the console of target tenancy (Tenancy2). I have achieved this cross tenancy for console but can we perform cross tenancy access via OCI CLI or Python SDK? I am planning to have a dynamic group of functions in my login tenancy which can access the resources in target tenancies.
Cross Tenancy access via CLI and SDK in Oracle Cloud
594 Views Asked by Somesh Garje 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 IDENTITY-MANAGEMENT
- FIM how to rename the anchor in SQL MA
- FIM disconnect deprovision and new connector
- How to propagate a Business Fault to Oracle Identity Manager (OIM) UI
- How to stop the Role Assignment on the basis of certain condition in OIM 11g r2 PS3
- How Identity Managment can value add into single-sign-on system
- Unable to login to console UI using PIM manager
- Identity management
- Looking for a good way to create usernames on multithreaded platform
- iam user needs either console access or access key in order to interact with aws?
- Which permissions for a cross-accounts transfert across two s3 with aws-datasync
- Fetch a custom attribute from uri's query params in a keycloak mapper and bind it to saml assertion
- There is an error at line 1 of your code. Check the node with id Agama-start-Flow : Learning Agama Lab for Gluu policy modification
- Keycloak for unified login
- Confusion over ecsInstanceRole role for ECS
- Exchange Online PowerShell error - Cannot validate argument on parameter 'Session'
Related Questions in ORACLE-CLOUD-FUNCTIONS
- how to load csv data from object store(which can be accessed only using url) into kafka topic and also is there any time interval to load each row?
- Cross Tenancy access via CLI and SDK in Oracle Cloud
- Oracle cloud API Gateway authentication function in Java
- Any method for collect instance state changes in OCI with GO SDK
- Oracle cloud api health check
- TypeError: Descriptor for property round is non-configurable and non-writable - smart contracts
- Dissable autocommit in sql developer web. Autonomous Database - Oracle cloud
- How to implement retry strategy in Oracle Cloud Infrastructure (OCI) using CLI tool?
- Can not deploy Go in Oracle Cloud Function using Cloud Shell
- Unable to process JSON input when ingesting logs to Oracle
- How do I set custom boot_volume_size_in_gbs value in my Python Script while using the Oracle Cloud Core Services API
- functions and events in OCI
- How to automatically shut down ARM server on Oracle Cloud's free tier when reaching 10TB limit?
- Appending tags in OCI using SDK
- Oracle Cloud : Issue to deploy python function using Cloud Shell
Related Questions in ORACLE-CLOUD-SHELL
- Cross Tenancy access via CLI and SDK in Oracle Cloud
- Oracle cloud api health check
- Data Pump export using cloud shell
- Can not deploy Go in Oracle Cloud Function using Cloud Shell
- What is the Oracle Cloud shell password for default user
- Getting connection time out while doing ssh on linux server from oracle cloud shell . It shows FIPS mode initialized and then it gets timed out again
- Getting the error in terraform code while trying to connect to linux server in OCI cloud shell . ------Failed to read ssh private key: no key found
- Oracle Cloud : Issue to deploy python function using Cloud Shell
- Error while using constant value in the copy_data
- How to programmatically delete objects stored in Oracle Object Storage?
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?
Well, seems this is pretty straight forward. Any client (
oci.core.VirtualNetworkClientfor example in Python) should be created using the config (API Signing Key of the user in login tenancy) or signer. Use the client object methods to access the resources in target tenancy just by it's OCID. The option for override_tenancy doesn't exist for CLI or SDK and not required as well. If you have the right Endorse and Admit policies in place you should get the expected response.Example: