1. Packages
  2. Packages
  3. Proxmox Virtual Environment (Proxmox VE)
  4. API Docs
  5. getVm2Legacy
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
proxmoxve logo
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski

    Deprecated: Use proxmoxve.Vm instead. This data source will be removed in v1.0.

    Retrieves information about a specific VM.

    Using getVm2Legacy

    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 getVm2Legacy(args: GetVm2LegacyArgs, opts?: InvokeOptions): Promise<GetVm2LegacyResult>
    function getVm2LegacyOutput(args: GetVm2LegacyOutputArgs, opts?: InvokeOptions): Output<GetVm2LegacyResult>
    def get_vm2_legacy(id: Optional[int] = None,
                       node_name: Optional[str] = None,
                       timeouts: Optional[GetVm2LegacyTimeouts] = None,
                       opts: Optional[InvokeOptions] = None) -> GetVm2LegacyResult
    def get_vm2_legacy_output(id: Optional[pulumi.Input[int]] = None,
                       node_name: Optional[pulumi.Input[str]] = None,
                       timeouts: Optional[pulumi.Input[GetVm2LegacyTimeoutsArgs]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetVm2LegacyResult]
    func LookupVm2Legacy(ctx *Context, args *LookupVm2LegacyArgs, opts ...InvokeOption) (*LookupVm2LegacyResult, error)
    func LookupVm2LegacyOutput(ctx *Context, args *LookupVm2LegacyOutputArgs, opts ...InvokeOption) LookupVm2LegacyResultOutput

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

    public static class GetVm2Legacy 
    {
        public static Task<GetVm2LegacyResult> InvokeAsync(GetVm2LegacyArgs args, InvokeOptions? opts = null)
        public static Output<GetVm2LegacyResult> Invoke(GetVm2LegacyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVm2LegacyResult> getVm2Legacy(GetVm2LegacyArgs args, InvokeOptions options)
    public static Output<GetVm2LegacyResult> getVm2Legacy(GetVm2LegacyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:index/getVm2Legacy:getVm2Legacy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    The unique identifier of the VM in the Proxmox cluster.
    NodeName string
    The name of the node where the VM is provisioned.
    Timeouts Pulumi.ProxmoxVE.Inputs.GetVm2LegacyTimeouts
    Id int
    The unique identifier of the VM in the Proxmox cluster.
    NodeName string
    The name of the node where the VM is provisioned.
    Timeouts GetVm2LegacyTimeouts
    id Integer
    The unique identifier of the VM in the Proxmox cluster.
    nodeName String
    The name of the node where the VM is provisioned.
    timeouts GetVm2LegacyTimeouts
    id number
    The unique identifier of the VM in the Proxmox cluster.
    nodeName string
    The name of the node where the VM is provisioned.
    timeouts GetVm2LegacyTimeouts
    id int
    The unique identifier of the VM in the Proxmox cluster.
    node_name str
    The name of the node where the VM is provisioned.
    timeouts GetVm2LegacyTimeouts
    id Number
    The unique identifier of the VM in the Proxmox cluster.
    nodeName String
    The name of the node where the VM is provisioned.
    timeouts Property Map

    getVm2Legacy Result

    The following output properties are available:

    Cdrom Dictionary<string, Pulumi.ProxmoxVE.Outputs.GetVm2LegacyCdrom>
    The CD-ROM configuration.
    Cpu Pulumi.ProxmoxVE.Outputs.GetVm2LegacyCpu
    The CPU configuration.
    Description string
    The description of the VM.
    Id int
    The unique identifier of the VM in the Proxmox cluster.
    Name string
    The name of the VM.
    NodeName string
    The name of the node where the VM is provisioned.
    Rng Pulumi.ProxmoxVE.Outputs.GetVm2LegacyRng
    The RNG (Random Number Generator) configuration.
    Status string
    The status of the VM (e.g., running, stopped).
    Tags List<string>
    The tags assigned to the VM.
    Template bool
    Whether the VM is a template.
    Vga Pulumi.ProxmoxVE.Outputs.GetVm2LegacyVga
    The VGA configuration.
    Timeouts Pulumi.ProxmoxVE.Outputs.GetVm2LegacyTimeouts
    Cdrom map[string]GetVm2LegacyCdrom
    The CD-ROM configuration.
    Cpu GetVm2LegacyCpu
    The CPU configuration.
    Description string
    The description of the VM.
    Id int
    The unique identifier of the VM in the Proxmox cluster.
    Name string
    The name of the VM.
    NodeName string
    The name of the node where the VM is provisioned.
    Rng GetVm2LegacyRng
    The RNG (Random Number Generator) configuration.
    Status string
    The status of the VM (e.g., running, stopped).
    Tags []string
    The tags assigned to the VM.
    Template bool
    Whether the VM is a template.
    Vga GetVm2LegacyVga
    The VGA configuration.
    Timeouts GetVm2LegacyTimeouts
    cdrom Map<String,GetVm2LegacyCdrom>
    The CD-ROM configuration.
    cpu GetVm2LegacyCpu
    The CPU configuration.
    description String
    The description of the VM.
    id Integer
    The unique identifier of the VM in the Proxmox cluster.
    name String
    The name of the VM.
    nodeName String
    The name of the node where the VM is provisioned.
    rng GetVm2LegacyRng
    The RNG (Random Number Generator) configuration.
    status String
    The status of the VM (e.g., running, stopped).
    tags List<String>
    The tags assigned to the VM.
    template Boolean
    Whether the VM is a template.
    vga GetVm2LegacyVga
    The VGA configuration.
    timeouts GetVm2LegacyTimeouts
    cdrom {[key: string]: GetVm2LegacyCdrom}
    The CD-ROM configuration.
    cpu GetVm2LegacyCpu
    The CPU configuration.
    description string
    The description of the VM.
    id number
    The unique identifier of the VM in the Proxmox cluster.
    name string
    The name of the VM.
    nodeName string
    The name of the node where the VM is provisioned.
    rng GetVm2LegacyRng
    The RNG (Random Number Generator) configuration.
    status string
    The status of the VM (e.g., running, stopped).
    tags string[]
    The tags assigned to the VM.
    template boolean
    Whether the VM is a template.
    vga GetVm2LegacyVga
    The VGA configuration.
    timeouts GetVm2LegacyTimeouts
    cdrom Mapping[str, GetVm2LegacyCdrom]
    The CD-ROM configuration.
    cpu GetVm2LegacyCpu
    The CPU configuration.
    description str
    The description of the VM.
    id int
    The unique identifier of the VM in the Proxmox cluster.
    name str
    The name of the VM.
    node_name str
    The name of the node where the VM is provisioned.
    rng GetVm2LegacyRng
    The RNG (Random Number Generator) configuration.
    status str
    The status of the VM (e.g., running, stopped).
    tags Sequence[str]
    The tags assigned to the VM.
    template bool
    Whether the VM is a template.
    vga GetVm2LegacyVga
    The VGA configuration.
    timeouts GetVm2LegacyTimeouts
    cdrom Map<Property Map>
    The CD-ROM configuration.
    cpu Property Map
    The CPU configuration.
    description String
    The description of the VM.
    id Number
    The unique identifier of the VM in the Proxmox cluster.
    name String
    The name of the VM.
    nodeName String
    The name of the node where the VM is provisioned.
    rng Property Map
    The RNG (Random Number Generator) configuration.
    status String
    The status of the VM (e.g., running, stopped).
    tags List<String>
    The tags assigned to the VM.
    template Boolean
    Whether the VM is a template.
    vga Property Map
    The VGA configuration.
    timeouts Property Map

    Supporting Types

    GetVm2LegacyCdrom

    FileId string
    The file ID of the CD-ROM.
    FileId string
    The file ID of the CD-ROM.
    fileId String
    The file ID of the CD-ROM.
    fileId string
    The file ID of the CD-ROM.
    file_id str
    The file ID of the CD-ROM.
    fileId String
    The file ID of the CD-ROM.

    GetVm2LegacyCpu

    Affinity string
    List of host cores used to execute guest processes, for example: '0,5,8-11'
    Architecture string
    The CPU architecture.
    Cores int
    The number of CPU cores per socket.
    Flags List<string>
    Set of additional CPU flags.
    Limit double
    Limit of CPU usage.
    Numa bool
    Whether NUMA emulation is enabled.
    Sockets int
    The number of CPU sockets.
    Type string
    Emulated CPU type.
    Units int
    CPU weight for a VM
    Vcpus int
    Number of active vCPUs.
    Affinity string
    List of host cores used to execute guest processes, for example: '0,5,8-11'
    Architecture string
    The CPU architecture.
    Cores int
    The number of CPU cores per socket.
    Flags []string
    Set of additional CPU flags.
    Limit float64
    Limit of CPU usage.
    Numa bool
    Whether NUMA emulation is enabled.
    Sockets int
    The number of CPU sockets.
    Type string
    Emulated CPU type.
    Units int
    CPU weight for a VM
    Vcpus int
    Number of active vCPUs.
    affinity String
    List of host cores used to execute guest processes, for example: '0,5,8-11'
    architecture String
    The CPU architecture.
    cores Integer
    The number of CPU cores per socket.
    flags List<String>
    Set of additional CPU flags.
    limit Double
    Limit of CPU usage.
    numa Boolean
    Whether NUMA emulation is enabled.
    sockets Integer
    The number of CPU sockets.
    type String
    Emulated CPU type.
    units Integer
    CPU weight for a VM
    vcpus Integer
    Number of active vCPUs.
    affinity string
    List of host cores used to execute guest processes, for example: '0,5,8-11'
    architecture string
    The CPU architecture.
    cores number
    The number of CPU cores per socket.
    flags string[]
    Set of additional CPU flags.
    limit number
    Limit of CPU usage.
    numa boolean
    Whether NUMA emulation is enabled.
    sockets number
    The number of CPU sockets.
    type string
    Emulated CPU type.
    units number
    CPU weight for a VM
    vcpus number
    Number of active vCPUs.
    affinity str
    List of host cores used to execute guest processes, for example: '0,5,8-11'
    architecture str
    The CPU architecture.
    cores int
    The number of CPU cores per socket.
    flags Sequence[str]
    Set of additional CPU flags.
    limit float
    Limit of CPU usage.
    numa bool
    Whether NUMA emulation is enabled.
    sockets int
    The number of CPU sockets.
    type str
    Emulated CPU type.
    units int
    CPU weight for a VM
    vcpus int
    Number of active vCPUs.
    affinity String
    List of host cores used to execute guest processes, for example: '0,5,8-11'
    architecture String
    The CPU architecture.
    cores Number
    The number of CPU cores per socket.
    flags List<String>
    Set of additional CPU flags.
    limit Number
    Limit of CPU usage.
    numa Boolean
    Whether NUMA emulation is enabled.
    sockets Number
    The number of CPU sockets.
    type String
    Emulated CPU type.
    units Number
    CPU weight for a VM
    vcpus Number
    Number of active vCPUs.

    GetVm2LegacyRng

    MaxBytes int
    Maximum bytes of entropy allowed to get injected into the guest every period.
    Period int
    Period in milliseconds to limit entropy injection to the guest.
    Source string
    The entropy source for the RNG device.
    MaxBytes int
    Maximum bytes of entropy allowed to get injected into the guest every period.
    Period int
    Period in milliseconds to limit entropy injection to the guest.
    Source string
    The entropy source for the RNG device.
    maxBytes Integer
    Maximum bytes of entropy allowed to get injected into the guest every period.
    period Integer
    Period in milliseconds to limit entropy injection to the guest.
    source String
    The entropy source for the RNG device.
    maxBytes number
    Maximum bytes of entropy allowed to get injected into the guest every period.
    period number
    Period in milliseconds to limit entropy injection to the guest.
    source string
    The entropy source for the RNG device.
    max_bytes int
    Maximum bytes of entropy allowed to get injected into the guest every period.
    period int
    Period in milliseconds to limit entropy injection to the guest.
    source str
    The entropy source for the RNG device.
    maxBytes Number
    Maximum bytes of entropy allowed to get injected into the guest every period.
    period Number
    Period in milliseconds to limit entropy injection to the guest.
    source String
    The entropy source for the RNG device.

    GetVm2LegacyTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.

    GetVm2LegacyVga

    Clipboard string
    Enable a specific clipboard.
    Memory int
    The VGA memory in megabytes (4-512 MB). Has no effect with serial display.
    Type string
    The VGA type.
    Clipboard string
    Enable a specific clipboard.
    Memory int
    The VGA memory in megabytes (4-512 MB). Has no effect with serial display.
    Type string
    The VGA type.
    clipboard String
    Enable a specific clipboard.
    memory Integer
    The VGA memory in megabytes (4-512 MB). Has no effect with serial display.
    type String
    The VGA type.
    clipboard string
    Enable a specific clipboard.
    memory number
    The VGA memory in megabytes (4-512 MB). Has no effect with serial display.
    type string
    The VGA type.
    clipboard str
    Enable a specific clipboard.
    memory int
    The VGA memory in megabytes (4-512 MB). Has no effect with serial display.
    type str
    The VGA type.
    clipboard String
    Enable a specific clipboard.
    memory Number
    The VGA memory in megabytes (4-512 MB). Has no effect with serial display.
    type String
    The VGA type.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
    published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.