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[_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 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 scheduleResource = new Oci.MeteringComputation.Schedule("scheduleResource", 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, "scheduleResource", &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 scheduleResource = new Schedule("scheduleResource", 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());
schedule_resource = oci.metering_computation.Schedule("scheduleResource",
compartment_id="string",
result_location=oci.metering_computation.ScheduleResultLocationArgs(
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=oci.metering_computation.ScheduleQueryPropertiesArgs(
date_range=oci.metering_computation.ScheduleQueryPropertiesDateRangeArgs(
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=[oci.metering_computation.ScheduleQueryPropertiesGroupByTagArgs(
key="string",
namespace="string",
value="string",
)],
is_aggregate_by_time=False,
query_type="string",
),
saved_report_id="string")
const scheduleResource = new oci.meteringcomputation.Schedule("scheduleResource", {
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
The Schedule resource accepts the following input properties:
- Compartment
Id string - The customer tenancy.
- Result
Location ScheduleResult Location - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - Schedule
Recurrences 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.
- Time
Scheduled 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.
- Output
File stringFormat - (Updatable) Specifies the supported output file format.
- Query
Properties ScheduleQuery Properties - The query properties.
- Saved
Report stringId - The saved report ID which can also be used to generate a query.
- Compartment
Id string - 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 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.
- Time
Scheduled 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.
- Output
File stringFormat - (Updatable) Specifies the supported output file format.
- Query
Properties ScheduleQuery Properties Args - The query properties.
- Saved
Report stringId - The saved report ID which can also be used to generate a query.
- compartment
Id String - The customer tenancy.
- result
Location ScheduleResult Location - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - schedule
Recurrences 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.
- time
Scheduled 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.
- output
File StringFormat - (Updatable) Specifies the supported output file format.
- query
Properties ScheduleQuery Properties - The query properties.
- saved
Report StringId - The saved report ID which can also be used to generate a query.
- compartment
Id string - The customer tenancy.
- result
Location ScheduleResult Location - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - schedule
Recurrences 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.
- time
Scheduled 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.
- output
File stringFormat - (Updatable) Specifies the supported output file format.
- query
Properties ScheduleQuery Properties - The query properties.
- saved
Report stringId - The saved report ID which can also be used to generate a query.
- compartment_
id str - The customer tenancy.
- result_
location meteringcomputation.Schedule Result 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 meteringcomputation.Schedule Query Properties Args - The query properties.
- saved_
report_ strid - The saved report ID which can also be used to generate a query.
- compartment
Id String - The customer tenancy.
- result
Location Property Map - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - schedule
Recurrences 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.
- time
Scheduled 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.
- output
File StringFormat - (Updatable) Specifies the supported output file format.
- query
Properties Property Map - The query properties.
- saved
Report 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"}
- Time
Created string - The date and time the schedule was created.
- Time
Next 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"}
- Time
Created string - The date and time the schedule was created.
- Time
Next 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"}
- time
Created String - The date and time the schedule was created.
- time
Next 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"}
- time
Created string - The date and time the schedule was created.
- time
Next 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"}
- time
Created String - The date and time the schedule was created.
- time
Next 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[_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)
Resource lookup is not supported in YAML
- 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.
- Compartment
Id 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.
- Output
File stringFormat - (Updatable) Specifies the supported output file format.
- Query
Properties ScheduleQuery Properties - The query properties.
- Result
Location ScheduleResult Location - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - Saved
Report stringId - The saved report ID which can also be used to generate a query.
- Schedule
Recurrences 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"}
- Time
Created string - The date and time the schedule was created.
- Time
Next stringRun - The date and time of the next job execution.
- Time
Scheduled 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 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.
- Output
File stringFormat - (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 stringId - The saved report ID which can also be used to generate a query.
- Schedule
Recurrences 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"}
- Time
Created string - The date and time the schedule was created.
- Time
Next stringRun - The date and time of the next job execution.
- Time
Scheduled 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 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.
- output
File StringFormat - (Updatable) Specifies the supported output file format.
- query
Properties ScheduleQuery Properties - The query properties.
- result
Location ScheduleResult Location - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - saved
Report StringId - The saved report ID which can also be used to generate a query.
- schedule
Recurrences 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"}
- time
Created String - The date and time the schedule was created.
- time
Next StringRun - The date and time of the next job execution.
- time
Scheduled 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 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.
- output
File stringFormat - (Updatable) Specifies the supported output file format.
- query
Properties ScheduleQuery Properties - The query properties.
- result
Location ScheduleResult Location - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - saved
Report stringId - The saved report ID which can also be used to generate a query.
- schedule
Recurrences 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"}
- time
Created string - The date and time the schedule was created.
- time
Next stringRun - The date and time of the next job execution.
- time
Scheduled 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 meteringcomputation.Schedule Query Properties Args - The query properties.
- result_
location meteringcomputation.Schedule Result 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
- compartment
Id 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.
- output
File StringFormat - (Updatable) Specifies the supported output file format.
- query
Properties Property Map - The query properties.
- result
Location Property Map - (Updatable) The location where usage or cost CSVs will be uploaded defined by
locationType
, which corresponds with type-specific characteristics. - saved
Report StringId - The saved report ID which can also be used to generate a query.
- schedule
Recurrences 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"}
- time
Created String - The date and time the schedule was created.
- time
Next StringRun - The date and time of the next job execution.
- time
Scheduled 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
- Date
Range 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
- Compartment
Depth double - The depth level of the compartment.
- Filter string
- The filter object for query usage.
- Group
Bies 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<Schedule
Query 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 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 string
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- Compartment
Depth float64 - The depth level of the compartment.
- Filter string
- The filter object for query usage.
- Group
Bies []string - Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- []Schedule
Query 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 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 String
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- compartment
Depth Double - The depth level of the compartment.
- filter String
- The filter object for query usage.
- group
Bies 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<Schedule
Query 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 BooleanBy 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 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 string
- The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
- compartment
Depth number - The depth level of the compartment.
- filter string
- The filter object for query usage.
- group
Bies string[] - Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]
- Schedule
Query 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 booleanBy 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 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 meteringcomputation.Schedule Query 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[meteringcomputation.
Schedule Query 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
- date
Range 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
- compartment
Depth Number - The depth level of the compartment.
- filter String
- The filter object for query usage.
- group
Bies 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" ]
- is
Aggregate BooleanBy 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 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
- Date
Range stringType - Defines whether the schedule date range is STATIC or DYNAMIC.
- Dynamic
Date stringRange Type - Time
Usage stringEnded - The usage end time.
- Time
Usage stringStarted - The usage start time.
- Date
Range stringType - Defines whether the schedule date range is STATIC or DYNAMIC.
- Dynamic
Date stringRange Type - Time
Usage stringEnded - The usage end time.
- Time
Usage stringStarted - The usage start time.
- date
Range StringType - Defines whether the schedule date range is STATIC or DYNAMIC.
- dynamic
Date StringRange Type - time
Usage StringEnded - The usage end time.
- time
Usage StringStarted - The usage start time.
- date
Range stringType - Defines whether the schedule date range is STATIC or DYNAMIC.
- dynamic
Date stringRange Type - time
Usage stringEnded - The usage end time.
- time
Usage 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.
- date
Range StringType - Defines whether the schedule date range is STATIC or DYNAMIC.
- dynamic
Date StringRange Type - time
Usage StringEnded - The usage end time.
- time
Usage StringStarted - The usage start time.
ScheduleQueryPropertiesGroupByTag, ScheduleQueryPropertiesGroupByTagArgs
ScheduleResultLocation, ScheduleResultLocationArgs
- Bucket string
- (Updatable) The bucket name where usage or cost CSVs will be uploaded.
- Location
Type 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.
- Location
Type 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.
- location
Type 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.
- location
Type 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.
- location
Type 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
oci
Terraform Provider.