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

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:
- Node
Name string - The name of the node to retrieve the stores from.
- Datastores
List<Pulumi.
Proxmox VE. Storage. Inputs. Get Datastores Datastore> - The list of datastores.
- Filters
Pulumi.
Proxmox VE. Storage. Inputs. Get Datastores Filters - The filters to apply to the stores.
- Node
Name string - The name of the node to retrieve the stores from.
- Datastores
[]Get
Datastores Datastore - The list of datastores.
- Filters
Get
Datastores Filters - The filters to apply to the stores.
- node
Name String - The name of the node to retrieve the stores from.
- datastores
List<Get
Datastores Datastore> - The list of datastores.
- filters
Get
Datastores Filters - The filters to apply to the stores.
- node
Name string - The name of the node to retrieve the stores from.
- datastores
Get
Datastores Datastore[] - The list of datastores.
- filters
Get
Datastores Filters - The filters to apply to the stores.
- node_
name str - The name of the node to retrieve the stores from.
- datastores
Sequence[Get
Datastores Datastore] - The list of datastores.
- filters
Get
Datastores Filters - The filters to apply to the stores.
- node
Name 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.
- Node
Name string - The name of the node to retrieve the stores from.
- Datastores
List<Pulumi.
Proxmox VE. Storage. Outputs. Get Datastores Datastore> - The list of datastores.
- Filters
Pulumi.
Proxmox VE. Storage. Outputs. Get Datastores Filters - The filters to apply to the stores.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Name string - The name of the node to retrieve the stores from.
- Datastores
[]Get
Datastores Datastore - The list of datastores.
- Filters
Get
Datastores Filters - The filters to apply to the stores.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Name String - The name of the node to retrieve the stores from.
- datastores
List<Get
Datastores Datastore> - The list of datastores.
- filters
Get
Datastores Filters - The filters to apply to the stores.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Name string - The name of the node to retrieve the stores from.
- datastores
Get
Datastores Datastore[] - The list of datastores.
- filters
Get
Datastores Filters - 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[Get
Datastores Datastore] - The list of datastores.
- filters
Get
Datastores Filters - The filters to apply to the stores.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Name 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
- Content
Types List<string> - Allowed store content types.
- Id string
- The ID of the store.
- Node
Name 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.
- 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 doubleFraction - Used fraction (used/total).
- Content
Types []string - Allowed store content types.
- Id string
- The ID of the store.
- Node
Name 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.
- 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 float64Fraction - Used fraction (used/total).
- content
Types List<String> - Allowed store content types.
- id String
- The ID of the store.
- node
Name 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.
- Boolean
- Shared flag from store configuration.
- space
Available Integer - Available store space in bytes.
- space
Total Integer - Total store space in bytes.
- space
Used Integer - Used store space in bytes.
- space
Used DoubleFraction - Used fraction (used/total).
- content
Types string[] - Allowed store content types.
- id string
- The ID of the store.
- node
Name 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.
- boolean
- Shared flag from store configuration.
- space
Available number - Available store space in bytes.
- space
Total number - Total store space in bytes.
- space
Used number - Used store space in bytes.
- space
Used numberFraction - 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.
- 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_ floatfraction - Used fraction (used/total).
- content
Types List<String> - Allowed store content types.
- id String
- The ID of the store.
- node
Name 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.
- Boolean
- Shared flag from store configuration.
- space
Available Number - Available store space in bytes.
- space
Total Number - Total store space in bytes.
- space
Used Number - Used store space in bytes.
- space
Used NumberFraction - Used fraction (used/total).
GetDatastoresFilters
- Content
Types 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 tonode_name
, then only lists shared stores which content is accessible on this node and the specifiedtarget
node.
- Content
Types []string - Only list stores with the given content types.
- Id string
- Only list stores with the given ID.
- Target string
- If
target
is different tonode_name
, then only lists shared stores which content is accessible on this node and the specifiedtarget
node.
- content
Types 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 tonode_name
, then only lists shared stores which content is accessible on this node and the specifiedtarget
node.
- content
Types string[] - Only list stores with the given content types.
- id string
- Only list stores with the given ID.
- target string
- If
target
is different tonode_name
, then only lists shared stores which content is accessible on this node and the specifiedtarget
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 tonode_name
, then only lists shared stores which content is accessible on this node and the specifiedtarget
node.
- content
Types 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 tonode_name
, then only lists shared stores which content is accessible on this node and the specifiedtarget
node.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmox
Terraform Provider.

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