1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. getScheduledRuns
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

oci.MeteringComputation.getScheduledRuns

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

    This data source provides the list of Scheduled Runs in Oracle Cloud Infrastructure Metering Computation service.

    Returns the schedule history list.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testScheduledRuns = oci.MeteringComputation.getScheduledRuns({
        scheduleId: testSchedule.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_scheduled_runs = oci.MeteringComputation.get_scheduled_runs(schedule_id=test_schedule["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/meteringcomputation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := meteringcomputation.GetScheduledRuns(ctx, &meteringcomputation.GetScheduledRunsArgs{
    			ScheduleId: testSchedule.Id,
    		}, nil)
    		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 testScheduledRuns = Oci.MeteringComputation.GetScheduledRuns.Invoke(new()
        {
            ScheduleId = testSchedule.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.MeteringComputation.MeteringComputationFunctions;
    import com.pulumi.oci.MeteringComputation.inputs.GetScheduledRunsArgs;
    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) {
            final var testScheduledRuns = MeteringComputationFunctions.getScheduledRuns(GetScheduledRunsArgs.builder()
                .scheduleId(testSchedule.id())
                .build());
    
        }
    }
    
    variables:
      testScheduledRuns:
        fn::invoke:
          function: oci:MeteringComputation:getScheduledRuns
          arguments:
            scheduleId: ${testSchedule.id}
    

    Using getScheduledRuns

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getScheduledRuns(args: GetScheduledRunsArgs, opts?: InvokeOptions): Promise<GetScheduledRunsResult>
    function getScheduledRunsOutput(args: GetScheduledRunsOutputArgs, opts?: InvokeOptions): Output<GetScheduledRunsResult>
    def get_scheduled_runs(filters: Optional[Sequence[GetScheduledRunsFilter]] = None,
                           schedule_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetScheduledRunsResult
    def get_scheduled_runs_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetScheduledRunsFilterArgs]]]] = None,
                           schedule_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetScheduledRunsResult]
    func GetScheduledRuns(ctx *Context, args *GetScheduledRunsArgs, opts ...InvokeOption) (*GetScheduledRunsResult, error)
    func GetScheduledRunsOutput(ctx *Context, args *GetScheduledRunsOutputArgs, opts ...InvokeOption) GetScheduledRunsResultOutput

    > Note: This function is named GetScheduledRuns in the Go SDK.

    public static class GetScheduledRuns 
    {
        public static Task<GetScheduledRunsResult> InvokeAsync(GetScheduledRunsArgs args, InvokeOptions? opts = null)
        public static Output<GetScheduledRunsResult> Invoke(GetScheduledRunsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScheduledRunsResult> getScheduledRuns(GetScheduledRunsArgs args, InvokeOptions options)
    public static Output<GetScheduledRunsResult> getScheduledRuns(GetScheduledRunsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:MeteringComputation/getScheduledRuns:getScheduledRuns
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ScheduleId string
    The schedule unique ID.
    Filters List<GetScheduledRunsFilter>
    ScheduleId string
    The schedule unique ID.
    Filters []GetScheduledRunsFilter
    scheduleId String
    The schedule unique ID.
    filters List<GetScheduledRunsFilter>
    scheduleId string
    The schedule unique ID.
    filters GetScheduledRunsFilter[]
    scheduleId String
    The schedule unique ID.
    filters List<Property Map>

    getScheduledRuns Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ScheduleId string
    The OCID representing a unique shedule.
    ScheduledRunCollections List<GetScheduledRunsScheduledRunCollection>
    The list of scheduled_run_collection.
    Filters List<GetScheduledRunsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ScheduleId string
    The OCID representing a unique shedule.
    ScheduledRunCollections []GetScheduledRunsScheduledRunCollection
    The list of scheduled_run_collection.
    Filters []GetScheduledRunsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    scheduleId String
    The OCID representing a unique shedule.
    scheduledRunCollections List<GetScheduledRunsScheduledRunCollection>
    The list of scheduled_run_collection.
    filters List<GetScheduledRunsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    scheduleId string
    The OCID representing a unique shedule.
    scheduledRunCollections GetScheduledRunsScheduledRunCollection[]
    The list of scheduled_run_collection.
    filters GetScheduledRunsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    schedule_id str
    The OCID representing a unique shedule.
    scheduled_run_collections Sequence[GetScheduledRunsScheduledRunCollection]
    The list of scheduled_run_collection.
    filters Sequence[GetScheduledRunsFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    scheduleId String
    The OCID representing a unique shedule.
    scheduledRunCollections List<Property Map>
    The list of scheduled_run_collection.
    filters List<Property Map>

    Supporting Types

    GetScheduledRunsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetScheduledRunsScheduledRunCollection

    GetScheduledRunsScheduledRunCollectionItem

    Id string
    The OCID representing a unique shedule run.
    LifecycleDetails string
    Additional details about the scheduled run.
    ScheduleId string
    The schedule unique ID.
    State string
    Specifies whether or not the schedule job was successfully run.
    TimeCreated string
    The time the schedule started executing.
    TimeFinished string
    The time the schedule finished executing.
    Id string
    The OCID representing a unique shedule run.
    LifecycleDetails string
    Additional details about the scheduled run.
    ScheduleId string
    The schedule unique ID.
    State string
    Specifies whether or not the schedule job was successfully run.
    TimeCreated string
    The time the schedule started executing.
    TimeFinished string
    The time the schedule finished executing.
    id String
    The OCID representing a unique shedule run.
    lifecycleDetails String
    Additional details about the scheduled run.
    scheduleId String
    The schedule unique ID.
    state String
    Specifies whether or not the schedule job was successfully run.
    timeCreated String
    The time the schedule started executing.
    timeFinished String
    The time the schedule finished executing.
    id string
    The OCID representing a unique shedule run.
    lifecycleDetails string
    Additional details about the scheduled run.
    scheduleId string
    The schedule unique ID.
    state string
    Specifies whether or not the schedule job was successfully run.
    timeCreated string
    The time the schedule started executing.
    timeFinished string
    The time the schedule finished executing.
    id str
    The OCID representing a unique shedule run.
    lifecycle_details str
    Additional details about the scheduled run.
    schedule_id str
    The schedule unique ID.
    state str
    Specifies whether or not the schedule job was successfully run.
    time_created str
    The time the schedule started executing.
    time_finished str
    The time the schedule finished executing.
    id String
    The OCID representing a unique shedule run.
    lifecycleDetails String
    Additional details about the scheduled run.
    scheduleId String
    The schedule unique ID.
    state String
    Specifies whether or not the schedule job was successfully run.
    timeCreated String
    The time the schedule started executing.
    timeFinished String
    The time the schedule finished executing.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi