XML::SRS::Domain::Create - Class representing an SRS DomainCreate transaction
my $create = XML::SRS::DomainCreate->new( domain_name => 'foo.co.nz', term => 1, action_id => "1234", contact_registrant => { name => "Joe Bloggs", email => "blah@foo.co.nz", phone => { subscriber => "444 4444", ndc => 4, cc => 64, }, address => { address1 => "555 My Street", address2 => "Burbsville", city => "Lala Land", postcode => "12345", cc => "NZ", }, }, nameservers => [ { fqdn => "ns1.foo.net.nz", ipv6_addr => "2404:130:0:10::34:0", ipv4_addr => "202.78.240.34", }, { fqdn => "ns2.foo.net.nz", ipv6_addr => "2404:130:2000:1::1", ipv4_addr => "202.78.244.33", }, ], dns_sec => [ { algorithm => 5, key_tag => 555, digest => "3FC2FB591B6089F454B90A529C760E3F92F28399", digest_type => 1, }, { algorithm => 5, key_tag => 444, digest => "3A54F693DA1D3FC6073B3D065FEDFAC000610CE83C7D2A084DF883E0B308DCA6", digest_type => 2, } ], );
This class represents an SRS DomainCreate request. The root XML element of this class is 'DomainCreate'.
Each attribute of this class has an accessor/mutator of the same name as the attribute. Additionally, they can be passed as parameters to the constructor.
Required. Must be of type XML::SRS::DomainName. Maps to the XML attribute 'DomainName'
Must be of type XML::SRS::DomainName. Maps to the XML attribute 'DomainNameUnicode'
Required. Must be of type XML::SRS::UID. Maps to the XML attribute 'ActionId'
Must be of type XML::SRS::Contact. Maps to the XML element 'AdminContact'
Must be of type XML::SRS::Contact. Maps to the XML element 'TechnicalContact'
Required. Must be of type XML::SRS::Contact. Maps to the XML element 'RegistrantContact'
Must be of type XML::SRS::DS::List. Maps to the XML element 'DNSSEC'
Must be of type XML::SRS::Server::List. Maps to the XML element 'NameServers'
Required. Must be of type XML::SRS::Term. Maps to the XML attribute 'Term'
Must be of type Str. Maps to the XML element 'AuditText'
Must be of type XML::SRS::Boolean. Maps to the XML attribute 'Delegate'
Must be of type XML::SRS::UID. Maps to the XML attribute 'RegistrantRef'
Construct a new XML::SRS::Request object. %params specifies the initial values of the attributes.
XML::SRS::Action
To install XML::SRS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::SRS
CPAN shell
perl -MCPAN -e shell install XML::SRS
For more information on module installation, please visit the detailed CPAN module installation guide.