1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. getScheduledRun
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.MeteringComputation.getScheduledRun

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Scheduled Run resource in Oracle Cloud Infrastructure Metering Computation service.

    Returns the saved schedule run.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testScheduledRun = oci.MeteringComputation.getScheduledRun({
        scheduledRunId: testScheduledRunOciMeteringComputationScheduledRun.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_scheduled_run = oci.MeteringComputation.get_scheduled_run(scheduled_run_id=test_scheduled_run_oci_metering_computation_scheduled_run["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.GetScheduledRun(ctx, &meteringcomputation.GetScheduledRunArgs{
    			ScheduledRunId: testScheduledRunOciMeteringComputationScheduledRun.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 testScheduledRun = Oci.MeteringComputation.GetScheduledRun.Invoke(new()
        {
            ScheduledRunId = testScheduledRunOciMeteringComputationScheduledRun.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.GetScheduledRunArgs;
    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 testScheduledRun = MeteringComputationFunctions.getScheduledRun(GetScheduledRunArgs.builder()
                .scheduledRunId(testScheduledRunOciMeteringComputationScheduledRun.id())
                .build());
    
        }
    }
    
    variables:
      testScheduledRun:
        fn::invoke:
          Function: oci:MeteringComputation:getScheduledRun
          Arguments:
            scheduledRunId: ${testScheduledRunOciMeteringComputationScheduledRun.id}
    

    Using getScheduledRun

    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 getScheduledRun(args: GetScheduledRunArgs, opts?: InvokeOptions): Promise<GetScheduledRunResult>
    function getScheduledRunOutput(args: GetScheduledRunOutputArgs, opts?: InvokeOptions): Output<GetScheduledRunResult>
    def get_scheduled_run(scheduled_run_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetScheduledRunResult
    def get_scheduled_run_output(scheduled_run_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetScheduledRunResult]
    func GetScheduledRun(ctx *Context, args *GetScheduledRunArgs, opts ...InvokeOption) (*GetScheduledRunResult, error)
    func GetScheduledRunOutput(ctx *Context, args *GetScheduledRunOutputArgs, opts ...InvokeOption) GetScheduledRunResultOutput

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

    public static class GetScheduledRun 
    {
        public static Task<GetScheduledRunResult> InvokeAsync(GetScheduledRunArgs args, InvokeOptions? opts = null)
        public static Output<GetScheduledRunResult> Invoke(GetScheduledRunInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScheduledRunResult> getScheduledRun(GetScheduledRunArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:MeteringComputation/getScheduledRun:getScheduledRun
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ScheduledRunId string
    The scheduledRun unique OCID
    ScheduledRunId string
    The scheduledRun unique OCID
    scheduledRunId String
    The scheduledRun unique OCID
    scheduledRunId string
    The scheduledRun unique OCID
    scheduled_run_id str
    The scheduledRun unique OCID
    scheduledRunId String
    The scheduledRun unique OCID

    getScheduledRun Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional details about scheduled run failure
    ScheduleId string
    The ocid representing unique shedule
    ScheduledRunId string
    State string
    Specifies if the schedule job was run successfully or not.
    TimeCreated string
    The time when schedule started executing
    TimeFinished string
    The time when schedule finished executing
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional details about scheduled run failure
    ScheduleId string
    The ocid representing unique shedule
    ScheduledRunId string
    State string
    Specifies if the schedule job was run successfully or not.
    TimeCreated string
    The time when schedule started executing
    TimeFinished string
    The time when schedule finished executing
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional details about scheduled run failure
    scheduleId String
    The ocid representing unique shedule
    scheduledRunId String
    state String
    Specifies if the schedule job was run successfully or not.
    timeCreated String
    The time when schedule started executing
    timeFinished String
    The time when schedule finished executing
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Additional details about scheduled run failure
    scheduleId string
    The ocid representing unique shedule
    scheduledRunId string
    state string
    Specifies if the schedule job was run successfully or not.
    timeCreated string
    The time when schedule started executing
    timeFinished string
    The time when schedule finished executing
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Additional details about scheduled run failure
    schedule_id str
    The ocid representing unique shedule
    scheduled_run_id str
    state str
    Specifies if the schedule job was run successfully or not.
    time_created str
    The time when schedule started executing
    time_finished str
    The time when schedule finished executing
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional details about scheduled run failure
    scheduleId String
    The ocid representing unique shedule
    scheduledRunId String
    state String
    Specifies if the schedule job was run successfully or not.
    timeCreated String
    The time when schedule started executing
    timeFinished String
    The time when 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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi