objectscale_storage_pool (Data Source)

This datasource can be used to fetch details of Storage Pools from Dell ObjectScale.

Example Usage

/*
Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved.

Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

# Example: Get storage pools on the local VDC
data "objectscale_vdc" "all" {
}

# Example: Get storage pools on a remote VDC
data "objectscale_vdc" "remote_vdc1" {
  name = "remote_vdc1"
}
data "objectscale_storage_pool" "by_name" {
  vdc_id = data.objectscale_vdc.remote_vdc1.vdcs[0].id
}

# Example: Get storage pool by name on the local VDC
data "objectscale_storage_pool" "by_name_local" {
  name = "sp1"
}

# Example: Get storage pool by name on a remote VDC
data "objectscale_vdc" "remote_vdc1" {
  name = "remote_vdc1"
}
data "objectscale_storage_pool" "by_name_remote" {
  name   = "remote_sp1"
  vdc_id = data.objectscale_vdc.remote_vdc1.vdcs[0].id
}

# Example: Get storage pool by ID
data "objectscale_storage_pool" "id" {
  id = "urn:storageos:VirtualArray:e7b72e23-4ee5-45c3-9e13-33b3c4c3c373"
}

Schema

Optional

  • id (String) Identifier of the Storage Pool to be fetched. Conflicts with vdc_id and name.
  • name (String) Name of the Storage Pool to be fetched. This is an offline filter. Conflicts with id.
  • vdc_id (String) ID of Virtual Datacenters from which Storage Pool(s) are to be fetched. If none given, the local VDC is used. Conflicts with id.

Read-Only

  • storage_pools (Attributes List) List of Storage Pools fetched using this datasource. (see below for nested schema)

Nested Schema for storage_pools

Read-Only:

  • critical_alert_at (Number) Threshold percent at which critical alert is raised. Valid values are from -1 to 100. Value of -1 means do not alert
  • description (String) Description
  • drive_technology (String) Drive technology of VArray
  • error_alert_at (Number) Threshold percent at which error alert is raised. Valid values are from -1 to 100. Value of -1 means do not alert
  • id (String) Storage pool id
  • is_cold_storage_enabled (Boolean) Flag indicating that cold storage encoding is enabled
  • label (String) Lbel of VArray
  • name (String) Storage pool name
  • number_of_code_blocks (Number) Number of Code Blocks in EC Scheme
  • number_of_data_blocks (Number) Number of Data Blocks in EC Scheme
  • status (Number) flag for status, -1 for null, 0 ~ 6 for value
  • warning_alert_at (Number) Threshold percent at which warning alert is raised. Valid values are from -1 to 100. Value of -1 means do not alert