» oci_osmanagement_managed_instance_management

This resource provides the Managed Instance Management in Oracle Cloud Infrastructure Osmanagement service. The resource can be used to attach/detach parent software source, child software sources and managed instance groups from managed instances.

Adds a parent software source to a managed instance. After the software source has been added, then packages from that software source can be installed on the managed instance. Software sources that have this software source as a parent will be able to be added to this managed instance. Removes a software source from a managed instance. All child software sources will also be removed from the managed instance. Packages will no longer be able to be installed from these software sources.

Adds a child software source to a managed instance. After the software source has been added, then packages from that software source can be installed on the managed instance.
Removes a child software source from a managed instance. Packages will no longer be able to be installed from these software sources.

Adds a Managed Instance to a Managed Instance Group. After the Managed Instance has been added, then operations can be performed on the Managed Instance Group which will then apply to all Managed Instances in the group. Removes a Managed Instance from a Managed Instance Group.

NOTE The resource on CREATE will detach any already attached parent software source, child software sources, managed instance groups to the managed instance. Destroying this resource will not delete any associations.

» Example Usage

resource "oci_osmanagement_managed_instance_management" "test_managed_instance_management" {
    #Required
    managed_instance_id = "${oci_osmanagement_managed_instance.test_managed_instance.id}"

    #optional
    parent_software_source {
        id   = "${oci_osmanagement_software_source.test_parent_software_source.id}"
        name = "${oci_osmanagement_software_source.test_parent_software_source.display_name}"
    }

    managed_instance_groups {
       id           = "${oci_osmanagement_managed_instance_group.test_managed_instance_group.id}"
       display_name = "${var.managed_instance_group_display_name}"
    }

    child_software_sources {
       id   = "${oci_osmanagement_software_source.test_software_source_child.id}"
       name = "${oci_osmanagement_software_source.test_software_source_child.display_name}"
    }
}

» Argument Reference

The following arguments are supported:

  • managed_instance_id - (Required) OCID for the managed instance
  • child_software_sources - (Optional) (Updatable) list of child Software Sources attached to the Managed Instance
    • id - software source identifier
    • name - software source name
  • managed_instance_groups - (Optional) (Updatable) The ids of the managed instance groups of which this instance is a member.
    • display_name - User friendly name
    • id - unique identifier that is immutable on creation
  • parent_software_source - (Optional) (Updatable) the parent (base) Software Source attached to the Managed Instance
    • id - software source identifier
    • name - software source 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

» Attributes Reference

The following attributes are exported:

» Import

Import is not supported for this resource.