VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
 All Classes Files Functions
Classes | List of all members
Com::Vmware::Appliance::Networking::Dns::Servers Class Reference
Inheritance diagram for Com::Vmware::Appliance::Networking::Dns::Servers:
Com::Vmware::Vapi::Bindings::VapiInterface

Classes

class  DNSServerConfig
 
class  DNSServerMode
 
class  Message
 
class  MessageStatus
 
class  TestStatus
 
class  TestStatusInfo
 

Avaliable Methods

public method test ()
 
public method add ()
 
public method get ()
 
public method new ()
 
public method set ()
 

Detailed Description

Com::Vmware::Appliance::Networking::Dns::Servers interface provides methods* DNS server configuration.

Member Function Documentation

public method Com::Vmware::Appliance::Networking::Dns::Servers::add ( )

Add a DNS server. This method fails if mode argument is "dhcp"

Parameters
server[REQUIRED] DNS server. . The value must be String.
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view
public method Com::Vmware::Appliance::Networking::Dns::Servers::get ( )

Get DNS server configuration.

Return values
DNSserver configuration. The return type will be Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerConfig
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view
public method Com::Vmware::Appliance::Networking::Dns::Servers::new ( )

Constructor to initialize the object

Parameters
api_provider- protocol connection to use with stubs created by this factory
StubConfig- Stub's additional configuration
Return values
Blessedobject
Code:
click to view
public method Com::Vmware::Appliance::Networking::Dns::Servers::set ( )

Set the DNS server configuration. If you set the mode argument to "DHCP", a DHCP refresh is forced.

Parameters
config[REQUIRED] DNS server configuration. . The value must be Com::Vmware::Appliance::Networking::Dns::Servers::DNSServerConfig.
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view
public method Com::Vmware::Appliance::Networking::Dns::Servers::test ( )

Test if dns servers are reachable.

Parameters
servers[REQUIRED] DNS servers. . The value must be Array of String.
Return values
DNSreacable status The return type will be Com::Vmware::Appliance::Networking::Dns::Servers::TestStatusInfo
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view

The documentation for this class was generated from the following file: