ome_device_compliance_report (Data Source)
This Terraform DataSource is used to query compliance configuration report of a compliance template baseline data from OME. The information fetched from this data source can be used for getting the details / for further processing in resource block.
Example Usage
/*
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.
*/
// Get the details of the device compliance report from device id, service tag or group name
data "ome_device_compliance_report" "device_compliance_report_data" {
// This will get the device compliance report for devices based on the filters used.
// Only one of the below filters can be used at a time.
# device_ids = [10102]
# device_service_tags = ["HRPB0M3"]
# device_group_names = ["Servers"]
}
output "device_compliance_report_data" {
value = data.ome_device_compliance_report.device_compliance_report_data
}
After the successful execution of above said block, We can see the output value by executing terraform output
command.
Schema
Optional
device_group_names
(List of String) Group names is the list of group names that you want to that you want get the compliance report for. One of device_ids or device_service_tags or device_group_names is requireddevice_ids
(List of Number) Device Ids is the list of device ids that you want get the compliance report for. One of device_ids or device_service_tags or device_group_names is requireddevice_service_tags
(List of String) Device service tags is the list of device service tags that you want get the compliance report for. One of device_ids or device_service_tags or device_group_names is required
Read-Only
device_compliance_reports
(Attributes List) Reports fetched. (see below for nested schema)id
(Number) Dummy ID of the datasource.
Nested Schema for device_compliance_reports
Read-Only:
compliance_status
(String) Compliance Statuscomponent_compliance_reports
(Attributes List) Component Compliance Reports (see below for nested schema)device_firmware_update_capable
(Boolean) Device Firmware Update Capabledevice_id
(Number) Device Iddevice_model
(String) Device Modeldevice_name
(String) Device Namedevice_type_id
(Number) Device Type Iddevice_type_name
(String) Device Type Namedevice_user_firmware_update_capable
(Boolean) Device User Firmware Update Capablefirmware_status
(String) Firmware Statusid
(Number) Idreboot_required
(Boolean) Reboot Requiredservice_tag
(String) Service Tag
Nested Schema for device_compliance_reports.component_compliance_reports
Read-Only:
compliance_dependencies
(Attributes List) Compliance Dependencies (see below for nested schema)compliance_status
(String) Compliance Statuscomponent_type
(String) Component Typecriticality
(String) Criticalitycurrent_version
(String) Current Versiondependency_upgrade_required
(Boolean) Dependency Upgrade Requiredid
(Number) Idimpact_assessment
(String) Impact Assessmentname
(String) Namepath
(String) Pathprerequisite_info
(String) Prerequisite Inforeboot_required
(Boolean) Reboot Requiredsource_name
(String) Source Nametarget_identifier
(String) Target Identiferunique_identifier
(String) Unique Identifierupdate_action
(String) Update Actionuri
(String) Uriversion
(String) Version
Nested Schema for device_compliance_reports.component_compliance_reports.compliance_dependencies
Read-Only:
compliance_dependency_id
(Number) Compliance Dependency Idis_hard_dependency
(Boolean) Is Hard Dependencyname
(String) Namepath
(String) Pathreboot_required
(Boolean) Reboot Requiredsource_name
(String) Source Nameunique_identifier
(String) Unique Identifierupdate_action
(String) Update Actionuri
(String) Uriversion
(String) Version