Configuring Environment
The examples in this IAM section use the IBM Cloud Platform Services Python SDK which can be installed using the command:
pip install --upgrade "ibm-platform-services"
You will also need to export the following environment variables if they are not already set:
export ACCOUNT_ID='YOUR ACCOUNT ID'
export IBMCLOUD_API_KEY='YOUR IBM CLOUD API KEY '
APIs used in these examples
Endpoints
The IAM APIs uses the following public global endpoint URL:
https://iam.cloud.ibm.com
If you enabled service endpoints in your account, you can send API requests over the IBM Cloud private network at the following base endpoint URLs.
Private endpoint URL for VPC infrastructure:
https://private.iam.cloud.ibm.com
Private endpoint URLs for classic infrastructure:
Dallas: https://private.us-south.iam.cloud.ibm.com
Washington DC: https://private.us-east.iam.cloud.ibm.com