ome_firmware_catalog (Data Source)

This Terraform DataSource is used to query firmware catalog 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 details of all the firmware catalogs 
data "ome_firmware_catalog" "data-catalog" {
  # Can filter based on the catalog name
  # If at least one of the filtered names is invalid, the terraform command will return an error
  # If you want to get all catalogs remove the names filter completely
  names = ["example_catalog_1", "example_catalog_2"]
}

output "data-catalog" {
  value = data.ome_firmware_catalog.data-catalog
}

After the successful execution of above said block, We can see the output value by executing terraform output command.

Schema

Optional

  • names (Set of String) A list of catalog names which can filter the datasource

Read-Only

  • firmware_catalogs (Attributes List) Devices fetched. (see below for nested schema)
  • id (Number) Dummy ID of the datasource.

Nested Schema for firmware_catalogs

Read-Only:

  • associated_baselines (Attributes List) Associated Baselines. (see below for nested schema)
  • baseline_location (String) Baseline Location.
  • bundles_count (Number) Bundles Count.
  • create_date (String) Create Date.
  • filename (String) Filename.
  • id (Number) id.
  • last_update (String) Last Update.
  • manifest_identifier (String) Manifest Identifier.
  • manifest_version (String) Manifest Version.
  • next_update (String) Next Update.
  • owner_id (Number) Owner ID.
  • predcessor_identifier (String) Predcessor Identifier.
  • release_identifier (String) Release Identifier.
  • repository (Attributes) Repository. (see below for nested schema)
  • schedule (Attributes) Schedule. (see below for nested schema)
  • source_path (String) Source path.
  • status (String) Status.
  • task_id (Number) Task ID.

Nested Schema for firmware_catalogs.associated_baselines

Read-Only:

  • baseline_id (Number) Baseline ID.
  • baseline_name (String) Baseline Name.

Nested Schema for firmware_catalogs.repository

Read-Only:

  • backup_existing_catalog (Boolean) Backup Existing Catalog.
  • check_certificate (Boolean) Check Certificate.
  • description (String) Description.
  • domain_name (String) Domain Name.
  • editable (Boolean) Editable.
  • id (Number) ID.
  • name (String) Name.
  • repository_type (String) Repository Type.
  • source (String) Source.
  • username (String) Username.

Nested Schema for firmware_catalogs.schedule

Read-Only:

  • cron (String) Cron.
  • end_time (String) End Time.
  • run_later (Boolean) Run later.
  • run_now (Boolean) Run Now.
  • start_time (String) Start Time.