Sha256: 21e95f6fbfcba33f605ee6a9ccbd2170a55f860987b396354c906db4ca2a0fce
Contents?: true
Size: 1.21 KB
Versions: 27
Compression:
Stored size: 1.21 KB
Contents
module Fog module Compute class RackspaceV2 class Real # Returns a list of all key pairs associated with an account. # @return [Excon::Response] response : # * body [Hash]: - # * 'keypairs' [Array]: list of keypairs # * 'keypair' [Hash]: - # * 'fingerprint' [String]: unique fingerprint of the keypair # * 'name' [String]: unique name of the keypair # * 'public_key' [String]: the public key assigned to the keypair # @raise [Fog::Compute::RackspaceV2::NotFound] # @raise [Fog::Compute::RackspaceV2::BadRequest] # @raise [Fog::Compute::RackspaceV2::InternalServerError] # @raise [Fog::Compute::RackspaceV2::ServiceError] # @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/ListKeyPairs.html def list_keypairs request( :method => 'GET', :expects => 200, :path => 'os-keypairs' ) end end class Mock def list_keypairs response( :status => 200, :body => { 'keypairs' => self.data[:keypairs] }) end end end end end
Version data entries
27 entries across 25 versions & 5 rubygems