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 withvdc_idandname.name(String) Name of the Storage Pool to be fetched. This is an offline filter. Conflicts withid.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 withid.
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 alertdescription(String) Descriptiondrive_technology(String) Drive technology of VArrayerror_alert_at(Number) Threshold percent at which error alert is raised. Valid values are from -1 to 100. Value of -1 means do not alertid(String) Storage pool idis_cold_storage_enabled(Boolean) Flag indicating that cold storage encoding is enabledlabel(String) Lbel of VArrayname(String) Storage pool namenumber_of_code_blocks(Number) Number of Code Blocks in EC Schemenumber_of_data_blocks(Number) Number of Data Blocks in EC Schemestatus(Number) flag for status, -1 for null, 0 ~ 6 for valuewarning_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