Bases: vmware.vapi.bindings.stub.VapiInterface
Domains class provides methods DNS search domains.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Add domain to DNS search domains.
Parameters: | domain (str) – Domain to add. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Get list of DNS search domains.
Return type: | list of str |
---|---|
Returns: | List of domains. |
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Set DNS search domains.
Parameters: | domains (list of str) – List of domains. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Hostname class provides methods Performs operations on Fully Qualified Doman Name.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Hostname.Message class Test result and message
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Hostname.MessageStatus class Individual test result
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the MessageStatus instance. |
---|
message indicates the test failed.
message indicates that the test was successful.
Bases: vmware.vapi.bindings.enum.Enum
Hostname.TestStatus class Health indicator
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the TestStatus instance. |
---|
All tests were successful for given data
In case data has more than one test, this indicates not all tests were successful
All tests failed for given data
Bases: vmware.vapi.bindings.struct.VapiStruct
Hostname.TestStatusInfo class Overall test result
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get the Fully Qualified Doman Name.
Return type: | str |
---|---|
Returns: | FQDN. |
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Set the Fully Qualified Domain Name.
Parameters: | name (str) – FQDN. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Test the Fully Qualified Domain Name.
Parameters: | name (str) – FQDN. |
---|---|
Return type: | Hostname.TestStatusInfo |
Returns: | FQDN status |
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Servers class provides methods DNS server configuration.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Servers.DNSServerConfig class This structure represents the configuration state used to determine DNS servers.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Servers.DNSServerMode class Describes DNS Server source (DHCP,static)
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the DNSServerMode instance. |
---|
DNS address is automatically assigned by a DHCP server.
DNS address is static.
Bases: vmware.vapi.bindings.struct.VapiStruct
Servers.Message class Test result and message
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Servers.MessageStatus class Individual test result
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the MessageStatus instance. |
---|
message indicates the test failed.
message indicates that the test was successful.
Bases: vmware.vapi.bindings.enum.Enum
Servers.TestStatus class Health indicator
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the TestStatus instance. |
---|
All tests were successful for given data
In case data has more than one test, this indicates not all tests were successful
All tests failed for given data
Bases: vmware.vapi.bindings.struct.VapiStruct
Servers.TestStatusInfo class Overall test result
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Add a DNS server. This method fails if mode argument is “dhcp”
Parameters: | server (str) – DNS server. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Get DNS server configuration.
Return type: | Servers.DNSServerConfig |
---|---|
Returns: | DNS server configuration. |
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Set the DNS server configuration. If you set the mode argument to “DHCP”, a DHCP refresh is forced.
Parameters: | config (Servers.DNSServerConfig) – DNS server configuration. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |
Test if dns servers are reachable.
Parameters: | servers (list of str) – DNS servers. |
---|---|
Return type: | Servers.TestStatusInfo |
Returns: | DNS reacable status |
Raise : | com.vmware.vapi.std.errors_client.Error Generic error |