VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::guest::LinuxConfiguration Class Reference

Guest customization Settings to customize a Linux guest operating system. More...

List of all members.

Classes

class  Builder
 Builder class for LinuxConfiguration. More...

Public Member Functions

 LinuxConfiguration ()
 Generate all-fields constructor only for errors and standard structures that have relevant fields.
vmware.vcenter.guest.HostnameGenerator GetHostname ()
 The network host name of the Linux virtual machine.
void SetHostname (vmware.vcenter.guest.HostnameGenerator hostname)
 The network host name of the Linux virtual machine.
string GetDomain ()
 The fully qualified domain name.
void SetDomain (string domain)
 The fully qualified domain name.
string GetTimeZone ()
 The case-sensitive time zone, such as Europe/Sofia.
void SetTimeZone (string timeZone)
 The case-sensitive time zone, such as Europe/Sofia.
string GetScriptText ()
 The script to run before and after Linux guest customization.
void SetScriptText (string scriptText)
 The script to run before and after Linux guest customization.
vmware.vapi.bindings.type.StructType _GetType ()
vmware.vapi.data.StructValue _GetDataValue ()
void _Validate ()
bool _HasTypeNameOf< T > ()
_ConvertTo< T > ()
override bool Equals (object obj)
override int GetHashCode ()
override string ToString ()

Detailed Description

Guest customization Settings to customize a Linux guest operating system.

The LinuxConfiguration class contains settings that identify a Linux machine in the same way that the WindowsConfiguration class identifies a Windows machine.. This class was added in vSphere API 7.0.0.


Constructor & Destructor Documentation

vmware::vcenter::guest::LinuxConfiguration::LinuxConfiguration ( ) [inline]

Generate all-fields constructor only for errors and standard structures that have relevant fields.

Creates a default new instance.


Member Function Documentation

T vmware::vcenter::guest::LinuxConfiguration::_ConvertTo< T > ( ) [inline]
Type Constraints
T :vmware.vapi.bindings.IStructure 
vmware.vapi.data.StructValue vmware::vcenter::guest::LinuxConfiguration::_GetDataValue ( ) [inline]
vmware.vapi.bindings.type.StructType vmware::vcenter::guest::LinuxConfiguration::_GetType ( ) [inline]
bool vmware::vcenter::guest::LinuxConfiguration::_HasTypeNameOf< T > ( ) [inline]
Type Constraints
T :vmware.vapi.bindings.IStructure 
void vmware::vcenter::guest::LinuxConfiguration::_Validate ( ) [inline]
override bool vmware::vcenter::guest::LinuxConfiguration::Equals ( object  obj) [inline]
string vmware::vcenter::guest::LinuxConfiguration::GetDomain ( ) [inline]

The fully qualified domain name.

This attribute was added in vSphere API 7.0.0.

override int vmware::vcenter::guest::LinuxConfiguration::GetHashCode ( ) [inline]
vmware.vcenter.guest.HostnameGenerator vmware::vcenter::guest::LinuxConfiguration::GetHostname ( ) [inline]

The network host name of the Linux virtual machine.

This attribute was added in vSphere API 7.0.0.

string vmware::vcenter::guest::LinuxConfiguration::GetScriptText ( ) [inline]

The script to run before and after Linux guest customization.

The max size of the script is 1500 bytes. As long as the script (shell, perl, python...) has the right "#!" in the header, it is supported. The caller should not assume any environment variables when the script is run.

The script is invoked by the customization engine using the command line: 1) with argument "precustomization" before customization, 2) with argument "postcustomization" after customization. The script should parse this argument and implement pre-customization or post-customization task code details in the corresponding block.

A Linux shell script example:

 #!/bin/sh
             if [ x$1 == x&quot;precustomization&quot; ]; then
             echo &quot;Do Precustomization tasks&quot;
             #code for pre-customization actions...
             elif [ x$1 == x&quot;postcustomization&quot; ]; then
             echo &quot;Do Postcustomization tasks&quot;
             #code for post-customization actions...
             fi

. This attribute was added in vSphere API 7.0.0.

string vmware::vcenter::guest::LinuxConfiguration::GetTimeZone ( ) [inline]

The case-sensitive time zone, such as Europe/Sofia.

Valid time zone values are based on the tz (time zone) database used by Linux. The values are strings (string) in the form "Area/Location," in which Area is a continent or ocean name, and Location is the city, island, or other regional designation.

See the https://kb.vmware.com/kb/2145518 for a list of supported time zones for different versions in Linux.. This attribute was added in vSphere API 7.0.0.

void vmware::vcenter::guest::LinuxConfiguration::SetDomain ( string  domain) [inline]

The fully qualified domain name.

This attribute was added in vSphere API 7.0.0.

void vmware::vcenter::guest::LinuxConfiguration::SetHostname ( vmware.vcenter.guest.HostnameGenerator  hostname) [inline]

The network host name of the Linux virtual machine.

This attribute was added in vSphere API 7.0.0.

void vmware::vcenter::guest::LinuxConfiguration::SetScriptText ( string  scriptText) [inline]

The script to run before and after Linux guest customization.

The max size of the script is 1500 bytes. As long as the script (shell, perl, python...) has the right "#!" in the header, it is supported. The caller should not assume any environment variables when the script is run.

The script is invoked by the customization engine using the command line: 1) with argument "precustomization" before customization, 2) with argument "postcustomization" after customization. The script should parse this argument and implement pre-customization or post-customization task code details in the corresponding block.

A Linux shell script example:

 #!/bin/sh
             if [ x$1 == x&quot;precustomization&quot; ]; then
             echo &quot;Do Precustomization tasks&quot;
             #code for pre-customization actions...
             elif [ x$1 == x&quot;postcustomization&quot; ]; then
             echo &quot;Do Postcustomization tasks&quot;
             #code for post-customization actions...
             fi

. This attribute was added in vSphere API 7.0.0.

void vmware::vcenter::guest::LinuxConfiguration::SetTimeZone ( string  timeZone) [inline]

The case-sensitive time zone, such as Europe/Sofia.

Valid time zone values are based on the tz (time zone) database used by Linux. The values are strings (string) in the form "Area/Location," in which Area is a continent or ocean name, and Location is the city, island, or other regional designation.

See the https://kb.vmware.com/kb/2145518 for a list of supported time zones for different versions in Linux.. This attribute was added in vSphere API 7.0.0.

override string vmware::vcenter::guest::LinuxConfiguration::ToString ( ) [inline]

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