oci_opsi_opsi_configuration
This resource provides the Opsi Configuration resource in Oracle Cloud Infrastructure Opsi service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/operations-insights/latest/OpsiConfiguration
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/osi
Create an OPSI configuration resource.
Example Usage
resource "oci_opsi_opsi_configuration" "test_opsi_configuration" {
	#Required
	opsi_config_type = var.opsi_configuration_opsi_config_type
	#Optional
	compartment_id = var.compartment_id
	config_item_custom_status = var.opsi_configuration_config_item_custom_status
	config_item_field = var.opsi_configuration_config_item_field
	config_items {
		#Required
		config_item_type = var.opsi_configuration_config_items_config_item_type
		#Optional
		name = var.opsi_configuration_config_items_name
		value = var.opsi_configuration_config_items_value
	}
	config_items_applicable_context = var.opsi_configuration_config_items_applicable_context
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.opsi_configuration_description
	display_name = var.opsi_configuration_display_name
	freeform_tags = {"bar-key"= "value"}
	opsi_config_field = var.opsi_configuration_opsi_config_field
	system_tags = var.opsi_configuration_system_tags
}
Argument Reference
The following arguments are supported:
- compartment_id- (Optional) (Updatable) The OCID of the compartment.
- config_item_custom_status- (Optional) Specifies whether only customized configuration items or only non-customized configuration items or both have to be returned. By default only customized configuration items are returned.
- config_item_field- (Optional) Specifies the fields to return in a config item summary.
- config_items- (Optional) (Updatable) Array of configuration items with custom values. All and only configuration items requiring custom values should be part of this array.- config_item_type- (Required) (Updatable) Type of configuration item.
- name- (Optional) (Updatable) Name of configuration item.
- value- (Optional) (Updatable) Value of configuration item.
 
- config_items_applicable_context- (Optional) Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned.
- defined_tags- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:- {"foo-namespace.bar-key": "value"}
- description- (Optional) (Updatable) Description of OPSI configuration.
- display_name- (Optional) (Updatable) User-friendly display name for the OPSI configuration. The name does not have to be unique.
- freeform_tags- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:- {"bar-key": "value"}
- opsi_config_field- (Optional) Optional fields to return as part of OpsiConfiguration object. Unless requested, these fields will not be returned by default.
- opsi_config_type- (Required) (Updatable) OPSI configuration type.
- system_tags- (Optional) (Updatable) System tags for this resource. Each key is predefined and scoped to a namespace. Example:- {"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
- compartment_id- The OCID of the compartment.
- config_items- Array of configuration item summary objects.- applicable_contexts- List of contexts in Operations Insights where this configuration item is applicable.
- config_item_type- Type of configuration item.
- default_value- Value of configuration item.
- metadata- Configuration item metadata.- config_item_type- Type of configuration item.
- data_type- Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
- description- Description of configuration item .
- display_name- User-friendly display name for the configuration item.
- unit_details- Unit details of configuration item.- display_name- User-friendly display name for the configuration item unit.
- unit- Unit of configuration item.
 
- value_input_details- Allowed value details of configuration item, to validate what value can be assigned to a configuration item.- allowed_value_type- Allowed value type of configuration item.
- max_value- Maximum value limit for the configuration item.
- min_value- Minimum value limit for the configuration item.
- possible_values- Allowed values to pick for the configuration item.
 
 
- name- Name of configuration item.
- value- Value of configuration item.
 
- defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:- {"foo-namespace.bar-key": "value"}
- description- Description of OPSI configuration.
- display_name- User-friendly display name for the OPSI configuration. The name does not have to be unique.
- freeform_tags- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:- {"bar-key": "value"}
- id- OCID of OPSI configuration resource.
- lifecycle_details- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- opsi_config_type- OPSI configuration type.
- state- OPSI configuration resource lifecycle state.
- system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. Example:- {"orcl-cloud.free-tier-retained": "true"}
- time_created- The time at which the resource was first created. An RFC3339 formatted datetime string
- time_updated- The time at which the resource was last updated. An RFC3339 formatted datetime string
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
	* create - (Defaults to 20 minutes), when creating the Opsi Configuration
	* update - (Defaults to 20 minutes), when updating the Opsi Configuration
	* delete - (Defaults to 20 minutes), when destroying the Opsi Configuration
Import
OpsiConfigurations can be imported using the id, e.g.
$ terraform import oci_opsi_opsi_configuration.test_opsi_configuration "id"