title | linkTitle | page_title | subcategory | description |
---|---|---|---|---|
powerflex_firmware_repository data source |
powerflex_firmware_repository |
powerflex_firmware_repository Data Source - powerflex |
This datasource is used to query the existing firmware repository from the PowerFlex array. The information fetched from this datasource can be used for getting the necessary details regarding the bundles and their components in that firmware repository. |
This datasource is used to query the existing firmware repository from the PowerFlex array. The information fetched from this datasource can be used for getting the necessary details regarding the bundles and their components in that firmware repository.
/*
Copyright (c) 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.
*/
# Example for fetching details of the firmware repository using names
data "powerflex_firmware_repository" "all" {
}
output "powerflex_firmware_repository_all_result" {
value = data.powerflex_firmware_repository.all.firmware_repository_details
}
# if a filter is of type string it has the ability to allow regular expressions
# data "powerflex_firmware_repository" "firmware_repository_filter_regex" {
# filter{
# name = ["^System_.*$"]
# disk_location = ["^https://powerflex.*$"]
# }
# }
# output "firmwareRepositoryFilterRegexResult"{
# value = data.powerflex_firmware_repository.firmware_repository_filter_regex.firmware_repository_details
# }
// If multiple filter fields are provided then it will show the intersection of all of those fields.
// If there is no intersection between the filters then an empty datasource will be returned
// For more information about how we do our datasource filtering check out our guides: https://dell.github.io/terraform-docs/docs/storage/platforms/powerflex/product_guide/examples/
data "powerflex_firmware_repository" "filter" {
filter {
#id = ["ID1", "ID2"]
# name = ["Name1", "Name2"]
# source_location = ["SourceLocation1", "SourceLocation2"]
# source_type = ["SourceType1", "SourceType2"]
# disk_location = ["DiskLocation1", "DiskLocation2"]
# filename = ["Filename1", "Filename2"]
# username = ["Username1", "Username2"]
# download_status = ["DownloadStatus1", "DownloadStatus2"]
# created_date = ["CreatedDate1", "CreatedDate2"]
# created_by = ["CreatedBy1", "CreatedBy2"]
# updated_date = ["UpdatedDate1", "UpdatedDate2"]
# updated_by = ["UpdatedBy1", "UpdatedBy2"]
# default_catalog = false
# embedded = false
# state = ["state1", "state2"]
# bundle_count = [10, 11]
# component_count = [1, 2]
# user_bundle_count = [1, 2]
# minimal = false
# download_progress = [1, 2]
# extract_progress = [1, 2]
# signature = ["Signature1", "Signature2"]
# custom = false
# needs_attention = false
# job_id = ["JobID1", "JobID2"]
# rcmapproved = false
}
}
output "powerflex_firmware_repository_filtered_result" {
value = data.powerflex_firmware_repository.filter.firmware_repository_details
}
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_firmware_repository.datasource_block_name.attribute_name
where datasource_block_name is the name of the data source block and attribute_name is the attribute which user wants to fetch.
filter
(Block, Optional) (see below for nested schema)
firmware_repository_details
(Attributes List) Firmware Repository details (see below for nested schema)id
(String) Placeholder firmware repository datasource id.
Optional:
bundle_count
(Set of Number) List of bundle_countcomponent_count
(Set of Number) List of component_countcreated_by
(Set of String) List of created_bycreated_date
(Set of String) List of created_datecustom
(Boolean) Value for customdefault_catalog
(Boolean) Value for default_catalogdisk_location
(Set of String) List of disk_locationdownload_progress
(Set of Number) List of download_progressdownload_status
(Set of String) List of download_statusembedded
(Boolean) Value for embeddedextract_progress
(Set of Number) List of extract_progressfilename
(Set of String) List of filenameid
(Set of String) List of idjob_id
(Set of String) List of job_idminimal
(Boolean) Value for minimalname
(Set of String) List of nameneeds_attention
(Boolean) Value for needs_attentionrcmapproved
(Boolean) Value for rcmapprovedsignature
(Set of String) List of signaturesource_location
(Set of String) List of source_locationsource_type
(Set of String) List of source_typestate
(Set of String) List of stateupdated_by
(Set of String) List of updated_byupdated_date
(Set of String) List of updated_dateuser_bundle_count
(Set of Number) List of user_bundle_countusername
(Set of String) List of username
Read-Only:
bundle_count
(Number) Bundle Countcomponent_count
(Number) Component Countcreated_by
(String) Created Bycreated_date
(String) Created Datecustom
(Boolean) Customdefault_catalog
(Boolean) Default Catalogdisk_location
(String) Disk Locationdownload_progress
(Number) Download Progressdownload_status
(String) Download Statusembedded
(Boolean) Embeddedextract_progress
(Number) Extract Progressfile_size_in_gigabytes
(Number) File Size In Gigabytesfilename
(String) Filenameid
(String) ID of the Firmware Repositoryjob_id
(String) Job IDminimal
(Boolean) Minimalname
(String) Firmware Repository nameneeds_attention
(Boolean) Needs Attentionpassword
(String) Passwordrcmapproved
(Boolean) Rcmapprovedsignature
(String) Signaturesoftware_bundles
(Attributes List) Software Bundles (see below for nested schema)software_components
(Attributes List) Software Components (see below for nested schema)source_location
(String) Source Locationsource_type
(String) Source Typestate
(String) Stateupdated_by
(String) Updated Byupdated_date
(String) Updated Dateuser_bundle_count
(Number) User Bundle Countusername
(String) Username
Read-Only:
bundle_date
(String) Bundle Datebundle_type
(String) Bundle Typecreated_by
(String) Created Bycreated_date
(String) Created Datecustom
(Boolean) Customdescription
(String) Descriptiondevice_model
(String) Device Modeldevice_type
(String) Device Typefw_repository_id
(String) Fw Repository IDid
(String) IDname
(String) Nameneeds_attention
(Boolean) Needs Attentionsoftware_components
(Attributes List) Software Components (see below for nested schema)updated_by
(String) Updated Byupdated_date
(String) Updated Dateuser_bundle
(Boolean) User Bundleuser_bundle_path
(String) User Bundle Pathversion
(String) Version
Read-Only:
category
(String) Categorycomponent_id
(String) Component IDcomponent_type
(String) Component Typecreated_by
(String) Created Bycreated_date
(String) Created Datecustom
(Boolean) Customdell_version
(String) Dell Versiondevice_id
(String) Device IDfirmware_repo_name
(String) Firmware Repo Namehash_md5
(String) Hash Md5id
(String) IDignore
(Boolean) Ignorename
(String) Nameneeds_attention
(Boolean) Needs Attentionoperating_system
(String) Operating Systemoriginal_component_id
(String) Original Component IDpackage_id
(String) Package IDpath
(String) Pathsub_device_id
(String) Sub Device IDsub_vendor_id
(String) Sub Vendor IDsystem_ids
(List of String) System IDsupdated_by
(String) Updated Byupdated_date
(String) Updated Datevendor_id
(String) Vendor IDvendor_version
(String) Vendor Version
Read-Only:
category
(String) Categorycomponent_id
(String) Component IDcomponent_type
(String) Component Typecreated_by
(String) Created Bycreated_date
(String) Created Datecustom
(Boolean) Customdell_version
(String) Dell Versiondevice_id
(String) Device IDfirmware_repo_name
(String) Firmware Repo Namehash_md5
(String) Hash Md5id
(String) IDignore
(Boolean) Ignorename
(String) Nameneeds_attention
(Boolean) Needs Attentionoperating_system
(String) Operating Systemoriginal_component_id
(String) Original Component IDpackage_id
(String) Package IDpath
(String) Pathsub_device_id
(String) Sub Device IDsub_vendor_id
(String) Sub Vendor IDsystem_ids
(List of String) System IDsupdated_by
(String) Updated Byupdated_date
(String) Updated Datevendor_id
(String) Vendor IDvendor_version
(String) Vendor Version