powerflex_sdc (Data Source)

This datasource is used to query the existing Storage Data Clients from PowerFlex array. The information fetched from this datasource can be used for getting the details / for further processing in resource block.

Note: Only one of name and id can be provided at a time.

Example Usage

/*
Copyright (c) 2023-2024 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.
*/

# commands to run this tf file : terraform init && terraform apply --auto-approve
# Reads SDC either by name or by id , if provided
# If both name and id is not provided , then it reads all the SDC
# id and name can't be given together to fetch the SDC .
# id can't be empty

data "powerflex_sdc" "selected" {
  #id = "e3ce1fb500000000"
  name = "sdc_01"
}

# # Returns all sdcs matching criteria
output "allsdcresult" {
  value = data.powerflex_sdc.selected
}
# # -----------------------------------------------------------------------------------

After the successful execution of above said block, We can see the output by executing terraform output command. Also, we can fetch information via the variable: data.powerflex_sdc.selected.attribute_name where attribute_name is the attribute which user wants to fetch.

Schema

Optional

  • id (String) ID of the SDC to fetch. Conflicts with name
  • name (String) Name of the SDC to fetch. Conflicts with id

Read-Only

Nested Schema for sdcs

Read-Only:

  • id (String) The ID of the fetched SDC.
  • links (Attributes List) The Links of the fetched SDC. (see below for nested schema)
  • mdm_connection_state (String) The MDM connection status of the fetched SDC.
  • name (String) The name of the fetched SDC.
  • on_vmware (Boolean) If the fetched SDC is on vmware.
  • sdc_approved (Boolean) If the fetched SDC is approved.
  • sdc_guid (String) The GUID of the fetched SDC.
  • sdc_ip (String) The IP of the fetched SDC.
  • system_id (String) The System ID of the fetched SDC.

Read-Only:

  • href (String) The Links-HREF of the fetched SDC.
  • rel (String) The Links-Rel of the fetched SDC.