@truenas/api-client
    Preparing search index...

    Interface Container

    Unified Container type

    This interface provides a version-agnostic representation of a container. It normalizes the response from different API versions:

    • v25.10: virt.instance.query (filtered by type=CONTAINER)
    • v26+: container.query

    Components should use this type instead of version-specific response types.

    interface Container {
        autostart: boolean;
        cpu?: string;
        description?: string;
        id: string;
        image?: { description: string };
        memory?: number;
        name: string;
        status: AppState;
    }
    Index
    autostart: boolean
    cpu?: string
    description?: string
    id: string
    image?: { description: string }
    memory?: number
    name: string
    status: AppState