objectscale_vdc data source
objectscale_vdc (Data Source)
This datasource can be used to fetch details of Virtual Data Centers 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 all VDCs
data "objectscale_vdc" "all" {
}
# Example: Get VDC by name
data "objectscale_vdc" "name" {
name = "vdc1"
}
# Example: Get the local VDC
data "objectscale_vdc" "local" {
local = true
}
# Example: Get VDC by ID
data "objectscale_vdc" "id" {
id = "urn:storageos:VirtualDataCenterData:1fcdfca4-4d0f-4a0a-b16a-d7aee4aa99a7"
}
Schema
Optional
id(String) Identifier of the VDC to be fetched.local(Boolean) Whether to fetch the local VDC.name(String) Name of the VDC to be fetched.
Read-Only
vdcs(Attributes List) List of Virtual Data Centers fetched using this datasource. (see below for nested schema)
Nested Schema for vdcs
Read-Only:
creation_time(Number) Timestamp when this resource was created in ECSglobal(Boolean) Indicates whether the resource is globalhosted(Boolean) Indicates whether the VDC is hostedid(String) Unique, immutable identifier generated by ECS for this resourceinactive(Boolean) Indicates whether the resource is inactive (pre-removal state)inter_vdc_cmd_end_points(String) VDC cmd end pointsinter_vdc_end_points(String) VDC end pointsinternal(Boolean) Indicates whether the resource is an internal resourceis_encryption_enabled(Boolean) True if this VDC is enabled for encryption, false otherwiselocal(Boolean) True if this VDC is local, false otherwisemanagement_end_points(String) The management end points for the VDCname(String) Name assigned to this resource in ECS (name-defined, not unique)permanently_failed(Boolean) True if VDC is permanently failed, false otherwiseremote(Boolean) Indicates whether the resource is remotesecret_keys(String) Secret key for this VDCvdc_id(String) VDC idvdc_name(String) VDC name