Data Source: oci_os_management_hub_lifecycle_environments
This data source provides the list of Lifecycle Environments in Oracle Cloud Infrastructure Os Management Hub service.
Lists lifecycle environments that match the specified compartment or lifecycle environment OCID. Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS family.
Example Usage
data "oci_os_management_hub_lifecycle_environments" "test_lifecycle_environments" {
#Optional
arch_type = var.lifecycle_environment_arch_type
compartment_id = var.compartment_id
display_name = var.lifecycle_environment_display_name
display_name_contains = var.lifecycle_environment_display_name_contains
lifecycle_environment_id = oci_os_management_hub_lifecycle_environment.test_lifecycle_environment.id
os_family = var.lifecycle_environment_os_family
state = var.lifecycle_environment_state
}
Argument Reference
The following arguments are supported:
arch_type
- (Optional) A filter to return only profiles that match the given archType.compartment_id
- (Optional) The OCID of the compartment that contains the resources to list.display_name
- (Optional) A filter to return resources that match the given display names.display_name_contains
- (Optional) A filter to return resources that may partially match the given display name.lifecycle_environment_id
- (Optional) The OCID of the lifecycle environment.os_family
- (Optional) A filter to return only profiles that match the given osFamily.state
- (Optional) A filter to return only the lifecycle environments that match the display name given.
Attributes Reference
The following attributes are exported:
lifecycle_environment_collection
- The list of lifecycle_environment_collection.
LifecycleEnvironment Reference
The following attributes are exported:
arch_type
- The CPU architecture of the target instances.compartment_id
- The OCID of the tenancy containing the lifecycle environment.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
description
- User specified information about the lifecycle environment.display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
id
- The OCID of the resource that is immutable on creation.managed_instance_ids
- The list of managed instance OCIDs specified in the lifecycle stage.display_name
- Managed instance name.id
- The OCID of the managed instance.
os_family
- The operating system type of the target instances.stages
- User specified list of lifecycle stages to be created for the lifecycle environment.arch_type
- The CPU architecture of the target instances.compartment_id
- The OCID of the tenancy containing the lifecycle stage.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
id
- The lifecycle stage OCID that is immutable on creation.lifecycle_environment_id
- The OCID of the lifecycle environment for the lifecycle stage.managed_instance_ids
- The list of managed instances specified lifecycle stage.display_name
- Managed instance name.id
- The OCID of the managed instance.
os_family
- The operating system type of the target instances.rank
- User specified rank for the lifecycle stage. Rank determines the hierarchy of the lifecycle stages for a given lifecycle environment.software_source_id
- Identifying information for the specified software source.description
- Software source description.display_name
- Software source name.id
- The OCID of the software source.software_source_type
- Type of the software source.
state
- The current state of the lifecycle stage.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 the lifecycle stage was created. An RFC3339 formatted datetime string.time_modified
- The time the lifecycle stage was last modified. An RFC3339 formatted datetime string.vendor_name
- The software source vendor name.
state
- The current state of the lifecycle environment.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 the lifecycle environment was created. An RFC3339 formatted datetime string.time_modified
- The time the lifecycle environment was last modified. An RFC3339 formatted datetime string.vendor_name
- The software source vendor name.