oci_stack_monitoring_discovery_job

This resource provides the Discovery Job resource in Oracle Cloud Infrastructure Stack Monitoring service.

API to create discovery Job and submit discovery Details to agent.

Example Usage

resource "oci_stack_monitoring_discovery_job" "test_discovery_job" {
    #Required
    compartment_id = var.compartment_id
    discovery_details {
        #Required
        agent_id = var.management_agent_id
        properties {

            #Optional
            properties_map = var.discovery_job_discovery_details_properties_properties_map
        }
        resource_name = var.discovery_job_discovery_details_resource_name
        resource_type = var.discovery_job_discovery_details_resource_type

        #Optional
        credentials {
            #Required
            items {
                #Required
                credential_name = var.discovery_job_discovery_details_credentials_items_credential_name
                credential_type = var.discovery_job_discovery_details_credentials_items_credential_type
                properties {

                    #Optional
                    properties_map = var.discovery_job_discovery_details_credentials_items_properties_properties_map
                }
            }
        }
        license = var.discovery_job_discovery_details_license
        tags {

            #Optional
            properties_map = var.discovery_job_discovery_details_tags_properties_map
        }
    }

    #Optional
    defined_tags = {"foo-namespace.bar-key"= "value"}
    discovery_client = var.discovery_job_discovery_client
    discovery_type = var.discovery_job_discovery_type
    freeform_tags = {"bar-key"= "value"}
    should_propagate_tags_to_discovered_resources = var.discovery_job_should_propagate_tags_to_discovered_resources
}

Argument Reference

The following arguments are supported:

* 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:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Discovery Job * update - (Defaults to 20 minutes), when updating the Discovery Job * delete - (Defaults to 20 minutes), when destroying the Discovery Job

Import

DiscoveryJobs can be imported using the id, e.g.

$ terraform import oci_stack_monitoring_discovery_job.test_discovery_job "id"