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

    Retrieves information about a specific Container.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
    
    const testContainer = proxmoxve.getContainerLegacy({
        nodeName: "test",
        vmId: 100,
    });
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    test_container = proxmoxve.get_container_legacy(node_name="test",
        vm_id=100)
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := proxmoxve.GetContainerLegacy(ctx, &proxmoxve.LookupContainerLegacyArgs{
    			NodeName: "test",
    			VmId:     100,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ProxmoxVE = Pulumi.ProxmoxVE;
    
    return await Deployment.RunAsync(() => 
    {
        var testContainer = ProxmoxVE.Index.GetContainerLegacy.Invoke(new()
        {
            NodeName = "test",
            VmId = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(100) (example.pp:2,14-17)),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.proxmoxve.ProxmoxveFunctions;
    import com.pulumi.proxmoxve.inputs.GetContainerLegacyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testContainer = ProxmoxveFunctions.getContainerLegacy(GetContainerLegacyArgs.builder()
                .nodeName("test")
                .vmId(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(100) (example.pp:2,14-17)))
                .build());
    
        }
    }
    
    variables:
      testContainer:
        fn::invoke:
          function: proxmoxve:getContainerLegacy
          arguments:
            nodeName: test
            vmId: 100
    

    Using getContainerLegacy

    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 getContainerLegacy(args: GetContainerLegacyArgs, opts?: InvokeOptions): Promise<GetContainerLegacyResult>
    function getContainerLegacyOutput(args: GetContainerLegacyOutputArgs, opts?: InvokeOptions): Output<GetContainerLegacyResult>
    def get_container_legacy(node_name: Optional[str] = None,
                             status: Optional[str] = None,
                             template: Optional[bool] = None,
                             vm_id: Optional[int] = None,
                             opts: Optional[InvokeOptions] = None) -> GetContainerLegacyResult
    def get_container_legacy_output(node_name: Optional[pulumi.Input[str]] = None,
                             status: Optional[pulumi.Input[str]] = None,
                             template: Optional[pulumi.Input[bool]] = None,
                             vm_id: Optional[pulumi.Input[int]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetContainerLegacyResult]
    func LookupContainerLegacy(ctx *Context, args *LookupContainerLegacyArgs, opts ...InvokeOption) (*LookupContainerLegacyResult, error)
    func LookupContainerLegacyOutput(ctx *Context, args *LookupContainerLegacyOutputArgs, opts ...InvokeOption) LookupContainerLegacyResultOutput

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

    public static class GetContainerLegacy 
    {
        public static Task<GetContainerLegacyResult> InvokeAsync(GetContainerLegacyArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerLegacyResult> Invoke(GetContainerLegacyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerLegacyResult> getContainerLegacy(GetContainerLegacyArgs args, InvokeOptions options)
    public static Output<GetContainerLegacyResult> getContainerLegacy(GetContainerLegacyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:index/getContainerLegacy:getContainerLegacy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NodeName string
    The node name.
    VmId int
    The container identifier.
    Status string
    The status of the container.
    Template bool
    Whether the container is a template.
    NodeName string
    The node name.
    VmId int
    The container identifier.
    Status string
    The status of the container.
    Template bool
    Whether the container is a template.
    nodeName String
    The node name.
    vmId Integer
    The container identifier.
    status String
    The status of the container.
    template Boolean
    Whether the container is a template.
    nodeName string
    The node name.
    vmId number
    The container identifier.
    status string
    The status of the container.
    template boolean
    Whether the container is a template.
    node_name str
    The node name.
    vm_id int
    The container identifier.
    status str
    The status of the container.
    template bool
    Whether the container is a template.
    nodeName String
    The node name.
    vmId Number
    The container identifier.
    status String
    The status of the container.
    template Boolean
    Whether the container is a template.

    getContainerLegacy Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The container name.
    NodeName string
    Tags List<string>
    A list of tags of the container.
    VmId int
    Status string
    The status of the container.
    Template bool
    Whether the container is a template.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The container name.
    NodeName string
    Tags []string
    A list of tags of the container.
    VmId int
    Status string
    The status of the container.
    Template bool
    Whether the container is a template.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The container name.
    nodeName String
    tags List<String>
    A list of tags of the container.
    vmId Integer
    status String
    The status of the container.
    template Boolean
    Whether the container is a template.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The container name.
    nodeName string
    tags string[]
    A list of tags of the container.
    vmId number
    status string
    The status of the container.
    template boolean
    Whether the container is a template.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The container name.
    node_name str
    tags Sequence[str]
    A list of tags of the container.
    vm_id int
    status str
    The status of the container.
    template bool
    Whether the container is a template.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The container name.
    nodeName String
    tags List<String>
    A list of tags of the container.
    vmId Number
    status String
    The status of the container.
    template Boolean
    Whether the container is a template.

    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.0.0
    published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.