{"id":28477878,"url":"https://github.com/fog/fog-oraclecloud","last_synced_at":"2025-07-02T18:31:54.844Z","repository":{"id":56847365,"uuid":"63219650","full_name":"fog/fog-oraclecloud","owner":"fog","description":"Fog library for the Oracle Cloud","archived":false,"fork":false,"pushed_at":"2021-05-27T20:44:04.000Z","size":194,"stargazers_count":5,"open_issues_count":4,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-30T20:50:07.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-13T06:15:24.000Z","updated_at":"2021-05-27T20:44:07.000Z","dependencies_parsed_at":"2022-08-31T23:21:42.615Z","dependency_job_id":null,"html_url":"https://github.com/fog/fog-oraclecloud","commit_stats":null,"previous_names":["joelith/fog-oraclecloud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fog/fog-oraclecloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fog%2Ffog-oraclecloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fog%2Ffog-oraclecloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fog%2Ffog-oraclecloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fog%2Ffog-oraclecloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fog","download_url":"https://codeload.github.com/fog/fog-oraclecloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fog%2Ffog-oraclecloud/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262850039,"owners_count":23374322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-07T17:08:49.589Z","updated_at":"2025-07-02T18:31:54.832Z","avatar_url":"https://github.com/fog.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fog::OracleCloud\n\nModule for the 'fog' gem to support the Oracle Cloud (IaaS and PaaS)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'fog-oraclecloud'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fog-oraclecloud\n\n## Usage\n\nBefore you can use fog-oraclecloud, you must require it in your application:\n\n```ruby\nrequire 'fog/oraclecloud'\n```\n\nSince it's a bad practice to have your credentials in source code, you should load them from default fog configuration file: ```~/.fog```. This file could look like this:\n\n```\ndefault:\n  oracle_username: \u003cUSERNAME\u003e\n  oracle_password: \u003cPASSWORD\u003e\n  oracle_domain: \u003cIDENTITY DOMAIN\u003e\n  oracle_region: \u003cemea or remove if using US data centre\u003e\n  oracle_compute_api: \u003cCOMPUTE API\u003e\n  oracle_storage_api: \u003cSTORAGE_API\u003e\n```\n\n### Example: Java Cloud Service\nGet all Java Instances\n```ruby\ninstances = Fog::OracleCloud[:java].instances\n```\nCreate a Java Instance\n```ruby\ninstance = Fog::OracleCloud[:java].instances.create(\n    :service_name =\u003e 'TestWLS',\n    :description =\u003e 'A new weblogic instance',\n    :dba_name =\u003e 'SYS',\n    :dba_password =\u003e 'password',\n    :db_service_name =\u003e 'TestDB',\n    :admin_password =\u003e 'Welcome1$',\n    :admin_username =\u003e 'weblogic',\n    :shape =\u003e 'oc3',\n    :version =\u003e '12.2.1',\n    :ssh_key =\u003e 'ssh-rsa AAAAB3NzaC1yc2...',\n)\n```\nDelete an instance\n```ruby\ninstance = Fog::OracleCloud[:java].instances.get('TestWLS')\n# Have to add the database details in so that the tables in the database can be removed\ninstance.dba_name = 'Admin'\ninstance.dba_password = 'password'\ninstance.destroy()\n```\n\n## Supported Services\nThe following services are supported:\n* Java Cloud Service\n  * create_instance\n  * delete_instance\n  * get_instance\n  * get_server\n  * list_instances\n  * list_servers\n* SOA Cloud Service\n  * create_instance\n  * delete_instance\n  * get_instance\n  * list_instances\n* Database Cloud Service\n  * backup_instance\n  * create_instance\n  * create_snapshot\n  * delete_instance\n  * delete_snapshot\n  * get_instance\n  * get_snapshot\n  * list_backups\n  * list_instances\n  * list_patches\n  * list_recoveries\n  * list_servers\n  * list_snapshots\n  * recover_instance\n  * scale_instance\n* Compute Cloud Servcice\n  * create_image\n  * create_image_list\n  * create_instance\n  * create_orchestration\n  * create_security_application\n  * create_security_rule\n  * create_ssh_key\n  * create_volume\n  * delete_image_list\n  * delete_instance\n  * delete_orchestration\n  * delete_security_application\n  * delete_ssh_key\n  * get_image\n  * get_image_list\n  * get_instance\n  * get_orchestration\n  * get_security_application\n  * get_security_rule\n  * get_ssh_key\n  * list_image_lists\n  * list_images\n  * list_instances\n  * list_orchestrations\n  * list_security_applications\n  * list_security_lists\n  * list_security_rules\n  * list_ssh_keys\n  * list_volumes\n  * start_orchestration\n  * stop_orchestration\n  * update_image\n  * update_image_list\n  * update_orchestration\n  * update_ssh_key\n* Storage Cloud Service\n  * create_container\n  * delete_container\n  * get_container\n  * list_containers\n  \nThese basically align with the REST API documentation on docs.oracle.com. Check there for particulars around parameters, types etc. \n\n**Note**: The APIs above are slightly modified from the Oracle cloud to provide consistency across requests. Keep in mind the following:\n* All parameters are given in lower camel case (ie: service_name, not ServiceName)\n* For IaaS services you don't need to provide the fully qualified names (ie: Compute/\u003cidentity_domain\u003e/\u003cname\u003e). The system will prepend the configured user when necessary\n* The Java and Database configuration has all the parameters as top level attributes (ie: don't configure parameters/content_port, use content_port)\n* Smart defaults are included where possible. Check the code to see.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/fog/fog-oraclecloud.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffog%2Ffog-oraclecloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffog%2Ffog-oraclecloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffog%2Ffog-oraclecloud/lists"}