oci_metering_computation_usage

This resource provides the Usage resource in Oracle Cloud Infrastructure Metering Computation service.

Returns usage for the given account.

Example Usage

resource "oci_metering_computation_usage" "test_usage" {
	#Required
	granularity = var.usage_granularity
	tenant_id = oci_metering_computation_tenant.test_tenant.id
	time_usage_ended = var.usage_time_usage_ended
	time_usage_started = var.usage_time_usage_started

	#Optional
	compartment_depth = var.usage_compartment_depth
	filter = var.usage_filter
	forecast {
		#Required
		time_forecast_ended = var.usage_forecast_time_forecast_ended

		#Optional
		forecast_type = var.usage_forecast_forecast_type
		time_forecast_started = var.usage_forecast_time_forecast_started
	}
	group_by = var.usage_group_by
	group_by_tag {

		#Optional
		key = var.usage_group_by_tag_key
		namespace = var.usage_group_by_tag_namespace
		value = var.usage_group_by_tag_value
	}
	is_aggregate_by_time = var.usage_is_aggregate_by_time
	query_type = var.usage_query_type
}

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

Import

Import is not supported for this resource.