1. Packages
  2. Vsphere Provider
  3. API Docs
  4. getGuestOsCustomization
vSphere v4.13.2 published on Wednesday, Apr 9, 2025 by Pulumi

vsphere.getGuestOsCustomization

Explore with Pulumi AI

The vsphere.GuestOsCustomization data source can be used to discover the details about a customization specification for a guest operating system.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  vm:
    type: vsphere:VirtualMachine
    properties:
      templateUuid: ${template.id}
      customizationSpec:
        - id: ${windows.id}
variables:
  datacenter:
    fn::invoke:
      function: vsphere:getDatacenter
      arguments:
        name: dc-01
  template:
    fn::invoke:
      function: vsphere:getVirtualMachine
      arguments:
        name: windows-template
        datacenterId: ${datacenter.id}
  windows:
    fn::invoke:
      function: vsphere:getGuestOsCustomization
      arguments:
        name: windows
Copy

Using getGuestOsCustomization

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getGuestOsCustomization(args: GetGuestOsCustomizationArgs, opts?: InvokeOptions): Promise<GetGuestOsCustomizationResult>
function getGuestOsCustomizationOutput(args: GetGuestOsCustomizationOutputArgs, opts?: InvokeOptions): Output<GetGuestOsCustomizationResult>
Copy
def get_guest_os_customization(name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetGuestOsCustomizationResult
def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetGuestOsCustomizationResult]
Copy
func LookupGuestOsCustomization(ctx *Context, args *LookupGuestOsCustomizationArgs, opts ...InvokeOption) (*LookupGuestOsCustomizationResult, error)
func LookupGuestOsCustomizationOutput(ctx *Context, args *LookupGuestOsCustomizationOutputArgs, opts ...InvokeOption) LookupGuestOsCustomizationResultOutput
Copy

> Note: This function is named LookupGuestOsCustomization in the Go SDK.

