SDK for Ruby

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

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

  • AI Language
  • Analytics Cloud
  • Announcements
  • API Gateway
  • Application Migration
  • Application Performance Monitoring
  • Audit
  • Autoscaling (Compute)
  • Big Data
  • Blockchain Platform
  • Budgets
  • Cloud Guard
  • Container Engine for Kubernetes
  • Content and Experience
  • Core Services (Networking, Compute, Block Volume)
  • Data Catalog
  • Data Flow
  • Data Integration
  • Data Safe
  • Data Science
  • Data Transfer
  • Database
  • Database Migration
  • Database Management
  • Digital Assistant
  • DNS
  • Email Delivery
  • Events
  • File Storage
  • Functions
  • GoldenGate
  • Health Checks
  • IAM
  • Integration
  • Key Management (for the Vault service)
  • Limits
  • Logging
  • Logging Analytics
  • Logging Search
  • Logging Ingestion
  • Load Balancing
  • Management Agent Cloud
  • Management Dashboard
  • Marketplace
  • Monitoring
  • MySQL Database
  • Network Load Balancing
  • Networking Topology
  • NoSQL Database Cloud
  • Notifications
  • Object Storage
  • OCI Registry
  • Operator Access Control
  • OS Management
  • Quotas
  • Resource Manager
  • Roving Edge Infrastructure
  • Search
  • Secret Management (for the Vault service)
  • Service Catalog
  • Service Connector Hub
  • Streaming
  • Support Management
  • Usage
  • VMWare Solution
  • Vulnerability Scanning
  • Web Application Acceleration and Security
  • Work Requests (Compute, Database)