powerflex_sdc (Data Source)

This data-source can be used to fetch information related to Storage Data Clients from a PowerFlex array.

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

Example Usage

# 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
}
# # -----------------------------------------------------------------------------------

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.