1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. getDatastoresLegacy
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

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

    Retrieves information about all the datastores available to a specific node.

    Using getDatastoresLegacy

    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 getDatastoresLegacy(args: GetDatastoresLegacyArgs, opts?: InvokeOptions): Promise<GetDatastoresLegacyResult>
    function getDatastoresLegacyOutput(args: GetDatastoresLegacyOutputArgs, opts?: InvokeOptions): Output<GetDatastoresLegacyResult>
    def get_datastores_legacy(datastores: Optional[Sequence[GetDatastoresLegacyDatastore]] = None,
                              filters: Optional[GetDatastoresLegacyFilters] = None,
                              node_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetDatastoresLegacyResult
    def get_datastores_legacy_output(datastores: Optional[pulumi.Input[Sequence[pulumi.Input[GetDatastoresLegacyDatastoreArgs]]]] = None,
                              filters: Optional[pulumi.Input[GetDatastoresLegacyFiltersArgs]] = None,
                              node_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetDatastoresLegacyResult]
    func GetDatastoresLegacy(ctx *Context, args *GetDatastoresLegacyArgs, opts ...InvokeOption) (*GetDatastoresLegacyResult, error)
    func GetDatastoresLegacyOutput(ctx *Context, args *GetDatastoresLegacyOutputArgs, opts ...InvokeOption) GetDatastoresLegacyResultOutput

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

    public static class GetDatastoresLegacy 
    {
        public static Task<GetDatastoresLegacyResult> InvokeAsync(GetDatastoresLegacyArgs args, InvokeOptions? opts = null)
        public static Output<GetDatastoresLegacyResult> Invoke(GetDatastoresLegacyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatastoresLegacyResult> getDatastoresLegacy(GetDatastoresLegacyArgs args, InvokeOptions options)
    public static Output<GetDatastoresLegacyResult> getDatastoresLegacy(GetDatastoresLegacyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:index/getDatastoresLegacy:getDatastoresLegacy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NodeName string
    The name of the node to retrieve the stores from.
    Datastores List<Pulumi.ProxmoxVE.Inputs.GetDatastoresLegacyDatastore>
    The list of datastores.
    Filters Pulumi.ProxmoxVE.Inputs.GetDatastoresLegacyFilters
    The filters to apply to the stores.
    NodeName string
    The name of the node to retrieve the stores from.
    Datastores []GetDatastoresLegacyDatastore
    The list of datastores.
    Filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    nodeName String
    The name of the node to retrieve the stores from.
    datastores List<GetDatastoresLegacyDatastore>
    The list of datastores.
    filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    nodeName string
    The name of the node to retrieve the stores from.
    datastores GetDatastoresLegacyDatastore[]
    The list of datastores.
    filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    node_name str
    The name of the node to retrieve the stores from.
    datastores Sequence[GetDatastoresLegacyDatastore]
    The list of datastores.
    filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    nodeName String
    The name of the node to retrieve the stores from.
    datastores List<Property Map>
    The list of datastores.
    filters Property Map
    The filters to apply to the stores.

    getDatastoresLegacy Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NodeName string
    The name of the node to retrieve the stores from.
    Datastores List<Pulumi.ProxmoxVE.Outputs.GetDatastoresLegacyDatastore>
    The list of datastores.
    Filters Pulumi.ProxmoxVE.Outputs.GetDatastoresLegacyFilters
    The filters to apply to the stores.
    Id string
    The provider-assigned unique ID for this managed resource.
    NodeName string
    The name of the node to retrieve the stores from.
    Datastores []GetDatastoresLegacyDatastore
    The list of datastores.
    Filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    id String
    The provider-assigned unique ID for this managed resource.
    nodeName String
    The name of the node to retrieve the stores from.
    datastores List<GetDatastoresLegacyDatastore>
    The list of datastores.
    filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    id string
    The provider-assigned unique ID for this managed resource.
    nodeName string
    The name of the node to retrieve the stores from.
    datastores GetDatastoresLegacyDatastore[]
    The list of datastores.
    filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    id str
    The provider-assigned unique ID for this managed resource.
    node_name str
    The name of the node to retrieve the stores from.
    datastores Sequence[GetDatastoresLegacyDatastore]
    The list of datastores.
    filters GetDatastoresLegacyFilters
    The filters to apply to the stores.
    id String
    The provider-assigned unique ID for this managed resource.
    nodeName String
    The name of the node to retrieve the stores from.
    datastores List<Property Map>
    The list of datastores.
    filters Property Map
    The filters to apply to the stores.

    Supporting Types

    GetDatastoresLegacyDatastore

    ContentTypes List<string>
    Allowed store content types.
    Id string
    The ID of the store.
    NodeName string
    The name of the node the store is on.
    Type string
    Store type.
    Active bool
    Whether the store is active.
    Enabled bool
    Whether the store is enabled.
    Shared bool
    Shared flag from store configuration.
    SpaceAvailable int
    Available store space in bytes.
    SpaceTotal int
    Total store space in bytes.
    SpaceUsed int
    Used store space in bytes.
    SpaceUsedFraction double
    Used fraction (used/total).
    ContentTypes []string
    Allowed store content types.
    Id string
    The ID of the store.
    NodeName string
    The name of the node the store is on.
    Type string
    Store type.
    Active bool
    Whether the store is active.
    Enabled bool
    Whether the store is enabled.
    Shared bool
    Shared flag from store configuration.
    SpaceAvailable int
    Available store space in bytes.
    SpaceTotal int
    Total store space in bytes.
    SpaceUsed int
    Used store space in bytes.
    SpaceUsedFraction float64
    Used fraction (used/total).
    contentTypes List<String>
    Allowed store content types.
    id String
    The ID of the store.
    nodeName String
    The name of the node the store is on.
    type String
    Store type.
    active Boolean
    Whether the store is active.
    enabled Boolean
    Whether the store is enabled.
    shared Boolean
    Shared flag from store configuration.
    spaceAvailable Integer
    Available store space in bytes.
    spaceTotal Integer
    Total store space in bytes.
    spaceUsed Integer
    Used store space in bytes.
    spaceUsedFraction Double
    Used fraction (used/total).
    contentTypes string[]
    Allowed store content types.
    id string
    The ID of the store.
    nodeName string
    The name of the node the store is on.
    type string
    Store type.
    active boolean
    Whether the store is active.
    enabled boolean
    Whether the store is enabled.
    shared boolean
    Shared flag from store configuration.
    spaceAvailable number
    Available store space in bytes.
    spaceTotal number
    Total store space in bytes.
    spaceUsed number
    Used store space in bytes.
    spaceUsedFraction number
    Used fraction (used/total).
    content_types Sequence[str]
    Allowed store content types.
    id str
    The ID of the store.
    node_name str
    The name of the node the store is on.
    type str
    Store type.
    active bool
    Whether the store is active.
    enabled bool
    Whether the store is enabled.
    shared bool
    Shared flag from store configuration.
    space_available int
    Available store space in bytes.
    space_total int
    Total store space in bytes.
    space_used int
    Used store space in bytes.
    space_used_fraction float
    Used fraction (used/total).
    contentTypes List<String>
    Allowed store content types.
    id String
    The ID of the store.
    nodeName String
    The name of the node the store is on.
    type String
    Store type.
    active Boolean
    Whether the store is active.
    enabled Boolean
    Whether the store is enabled.
    shared Boolean
    Shared flag from store configuration.
    spaceAvailable Number
    Available store space in bytes.
    spaceTotal Number
    Total store space in bytes.
    spaceUsed Number
    Used store space in bytes.
    spaceUsedFraction Number
    Used fraction (used/total).

    GetDatastoresLegacyFilters

    ContentTypes List<string>
    Only list stores with the given content types.
    Id string
    Only list stores with the given ID.
    Target string
    If target is different to nodeName, then only lists shared stores which content is accessible on this node and the specified target node.
    ContentTypes []string
    Only list stores with the given content types.
    Id string
    Only list stores with the given ID.
    Target string
    If target is different to nodeName, then only lists shared stores which content is accessible on this node and the specified target node.
    contentTypes List<String>
    Only list stores with the given content types.
    id String
    Only list stores with the given ID.
    target String
    If target is different to nodeName, then only lists shared stores which content is accessible on this node and the specified target node.
    contentTypes string[]
    Only list stores with the given content types.
    id string
    Only list stores with the given ID.
    target string
    If target is different to nodeName, then only lists shared stores which content is accessible on this node and the specified target node.
    content_types Sequence[str]
    Only list stores with the given content types.
    id str
    Only list stores with the given ID.
    target str
    If target is different to nodeName, then only lists shared stores which content is accessible on this node and the specified target node.
    contentTypes List<String>
    Only list stores with the given content types.
    id String
    Only list stores with the given ID.
    target String
    If target is different to nodeName, then only lists shared stores which content is accessible on this node and the specified target node.

    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.