{"id":19546031,"url":"https://github.com/hewlettpackard/oneview-sdk-ruby","last_synced_at":"2025-10-28T18:53:41.857Z","repository":{"id":49048638,"uuid":"44759522","full_name":"HewlettPackard/oneview-sdk-ruby","owner":"HewlettPackard","description":"This project is no longer being developed and has limited support. In the near future this repository will be fully deprecated. Please consider using other OneView projects, such as Golang and Python. ","archived":false,"fork":false,"pushed_at":"2021-06-30T06:05:44.000Z","size":8575,"stargazers_count":12,"open_issues_count":1,"forks_count":16,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-13T21:05:47.279Z","etag":null,"topics":["bare-metal","composable-infrastructure","hpe-image-streamer","hpe-oneview","hpe-synergy","infrastructure-as-code","oneview-api","oneview-ruby-sdk","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HewlettPackard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-10-22T16:48:59.000Z","updated_at":"2023-08-04T09:15:03.000Z","dependencies_parsed_at":"2022-09-09T01:01:03.852Z","dependency_job_id":null,"html_url":"https://github.com/HewlettPackard/oneview-sdk-ruby","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HewlettPackard%2Foneview-sdk-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HewlettPackard%2Foneview-sdk-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HewlettPackard%2Foneview-sdk-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HewlettPackard%2Foneview-sdk-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HewlettPackard","download_url":"https://codeload.github.com/HewlettPackard/oneview-sdk-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251041505,"owners_count":21527208,"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":["bare-metal","composable-infrastructure","hpe-image-streamer","hpe-oneview","hpe-synergy","infrastructure-as-code","oneview-api","oneview-ruby-sdk","ruby"],"created_at":"2024-11-11T03:42:44.838Z","updated_at":"2025-10-28T18:53:36.823Z","avatar_url":"https://github.com/HewlettPackard.png","language":"Ruby","readme":"# HPE OneView SDK for Ruby\n\n## Build Status \n\nOV Version | 6.20 | 6.10 | 6.00 | 5.60 | 5.50 | 5.40 |\n| ------------- |:-------------:| :-------------:| :-------------:| :-------------:| :-------------:| :-------------:|\nSDK Version/Tag |  [v6.2.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.2.0)  | [v6.1.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.1.0) | [v6.0.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v6.0.0) | [v5.18.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.18.0) | [v5.17.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.17.0) | [v5.16.0](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/tag/v5.16.0) |\nBuild Status | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/runs/2949080207) | [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/769868941)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/634796649)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/519793086)| [![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/349360042)|[![Build status](https://action-badges.now.sh/JasonEtco/action-badges)](https://github.com/HewlettPackard/oneview-sdk-ruby/actions/runs/343154951)|\n\n\n## Introduction\n\nHPE OneView makes it simple to deploy and manage today’s complex hybrid cloud infrastructure. HPE OneView can help you transform your data center to software-defined, and it supports HPE’s broad portfolio of servers, storage, and networking solutions, ensuring the simple and automated management of your hybrid infrastructure. Software-defined intelligence enables a template-driven approach for deploying, provisioning, updating, and integrating compute, storage, and networking infrastructure.\n\nThe HPE OneView Ruby SDK provides library to easily interact with HPE OneView and HPE Image Streamer REST APIs. The HPE OneView Ruby SDK enables developers to easily build integrations and scalable solutions with HPE OneView and HPE Image Streamer.\n\nYou can find the latest supported HPE OneView Ruby SDK [here](https://github.com/HewlettPackard/oneview-sdk-ruby/releases/latest)\n\n## What's New\n\nHPE OneView Ruby library extends support of the SDK to OneView REST API version 3000 (OneView v6.20)\n\nPlease refer to [notes](https://github.com/HewlettPackard/oneview-sdk-ruby/blob/master/CHANGELOG.md) for more information on the changes , features supported and issues fixed in this version\n\n## Getting Started \n\n## Installation and Configuration\n\n## Installation\nHPE OneView SDK for Ruby can be installed from Source and Docker container installation methods.You can either use a docker container which will have the HPE OneView SDK for Ruby installed or perform local installation.\n\n###  Docker Setup\nThe light weight containerized version of the HPE OneView SDK for Ruby is available in the [Docker Store](https://store.docker.com/community/images/hewlettpackardenterprise/hpe-oneview-sdk-for-ruby). The Docker Store image tag consist of two sections: \u003csdk_version-OV_version\u003e\n\n```bash\n# Download and store a local copy of oneview-sdk-ruby and use it as a Docker Image.\n$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v6.1.0-OV6.1\n# Run docker commands below given, which  will in turn create a sh session \n# where you can create files, issue commands and execute the examples.\n$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v6.1.0-OV6.1 /bin/sh\n```\n\n### Local Setup\n- Local installation requires the gem in your Gemfile:\n\n  ```ruby\n  gem 'oneview-sdk', '~\u003e 6.1.0'\n  ```\n\n  Then run `$ bundle install`\n- Or run the command:\n\n  ```bash\n  $ gem install oneview-sdk\n  ```\n\n\n## Configuration\n\n### OneView Client Configuration\nThe OneView Client configuration options that can be passed during OneView Client object creation:\n\n```ruby\n# Create a OneView client object:\nrequire 'oneview-sdk'\nclient = OneviewSDK::Client.new(\n  url: 'https://oneview.example.com',\n  user: 'Administrator',              # This is the default\n  password: 'secret123',\n  token: 'xxxx...',                   # Set EITHER token or the username \u0026 password\n  ssl_enabled: true,                  # This is the default and strongly encouraged\n  logger: Logger.new(STDOUT),         # This is the default\n  log_level: :info,                   # This is the default\n  domain: 'LOCAL',                    # This is the default\n  api_version: 3000                   # Defaults to appliance's max API version which is API version of OneView 6.20\n)\n```\n\n:lock: Tip: Check the file permissions because the password is stored in clear-text.\n\n### Image Streamer Client Configuration\nThe Image Streamer (I3S) client is very much similar to the OneView client, but has one key difference:\nit cannot generate it's own token. However, it uses the same token given to or generated by the OneView client,\nso if you need to generate a token, create a OneView client using a user \u0026 password, then pass the generated token\ninto the Image Streamer client.\n\n```ruby\n# Create an Image Streamer client object:\nrequire 'oneview-sdk'\ni3s_client = OneviewSDK::ImageStreamer::Client.new(\n  url: 'https://image-streamer.example.com',\n  token: 'xxxx...',                   # Required. Note that you cannot pass the user \u0026 password options\n  ssl_enabled: true,                  # This is the default and strongly encouraged\n  logger: Logger.new(STDOUT),         # This is the default\n  log_level: :info,                   # This is the default\n  api_version: 2020                   # Defaults to appliance's max API version\n)\n```\n\nYou can also create the Image Streamer(I3S) client through the Oneview client instance.\n\n```ruby\n# Create an Image Streamer client object through the Oneview client object:\nrequire 'oneview-sdk'\ni3s_client = client.new_i3s_client(\n  url: 'https://image-streamer.example.com',\n  ssl_enabled: true,                  # This is the default and strongly encouraged\n  logger: Logger.new(STDOUT),         # This is the default\n  log_level: :info,                   # This is the default\n  api_version: 2020                   # Defaults to appliance's max API version\n)\n```\n\n### Environment Variables\n\nConfiguration can also be defined through environment variables.To set these variables in bash:\n\n```bash\n# OneView client options:\nexport ONEVIEWSDK_URL='https://oneview.example.com'\nexport ONEVIEWSDK_DOMAIN='LOCAL'\n# You can set the token if you know it, or set the user and password to generate one:\nexport ONEVIEWSDK_TOKEN='xxxx...'\nexport ONEVIEWSDK_USER='Administrator'\nexport ONEVIEWSDK_PASSWORD='secret123'\nexport ONEVIEWSDK_SSL_ENABLED=false\n# NOTE: Disabling SSL is strongly discouraged. Please see the CLI section for import instructions.\n\n# Image Streamer (I3S) client options:\nexport I3S_URL='https://image-streamer.example.com'\nexport I3S_SSL_ENABLED=false\n# NOTE: Disabling SSL is strongly discouraged. Please see the CLI section for import instructions.\n```\n\n:lock: Tip: Be sure nobody has access to your environment variables, as the password or token is stored in clear-text.\n\nThen you can leave out these options from your config, enabling you to just do:\n\n```ruby\nrequire 'oneview-sdk'\nclient = OneviewSDK::Client.new\n```\n\nYou can create the i3s client with environment variables in the following ways:\n```ruby\nrequire 'oneview-sdk'\n# Note: Both options require the I3S_URL environment variable to be set.\n\n# This way uses the ONEVIEWSDK_URL, ONEVIEWSDK_USER and ONEVIEWSDK_PASSWORD environment variables to generate a token:\nclient = OneviewSDK::Client.new\ni3s_client = client.new_i3s_client\n\n# This way uses the ONEVIEWSDK_TOKEN environment variable directly:\ni3s_client = OneviewSDK::ImageStreamer::Client.new\n```\n\nNOTE: Run `$ oneview-sdk-ruby env` to see a list of available environment variables and their current values.\n\n### Configuration Files\n\nConfiguration files can also be used to define client configuration (json or yaml formats). Here's an example json file:\n\n```json\n{\n  \"url\": \"https://oneview.example.com\",\n  \"user\": \"Administrator\",\n  \"password\": \"secret123\",\n  \"api_version\": 3000\n}\n```\n\nand load via:\n\n```ruby\nconfig = OneviewSDK::Config.load(\"full_file_path.json\")\nclient = OneviewSDK::Client.new(config)\n```\n\n:lock: Tip: Check the file permissions if the password or token is stored in clear-text.\n\n### Custom logging\nThe default logger is a standard logger to STDOUT, but if you want to specify your own, you can.  However, your logger must implement the following methods:\n\n```ruby\ndebug(String)\ninfo(String)\nwarn(String)\nerror(String)\nlevel=(Symbol, etc.) # The parameter here will be the log_level attribute\n```\n\n:lock: Tip: When the log_level is set to debug, API request options will be logged (including auth tokens and passwords); be careful to protect secret information.\n\n\n## API Implementation\n\nA detailed list of the HPE OneView REST interfaces that have been implemented in this SDK can be found in the [endpoints-support.md](https://github.com/HewlettPackard/oneview-sdk-ruby/blob/master/endpoints-support.md) file.\n\n### HPE OneView API Versions and Appliance types\nYou may notice resource classes being accessed in a few different ways; for example, `OneviewSDK::EthernetNetwork`, `OneviewSDK::API1000::EthernetNetwork`, and `OneviewSDK::API1000::C7000::EthernetNetwork`. However, each of these accessors may actually be referring to the same class. This is because in order to keep backwards compatibility and make examples a little more simple, there are module methods in place to redirect/resolve the shorthand accessors to their full namespace identifier. In order to automatically complete the full namespace identifier, there are some defaults in place. Here's some example code that should help clear things up (return values are commented behind the code):\n\n```ruby\nrequire 'oneview-sdk'\n\n# Show defaults:\nOneviewSDK::SUPPORTED_API_VERSIONS      # [1000, 1200, 1600, 1800, 2000, 2200, 2600, 2800, 3000]\nOneviewSDK::DEFAULT_API_VERSION         # 3000\nOneviewSDK.api_version                  # 3000\nOneviewSDK.api_version_updated?         # false\n\n# Notice the automatic redirection/resolution when we use the shorthand accessor:\nOneviewSDK::EthernetNetwork             # OneviewSDK::API3000::EthernetNetwork\n\n# Even this comparison is true:\nOneviewSDK::EthernetNetwork == OneviewSDK::API3000::EthernetNetwork  # true\n\n# Now let's set a new API version default:\nOneviewSDK.api_version = 3000\nOneviewSDK.api_version                  # 3000\nOneviewSDK.api_version_updated?         # true\n\n# The API300 and above has 2 variants (C7000 \u0026 Synergy): For eg\n\nOneviewSDK::API1800::SUPPORTED_VARIANTS  # ['C7000', 'Synergy']\nOneviewSDK::API1800::DEFAULT_VARIANT     # 'C7000'\nOneviewSDK::API1800.variant              # 'C7000'\nOneviewSDK::API1800.variant_updated?     # false\n\nOneviewSDK::API2000::SUPPORTED_VARIANTS  # ['C7000', 'Synergy']\nOneviewSDK::API2000::DEFAULT_VARIANT     # 'C7000'\nOneviewSDK::API2000.variant              # 'C7000'\nOneviewSDK::API2000.variant_updated?     # false\n\nOneviewSDK::API2200::SUPPORTED_VARIANTS  # ['C7000', 'Synergy']\nOneviewSDK::API2200::DEFAULT_VARIANT     # 'C7000'\nOneviewSDK::API2200.variant              # 'C7000'\nOneviewSDK::API2200.variant_updated?     # false\n\nOneviewSDK::API3000::SUPPORTED_VARIANTS  # ['C7000', 'Synergy']\nOneviewSDK::API3000::DEFAULT_VARIANT     # 'C7000'\nOneviewSDK::API3000.variant              # 'C7000'\nOneviewSDK::API3000.variant_updated?     # false\n\n# Likewise, we can set a new default variant for the API3000 module:\nOneviewSDK::3000.variant = 'Synergy'\nOneviewSDK::API3000.variant              # 'Synergy'\nOneviewSDK::API3000.variant_updated?     # true\n\n```\n\n:lock: Tip: We understand that this can be confusing, so to avoid any confusion or unexpected behavior, we recommend specifying the full namespace identifier in your code. At the very least, set defaults explicitly using `OneviewSDK.api_version = \u003cver\u003e` and `OneviewSDK::API3000.variant = \u003cvariant\u003e`, as the defaults may change.\n\n## Resources\nEach OneView and Image Streamer resource is exposed via a Ruby class, enabling CRUD-like functionality (with some exceptions).\n\nOnce you instantiate a resource object, you can call intuitive methods such as `resource.create`, `resource.update` and `resource.delete`. In addition, resources respond to helpful methods such as `.each`, `.eql?(other_resource)`, `.like(other_resource)`, `.retrieve!`, and many others.\n\nPlease see the [rubydoc.info](http://www.rubydoc.info/gems/oneview-sdk) documentation for complete usage details and the [examples](examples/) directory for more examples and test-scripts, but here are a few examples to get you started:\n\n##### Create a resource\n\n```ruby\nethernet = OneviewSDK::EthernetNetwork.new(\n  client, { name: 'TestVlan', vlanId:  1001, purpose:  'General', smartLink: false, privateNetwork: false }\n)\nethernet.create # Tells OneView to create this resource\n```\n\n##### Access resource attributes\n\n```ruby\nethernet['name'] # Returns 'TestVlan'\n\nethernet.data # Returns hash of all data\n\nethernet.each do |key, value|\n  puts \"Attribute #{key} = #{value}\"\nend\n```\n\nThe resource's data is stored in its @data attribute.  However, you can access the data directly using a hash-like syntax on the resource object (recommended). `resource['key']` functions a lot like `resource.data['key']`. The difference is that when using the data attribute, you must be cautious to use the correct key type (Hash vs Symbol).\nThe direct hash accessor on the resource converts first-level keys to strings; so `resource[:key]` and `resource['key']` access the same thing: `resource.data['key']`. We recommend using strings exclusively for keys, as the JSON data returned from OneView requests supports strings but not symbols.\n\n##### Update a resource\n\nNotice that there are a few different ways to do things, so pick your poison!\n```ruby\nethernet.set_all(name: 'newName', vlanId:  1002)\nethernet['purpose'] = 'General'\nethernet['ethernetNetworkType'] = 'Tagged'\nethernet.update # Saves current state to OneView\n\n# Alternatively, you could do this in 1 step with:\nethernet.update(name: 'newName', vlanId:  1002, purpose: 'General', ethernetNetworkType: 'Tagged')\n```\n\n##### Check resource equality\n\nYou can use the `==`  or `.eql?` method to compare resource equality, or `.like` to compare just a subset of attributes.\n```ruby\nethernet2 = OneviewSDK::EthernetNetwork.new(client, { purpose:  'General' })\nethernet == ethernet2    # Returns false\nethernet.eql?(ethernet2) # Returns false\n\n\n# To compare a subset of attributes:\nethernet.like?(ethernet2)  # Returns true\nethernet.like?(name: 'TestVlan', purpose: 'General')  # Returns true\n```\n\n\n##### Find resources\n\n```ruby\nethernet = OneviewSDK::EthernetNetwork.new(client, { name: 'OtherVlan' })\nethernet.retrieve! # Uses the name attribute to search for the resource on the server and update the data in this object.\n\n\n# Each resource class also has a searching method (NOTE: class method, not instance method)\nethernet = OneviewSDK::EthernetNetwork.find_by(client, { name: 'OtherVlan' }).first\n\nOneviewSDK::EthernetNetwork.find_by(client, { purpose: 'General' }).each do |network|\n  puts \"  #{network['name']}\"\nend\n\n# Get all resources:\nnetworks = client.get_all(:EthernetNetwork)\n```\n\n##### Delete a resource\n\n```ruby\nethernet = OneviewSDK::EthernetNetwork.find_by(client, { name: 'OtherVlan' }).first\nethernet.delete # Tells OneView to delete this resource\n```\n\n### Save/Load resources with files\nResources can be saved to files and loaded again very easily using the built-in `.to_file` \u0026 `.from_file` methods.\n\n - To save a Resource to a file:\n\n   ```ruby\n   ethernet.to_file(\"full_file_path.json\")\n   ```\n - To load a resource from a file: (note the class method, not instance method)\n\n   ```ruby\n   ethernet4 = OneviewSDK::Resource.from_file(client, \"full_file_path.json\")\n   ```\n\n\nFor more examples and test-scripts, see the [examples](examples/) directory and [rubydoc.info](http://www.rubydoc.info/gems/oneview-sdk) documentation.\n\n## Custom requests\nIn most cases, interacting with Resource objects is enough, but sometimes you need to make your own custom requests to OneView.\nThis project makes it extremely easy to do with some built-in methods for the Client object. Here are some examples:\n\n```ruby\n# Get the appliance startup progress:\nresponse = client.rest_api(:get, '/rest/appliance/progress')\n# or even more simple:\nresponse = client.rest_get('/rest/appliance/progress')\n\n# Then we can validate the response and convert the response body into a hash...\ndata = client.response_handler(response)\n```\n\nThis example is about as basic as it gets, but you can make any type of OneView request.\nIf a resource does not do what you need, this will allow you to do it.\nPlease refer to the documentation and [code](lib/oneview-sdk/rest.rb) for complete list of methods and information about how to use them.\n\n## CLI\nThis gem also comes with a command-line interface to make interacting with OneView possible without the need to create a Ruby program or script.\n\nNote: In order to use this, you will need to make sure your Ruby `bin` directory is in your path.\nRun `$ gem environment` to see where the executable paths are for your Ruby installation.\n\nTo get started, run `$ oneview-sdk-ruby --help`.\n\nTo communicate with an appliance, you will need to set up a few environment variables so it knows how to communicate. Run `$ oneview-sdk-ruby env` to see the available environment variables.\n\nThe CLI does not expose everything in the SDK, but it is great for doing simple tasks such as creating or deleting resources from files, listing resources, and searching. Here are a few examples:\n\n##### List ServerProfiles:\n\n```bash\n# Output a list of ServerProfile names:\n$ oneview-sdk-ruby list ServerProfiles\n# Or to show in yaml format (json is also supported):\n$ oneview-sdk-ruby list ServerProfiles -f yaml\n# Or to show specific attributes only:\n$ oneview-sdk-ruby list ServerProfiles -a uri,state,bios.overriddenSettings\n```\n\n##### Show details for a specific resource:\n\n```bash\n$ oneview-sdk-ruby show ServerProfile profile-1\n# Or to show specific attributes only:\n$ oneview-sdk-ruby show ServerProfile profile-1 -a name,uri,enclosureBay\n```\n\n##### Search by an attribute:\n\n```bash\n$ oneview-sdk-ruby search ServerProfiles --filter state:Normal affinity:Bay\n# By default, it will just show a list of names of matching resources,\n#   but again, you can show only certain attributes by using the -a option\n# You can also chain keys together to search in nested hashes:\n$ oneview-sdk-ruby search ServerProfiles --filter state:Normal boot.manageBoot:true\n# Or to show specific attributes only:\n$ oneview-sdk-ruby search ServerProfile --filter state:Normal -a name,uri,enclosureBay\n```\n\n##### Create or delete resource by file:\n\n```bash\n# Save resource details to a file (to be used with the create and delete methods below)\n$ oneview-sdk-ruby to_file ServerProfile profile-1 /my-server-profile.json\n\n$ oneview-sdk-ruby create_from_file /my-server-profile.json\n$ oneview-sdk-ruby delete_from_file /my-server-profile.json\n```\n\n##### Update resources by name:\n\n```bash\n$ oneview-sdk-ruby update FCNetwork FC1 -h linkStabilityTime:20  # Using hash format\n$ oneview-sdk-ruby update Volume VOL_01 -j '{\"shareable\": true}' # Using json format\n```\n\n##### Make REST calls:\n\n```bash\n$ oneview-sdk-ruby rest get rest/fc-networks\n$ oneview-sdk-ruby rest PUT rest/enclosures/\u003cid\u003e/configuration\n```\n\n##### Start an interactive console session with a OneView connection:\n\n```bash\n$ oneview-sdk-ruby console\nConsole Connected to https://oneview.example.com\nHINT: The @client object is available to you\n\u003e\n```\n\n##### Import a self-signed SSL certificate from your OneView or Image Streamer instance:\n\nAlthough you can disable SSL validation altogether for the client, this is strongly discouraged.\nInstead, please import the certificate using the built-in CLI cert command:\n```bash\n# Check the certificate first:\n$ oneview-sdk-ruby cert check https://oneview.example.com\n Checking certificate for 'https://oneview.example.com' ...\n ERROR: Certificate Validation Failed!\n\n# Import the certificate:\n$ oneview-sdk-ruby cert import https://oneview.example.com\n Importing certificate for 'https://oneview.example.com' into '/home/users/user1/.oneview-sdk-ruby/trusted_certs.cer'...\n Cert added to '/home/users/user1/.oneview-sdk-ruby/trusted_certs.cer'\n```\n\n##### Subscribe to the OneView State Change Message Bus (SCMB):\n\n```bash\n$ oneview-sdk-ruby scmb\n$ oneview-sdk-ruby scmb -r 'scmb.ethernet-networks.#'\n```\n### Building the Gem\nFirst run `$ bundle` (requires the bundler gem), then...\n - To build only, run `$ rake build`.\n - To build and install the gem, run `$ rake install`.\n\n### Testing\n - RuboCop: `$ rake rubocop`\n - Unit: `$ rake spec`\n - Optional: Start guard to run unit tests \u0026 rubocop automatically on file changes: `$ bundle exec guard`\n - Integration: See the [spec/integration](spec/integration/) README\n - All: Run `$ rake test:all` to run RuboCop, unit, \u0026 integration tests.\n - Examples: See the [examples](examples/) README\n\nFor the full testing reference please look into [TESTING.md](TESTING.md) file.\n\n## Getting Help \n\nAre you running into a road block? Have an issue with unexpected behavior? Feel free to open a new issue on the [issue tracker](https://github.com/HewlettPackard/oneview-ansible/issues)\n\n## License\nThis project is licensed under the Apache 2.0 license. Please see [LICENSE](LICENSE) for more info.\n\n## Contributing and feature requests\n\nWe welcome your contributions to the HPE OneView for Ruby SDK library. \n\n**Contributing:** You know the drill. Fork it, branch it, change it, commit it, and pull-request it.\nWe are passionate about improving this project, and glad to accept help to make it better.\n\nNOTE: We reserve the right to reject changes that we feel do not fit the scope of this project, so for feature additions, please open an issue to discuss your ideas before doing the work.\n\n**Feature Requests:** If you have a need that is not met by the current implementation, please let us know opening an new enhancement request/issue.\nThis feedback is important for us to deliver a useful product. \n\n\n## Additional Resources \n\n**HPE OneView Documentation**\n\n[HPE OneView Release Notes](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Support Matrix](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Installation Guide](http://hpe.com/info/OneView/docs)\n\n[HPE OneView User Guide](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Online Help](http://hpe.com/info/OneView/docs)\n\n[HPE OneView REST API Reference](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Firmware Management White Paper](http://hpe.com/info/OneView/docs)\n\n[HPE OneView Deployment and Management White Paper](http://hpe.com/info/OneView/docs)\n\n\n**HPE OneView Community**\n\n[HPE OneView Community Forums](http://hpe.com/info/oneviewcommunity)\n\nLearn more about HPE OneView at [hpe.com/info/oneview](https://hpe.com/info/oneview)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhewlettpackard%2Foneview-sdk-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhewlettpackard%2Foneview-sdk-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhewlettpackard%2Foneview-sdk-ruby/lists"}