lib/ultradns/client.rb
# Create a primary zone
#
# === Required Parameters
#
# * +account_name+ - The account that the zone will be created under.  The user must have write access for zones in that account.
# * +zone_name+ - The name of the zone.  The trailing . is optional.  The zone name must not be in use by anyone.
#
# === Examples
#
#     c.create_primary_zone('my_account', 'zone.invalid.')
Create a primary zone
Required Parameters

+account_name+ - The account that the zone will be created under.  The user must have write access for zones in that account.
+zone_name+ - The name of the zone.  The trailing . is optional.  The zone name must not be in use by anyone.

Examples


Create a primary zone Required Parameters + account_name + - The account that the zone will be created under . The user must have write access for zones in that account . + zone_name + - The name of the zone . The trailing . is optional . The zone name must not be in use by anyone . Examples
def create_primary_zone(account_name, zone_name)
    zone_properties = {:name => zone_name, :accountName => account_name, :type => 'PRIMARY'}
    primary_zone_info = {:forceImport => true, :createType => 'NEW'}
    zone_data = {:properties => zone_properties, :primaryCreateInfo => primary_zone_info}
    with_auth_retry {|c| c.post '/zones', request_options({:body => zone_data.to_json}) }
  end
def create_primary_zone ( account_name , zone_name ) zone_properties = { :name => zone_name , :accountName => account_name , :type => 'PRIMARY' } primary_zone_info = { :forceImport => true , :createType => 'NEW' } zone_data = { :properties => zone_properties , :primaryCreateInfo => primary_zone_info } with_auth_retry { | c | c . post '/zones' , request_options ( { :body => zone_data . to_json } ) } end
Create a primary zone
 Required Parameters
Create a primary zone Required Parameters
account_name
zone_name