Method: Fog::OracleCloud::Database::Backups#get

Defined in:
lib/fog/oraclecloud/models/database/backups.rb

#get(db_name, tag) ⇒ Object

There is no get service for backups in the Oracle Cloud Call the list and extract the backup given a tag



17
18
19
20
21
22
23
24
25
# File 'lib/fog/oraclecloud/models/database/backups.rb', line 17

def get(db_name, tag)
  data = {}
  service.list_backups(db_name).body['backupList'].each { |b| 
    if b['dbTag'] == tag then
      data = b
    end
  }
  new(data)
end