ome_application_certificate (Data Source)

This terraform DataSource is used to query the existing application certificate 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 application certificate information of ome
data "ome_application_certificate" "cert_info" {
}

output "fetched_cert" {
  value = {
    "valid_to" : data.ome_application_certificate.cert.valid_to,
    "valid_from" : data.ome_application_certificate.cert.valid_from,
    "issued_to_distinguished_name" : data.ome_application_certificate.cert.issued_to.distinguished_name,
    "issued_by_distinguished_name" : data.ome_application_certificate.cert.issued_by.distinguished_name
  }
}

After the successful execution of above said block, We can see the output value by executing terraform output command. Also, we can use the fetched information by the variable data.ome_application_certificate.cert_info

Schema

Read-Only

  • id (String) ID for application certificate data source.
  • issued_by (Attributes) List of the device servicetags associated with any of the groups. (see below for nested schema)
  • issued_to (Attributes) List of the device id(s) associated with any of the groups. (see below for nested schema)
  • valid_from (String) Map of the groups fetched keyed by its name.
  • valid_to (String) List of the device group names.

Nested Schema for issued_by

Optional:

  • distinguished_name (String) Distinguished Name.

Read-Only:

  • business_name (String) Business Name.
  • country (String) Country of the business.
  • department_name (String) Department Name.
  • email (String) Email address.
  • locality (String) Locality of the business.
  • state (String) State of the business.
  • subject_alternate_names (List of String) Subject Alternate names.

Nested Schema for issued_to

Optional:

  • distinguished_name (String) Distinguished Name.

Read-Only:

  • business_name (String) Business Name.
  • country (String) Country of the business.
  • department_name (String) Department Name.
  • email (String) Email address.
  • locality (String) Locality of the business.
  • state (String) State of the business.
  • subject_alternate_names (List of String) Subject Alternate names.