1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Storage
  5. getDatastores
Proxmox Virtual Environment (Proxmox VE) v7.1.0 published on Saturday, May 24, 2025 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Storage.getDatastores

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v7.1.0 published on Saturday, May 24, 2025 by Daniel Muehlbachler-Pietrzykowski

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

    Using getDatastores

    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 getDatastores(args: GetDatastoresArgs, opts?: InvokeOptions): Promise<GetDatastoresResult>
    function getDatastoresOutput(args: GetDatastoresOutputArgs, opts?: InvokeOptions): Output<GetDatastoresResult>
    def get_datastores(datastores: Optional[Sequence[GetDatastoresDatastore]] = None,
                       filters: Optional[GetDatastoresFilters] = None,
                       node_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDatastoresResult
    def get_datastores_output(datastores: Optional[pulumi.Input[Sequence[pulumi.Input[GetDatastoresDatastoreArgs]]]] = None,
                       filters: Optional[pulumi.Input[GetDatastoresFiltersArgs]] = None,
                       node_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDatastoresResult]
    func GetDatastores(ctx *Context, args *GetDatastoresArgs, opts ...InvokeOption) (*GetDatastoresResult, error)
    func GetDatastoresOutput(ctx *Context, args *GetDatastoresOutputArgs, opts ...InvokeOption) GetDatastoresResultOutput

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

    public static class GetDatastores 
    {
        public static Task<GetDatastoresResult> InvokeAsync(GetDatastoresArgs args, InvokeOptions? opts = null)
        public static Output<GetDatastoresResult> Invoke(GetDatastoresInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatastoresResult> getDatastores(GetDatastoresArgs args, InvokeOptions options)
    public static Output<GetDatastoresResult> getDatastores(GetDatastoresArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:Storage/getDatastores:getDatastores
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NodeName string
    The name of the node to retrieve the stores from.
    Datastores List<Pulumi.ProxmoxVE.Storage.Inputs.GetDatastoresDatastore>
    The list of datastores.
    Filters Pulumi.ProxmoxVE.Storage.Inputs.GetDatastoresFilters
    The filters to apply to the stores.
    NodeName string
    The name of the node to retrieve the stores from.
    Datastores []GetDatastoresDatastore
    The list of datastores.
    Filters GetDatastoresFilters
    The filters to apply to the stores.
    nodeName String
    The name of the node to retrieve the stores from.
    datastores List<GetDatastoresDatastore>
    The list of datastores.
    filters GetDatastoresFilters
    The filters to apply to the stores.
    nodeName string
    The name of the node to retrieve the stores from.
    datastores GetDatastoresDatastore[]
    The list of datastores.
    filters GetDatastoresFilters
    The filters to apply to the stores.
    node_name str
    The name of the node to retrieve the stores from.
    datastores Sequence[GetDatastoresDatastore]
    The list of datastores.
    filters GetDatastoresFilters
    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.

    getDatastores 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.Storage.Outputs.GetDatastoresDatastore>
    The list of datastores.
    Filters Pulumi.ProxmoxVE.Storage.Outputs.GetDatastoresFilters
    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 []GetDatastoresDatastore
    The list of datastores.
    Filters GetDatastoresFilters
    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<GetDatastoresDatastore>
    The list of datastores.
    filters GetDatastoresFilters
    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 GetDatastoresDatastore[]
    The list of datastores.
    filters GetDatastoresFilters
    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[GetDatastoresDatastore]
    The list of datastores.
    filters GetDatastoresFilters
    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

    GetDatastoresDatastore

    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).

    GetDatastoresFilters

    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 node_name, 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 node_name, 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 node_name, 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 node_name, 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 node_name, 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 node_name, 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
    Proxmox Virtual Environment (Proxmox VE) v7.1.0 published on Saturday, May 24, 2025 by Daniel Muehlbachler-Pietrzykowski