public static class GetGuestOsCustomization 
{
    public static Task<GetGuestOsCustomizationResult> InvokeAsync(GetGuestOsCustomizationArgs args, InvokeOptions? opts = null)
    public static Output<GetGuestOsCustomizationResult> Invoke(GetGuestOsCustomizationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGuestOsCustomizationResult> getGuestOsCustomization(GetGuestOsCustomizationArgs args, InvokeOptions options)
public static Output<GetGuestOsCustomizationResult> getGuestOsCustomization(GetGuestOsCustomizationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vsphere:index/getGuestOsCustomization:getGuestOsCustomization
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the customization specification is the unique identifier per vCenter Server instance. ## Attribute Reference
Name This property is required. string
The name of the customization specification is the unique identifier per vCenter Server instance. ## Attribute Reference
name This property is required. String
The name of the customization specification is the unique identifier per vCenter Server instance. ## Attribute Reference
name This property is required. string
The name of the customization specification is the unique identifier per vCenter Server instance. ## Attribute Reference
name This property is required. str
The name of the customization specification is the unique identifier per vCenter Server instance. ## Attribute Reference
name This property is required. String
The name of the customization specification is the unique identifier per vCenter Server instance. ## Attribute Reference

getGuestOsCustomization Result

The following output properties are available:

ChangeVersion string
Description string
Id string
The provider-assigned unique ID for this managed resource.
LastUpdateTime string
Name string
Specs List<Pulumi.VSphere.Outputs.GetGuestOsCustomizationSpec>
Type string
ChangeVersion string
Description string
Id string
The provider-assigned unique ID for this managed resource.
LastUpdateTime string
Name string
Specs []GetGuestOsCustomizationSpec
Type string
changeVersion String
description String
id String
The provider-assigned unique ID for this managed resource.
lastUpdateTime String
name String
specs List<GetGuestOsCustomizationSpec>
type String
changeVersion string
description string
id string
The provider-assigned unique ID for this managed resource.
lastUpdateTime string
name string
specs GetGuestOsCustomizationSpec[]
type string
change_version str
description str
id str
The provider-assigned unique ID for this managed resource.
last_update_time str
name str
specs Sequence[GetGuestOsCustomizationSpec]
type str
changeVersion String
description String
id String
The provider-assigned unique ID for this managed resource.
lastUpdateTime String
name String
specs List<Property Map>
type String

Supporting Types

GetGuestOsCustomizationSpec

DnsServerLists This property is required. List<string>
A list of DNS servers for a virtual network adapter with a static IP address.
DnsSuffixLists This property is required. List<string>
A list of DNS search domains to add to the DNS configuration on the virtual machine.
LinuxOptions This property is required. List<Pulumi.VSphere.Inputs.GetGuestOsCustomizationSpecLinuxOption>
A list of configuration options specific to Linux.
NetworkInterfaces This property is required. List<Pulumi.VSphere.Inputs.GetGuestOsCustomizationSpecNetworkInterface>
A specification of network interface configuration options.
WindowsOptions This property is required. List<Pulumi.VSphere.Inputs.GetGuestOsCustomizationSpecWindowsOption>
A list of configuration options specific to Windows.
WindowsSysprepText This property is required. string
Use this option to specify use of a Windows Sysprep file.
DnsServerLists This property is required. []string
A list of DNS servers for a virtual network adapter with a static IP address.
DnsSuffixLists This property is required. []string
A list of DNS search domains to add to the DNS configuration on the virtual machine.
LinuxOptions This property is required. []GetGuestOsCustomizationSpecLinuxOption
A list of configuration options specific to Linux.
NetworkInterfaces This property is required. []GetGuestOsCustomizationSpecNetworkInterface
A specification of network interface configuration options.
WindowsOptions This property is required. []GetGuestOsCustomizationSpecWindowsOption
A list of configuration options specific to Windows.
WindowsSysprepText This property is required. string
Use this option to specify use of a Windows Sysprep file.
dnsServerLists This property is required. List<String>
A list of DNS servers for a virtual network adapter with a static IP address.
dnsSuffixLists This property is required. List<String>
A list of DNS search domains to add to the DNS configuration on the virtual machine.
linuxOptions This property is required. List<GetGuestOsCustomizationSpecLinuxOption>
A list of configuration options specific to Linux.
networkInterfaces This property is required. List<GetGuestOsCustomizationSpecNetworkInterface>
A specification of network interface configuration options.
windowsOptions This property is required. List<GetGuestOsCustomizationSpecWindowsOption>
A list of configuration options specific to Windows.
windowsSysprepText This property is required. String
Use this option to specify use of a Windows Sysprep file.
dnsServerLists This property is required. string[]
A list of DNS servers for a virtual network adapter with a static IP address.
dnsSuffixLists This property is required. string[]
A list of DNS search domains to add to the DNS configuration on the virtual machine.
linuxOptions This property is required. GetGuestOsCustomizationSpecLinuxOption[]
A list of configuration options specific to Linux.
networkInterfaces This property is required. GetGuestOsCustomizationSpecNetworkInterface[]
A specification of network interface configuration options.
windowsOptions This property is required. GetGuestOsCustomizationSpecWindowsOption[]
A list of configuration options specific to Windows.
windowsSysprepText This property is required. string
Use this option to specify use of a Windows Sysprep file.
dns_server_lists This property is required. Sequence[str]
A list of DNS servers for a virtual network adapter with a static IP address.
dns_suffix_lists This property is required. Sequence[str]
A list of DNS search domains to add to the DNS configuration on the virtual machine.
linux_options This property is required. Sequence[GetGuestOsCustomizationSpecLinuxOption]
A list of configuration options specific to Linux.
network_interfaces This property is required. Sequence[GetGuestOsCustomizationSpecNetworkInterface]
A specification of network interface configuration options.
windows_options This property is required. Sequence[GetGuestOsCustomizationSpecWindowsOption]
A list of configuration options specific to Windows.
windows_sysprep_text This property is required. str
Use this option to specify use of a Windows Sysprep file.
dnsServerLists This property is required. List<String>
A list of DNS servers for a virtual network adapter with a static IP address.
dnsSuffixLists This property is required. List<String>
A list of DNS search domains to add to the DNS configuration on the virtual machine.
linuxOptions This property is required. List<Property Map>
A list of configuration options specific to Linux.
networkInterfaces This property is required. List<Property Map>
A specification of network interface configuration options.
windowsOptions This property is required. List<Property Map>
A list of configuration options specific to Windows.
windowsSysprepText This property is required. String
Use this option to specify use of a Windows Sysprep file.

GetGuestOsCustomizationSpecLinuxOption

Domain This property is required. string
The domain name for this virtual machine.
HostName This property is required. string
The hostname for this virtual machine.
HwClockUtc This property is required. bool
Specifies whether or not the hardware clock should be in UTC or not.
ScriptText This property is required. string
The customization script to run before and or after guest customization.
TimeZone This property is required. string
Set the time zone on the guest operating system. For a list of the acceptable values for Linux customization specifications, see List of Time Zone Database Zones on Wikipedia.
Domain This property is required. string
The domain name for this virtual machine.
HostName This property is required. string
The hostname for this virtual machine.
HwClockUtc This property is required. bool
Specifies whether or not the hardware clock should be in UTC or not.
ScriptText This property is required. string
The customization script to run before and or after guest customization.
TimeZone This property is required. string
Set the time zone on the guest operating system. For a list of the acceptable values for Linux customization specifications, see List of Time Zone Database Zones on Wikipedia.
domain This property is required. String
The domain name for this virtual machine.
hostName This property is required. String
The hostname for this virtual machine.
hwClockUtc This property is required. Boolean
Specifies whether or not the hardware clock should be in UTC or not.
scriptText This property is required. String
The customization script to run before and or after guest customization.
timeZone This property is required. String
Set the time zone on the guest operating system. For a list of the acceptable values for Linux customization specifications, see List of Time Zone Database Zones on Wikipedia.
domain This property is required. string
The domain name for this virtual machine.
hostName This property is required. string
The hostname for this virtual machine.
hwClockUtc This property is required. boolean
Specifies whether or not the hardware clock should be in UTC or not.
scriptText This property is required. string
The customization script to run before and or after guest customization.
timeZone This property is required. string
Set the time zone on the guest operating system. For a list of the acceptable values for Linux customization specifications, see List of Time Zone Database Zones on Wikipedia.
domain This property is required. str
The domain name for this virtual machine.
host_name This property is required. str
The hostname for this virtual machine.
hw_clock_utc This property is required. bool
Specifies whether or not the hardware clock should be in UTC or not.
script_text This property is required. str
The customization script to run before and or after guest customization.
time_zone This property is required. str
Set the time zone on the guest operating system. For a list of the acceptable values for Linux customization specifications, see List of Time Zone Database Zones on Wikipedia.
domain This property is required. String
The domain name for this virtual machine.
hostName This property is required. String
The hostname for this virtual machine.
hwClockUtc This property is required. Boolean
Specifies whether or not the hardware clock should be in UTC or not.
scriptText This property is required. String
The customization script to run before and or after guest customization.
timeZone This property is required. String
Set the time zone on the guest operating system. For a list of the acceptable values for Linux customization specifications, see List of Time Zone Database Zones on Wikipedia.

GetGuestOsCustomizationSpecNetworkInterface

DnsDomain This property is required. string
A DNS search domain to add to the DNS configuration on the virtual machine.
DnsServerLists This property is required. List<string>
Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
Ipv4Address This property is required. string
The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
Ipv4Netmask This property is required. int
The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
Ipv6Address This property is required. string
The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
Ipv6Netmask This property is required. int
The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
DnsDomain This property is required. string
A DNS search domain to add to the DNS configuration on the virtual machine.
DnsServerLists This property is required. []string
Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
Ipv4Address This property is required. string
The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
Ipv4Netmask This property is required. int
The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
Ipv6Address This property is required. string
The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
Ipv6Netmask This property is required. int
The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
dnsDomain This property is required. String
A DNS search domain to add to the DNS configuration on the virtual machine.
dnsServerLists This property is required. List<String>
Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
ipv4Address This property is required. String
The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
ipv4Netmask This property is required. Integer
The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
ipv6Address This property is required. String
The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
ipv6Netmask This property is required. Integer
The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
dnsDomain This property is required. string
A DNS search domain to add to the DNS configuration on the virtual machine.
dnsServerLists This property is required. string[]
Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
ipv4Address This property is required. string
The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
ipv4Netmask This property is required. number
The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
ipv6Address This property is required. string
The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
ipv6Netmask This property is required. number
The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
dns_domain This property is required. str
A DNS search domain to add to the DNS configuration on the virtual machine.
dns_server_lists This property is required. Sequence[str]
Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
ipv4_address This property is required. str
The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
ipv4_netmask This property is required. int
The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
ipv6_address This property is required. str
The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
ipv6_netmask This property is required. int
The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.
dnsDomain This property is required. String
A DNS search domain to add to the DNS configuration on the virtual machine.
dnsServerLists This property is required. List<String>
Network-interface specific DNS settings for Windows operating systems. Ignored on Linux.
ipv4Address This property is required. String
The IPv4 address assigned to this network adapter. If left blank, DHCP is used.
ipv4Netmask This property is required. Number
The IPv4 CIDR netmask for the supplied IP address. Ignored if DHCP is selected.
ipv6Address This property is required. String
The IPv6 address assigned to this network adapter. If left blank, default auto-configuration is used.
ipv6Netmask This property is required. Number
The IPv6 CIDR netmask for the supplied IP address. Ignored if auto-configuration is selected.

GetGuestOsCustomizationSpecWindowsOption

AdminPassword This property is required. string
The new administrator password for this virtual machine.
AutoLogon This property is required. bool
Specifies whether or not the guest operating system automatically logs on as Administrator.
AutoLogonCount This property is required. int
Specifies how many times the guest operating system should auto-logon the Administrator account when auto_logon is true.
ComputerName This property is required. string
The hostname for this virtual machine.
DomainAdminUser This property is required. string
The user account of the domain administrator used to join this virtual machine to the domain.
DomainOu This property is required. string
The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
JoinDomain This property is required. string
The Active Directory domain for the virtual machine to join.
RunOnceCommandLists This property is required. List<string>
A list of commands to run at first user logon, after guest customization.
TimeZone This property is required. int
The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
Workgroup This property is required. string
The workgroup for this virtual machine if not joining an Active Directory domain.
DomainAdminPassword string
The user account used to join this virtual machine to the Active Directory domain.
AdminPassword This property is required. string
The new administrator password for this virtual machine.
AutoLogon This property is required. bool
Specifies whether or not the guest operating system automatically logs on as Administrator.
AutoLogonCount This property is required. int
Specifies how many times the guest operating system should auto-logon the Administrator account when auto_logon is true.
ComputerName This property is required. string
The hostname for this virtual machine.
DomainAdminUser This property is required. string
The user account of the domain administrator used to join this virtual machine to the domain.
DomainOu This property is required. string
The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
JoinDomain This property is required. string
The Active Directory domain for the virtual machine to join.
RunOnceCommandLists This property is required. []string
A list of commands to run at first user logon, after guest customization.
TimeZone This property is required. int
The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
Workgroup This property is required. string
The workgroup for this virtual machine if not joining an Active Directory domain.
DomainAdminPassword string
The user account used to join this virtual machine to the Active Directory domain.
adminPassword This property is required. String
The new administrator password for this virtual machine.
autoLogon This property is required. Boolean
Specifies whether or not the guest operating system automatically logs on as Administrator.
autoLogonCount This property is required. Integer
Specifies how many times the guest operating system should auto-logon the Administrator account when auto_logon is true.
computerName This property is required. String
The hostname for this virtual machine.
domainAdminUser This property is required. String
The user account of the domain administrator used to join this virtual machine to the domain.
domainOu This property is required. String
The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
joinDomain This property is required. String
The Active Directory domain for the virtual machine to join.
runOnceCommandLists This property is required. List<String>
A list of commands to run at first user logon, after guest customization.
timeZone This property is required. Integer
The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
workgroup This property is required. String
The workgroup for this virtual machine if not joining an Active Directory domain.
domainAdminPassword String
The user account used to join this virtual machine to the Active Directory domain.
adminPassword This property is required. string
The new administrator password for this virtual machine.
autoLogon This property is required. boolean
Specifies whether or not the guest operating system automatically logs on as Administrator.
autoLogonCount This property is required. number
Specifies how many times the guest operating system should auto-logon the Administrator account when auto_logon is true.
computerName This property is required. string
The hostname for this virtual machine.
domainAdminUser This property is required. string
The user account of the domain administrator used to join this virtual machine to the domain.
domainOu This property is required. string
The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
joinDomain This property is required. string
The Active Directory domain for the virtual machine to join.
runOnceCommandLists This property is required. string[]
A list of commands to run at first user logon, after guest customization.
timeZone This property is required. number
The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
workgroup This property is required. string
The workgroup for this virtual machine if not joining an Active Directory domain.
domainAdminPassword string
The user account used to join this virtual machine to the Active Directory domain.
admin_password This property is required. str
The new administrator password for this virtual machine.
auto_logon This property is required. bool
Specifies whether or not the guest operating system automatically logs on as Administrator.
auto_logon_count This property is required. int
Specifies how many times the guest operating system should auto-logon the Administrator account when auto_logon is true.
computer_name This property is required. str
The hostname for this virtual machine.
domain_admin_user This property is required. str
The user account of the domain administrator used to join this virtual machine to the domain.
domain_ou This property is required. str
The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
join_domain This property is required. str
The Active Directory domain for the virtual machine to join.
run_once_command_lists This property is required. Sequence[str]
A list of commands to run at first user logon, after guest customization.
time_zone This property is required. int
The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
workgroup This property is required. str
The workgroup for this virtual machine if not joining an Active Directory domain.
domain_admin_password str
The user account used to join this virtual machine to the Active Directory domain.
adminPassword This property is required. String
The new administrator password for this virtual machine.
autoLogon This property is required. Boolean
Specifies whether or not the guest operating system automatically logs on as Administrator.
autoLogonCount This property is required. Number
Specifies how many times the guest operating system should auto-logon the Administrator account when auto_logon is true.
computerName This property is required. String
The hostname for this virtual machine.
domainAdminUser This property is required. String
The user account of the domain administrator used to join this virtual machine to the domain.
domainOu This property is required. String
The MachineObjectOU which specifies the full LDAP path name of the OU to which the virtual machine belongs.
joinDomain This property is required. String
The Active Directory domain for the virtual machine to join.
runOnceCommandLists This property is required. List<String>
A list of commands to run at first user logon, after guest customization.
timeZone This property is required. Number
The new time zone for the virtual machine. This is a sysprep-dictated timezone code.
workgroup This property is required. String
The workgroup for this virtual machine if not joining an Active Directory domain.
domainAdminPassword String
The user account used to join this virtual machine to the Active Directory domain.

Package Details

Repository
vSphere pulumi/pulumi-vsphere
License
Apache-2.0
Notes
This Pulumi package is based on the vsphere Terraform Provider.