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 required
  • device_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 required
  • device_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 Status
  • component_compliance_reports (Attributes List) Component Compliance Reports (see below for nested schema)
  • device_firmware_update_capable (Boolean) Device Firmware Update Capable
  • device_id (Number) Device Id
  • device_model (String) Device Model
  • device_name (String) Device Name
  • device_type_id (Number) Device Type Id
  • device_type_name (String) Device Type Name
  • device_user_firmware_update_capable (Boolean) Device User Firmware Update Capable
  • firmware_status (String) Firmware Status
  • id (Number) Id
  • reboot_required (Boolean) Reboot Required
  • service_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 Status
  • component_type (String) Component Type
  • criticality (String) Criticality
  • current_version (String) Current Version
  • dependency_upgrade_required (Boolean) Dependency Upgrade Required
  • id (Number) Id
  • impact_assessment (String) Impact Assessment
  • name (String) Name
  • path (String) Path
  • prerequisite_info (String) Prerequisite Info
  • reboot_required (Boolean) Reboot Required
  • source_name (String) Source Name
  • target_identifier (String) Target Identifer
  • unique_identifier (String) Unique Identifier
  • update_action (String) Update Action
  • uri (String) Uri
  • version (String) Version

Nested Schema for device_compliance_reports.component_compliance_reports.compliance_dependencies

Read-Only:

  • compliance_dependency_id (Number) Compliance Dependency Id
  • is_hard_dependency (Boolean) Is Hard Dependency
  • name (String) Name
  • path (String) Path
  • reboot_required (Boolean) Reboot Required
  • source_name (String) Source Name
  • unique_identifier (String) Unique Identifier
  • update_action (String) Update Action
  • uri (String) Uri
  • version (String) Version