title | linkTitle | page_title | subcategory | description |
---|---|---|---|---|
powerflex_sdc data source |
powerflex_sdc |
powerflex_sdc Data Source - powerflex |
This data-source can be used to fetch information related to Storage Data Clients from a PowerFlex array. |
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.
/*
Copyright (c) 2023 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
}
# # -----------------------------------------------------------------------------------
id
(String) ID of the SDC to fetch. Conflicts withname
name
(String) Name of the SDC to fetch. Conflicts withid
sdcs
(Attributes List) List of fetched SDCs. (see below for nested schema)
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.