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

Nested Schema for vdcs

Read-Only:

  • creation_time (Number) Timestamp when this resource was created in ECS
  • global (Boolean) Indicates whether the resource is global
  • hosted (Boolean) Indicates whether the VDC is hosted
  • id (String) Unique, immutable identifier generated by ECS for this resource
  • inactive (Boolean) Indicates whether the resource is inactive (pre-removal state)
  • inter_vdc_cmd_end_points (String) VDC cmd end points
  • inter_vdc_end_points (String) VDC end points
  • internal (Boolean) Indicates whether the resource is an internal resource
  • is_encryption_enabled (Boolean) True if this VDC is enabled for encryption, false otherwise
  • local (Boolean) True if this VDC is local, false otherwise
  • management_end_points (String) The management end points for the VDC
  • name (String) Name assigned to this resource in ECS (name-defined, not unique)
  • permanently_failed (Boolean) True if VDC is permanently failed, false otherwise
  • remote (Boolean) Indicates whether the resource is remote
  • secret_keys (String) Secret key for this VDC
  • vdc_id (String) VDC id
  • vdc_name (String) VDC name