SDK for Ruby

The Oracle Cloud Infrastructure SDK for Ruby enables you to write code to manage Oracle Cloud Infrastructure resources.
Note

The Oracle Cloud Infrastructure SDK for Ruby currently supports Ruby versions 2.6 and 2.7.
Note

This project is no longer being actively developed by Oracle. We will continue to address security vulnerabilities for the foreseeable future, and will respond to questions on github, but have no plans to introduce any new functionality, and may not be able to address any non-security related issues. We encourage developers to migrate to other OCI SDKs, and developers may fork the project and enhance it as they desire.

This SDK and sample are dual-licensed under the Universal Permissive License 1.0 and the Apache License 2.0; third-party content is separately licensed as described in the code.

Download: The SDK for Ruby is available on GitHub or RubyGems.

Documentation: SDK for Ruby documentation.

Tip

The SDK for Ruby is pre-installed on the Oracle Linux Cloud Developer platform image. For more information, see Oracle Linux Cloud Developer.

Installing with yum

If you're using Oracle Linux 7 or 8, you can use yum to install the OCI SDK for Ruby.

The following example shows how to use yum to install the OCI SDK for Ruby 2.6 on Oracle Linux 7:

sudo yum-config-manager --enable ol7_developer
sudo yum install -y oci-ruby-sdk
source /opt/rh/rh-ruby26/enable
export GEM_PATH="/usr/share/gems:`gem env gempath`"

The following example shows how to use yum to install the OCI SDK for Ruby 2.6 on Oracle Linux 8:

sudo yum-config-manager --enable ol8_developer
sudo yum install -y oci-ruby-sdk
source /opt/rh/rh-ruby26/enable
export GEM_PATH="/usr/share/gems:`gem env gempath`"

Services Supported

  • Account Management
  • AI Anomaly Detection
  • AI Language
  • AI Speech
  • AI Vision
  • Analytics Cloud
  • Announcements
  • Application Dependency Management
  • Application Management
  • API Gateway
  • Classic Migration Service
  • Application Performance Monitoring
  • Audit
  • Autoscaling (Compute)
  • Bastion
  • Big Data Service
  • Blockchain Platform
  • Budgets
  • Build
  • Certificates
  • Cloud Guard
  • Console Dashboard Service
  • Container Engine for Kubernetes
  • Content Management
  • Core Services (Networking, Compute, Block Volume)
  • Data Catalog
  • Data Connectivity Management
  • Data Flow
  • Data Integration
  • Data Labeling
  • Data Safe
  • Data Science
  • Data Transfer
  • Database
  • Database Migration
  • Database Management
  • Database Tools
  • Devops
  • Digital Assistant
  • DNS
  • Email Delivery
  • Events
  • File Storage
  • Functions
  • Generic Artifacts
  • GoldenGate
  • Governance Rules
  • Health Checks
  • IAM
  • Integration Generation 2
  • Java Management
  • Key Management (for the Vault service)
  • License Manager
  • Limits
  • Logging
  • Logging Analytics
  • Logging Search
  • Logging Ingestion
  • Load Balancing
  • Management Agent Cloud
  • Management Dashboard
  • Marketplace
  • Monitoring
  • MySQL Database
  • Network Firewall
  • Network Load Balancing
  • Network Monitoring
  • Networking Topology
  • NoSQL Database Cloud
  • Notifications
  • Object Storage
  • OCI Registry
  • OneSubscription
  • Operator Access Control
  • OS Management
  • Quotas
  • Resource Manager
  • Roving Edge Infrastructure
  • Search
  • Secret Management (for the Vault service)
  • Service Catalog
  • Service Connector Hub
  • Service Mesh
  • Source Code Management
  • Stack Monitoring
  • Streaming
  • Support Management
  • Threat Intelligence
  • Usage
  • Visual Builder
  • VMWare Solution
  • Vulnerability Scanning
  • Web Application Acceleration and Security
  • Work Requests (Compute, Database)