1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. Schedule
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.MeteringComputation.Schedule

Explore with Pulumi AI

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

Returns the created schedule.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSchedule = new oci.meteringcomputation.Schedule("test_schedule", {
    compartmentId: compartmentId,
    name: scheduleName,
    resultLocation: {
        bucket: scheduleResultLocationBucket,
        locationType: scheduleResultLocationLocationType,
        namespace: scheduleResultLocationNamespace,
        region: scheduleResultLocationRegion,
    },
    scheduleRecurrences: scheduleScheduleRecurrences,
    timeScheduled: scheduleTimeScheduled,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    description: scheduleDescription,
    freeformTags: {
        "bar-key": "value",
    },
    outputFileFormat: scheduleOutputFileFormat,
    queryProperties: {
        dateRange: {
            dateRangeType: scheduleQueryPropertiesDateRangeDateRangeType,
            dynamicDateRangeType: scheduleQueryPropertiesDateRangeDynamicDateRangeType,
            timeUsageEnded: scheduleQueryPropertiesDateRangeTimeUsageEnded,
            timeUsageStarted: scheduleQueryPropertiesDateRangeTimeUsageStarted,
        },
        granularity: scheduleQueryPropertiesGranularity,
        compartmentDepth: scheduleQueryPropertiesCompartmentDepth,
        filter: scheduleQueryPropertiesFilter,
        groupBies: scheduleQueryPropertiesGroupBy,
        groupByTags: [{
            key: scheduleQueryPropertiesGroupByTagKey,
            namespace: scheduleQueryPropertiesGroupByTagNamespace,
            value: scheduleQueryPropertiesGroupByTagValue,
        }],
        isAggregateByTime: scheduleQueryPropertiesIsAggregateByTime,
        queryType: scheduleQueryPropertiesQueryType,
    },
    savedReportId: testReport.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_schedule = oci.metering_computation.Schedule("test_schedule",
    compartment_id=compartment_id,
    name=schedule_name,
    result_location={
        "bucket": schedule_result_location_bucket,
        "location_type": schedule_result_location_location_type,
        "namespace": schedule_result_location_namespace,
        "region": schedule_result_location_region,
    },
    schedule_recurrences=schedule_schedule_recurrences,
    time_scheduled=schedule_time_scheduled,
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    description=schedule_description,
    freeform_tags={
        "bar-key": "value",
    },
    output_file_format=schedule_output_file_format,
    query_properties={
        "date_range": {
            "date_range_type": schedule_query_properties_date_range_date_range_type,
            "dynamic_date_range_type": schedule_query_properties_date_range_dynamic_date_range_type,
            "time_usage_ended": schedule_query_properties_date_range_time_usage_ended,
            "time_usage_started": schedule_query_properties_date_range_time_usage_started,
        },
        "granularity": schedule_query_properties_granularity,
        "compartment_depth": schedule_query_properties_compartment_depth,
        "filter": schedule_query_properties_filter,
        "group_bies": schedule_query_properties_group_by,
        "group_by_tags": [{
            "key": schedule_query_properties_group_by_tag_key,
            "namespace": schedule_query_properties_group_by_tag_namespace,
            "value": schedule_query_properties_group_by_tag_value,
        }],
        "is_aggregate_by_time": schedule_query_properties_is_aggregate_by_time,
        "query_type": schedule_query_properties_query_type,
    },
    saved_report_id=test_report["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/meteringcomputation"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := meteringcomputation.NewSchedule(ctx, "test_schedule", &meteringcomputation.ScheduleArgs{
			CompartmentId: pulumi.Any(compartmentId),
			Name:          pulumi.Any(scheduleName),
			ResultLocation: &meteringcomputation.ScheduleResultLocationArgs{
				Bucket:       pulumi.Any(scheduleResultLocationBucket),
				LocationType: pulumi.Any(scheduleResultLocationLocationType),
				Namespace:    pulumi.Any(scheduleResultLocationNamespace),
				Region:       pulumi.Any(scheduleResultLocationRegion),
			},
			ScheduleRecurrences: pulumi.Any(scheduleScheduleRecurrences),
			TimeScheduled:       pulumi.Any(scheduleTimeScheduled),
			DefinedTags: pulumi.StringMap{
				"foo-namespace.bar-key": pulumi.String("value"),
			},
			Description: pulumi.Any(scheduleDescription),
			FreeformTags: pulumi.StringMap{
				"bar-key": pulumi.String("value"),
			},
			OutputFileFormat: pulumi.Any(scheduleOutputFileFormat),
			QueryProperties: &meteringcomputation.ScheduleQueryPropertiesArgs{
				DateRange: &meteringcomputation.ScheduleQueryPropertiesDateRangeArgs{
					DateRangeType:        pulumi.Any(scheduleQueryPropertiesDateRangeDateRangeType),
					DynamicDateRangeType: pulumi.Any(scheduleQueryPropertiesDateRangeDynamicDateRangeType),
					TimeUsageEnded:       pulumi.Any(scheduleQueryPropertiesDateRangeTimeUsageEnded),
					TimeUsageStarted:     pulumi.Any(scheduleQueryPropertiesDateRangeTimeUsageStarted),
				},
				Granularity:      pulumi.Any(scheduleQueryPropertiesGranularity),
				CompartmentDepth: pulumi.Any(scheduleQueryPropertiesCompartmentDepth),
				Filter:           pulumi.Any(scheduleQueryPropertiesFilter),
				GroupBies:        pulumi.Any(scheduleQueryPropertiesGroupBy),
				GroupByTags: meteringcomputation.ScheduleQueryPropertiesGroupByTagArray{
					&meteringcomputation.ScheduleQueryPropertiesGroupByTagArgs{
						Key:       pulumi.Any(scheduleQueryPropertiesGroupByTagKey),
						Namespace: pulumi.Any(scheduleQueryPropertiesGroupByTagNamespace),
						Value:     pulumi.Any(scheduleQueryPropertiesGroupByTagValue),
					},
				},
				IsAggregateByTime: pulumi.Any(scheduleQueryPropertiesIsAggregateByTime),
				QueryType:         pulumi.Any(scheduleQueryPropertiesQueryType),
			},
			SavedReportId: pulumi.Any(testReport.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSchedule = new Oci.MeteringComputation.Schedule("test_schedule", new()
    {
        CompartmentId = compartmentId,
        Name = scheduleName,
        ResultLocation = new Oci.MeteringComputation.Inputs.ScheduleResultLocationArgs
        {
            Bucket = scheduleResultLocationBucket,
            LocationType = scheduleResultLocationLocationType,
            Namespace = scheduleResultLocationNamespace,
            Region = scheduleResultLocationRegion,
        },
        ScheduleRecurrences = scheduleScheduleRecurrences,
        TimeScheduled = scheduleTimeScheduled,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        Description = scheduleDescription,
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
        OutputFileFormat = scheduleOutputFileFormat,
        QueryProperties = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesArgs
        {
            DateRange = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesDateRangeArgs
            {
                DateRangeType = scheduleQueryPropertiesDateRangeDateRangeType,
                DynamicDateRangeType = scheduleQueryPropertiesDateRangeDynamicDateRangeType,
                TimeUsageEnded = scheduleQueryPropertiesDateRangeTimeUsageEnded,
                TimeUsageStarted = scheduleQueryPropertiesDateRangeTimeUsageStarted,
            },
            Granularity = scheduleQueryPropertiesGranularity,
            CompartmentDepth = scheduleQueryPropertiesCompartmentDepth,
            Filter = scheduleQueryPropertiesFilter,
            GroupBies = scheduleQueryPropertiesGroupBy,
            GroupByTags = new[]
            {
                new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesGroupByTagArgs
                {
                    Key = scheduleQueryPropertiesGroupByTagKey,
                    Namespace = scheduleQueryPropertiesGroupByTagNamespace,
                    Value = scheduleQueryPropertiesGroupByTagValue,
                },
            },
            IsAggregateByTime = scheduleQueryPropertiesIsAggregateByTime,
            QueryType = scheduleQueryPropertiesQueryType,
        },
        SavedReportId = testReport.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.MeteringComputation.Schedule;
import com.pulumi.oci.MeteringComputation.ScheduleArgs;
import com.pulumi.oci.MeteringComputation.inputs.ScheduleResultLocationArgs;
import com.pulumi.oci.MeteringComputation.inputs.ScheduleQueryPropertiesArgs;
import com.pulumi.oci.MeteringComputation.inputs.ScheduleQueryPropertiesDateRangeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testSchedule = new Schedule("testSchedule", ScheduleArgs.builder()
            .compartmentId(compartmentId)
            .name(scheduleName)
            .resultLocation(ScheduleResultLocationArgs.builder()
                .bucket(scheduleResultLocationBucket)
                .locationType(scheduleResultLocationLocationType)
                .namespace(scheduleResultLocationNamespace)
                .region(scheduleResultLocationRegion)
                .build())
            .scheduleRecurrences(scheduleScheduleRecurrences)
            .timeScheduled(scheduleTimeScheduled)
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .description(scheduleDescription)
            .freeformTags(Map.of("bar-key", "value"))
            .outputFileFormat(scheduleOutputFileFormat)
            .queryProperties(ScheduleQueryPropertiesArgs.builder()
                .dateRange(ScheduleQueryPropertiesDateRangeArgs.builder()
                    .dateRangeType(scheduleQueryPropertiesDateRangeDateRangeType)
                    .dynamicDateRangeType(scheduleQueryPropertiesDateRangeDynamicDateRangeType)
                    .timeUsageEnded(scheduleQueryPropertiesDateRangeTimeUsageEnded)
                    .timeUsageStarted(scheduleQueryPropertiesDateRangeTimeUsageStarted)
                    .build())
                .granularity(scheduleQueryPropertiesGranularity)
                .compartmentDepth(scheduleQueryPropertiesCompartmentDepth)
                .filter(scheduleQueryPropertiesFilter)
                .groupBies(scheduleQueryPropertiesGroupBy)
                .groupByTags(ScheduleQueryPropertiesGroupByTagArgs.builder()
                    .key(scheduleQueryPropertiesGroupByTagKey)
                    .namespace(scheduleQueryPropertiesGroupByTagNamespace)
                    .value(scheduleQueryPropertiesGroupByTagValue)
                    .build())
                .isAggregateByTime(scheduleQueryPropertiesIsAggregateByTime)
                .queryType(scheduleQueryPropertiesQueryType)
                .build())
            .savedReportId(testReport.id())
            .build());

    }
}
Copy
resources:
  testSchedule:
    type: oci:MeteringComputation:Schedule
    name: test_schedule
    properties:
      compartmentId: ${compartmentId}
      name: ${scheduleName}
      resultLocation:
        bucket: ${scheduleResultLocationBucket}
        locationType: ${scheduleResultLocationLocationType}
        namespace: ${scheduleResultLocationNamespace}
        region: ${scheduleResultLocationRegion}
      scheduleRecurrences: ${scheduleScheduleRecurrences}
      timeScheduled: ${scheduleTimeScheduled}
      definedTags:
        foo-namespace.bar-key: value
      description: ${scheduleDescription}
      freeformTags:
        bar-key: value
      outputFileFormat: ${scheduleOutputFileFormat}
      queryProperties:
        dateRange:
          dateRangeType: ${scheduleQueryPropertiesDateRangeDateRangeType}
          dynamicDateRangeType: ${scheduleQueryPropertiesDateRangeDynamicDateRangeType}
          timeUsageEnded: ${scheduleQueryPropertiesDateRangeTimeUsageEnded}
          timeUsageStarted: ${scheduleQueryPropertiesDateRangeTimeUsageStarted}
        granularity: ${scheduleQueryPropertiesGranularity}
        compartmentDepth: ${scheduleQueryPropertiesCompartmentDepth}
        filter: ${scheduleQueryPropertiesFilter}
        groupBies: ${scheduleQueryPropertiesGroupBy}
        groupByTags:
          - key: ${scheduleQueryPropertiesGroupByTagKey}
            namespace: ${scheduleQueryPropertiesGroupByTagNamespace}
            value: ${scheduleQueryPropertiesGroupByTagValue}
        isAggregateByTime: ${scheduleQueryPropertiesIsAggregateByTime}
        queryType: ${scheduleQueryPropertiesQueryType}
      savedReportId: ${testReport.id}
Copy

Create Schedule Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);
@overload
def Schedule(resource_name: str,
             args: ScheduleArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def Schedule(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             compartment_id: Optional[str] = None,
             result_location: Optional[_meteringcomputation.ScheduleResultLocationArgs] = None,
             schedule_recurrences: Optional[str] = None,
             time_scheduled: Optional[str] = None,
             defined_tags: Optional[Mapping[str, str]] = None,
             description: Optional[str] = None,
             freeform_tags: Optional[Mapping[str, str]] = None,
             name: Optional[str] = None,
             output_file_format: Optional[str] = None,
             query_properties: Optional[_meteringcomputation.ScheduleQueryPropertiesArgs] = None,
             saved_report_id: Optional[str] = None)
func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)
public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
public Schedule(String name, ScheduleArgs args)
public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
type: oci:MeteringComputation:Schedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var ociScheduleResource = new Oci.MeteringComputation.Schedule("ociScheduleResource", new()
{
    CompartmentId = "string",
    ResultLocation = new Oci.MeteringComputation.Inputs.ScheduleResultLocationArgs
    {
        Bucket = "string",
        LocationType = "string",
        Namespace = "string",
        Region = "string",
    },
    ScheduleRecurrences = "string",
    TimeScheduled = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    Name = "string",
    OutputFileFormat = "string",
    QueryProperties = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesArgs
    {
        DateRange = new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesDateRangeArgs
        {
            DateRangeType = "string",
            DynamicDateRangeType = "string",
            TimeUsageEnded = "string",
            TimeUsageStarted = "string",
        },
        Granularity = "string",
        CompartmentDepth = 0,
        Filter = "string",
        GroupBies = new[]
        {
            "string",
        },
        GroupByTags = new[]
        {
            new Oci.MeteringComputation.Inputs.ScheduleQueryPropertiesGroupByTagArgs
            {
                Key = "string",
                Namespace = "string",
                Value = "string",
            },
        },
        IsAggregateByTime = false,
        QueryType = "string",
    },
    SavedReportId = "string",
});
Copy
example, err := MeteringComputation.NewSchedule(ctx, "ociScheduleResource", &MeteringComputation.ScheduleArgs{
	CompartmentId: pulumi.String("string"),
	ResultLocation: &meteringcomputation.ScheduleResultLocationArgs{
		Bucket:       pulumi.String("string"),
		LocationType: pulumi.String("string"),
		Namespace:    pulumi.String("string"),
		Region:       pulumi.String("string"),
	},
	ScheduleRecurrences: pulumi.String("string"),
	TimeScheduled:       pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:             pulumi.String("string"),
	OutputFileFormat: pulumi.String("string"),
	QueryProperties: &meteringcomputation.ScheduleQueryPropertiesArgs{
		DateRange: &meteringcomputation.ScheduleQueryPropertiesDateRangeArgs{
			DateRangeType:        pulumi.String("string"),
			DynamicDateRangeType: pulumi.String("string"),
			TimeUsageEnded:       pulumi.String("string"),
			TimeUsageStarted:     pulumi.String("string"),
		},
		Granularity:      pulumi.String("string"),
		CompartmentDepth: pulumi.Float64(0),
		Filter:           pulumi.String("string"),
		GroupBies: pulumi.StringArray{
			pulumi.String("string"),
		},
		GroupByTags: meteringcomputation.ScheduleQueryPropertiesGroupByTagArray{
			&meteringcomputation.ScheduleQueryPropertiesGroupByTagArgs{
				Key:       pulumi.String("string"),
				Namespace: pulumi.String("string"),
				Value:     pulumi.String("string"),
			},
		},
		IsAggregateByTime: pulumi.Bool(false),
		QueryType:         pulumi.String("string"),
	},
	SavedReportId: pulumi.String("string"),
})
Copy
var ociScheduleResource = new Schedule("ociScheduleResource", ScheduleArgs.builder()
    .compartmentId("string")
    .resultLocation(ScheduleResultLocationArgs.builder()
        .bucket("string")
        .locationType("string")
        .namespace("string")
        .region("string")
        .build())
    .scheduleRecurrences("string")
    .timeScheduled("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .freeformTags(Map.of("string", "string"))
    .name("string")
    .outputFileFormat("string")
    .queryProperties(ScheduleQueryPropertiesArgs.builder()
        .dateRange(ScheduleQueryPropertiesDateRangeArgs.builder()
            .dateRangeType("string")
            .dynamicDateRangeType("string")
            .timeUsageEnded("string")
            .timeUsageStarted("string")
            .build())
        .granularity("string")
        .compartmentDepth(0)
        .filter("string")
        .groupBies("string")
        .groupByTags(ScheduleQueryPropertiesGroupByTagArgs.builder()
            .key("string")
            .namespace("string")
            .value("string")
            .build())
        .isAggregateByTime(false)
        .queryType("string")
        .build())
    .savedReportId("string")
    .build());
Copy
oci_schedule_resource = oci.metering_computation.Schedule("ociScheduleResource",
    compartment_id="string",
    result_location={
        "bucket": "string",
        "location_type": "string",
        "namespace": "string",
        "region": "string",
    },
    schedule_recurrences="string",
    time_scheduled="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    freeform_tags={
        "string": "string",
    },
    name="string",
    output_file_format="string",
    query_properties={
        "date_range": {
            "date_range_type": "string",
            "dynamic_date_range_type": "string",
            "time_usage_ended": "string",
            "time_usage_started": "string",
        },
        "granularity": "string",
        "compartment_depth": 0,
        "filter": "string",
        "group_bies": ["string"],
        "group_by_tags": [{
            "key": "string",
            "namespace": "string",
            "value": "string",
        }],
        "is_aggregate_by_time": False,
        "query_type": "string",
    },
    saved_report_id="string")
Copy
const ociScheduleResource = new oci.meteringcomputation.Schedule("ociScheduleResource", {
    compartmentId: "string",
    resultLocation: {
        bucket: "string",
        locationType: "string",
        namespace: "string",
        region: "string",
    },
    scheduleRecurrences: "string",
    timeScheduled: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    freeformTags: {
        string: "string",
    },
    name: "string",
    outputFileFormat: "string",
    queryProperties: {
        dateRange: {
            dateRangeType: "string",
            dynamicDateRangeType: "string",
            timeUsageEnded: "string",
            timeUsageStarted: "string",
        },
        granularity: "string",
        compartmentDepth: 0,
        filter: "string",
        groupBies: ["string"],
        groupByTags: [{
            key: "string",
            namespace: "string",
            value: "string",
        }],
        isAggregateByTime: false,
        queryType: "string",
    },
    savedReportId: "string",
});
Copy
type: oci:MeteringComputation:Schedule
properties:
    compartmentId: string
    definedTags:
        string: string
    description: string
    freeformTags:
        string: string
    name: string
    outputFileFormat: string
    queryProperties:
        compartmentDepth: 0
        dateRange:
            dateRangeType: string
            dynamicDateRangeType: string
            timeUsageEnded: string
            timeUsageStarted: string
        filter: string
        granularity: string
        groupBies:
            - string
        groupByTags:
            - key: string
              namespace: string
              value: string
        isAggregateByTime: false
        queryType: string
    resultLocation:
        bucket: string
        locationType: string
        namespace: string
        region: string
    savedReportId: string
    scheduleRecurrences: string
    timeScheduled: string
Copy

Schedule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Schedule resource accepts the following input properties:

CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
The customer tenancy.
ResultLocation This property is required. ScheduleResultLocation
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
ScheduleRecurrences
This property is required.
Changes to this property will trigger replacement.
string
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
TimeScheduled
This property is required.
Changes to this property will trigger replacement.
string

The date and time of the first time job execution.

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

DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
Description string
(Updatable) The description of the schedule.
FreeformTags Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
Name Changes to this property will trigger replacement. string
The unique name of the user-created schedule.
OutputFileFormat string
(Updatable) Specifies the supported output file format.
QueryProperties Changes to this property will trigger replacement. ScheduleQueryProperties
The query properties.
SavedReportId Changes to this property will trigger replacement. string
The saved report ID which can also be used to generate a query.
CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
The customer tenancy.
ResultLocation This property is required. ScheduleResultLocationArgs
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
ScheduleRecurrences
This property is required.
Changes to this property will trigger replacement.
string
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
TimeScheduled
This property is required.
Changes to this property will trigger replacement.
string

The date and time of the first time job execution.

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

DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
Description string
(Updatable) The description of the schedule.
FreeformTags map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
Name Changes to this property will trigger replacement. string
The unique name of the user-created schedule.
OutputFileFormat string
(Updatable) Specifies the supported output file format.
QueryProperties Changes to this property will trigger replacement. ScheduleQueryPropertiesArgs
The query properties.
SavedReportId Changes to this property will trigger replacement. string
The saved report ID which can also be used to generate a query.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
The customer tenancy.
resultLocation This property is required. ScheduleResultLocation
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
scheduleRecurrences
This property is required.
Changes to this property will trigger replacement.
String
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
timeScheduled
This property is required.
Changes to this property will trigger replacement.
String

The date and time of the first time job execution.

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

definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description String
(Updatable) The description of the schedule.
freeformTags Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. String
The unique name of the user-created schedule.
outputFileFormat String
(Updatable) Specifies the supported output file format.
queryProperties Changes to this property will trigger replacement. ScheduleQueryProperties
The query properties.
savedReportId Changes to this property will trigger replacement. String
The saved report ID which can also be used to generate a query.
compartmentId
This property is required.
Changes to this property will trigger replacement.
string
The customer tenancy.
resultLocation This property is required. ScheduleResultLocation
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
scheduleRecurrences
This property is required.
Changes to this property will trigger replacement.
string
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
timeScheduled
This property is required.
Changes to this property will trigger replacement.
string

The date and time of the first time job execution.

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

definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description string
(Updatable) The description of the schedule.
freeformTags {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. string
The unique name of the user-created schedule.
outputFileFormat string
(Updatable) Specifies the supported output file format.
queryProperties Changes to this property will trigger replacement. ScheduleQueryProperties
The query properties.
savedReportId Changes to this property will trigger replacement. string
The saved report ID which can also be used to generate a query.
compartment_id
This property is required.
Changes to this property will trigger replacement.
str
The customer tenancy.
result_location This property is required. meteringcomputation.ScheduleResultLocationArgs
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
schedule_recurrences
This property is required.
Changes to this property will trigger replacement.
str
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
time_scheduled
This property is required.
Changes to this property will trigger replacement.
str

The date and time of the first time job execution.

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

defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description str
(Updatable) The description of the schedule.
freeform_tags Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. str
The unique name of the user-created schedule.
output_file_format str
(Updatable) Specifies the supported output file format.
query_properties Changes to this property will trigger replacement. meteringcomputation.ScheduleQueryPropertiesArgs
The query properties.
saved_report_id Changes to this property will trigger replacement. str
The saved report ID which can also be used to generate a query.
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
The customer tenancy.
resultLocation This property is required. Property Map
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
scheduleRecurrences
This property is required.
Changes to this property will trigger replacement.
String
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
timeScheduled
This property is required.
Changes to this property will trigger replacement.
String

The date and time of the first time job execution.

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

definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description String
(Updatable) The description of the schedule.
freeformTags Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. String
The unique name of the user-created schedule.
outputFileFormat String
(Updatable) Specifies the supported output file format.
queryProperties Changes to this property will trigger replacement. Property Map
The query properties.
savedReportId Changes to this property will trigger replacement. String
The saved report ID which can also be used to generate a query.

Outputs

All input properties are implicitly available as output properties. Additionally, the Schedule resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
State string
The schedule lifecycle state.
SystemTags Dictionary<string, string>
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The date and time the schedule was created.
TimeNextRun string
The date and time of the next job execution.
Id string
The provider-assigned unique ID for this managed resource.
State string
The schedule lifecycle state.
SystemTags map[string]string
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The date and time the schedule was created.
TimeNextRun string
The date and time of the next job execution.
id String
The provider-assigned unique ID for this managed resource.
state String
The schedule lifecycle state.
systemTags Map<String,String>
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The date and time the schedule was created.
timeNextRun String
The date and time of the next job execution.
id string
The provider-assigned unique ID for this managed resource.
state string
The schedule lifecycle state.
systemTags {[key: string]: string}
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The date and time the schedule was created.
timeNextRun string
The date and time of the next job execution.
id str
The provider-assigned unique ID for this managed resource.
state str
The schedule lifecycle state.
system_tags Mapping[str, str]
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The date and time the schedule was created.
time_next_run str
The date and time of the next job execution.
id String
The provider-assigned unique ID for this managed resource.
state String
The schedule lifecycle state.
systemTags Map<String>
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The date and time the schedule was created.
timeNextRun String
The date and time of the next job execution.

Look up Existing Schedule Resource

Get an existing Schedule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ScheduleState, opts?: CustomResourceOptions): Schedule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        output_file_format: Optional[str] = None,
        query_properties: Optional[_meteringcomputation.ScheduleQueryPropertiesArgs] = None,
        result_location: Optional[_meteringcomputation.ScheduleResultLocationArgs] = None,
        saved_report_id: Optional[str] = None,
        schedule_recurrences: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_next_run: Optional[str] = None,
        time_scheduled: Optional[str] = None) -> Schedule
func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)
public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)
public static Schedule get(String name, Output<String> id, ScheduleState state, CustomResourceOptions options)
resources:  _:    type: oci:MeteringComputation:Schedule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId Changes to this property will trigger replacement. string
The customer tenancy.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
Description string
(Updatable) The description of the schedule.
FreeformTags Dictionary<string, string>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
Name Changes to this property will trigger replacement. string
The unique name of the user-created schedule.
OutputFileFormat string
(Updatable) Specifies the supported output file format.
QueryProperties Changes to this property will trigger replacement. ScheduleQueryProperties
The query properties.
ResultLocation ScheduleResultLocation
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
SavedReportId Changes to this property will trigger replacement. string
The saved report ID which can also be used to generate a query.
ScheduleRecurrences Changes to this property will trigger replacement. string
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
State string
The schedule lifecycle state.
SystemTags Dictionary<string, string>
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The date and time the schedule was created.
TimeNextRun string
The date and time of the next job execution.
TimeScheduled Changes to this property will trigger replacement. string

The date and time of the first time job execution.

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

CompartmentId Changes to this property will trigger replacement. string
The customer tenancy.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
Description string
(Updatable) The description of the schedule.
FreeformTags map[string]string
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
Name Changes to this property will trigger replacement. string
The unique name of the user-created schedule.
OutputFileFormat string
(Updatable) Specifies the supported output file format.
QueryProperties Changes to this property will trigger replacement. ScheduleQueryPropertiesArgs
The query properties.
ResultLocation ScheduleResultLocationArgs
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
SavedReportId Changes to this property will trigger replacement. string
The saved report ID which can also be used to generate a query.
ScheduleRecurrences Changes to this property will trigger replacement. string
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
State string
The schedule lifecycle state.
SystemTags map[string]string
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The date and time the schedule was created.
TimeNextRun string
The date and time of the next job execution.
TimeScheduled Changes to this property will trigger replacement. string

The date and time of the first time job execution.

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

compartmentId Changes to this property will trigger replacement. String
The customer tenancy.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description String
(Updatable) The description of the schedule.
freeformTags Map<String,String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. String
The unique name of the user-created schedule.
outputFileFormat String
(Updatable) Specifies the supported output file format.
queryProperties Changes to this property will trigger replacement. ScheduleQueryProperties
The query properties.
resultLocation ScheduleResultLocation
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
savedReportId Changes to this property will trigger replacement. String
The saved report ID which can also be used to generate a query.
scheduleRecurrences Changes to this property will trigger replacement. String
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
state String
The schedule lifecycle state.
systemTags Map<String,String>
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The date and time the schedule was created.
timeNextRun String
The date and time of the next job execution.
timeScheduled Changes to this property will trigger replacement. String

The date and time of the first time job execution.

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

compartmentId Changes to this property will trigger replacement. string
The customer tenancy.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description string
(Updatable) The description of the schedule.
freeformTags {[key: string]: string}
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. string
The unique name of the user-created schedule.
outputFileFormat string
(Updatable) Specifies the supported output file format.
queryProperties Changes to this property will trigger replacement. ScheduleQueryProperties
The query properties.
resultLocation ScheduleResultLocation
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
savedReportId Changes to this property will trigger replacement. string
The saved report ID which can also be used to generate a query.
scheduleRecurrences Changes to this property will trigger replacement. string
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
state string
The schedule lifecycle state.
systemTags {[key: string]: string}
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The date and time the schedule was created.
timeNextRun string
The date and time of the next job execution.
timeScheduled Changes to this property will trigger replacement. string

The date and time of the first time job execution.

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

compartment_id Changes to this property will trigger replacement. str
The customer tenancy.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description str
(Updatable) The description of the schedule.
freeform_tags Mapping[str, str]
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. str
The unique name of the user-created schedule.
output_file_format str
(Updatable) Specifies the supported output file format.
query_properties Changes to this property will trigger replacement. meteringcomputation.ScheduleQueryPropertiesArgs
The query properties.
result_location meteringcomputation.ScheduleResultLocationArgs
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
saved_report_id Changes to this property will trigger replacement. str
The saved report ID which can also be used to generate a query.
schedule_recurrences Changes to this property will trigger replacement. str
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
state str
The schedule lifecycle state.
system_tags Mapping[str, str]
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The date and time the schedule was created.
time_next_run str
The date and time of the next job execution.
time_scheduled Changes to this property will trigger replacement. str

The date and time of the first time job execution.

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

compartmentId Changes to this property will trigger replacement. String
The customer tenancy.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
description String
(Updatable) The description of the schedule.
freeformTags Map<String>
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
name Changes to this property will trigger replacement. String
The unique name of the user-created schedule.
outputFileFormat String
(Updatable) Specifies the supported output file format.
queryProperties Changes to this property will trigger replacement. Property Map
The query properties.
resultLocation Property Map
(Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
savedReportId Changes to this property will trigger replacement. String
The saved report ID which can also be used to generate a query.
scheduleRecurrences Changes to this property will trigger replacement. String
Specifies the frequency according to when the schedule will be run, in the x-obmcs-recurring-time format described in RFC 5545 section 3.3.10. Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.
state String
The schedule lifecycle state.
systemTags Map<String>
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The date and time the schedule was created.
timeNextRun String
The date and time of the next job execution.
timeScheduled Changes to this property will trigger replacement. String

The date and time of the first time job execution.

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

Supporting Types

ScheduleQueryProperties
, ScheduleQueryPropertiesArgs

DateRange
This property is required.
Changes to this property will trigger replacement.
ScheduleQueryPropertiesDateRange
Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
Granularity
This property is required.
Changes to this property will trigger replacement.
string
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
CompartmentDepth Changes to this property will trigger replacement. double
The depth level of the compartment.
Filter Changes to this property will trigger replacement. string
The filter object for query usage.
GroupBies Changes to this property will trigger replacement. List<string>
Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
GroupByTags Changes to this property will trigger replacement. List<ScheduleQueryPropertiesGroupByTag>
GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
IsAggregateByTime Changes to this property will trigger replacement. bool
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
QueryType Changes to this property will trigger replacement. string
The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
DateRange
This property is required.
Changes to this property will trigger replacement.
ScheduleQueryPropertiesDateRange
Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
Granularity
This property is required.
Changes to this property will trigger replacement.
string
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
CompartmentDepth Changes to this property will trigger replacement. float64
The depth level of the compartment.
Filter Changes to this property will trigger replacement. string
The filter object for query usage.
GroupBies Changes to this property will trigger replacement. []string
Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
GroupByTags Changes to this property will trigger replacement. []ScheduleQueryPropertiesGroupByTag
GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
IsAggregateByTime Changes to this property will trigger replacement. bool
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
QueryType Changes to this property will trigger replacement. string
The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
dateRange
This property is required.
Changes to this property will trigger replacement.
ScheduleQueryPropertiesDateRange
Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
granularity
This property is required.
Changes to this property will trigger replacement.
String
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
compartmentDepth Changes to this property will trigger replacement. Double
The depth level of the compartment.
filter Changes to this property will trigger replacement. String
The filter object for query usage.
groupBies Changes to this property will trigger replacement. List<String>
Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
groupByTags Changes to this property will trigger replacement. List<ScheduleQueryPropertiesGroupByTag>
GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
isAggregateByTime Changes to this property will trigger replacement. Boolean
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
queryType Changes to this property will trigger replacement. String
The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
dateRange
This property is required.
Changes to this property will trigger replacement.
ScheduleQueryPropertiesDateRange
Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
granularity
This property is required.
Changes to this property will trigger replacement.
string
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
compartmentDepth Changes to this property will trigger replacement. number
The depth level of the compartment.
filter Changes to this property will trigger replacement. string
The filter object for query usage.
groupBies Changes to this property will trigger replacement. string[]
Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
groupByTags Changes to this property will trigger replacement. ScheduleQueryPropertiesGroupByTag[]
GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
isAggregateByTime Changes to this property will trigger replacement. boolean
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
queryType Changes to this property will trigger replacement. string
The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
date_range
This property is required.
Changes to this property will trigger replacement.
meteringcomputation.ScheduleQueryPropertiesDateRange
Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
granularity
This property is required.
Changes to this property will trigger replacement.
str
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
compartment_depth Changes to this property will trigger replacement. float
The depth level of the compartment.
filter Changes to this property will trigger replacement. str
The filter object for query usage.
group_bies Changes to this property will trigger replacement. Sequence[str]
Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
group_by_tags Changes to this property will trigger replacement. Sequence[meteringcomputation.ScheduleQueryPropertiesGroupByTag]
GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
is_aggregate_by_time Changes to this property will trigger replacement. bool
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
query_type Changes to this property will trigger replacement. str
The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
dateRange
This property is required.
Changes to this property will trigger replacement.
Property Map
Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
granularity
This property is required.
Changes to this property will trigger replacement.
String
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
compartmentDepth Changes to this property will trigger replacement. Number
The depth level of the compartment.
filter Changes to this property will trigger replacement. String
The filter object for query usage.
groupBies Changes to this property will trigger replacement. List<String>
Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
groupByTags Changes to this property will trigger replacement. List<Property Map>
GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ]
isAggregateByTime Changes to this property will trigger replacement. Boolean
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
queryType Changes to this property will trigger replacement. String
The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST

ScheduleQueryPropertiesDateRange
, ScheduleQueryPropertiesDateRangeArgs

DateRangeType
This property is required.
Changes to this property will trigger replacement.
string
Defines whether the schedule date range is STATIC or DYNAMIC.
DynamicDateRangeType Changes to this property will trigger replacement. string
TimeUsageEnded Changes to this property will trigger replacement. string
The usage end time.
TimeUsageStarted Changes to this property will trigger replacement. string
The usage start time.
DateRangeType
This property is required.
Changes to this property will trigger replacement.
string
Defines whether the schedule date range is STATIC or DYNAMIC.
DynamicDateRangeType Changes to this property will trigger replacement. string
TimeUsageEnded Changes to this property will trigger replacement. string
The usage end time.
TimeUsageStarted Changes to this property will trigger replacement. string
The usage start time.
dateRangeType
This property is required.
Changes to this property will trigger replacement.
String
Defines whether the schedule date range is STATIC or DYNAMIC.
dynamicDateRangeType Changes to this property will trigger replacement. String
timeUsageEnded Changes to this property will trigger replacement. String
The usage end time.
timeUsageStarted Changes to this property will trigger replacement. String
The usage start time.
dateRangeType
This property is required.
Changes to this property will trigger replacement.
string
Defines whether the schedule date range is STATIC or DYNAMIC.
dynamicDateRangeType Changes to this property will trigger replacement. string
timeUsageEnded Changes to this property will trigger replacement. string
The usage end time.
timeUsageStarted Changes to this property will trigger replacement. string
The usage start time.
date_range_type
This property is required.
Changes to this property will trigger replacement.
str
Defines whether the schedule date range is STATIC or DYNAMIC.
dynamic_date_range_type Changes to this property will trigger replacement. str
time_usage_ended Changes to this property will trigger replacement. str
The usage end time.
time_usage_started Changes to this property will trigger replacement. str
The usage start time.
dateRangeType
This property is required.
Changes to this property will trigger replacement.
String
Defines whether the schedule date range is STATIC or DYNAMIC.
dynamicDateRangeType Changes to this property will trigger replacement. String
timeUsageEnded Changes to this property will trigger replacement. String
The usage end time.
timeUsageStarted Changes to this property will trigger replacement. String
The usage start time.

ScheduleQueryPropertiesGroupByTag
, ScheduleQueryPropertiesGroupByTagArgs

Key Changes to this property will trigger replacement. string
The tag key.
Namespace Changes to this property will trigger replacement. string
The tag namespace.
Value Changes to this property will trigger replacement. string
The tag value.
Key Changes to this property will trigger replacement. string
The tag key.
Namespace Changes to this property will trigger replacement. string
The tag namespace.
Value Changes to this property will trigger replacement. string
The tag value.
key Changes to this property will trigger replacement. String
The tag key.
namespace Changes to this property will trigger replacement. String
The tag namespace.
value Changes to this property will trigger replacement. String
The tag value.
key Changes to this property will trigger replacement. string
The tag key.
namespace Changes to this property will trigger replacement. string
The tag namespace.
value Changes to this property will trigger replacement. string
The tag value.
key Changes to this property will trigger replacement. str
The tag key.
namespace Changes to this property will trigger replacement. str
The tag namespace.
value Changes to this property will trigger replacement. str
The tag value.
key Changes to this property will trigger replacement. String
The tag key.
namespace Changes to this property will trigger replacement. String
The tag namespace.
value Changes to this property will trigger replacement. String
The tag value.

ScheduleResultLocation
, ScheduleResultLocationArgs

Bucket This property is required. string
(Updatable) The bucket name where usage or cost CSVs will be uploaded.
LocationType This property is required. string
(Updatable) Defines the type of location where the usage or cost CSVs will be stored.
Namespace This property is required. string
(Updatable) The namespace needed to determine the object storage bucket.
Region This property is required. string
(Updatable) The destination Object Store Region specified by the customer.
Bucket This property is required. string
(Updatable) The bucket name where usage or cost CSVs will be uploaded.
LocationType This property is required. string
(Updatable) Defines the type of location where the usage or cost CSVs will be stored.
Namespace This property is required. string
(Updatable) The namespace needed to determine the object storage bucket.
Region This property is required. string
(Updatable) The destination Object Store Region specified by the customer.
bucket This property is required. String
(Updatable) The bucket name where usage or cost CSVs will be uploaded.
locationType This property is required. String
(Updatable) Defines the type of location where the usage or cost CSVs will be stored.
namespace This property is required. String
(Updatable) The namespace needed to determine the object storage bucket.
region This property is required. String
(Updatable) The destination Object Store Region specified by the customer.
bucket This property is required. string
(Updatable) The bucket name where usage or cost CSVs will be uploaded.
locationType This property is required. string
(Updatable) Defines the type of location where the usage or cost CSVs will be stored.
namespace This property is required. string
(Updatable) The namespace needed to determine the object storage bucket.
region This property is required. string
(Updatable) The destination Object Store Region specified by the customer.
bucket This property is required. str
(Updatable) The bucket name where usage or cost CSVs will be uploaded.
location_type This property is required. str
(Updatable) Defines the type of location where the usage or cost CSVs will be stored.
namespace This property is required. str
(Updatable) The namespace needed to determine the object storage bucket.
region This property is required. str
(Updatable) The destination Object Store Region specified by the customer.
bucket This property is required. String
(Updatable) The bucket name where usage or cost CSVs will be uploaded.
locationType This property is required. String
(Updatable) Defines the type of location where the usage or cost CSVs will be stored.
namespace This property is required. String
(Updatable) The namespace needed to determine the object storage bucket.
region This property is required. String
(Updatable) The destination Object Store Region specified by the customer.

Import

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

$ pulumi import oci:MeteringComputation/schedule:Schedule test_schedule "id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.