This resource provides the Profile resource in Oracle Cloud Infrastructure Os Management Hub service.
Creates a registration profile.
A profile is a supplementary file for the OS Management Hub agentry
that dictates the content for a managed instance at registration time.
resource "oci_os_management_hub_profile" "test_profile" {
#Required
compartment_id = var.compartment_id
display_name = var.profile_display_name
profile_type = var.profile_profile_type
#Optional
arch_type = var.profile_arch_type
defined_tags = {"Operations.CostCenter"= "42"}
description = var.profile_description
freeform_tags = {"Department"= "Finance"}
lifecycle_stage_id = oci_os_management_hub_lifecycle_stage.test_lifecycle_stage.id
managed_instance_group_id = oci_os_management_hub_managed_instance_group.test_managed_instance_group.id
management_station_id = oci_os_management_hub_management_station.test_management_station.id
os_family = var.profile_os_family
software_source_ids = var.profile_software_source_ids
vendor_name = var.profile_vendor_name
}
The following arguments are supported:
arch_type
- (Required when profile_type=SOFTWARESOURCE | STATION) The architecture type.compartment_id
- (Required) The OCID of the tenancy containing the registration profile.defined_tags
- (Optional) (Updatable) 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
- (Optional) (Updatable) The description of the registration profile.display_name
- (Required) (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.freeform_tags
- (Optional) (Updatable) 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"}
lifecycle_stage_id
- (Required when profile_type=LIFECYCLE) The OCID of the lifecycle stage from which the registration profile will inherit its software source.managed_instance_group_id
- (Required when profile_type=GROUP) The OCID of the managed instance group from which the registration profile will inherit its software sources.management_station_id
- (Optional) The OCID of the management station.os_family
- (Required when profile_type=SOFTWARESOURCE | STATION) The operating system family.profile_type
- (Required) The type of registration profile. Either SOFTWARESOURCE, GROUP or LIFECYCLE.software_source_ids
- (Required when profile_type=SOFTWARESOURCE) The list of software source OCIDs that the registration profile will use.vendor_name
- (Required when profile_type=SOFTWARESOURCE | STATION) The software source vendor name.* 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
The following attributes are exported:
arch_type
- The architecture type.compartment_id
- The OCID of the tenancy containing the registration profile.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
- The description of the registration profile.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 profile that is immutable on creation.lifecycle_environment
- Identifying information for the specified lifecycle environment.
display_name
- Lifecycle environment name.id
- The OCID of the lifecycle environment.lifecycle_stage
- Identifying information for the specified lifecycle stage.
display_name
- Lifecycle stage name.id
- The OCID of the lifecycle stage.managed_instance_group
- Identifying information for the specified managed instance group.
display_name
- Managed instance group displayName.id
- The OCID of the managed instance group.management_station_id
- The OCID of the management station.os_family
- The operating system family.profile_type
- The type of Profile. One of SOFTWARESOURCE, GROUP or LIFECYCLE.software_sources
- The list of software sources that the registration profile will use.
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 registration profile.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 the registration profile was created. An RFC3339 formatted datetime string.vendor_name
- The software source vendor name.The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Profile
* update
- (Defaults to 20 minutes), when updating the Profile
* delete
- (Defaults to 20 minutes), when destroying the Profile
Profiles can be imported using the id
, e.g.
$ terraform import oci_os_management_hub_profile.test_profile "id"