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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
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}
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[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[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 string
- The unique name of the resource.
- args ScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args ScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var ociScheduleResource = new com.pulumi.oci.MeteringComputation.Schedule("ociScheduleResource", com.pulumi.oci.MeteringComputation.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.0)
        .filter("string")
        .groupBies("string")
        .groupByTags(ScheduleQueryPropertiesGroupByTagArgs.builder()
            .key("string")
            .namespace("string")
            .value("string")
            .build())
        .isAggregateByTime(false)
        .queryType("string")
        .build())
    .savedReportId("string")
    .build());
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")
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",
});
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
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 string
- The customer tenancy.
- ResultLocation ScheduleResult Location 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- ScheduleRecurrences 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 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 
- 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.
- 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 string
- The unique name of the user-created schedule.
- OutputFile stringFormat 
- (Updatable) Specifies the supported output file format.
- QueryProperties ScheduleQuery Properties 
- The query properties.
- SavedReport stringId 
- The saved report ID which can also be used to generate a query.
- CompartmentId string
- The customer tenancy.
- ResultLocation ScheduleResult Location Args 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- ScheduleRecurrences 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 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 
- 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.
- 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 string
- The unique name of the user-created schedule.
- OutputFile stringFormat 
- (Updatable) Specifies the supported output file format.
- QueryProperties ScheduleQuery Properties Args 
- The query properties.
- SavedReport stringId 
- The saved report ID which can also be used to generate a query.
- compartmentId String
- The customer tenancy.
- resultLocation ScheduleResult Location 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- scheduleRecurrences 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 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 
- 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.
- 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 String
- The unique name of the user-created schedule.
- outputFile StringFormat 
- (Updatable) Specifies the supported output file format.
- queryProperties ScheduleQuery Properties 
- The query properties.
- savedReport StringId 
- The saved report ID which can also be used to generate a query.
- compartmentId string
- The customer tenancy.
- resultLocation ScheduleResult Location 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- scheduleRecurrences 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 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 
- {[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.
- {[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 string
- The unique name of the user-created schedule.
- outputFile stringFormat 
- (Updatable) Specifies the supported output file format.
- queryProperties ScheduleQuery Properties 
- The query properties.
- savedReport stringId 
- The saved report ID which can also be used to generate a query.
- compartment_id str
- The customer tenancy.
- result_location ScheduleResult Location Args 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- schedule_recurrences 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 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 
- 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.
- 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 str
- The unique name of the user-created schedule.
- output_file_ strformat 
- (Updatable) Specifies the supported output file format.
- query_properties ScheduleQuery Properties Args 
- The query properties.
- saved_report_ strid 
- The saved report ID which can also be used to generate a query.
- compartmentId String
- The customer tenancy.
- resultLocation Property Map
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- scheduleRecurrences 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 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 
- 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.
- 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 String
- The unique name of the user-created schedule.
- outputFile StringFormat 
- (Updatable) Specifies the supported output file format.
- queryProperties Property Map
- The query properties.
- savedReport StringId 
- 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.
- 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.
- TimeNext stringRun 
- 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.
- 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.
- TimeNext stringRun 
- 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.
- 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.
- timeNext StringRun 
- 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.
- {[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.
- timeNext stringRun 
- 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.
- 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_ strrun 
- 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.
- 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.
- timeNext StringRun 
- 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[ScheduleQueryPropertiesArgs] = None,
        result_location: Optional[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) -> Schedulefunc 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- CompartmentId string
- The customer tenancy.
- 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.
- 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 string
- The unique name of the user-created schedule.
- OutputFile stringFormat 
- (Updatable) Specifies the supported output file format.
- QueryProperties ScheduleQuery Properties 
- The query properties.
- ResultLocation ScheduleResult Location 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- SavedReport stringId 
- The saved report ID which can also be used to generate a query.
- ScheduleRecurrences 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.
- 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.
- TimeNext stringRun 
- The date and time of the next job execution.
- TimeScheduled 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 string
- The customer tenancy.
- 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.
- 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 string
- The unique name of the user-created schedule.
- OutputFile stringFormat 
- (Updatable) Specifies the supported output file format.
- QueryProperties ScheduleQuery Properties Args 
- The query properties.
- ResultLocation ScheduleResult Location Args 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- SavedReport stringId 
- The saved report ID which can also be used to generate a query.
- ScheduleRecurrences 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.
- 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.
- TimeNext stringRun 
- The date and time of the next job execution.
- TimeScheduled 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 String
- The customer tenancy.
- 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.
- 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 String
- The unique name of the user-created schedule.
- outputFile StringFormat 
- (Updatable) Specifies the supported output file format.
- queryProperties ScheduleQuery Properties 
- The query properties.
- resultLocation ScheduleResult Location 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- savedReport StringId 
- The saved report ID which can also be used to generate a query.
- scheduleRecurrences 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.
- 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.
- timeNext StringRun 
- The date and time of the next job execution.
- timeScheduled 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 string
- The customer tenancy.
- {[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.
- {[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 string
- The unique name of the user-created schedule.
- outputFile stringFormat 
- (Updatable) Specifies the supported output file format.
- queryProperties ScheduleQuery Properties 
- The query properties.
- resultLocation ScheduleResult Location 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- savedReport stringId 
- The saved report ID which can also be used to generate a query.
- scheduleRecurrences 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.
- {[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.
- timeNext stringRun 
- The date and time of the next job execution.
- timeScheduled 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 str
- The customer tenancy.
- 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.
- 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 str
- The unique name of the user-created schedule.
- output_file_ strformat 
- (Updatable) Specifies the supported output file format.
- query_properties ScheduleQuery Properties Args 
- The query properties.
- result_location ScheduleResult Location Args 
- (Updatable) The location where usage or cost CSVs will be uploaded defined by locationType, which corresponds with type-specific characteristics.
- saved_report_ strid 
- The saved report ID which can also be used to generate a query.
- schedule_recurrences 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.
- 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_ strrun 
- The date and time of the next job execution.
- time_scheduled 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 String
- The customer tenancy.
- 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.
- 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 String
- The unique name of the user-created schedule.
- outputFile StringFormat 
- (Updatable) Specifies the supported output file format.
- queryProperties 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.
- savedReport StringId 
- The saved report ID which can also be used to generate a query.
- scheduleRecurrences 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.
- 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.
- timeNext StringRun 
- The date and time of the next job execution.
- timeScheduled 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 ScheduleQuery Properties Date Range 
- Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
- Granularity string
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- CompartmentDepth double
- The depth level of the compartment.
- Filter string
- The filter object for query usage.
- GroupBies List<string>
- Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- 
List<ScheduleQuery Properties Group By Tag> 
- 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" ]
- IsAggregate boolBy Time 
- Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
- QueryType 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 ScheduleQuery Properties Date Range 
- Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
- Granularity string
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- CompartmentDepth float64
- The depth level of the compartment.
- Filter string
- The filter object for query usage.
- GroupBies []string
- Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- 
[]ScheduleQuery Properties Group By Tag 
- 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" ]
- IsAggregate boolBy Time 
- Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
- QueryType 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 ScheduleQuery Properties Date Range 
- Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
- granularity String
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- compartmentDepth Double
- The depth level of the compartment.
- filter String
- The filter object for query usage.
- groupBies List<String>
- Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- 
List<ScheduleQuery Properties Group By Tag> 
- 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" ]
- isAggregate BooleanBy Time 
- Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
- queryType 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 ScheduleQuery Properties Date Range 
- Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
- granularity string
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- compartmentDepth number
- The depth level of the compartment.
- filter string
- The filter object for query usage.
- groupBies string[]
- Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- 
ScheduleQuery Properties Group By Tag[] 
- 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" ]
- isAggregate booleanBy Time 
- Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
- queryType 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 ScheduleQuery Properties Date Range 
- Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
- granularity str
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- compartment_depth float
- The depth level of the compartment.
- filter str
- The filter object for query usage.
- group_bies Sequence[str]
- Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- 
Sequence[ScheduleQuery Properties Group By Tag] 
- 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_ boolby_ time 
- Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
- query_type 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 Property Map
- Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.
- granularity String
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- compartmentDepth Number
- The depth level of the compartment.
- filter String
- The filter object for query usage.
- groupBies List<String>
- Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- 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" ]
- isAggregate BooleanBy Time 
- Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
- queryType 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          
- DateRange stringType 
- Defines whether the schedule date range is STATIC or DYNAMIC.
- DynamicDate stringRange Type 
- TimeUsage stringEnded 
- The usage end time.
- TimeUsage stringStarted 
- The usage start time.
- DateRange stringType 
- Defines whether the schedule date range is STATIC or DYNAMIC.
- DynamicDate stringRange Type 
- TimeUsage stringEnded 
- The usage end time.
- TimeUsage stringStarted 
- The usage start time.
- dateRange StringType 
- Defines whether the schedule date range is STATIC or DYNAMIC.
- dynamicDate StringRange Type 
- timeUsage StringEnded 
- The usage end time.
- timeUsage StringStarted 
- The usage start time.
- dateRange stringType 
- Defines whether the schedule date range is STATIC or DYNAMIC.
- dynamicDate stringRange Type 
- timeUsage stringEnded 
- The usage end time.
- timeUsage stringStarted 
- The usage start time.
- date_range_ strtype 
- Defines whether the schedule date range is STATIC or DYNAMIC.
- dynamic_date_ strrange_ type 
- time_usage_ strended 
- The usage end time.
- time_usage_ strstarted 
- The usage start time.
- dateRange StringType 
- Defines whether the schedule date range is STATIC or DYNAMIC.
- dynamicDate StringRange Type 
- timeUsage StringEnded 
- The usage end time.
- timeUsage StringStarted 
- The usage start time.
ScheduleQueryPropertiesGroupByTag, ScheduleQueryPropertiesGroupByTagArgs            
ScheduleResultLocation, ScheduleResultLocationArgs      
- Bucket string
- (Updatable) The bucket name where usage or cost CSVs will be uploaded.
- LocationType string
- (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
- Namespace string
- (Updatable) The namespace needed to determine the object storage bucket.
- Region string
- (Updatable) The destination Object Store Region specified by the customer.
- Bucket string
- (Updatable) The bucket name where usage or cost CSVs will be uploaded.
- LocationType string
- (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
- Namespace string
- (Updatable) The namespace needed to determine the object storage bucket.
- Region string
- (Updatable) The destination Object Store Region specified by the customer.
- bucket String
- (Updatable) The bucket name where usage or cost CSVs will be uploaded.
- locationType String
- (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
- namespace String
- (Updatable) The namespace needed to determine the object storage bucket.
- region String
- (Updatable) The destination Object Store Region specified by the customer.
- bucket string
- (Updatable) The bucket name where usage or cost CSVs will be uploaded.
- locationType string
- (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
- namespace string
- (Updatable) The namespace needed to determine the object storage bucket.
- region string
- (Updatable) The destination Object Store Region specified by the customer.
- bucket str
- (Updatable) The bucket name where usage or cost CSVs will be uploaded.
- location_type str
- (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
- namespace str
- (Updatable) The namespace needed to determine the object storage bucket.
- region str
- (Updatable) The destination Object Store Region specified by the customer.
- bucket String
- (Updatable) The bucket name where usage or cost CSVs will be uploaded.
- locationType String
- (Updatable) Defines the type of location where the usage or cost CSVs will be stored.
- namespace String
- (Updatable) The namespace needed to determine the object storage bucket.
- region 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"
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 ociTerraform Provider.