# File lib/clouddb/instance.rb, line 31
    def populate
      response = @connection.dbreq("GET", @dbmgmthost, "#{@dbmgmtpath}/instances/#{CloudDB.escape(@id.to_s)}", @dbmgmtport, @dbmgmtscheme)
      CloudDB::Exception.raise_exception(response) unless response.code.to_s.match(/^20.$/)
      data = JSON.parse(response.body)['instance']
      @id           = data["id"]
      @name         = data["name"]
      @hostname     = data["hostname"]
      @flavor_id    = data["flavor"]["id"] if data["flavor"]
      @root_enabled = data["rootEnabled"]
      @volume_used  = data["volume"]["used"] if data["volume"]
      @volume_size  = data["volume"]["size"] if data["volume"]
      @status       = data["status"]
      @created      = data["created"]
      @updated      = data["updated"]
      @links        = data["links"]
      true
    end