1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/simpledb/list_domains.rb

31 lines
943 B
Ruby
Raw Normal View History

module Fog
module AWS
class SimpleDB
# List SimpleDB domains
#
# ==== Parameters
# * options<~Hash> - options, defaults to {}
2009-07-31 02:13:48 -04:00
# * 'MaxNumberOfDomains'<~Integer> - number of domains to return
# between 1 and 100, defaults to 100
2009-07-31 02:13:48 -04:00
# * 'NextToken'<~String> - Offset token to start listing, defaults to nil
#
# ==== Returns
# * response<~Fog::AWS::Response>:
# * body<~Hash>:
2009-07-31 02:13:48 -04:00
# * 'BoxUsage'
# * 'Domains' - array of domain names.
# * 'NextToken' - offset to start with if there are are more domains to list
# * 'RequestId'
def list_domains(options = {})
request({
'Action' => 'ListDomains',
2009-07-31 02:13:48 -04:00
'MaxNumberOfDomains' => options['MaxNumberOfDomains'],
'NextToken' => options['NextToken']
}, Fog::Parsers::AWS::SimpleDB::ListDomains.new(@nil_string))
end
end
end
end