oci_management_agent_management_agent_data_source

This resource provides the Management Agent Data Source resource in Oracle Cloud Infrastructure Management Agent service.

Datasource creation request to given Management Agent.

Example Usage

resource "oci_management_agent_management_agent_data_source" "test_management_agent_data_source" {
	#Required
	compartment_id = var.compartment_id
	management_agent_id = oci_management_agent_management_agent.test_management_agent.id
	name = var.management_agent_data_source_name
	type = var.management_agent_data_source_type
	url = var.management_agent_data_source_url

	#Optional
	allow_metrics = var.management_agent_data_source_allow_metrics
	connection_timeout = var.management_agent_data_source_connection_timeout
	metric_dimensions {
		#Required
		name = var.management_agent_data_source_metric_dimensions_name
		value = var.management_agent_data_source_metric_dimensions_value
	}
	namespace = var.management_agent_data_source_namespace
	proxy_url = var.management_agent_data_source_proxy_url
	read_data_limit_in_kilobytes = var.management_agent_data_source_read_data_limit_in_kilobytes
	read_timeout = var.management_agent_data_source_read_timeout
	resource_group = var.management_agent_data_source_resource_group
	schedule_mins = var.management_agent_data_source_schedule_mins
}

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 Management Agent Data Source * update - (Defaults to 20 minutes), when updating the Management Agent Data Source * delete - (Defaults to 20 minutes), when destroying the Management Agent Data Source

Import

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

$ terraform import oci_management_agent_management_agent_data_source.test_management_agent_data_source "managementAgents/{managementAgentId}/dataSources/{key}"