Monday, 25 May 2026

Exploring OCI Regions Using OCI CLI

Oracle Cloud Infrastructure (OCI) provides cloud regions across multiple countries and continents to support high availability, disaster recovery, low latency, and global cloud deployments.

Using OCI CLI, administrators can quickly list all available Oracle Cloud regions directly from the terminal.


OCI CLI Command to List Regions

The following command displays all OCI regions available globally:

oci iam region list

Sample Output

karandodwa@cloudshell:~ (ap-mumbai-1)$ oci iam region list

The command returns JSON output similar to:

{
  "data": [
    {
      "key": "BOM",
      "name": "ap-mumbai-1"
    },
    {
      "key": "HYD",
      "name": "ap-hyderabad-1"
    },
    {
      "key": "ONM",
      "name": "ap-delhi-1"
    },
    {
      "key": "IAD",
      "name": "us-ashburn-1"
    },
    {
      "key": "PHX",
      "name": "us-phoenix-1"
    }
  ]
}

The actual output contains dozens of OCI regions distributed globally.


Understanding the Output

Each OCI region entry contains:

Field Description
key Short region identifier
name Full OCI region name

Example Region Entry

{
  "key": "BOM",
  "name": "ap-mumbai-1"
}

Meaning of This Region

  • BOM → Short code for Mumbai
  • ap → Asia Pacific
  • mumbai → Region city/location
  • 1 → Region sequence number

OCI Region Naming Convention

OCI regions generally follow this format:

<geography>-<city>-<number>

Examples

Region Name Description
ap-mumbai-1 Asia Pacific - Mumbai
ap-hyderabad-1 Asia Pacific - Hyderabad
us-ashburn-1 United States - Ashburn
eu-frankfurt-1 Europe - Frankfurt
me-dubai-1 Middle East - Dubai

OCI Regions Available in India

From the output, Oracle currently provides multiple cloud regions in India:

Key Region Location
BOM ap-mumbai-1 Mumbai
HYD ap-hyderabad-1 Hyderabad
ONM ap-delhi-1 Delhi NCR
DES ap-chennai-1 Chennai

Benefits of Multiple OCI Regions

1. High Availability

Applications can be deployed across multiple regions for better uptime.


2. Disaster Recovery

Organizations can replicate workloads between regions.


3. Low Latency

Users can choose cloud regions closer to end users.


4. Regulatory Compliance

Data residency requirements can be satisfied using local regions.


Popular OCI Regions from the Output

Key Region Country/Area
IAD us-ashburn-1 USA
PHX us-phoenix-1 USA
FRA eu-frankfurt-1 Germany
LHR uk-london-1 United Kingdom
NRT ap-tokyo-1 Japan
SIN ap-singapore-1 Singapore
SYD ap-sydney-1 Australia
JNB af-johannesburg-1 South Africa

OCI Geographic Categories

OCI region prefixes indicate geographical areas:

Prefix Meaning
ap Asia Pacific
us United States
eu Europe
me Middle East
sa South America
ca Canada
af Africa
mx Mexico
uk United Kingdom

Filter OCI Regions Using Queries

OCI CLI supports JMESPath queries for filtering output.

Display Only Region Names

oci iam region list \
--query "data[*].name"

Display Only Region Keys

oci iam region list \
--query "data[*].key"

Display Output in Table Format

oci iam region list --output table

Get Current Configured OCI Region

You can verify your configured default region using:

cat ~/.oci/config

Example:

region=ap-mumbai-1

Switch OCI Region Temporarily

You can target another region using:

oci --region us-ashburn-1 iam region list

Why OCI Regions Matter

Choosing the correct OCI region affects:

  • Application performance
  • Latency
  • Disaster recovery architecture
  • Compliance requirements
  • Cost optimization
  • Service availability

OCI Multi-Region Architecture

Many enterprise deployments use multiple OCI regions for:

  • Cross-region replication
  • Backup strategies
  • Autonomous Database replication
  • Disaster recovery
  • Global application deployments

Oracle Cloud Shell and OCI CLI

The command was executed from Oracle Cloud Shell:

karandodwa@cloudshell:~ (ap-mumbai-1)$

This indicates:

  • The user is logged into Cloud Shell
  • The current configured region is Mumbai
  • OCI CLI is already installed and authenticated

Conclusion

The command:

oci iam region list

is one of the first and most useful OCI CLI commands for understanding Oracle Cloud Infrastructure global availability.

It helps administrators:

  • Discover OCI regions
  • Plan deployments
  • Select low-latency regions
  • Design disaster recovery architectures
  • Build multi-region cloud solutions

With OCI continuously expanding globally, understanding OCI regions becomes an important foundation for cloud architecture and administration.

No comments:

Post a Comment