Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.MeteringComputation.getScheduledRuns
Explore with Pulumi AI
This data source provides the list of Scheduled Runs in Oracle Cloud Infrastructure Metering Computation service.
Returns 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/v2/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[_meteringcomputation.GetScheduledRunsFilter]] = None,
schedule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduledRunsResult
def get_scheduled_runs_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_meteringcomputation.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:MeteringComputation/getScheduledRuns:getScheduledRuns
arguments:
# arguments dictionary
The following arguments are supported:
- Schedule
Id string - The unique ID of a schedule.
- Filters
List<Get
Scheduled Runs Filter>
- Schedule
Id string - The unique ID of a schedule.
- Filters
[]Get
Scheduled Runs Filter
- schedule
Id String - The unique ID of a schedule.
- filters
List<Get
Scheduled Runs Filter>
- schedule
Id string - The unique ID of a schedule.
- filters
Get
Scheduled Runs Filter[]
- schedule_
id str - The unique ID of a schedule.
- filters
Sequence[meteringcomputation.
Get Scheduled Runs Filter]
- schedule
Id String - The unique ID of a schedule.
- filters List<Property Map>
getScheduledRuns Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Schedule
Id string - The ocid representing unique shedule
- Scheduled
Run List<GetCollections Scheduled Runs Scheduled Run Collection> - The list of scheduled_run_collection.
- Filters
List<Get
Scheduled Runs Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Schedule
Id string - The ocid representing unique shedule
- Scheduled
Run []GetCollections Scheduled Runs Scheduled Run Collection - The list of scheduled_run_collection.
- Filters
[]Get
Scheduled Runs Filter
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Id String - The ocid representing unique shedule
- scheduled
Run List<GetCollections Scheduled Runs Scheduled Run Collection> - The list of scheduled_run_collection.
- filters
List<Get
Scheduled Runs Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- schedule
Id string - The ocid representing unique shedule
- scheduled
Run GetCollections Scheduled Runs Scheduled Run Collection[] - The list of scheduled_run_collection.
- filters
Get
Scheduled Runs Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- schedule_
id str - The ocid representing unique shedule
- scheduled_
run_ Sequence[meteringcomputation.collections Get Scheduled Runs Scheduled Run Collection] - The list of scheduled_run_collection.
- filters
Sequence[meteringcomputation.
Get Scheduled Runs Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Id String - The ocid representing unique shedule
- scheduled
Run List<Property Map>Collections - The list of scheduled_run_collection.
- filters List<Property Map>
Supporting Types
GetScheduledRunsFilter
GetScheduledRunsScheduledRunCollection
GetScheduledRunsScheduledRunCollectionItem
- Id string
- The ocid representing unique shedule run
- Lifecycle
Details string - Additional details about scheduled run failure
- Schedule
Id string - The unique ID of a schedule.
- State string
- Specifies if the schedule job was run successfully or not.
- Time
Created string - The time when schedule started executing
- Time
Finished string - The time when schedule finished executing
- Id string
- The ocid representing unique shedule run
- Lifecycle
Details string - Additional details about scheduled run failure
- Schedule
Id string - The unique ID of a schedule.
- State string
- Specifies if the schedule job was run successfully or not.
- Time
Created string - The time when schedule started executing
- Time
Finished string - The time when schedule finished executing
- id String
- The ocid representing unique shedule run
- lifecycle
Details String - Additional details about scheduled run failure
- schedule
Id String - The unique ID of a schedule.
- state String
- Specifies if the schedule job was run successfully or not.
- time
Created String - The time when schedule started executing
- time
Finished String - The time when schedule finished executing
- id string
- The ocid representing unique shedule run
- lifecycle
Details string - Additional details about scheduled run failure
- schedule
Id string - The unique ID of a schedule.
- state string
- Specifies if the schedule job was run successfully or not.
- time
Created string - The time when schedule started executing
- time
Finished string - The time when schedule finished executing
- id str
- The ocid representing unique shedule run
- lifecycle_
details str - Additional details about scheduled run failure
- schedule_
id str - The unique ID of a schedule.
- 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 ocid representing unique shedule run
- lifecycle
Details String - Additional details about scheduled run failure
- schedule
Id String - The unique ID of a schedule.
- state String
- Specifies if the schedule job was run successfully or not.
- time
Created String - The time when schedule started executing
- time
Finished 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.