Oracle Cloud Infrastructure v3.2.0 published on Thursday, Jul 10, 2025 by Pulumi
oci.FleetAppsManagement.getSchedulerJobCounts
Explore with Pulumi AI
This data source provides the list of Scheduler Job Counts in Oracle Cloud Infrastructure Fleet Apps Management service.
Retrieve aggregated summary information of Scheduler Jobs within a Compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSchedulerJobCounts = oci.FleetAppsManagement.getSchedulerJobCounts({
compartmentId: compartmentId,
compartmentIdInSubtree: schedulerJobCountCompartmentIdInSubtree,
});
import pulumi
import pulumi_oci as oci
test_scheduler_job_counts = oci.FleetAppsManagement.get_scheduler_job_counts(compartment_id=compartment_id,
compartment_id_in_subtree=scheduler_job_count_compartment_id_in_subtree)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/fleetappsmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fleetappsmanagement.GetSchedulerJobCounts(ctx, &fleetappsmanagement.GetSchedulerJobCountsArgs{
CompartmentId: pulumi.StringRef(compartmentId),
CompartmentIdInSubtree: pulumi.BoolRef(schedulerJobCountCompartmentIdInSubtree),
}, 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 testSchedulerJobCounts = Oci.FleetAppsManagement.GetSchedulerJobCounts.Invoke(new()
{
CompartmentId = compartmentId,
CompartmentIdInSubtree = schedulerJobCountCompartmentIdInSubtree,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.inputs.GetSchedulerJobCountsArgs;
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 testSchedulerJobCounts = FleetAppsManagementFunctions.getSchedulerJobCounts(GetSchedulerJobCountsArgs.builder()
.compartmentId(compartmentId)
.compartmentIdInSubtree(schedulerJobCountCompartmentIdInSubtree)
.build());
}
}
variables:
testSchedulerJobCounts:
fn::invoke:
function: oci:FleetAppsManagement:getSchedulerJobCounts
arguments:
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${schedulerJobCountCompartmentIdInSubtree}
Using getSchedulerJobCounts
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 getSchedulerJobCounts(args: GetSchedulerJobCountsArgs, opts?: InvokeOptions): Promise<GetSchedulerJobCountsResult>
function getSchedulerJobCountsOutput(args: GetSchedulerJobCountsOutputArgs, opts?: InvokeOptions): Output<GetSchedulerJobCountsResult>
def get_scheduler_job_counts(compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[GetSchedulerJobCountsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetSchedulerJobCountsResult
def get_scheduler_job_counts_output(compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSchedulerJobCountsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchedulerJobCountsResult]
func GetSchedulerJobCounts(ctx *Context, args *GetSchedulerJobCountsArgs, opts ...InvokeOption) (*GetSchedulerJobCountsResult, error)
func GetSchedulerJobCountsOutput(ctx *Context, args *GetSchedulerJobCountsOutputArgs, opts ...InvokeOption) GetSchedulerJobCountsResultOutput
> Note: This function is named GetSchedulerJobCounts
in the Go SDK.
public static class GetSchedulerJobCounts
{
public static Task<GetSchedulerJobCountsResult> InvokeAsync(GetSchedulerJobCountsArgs args, InvokeOptions? opts = null)
public static Output<GetSchedulerJobCountsResult> Invoke(GetSchedulerJobCountsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchedulerJobCountsResult> getSchedulerJobCounts(GetSchedulerJobCountsArgs args, InvokeOptions options)
public static Output<GetSchedulerJobCountsResult> getSchedulerJobCounts(GetSchedulerJobCountsArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getSchedulerJobCounts:getSchedulerJobCounts
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- Compartment
Id boolIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- Filters
List<Get
Scheduler Job Counts Filter>
- Compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- Compartment
Id boolIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- Filters
[]Get
Scheduler Job Counts Filter
- compartment
Id String - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- compartment
Id BooleanIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters
List<Get
Scheduler Job Counts Filter>
- compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- compartment
Id booleanIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters
Get
Scheduler Job Counts Filter[]
- compartment_
id str - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- compartment_
id_ boolin_ subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters
Sequence[Get
Scheduler Job Counts Filter]
- compartment
Id String - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- compartment
Id BooleanIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters List<Property Map>
getSchedulerJobCounts Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduler
Job List<GetAggregation Collections Scheduler Job Counts Scheduler Job Aggregation Collection> - The list of scheduler_job_aggregation_collection.
- Compartment
Id string - Compartment
Id boolIn Subtree - Filters
List<Get
Scheduler Job Counts Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Scheduler
Job []GetAggregation Collections Scheduler Job Counts Scheduler Job Aggregation Collection - The list of scheduler_job_aggregation_collection.
- Compartment
Id string - Compartment
Id boolIn Subtree - Filters
[]Get
Scheduler Job Counts Filter
- id String
- The provider-assigned unique ID for this managed resource.
- scheduler
Job List<GetAggregation Collections Scheduler Job Counts Scheduler Job Aggregation Collection> - The list of scheduler_job_aggregation_collection.
- compartment
Id String - compartment
Id BooleanIn Subtree - filters
List<Get
Scheduler Job Counts Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- scheduler
Job GetAggregation Collections Scheduler Job Counts Scheduler Job Aggregation Collection[] - The list of scheduler_job_aggregation_collection.
- compartment
Id string - compartment
Id booleanIn Subtree - filters
Get
Scheduler Job Counts Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- scheduler_
job_ Sequence[Getaggregation_ collections Scheduler Job Counts Scheduler Job Aggregation Collection] - The list of scheduler_job_aggregation_collection.
- compartment_
id str - compartment_
id_ boolin_ subtree - filters
Sequence[Get
Scheduler Job Counts Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- scheduler
Job List<Property Map>Aggregation Collections - The list of scheduler_job_aggregation_collection.
- compartment
Id String - compartment
Id BooleanIn Subtree - filters List<Property Map>
Supporting Types
GetSchedulerJobCountsFilter
GetSchedulerJobCountsSchedulerJobAggregationCollection
- Items
List<Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item> - List of SchedulerJobAggregation objects.
- Items
[]Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item - List of SchedulerJobAggregation objects.
- items
List<Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item> - List of SchedulerJobAggregation objects.
- items
Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item[] - List of SchedulerJobAggregation objects.
- items
Sequence[Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item] - List of SchedulerJobAggregation objects.
- items List<Property Map>
- List of SchedulerJobAggregation objects.
GetSchedulerJobCountsSchedulerJobAggregationCollectionItem
- Dimensions
List<Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item Dimension> - Aggregated summary information for a SchedulerJob.
- Scheduler
Job intCount Count - Count of jobs in a Compartment.
- Dimensions
[]Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item Dimension - Aggregated summary information for a SchedulerJob.
- Scheduler
Job intCount Count - Count of jobs in a Compartment.
- dimensions
List<Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item Dimension> - Aggregated summary information for a SchedulerJob.
- scheduler
Job IntegerCount Count - Count of jobs in a Compartment.
- dimensions
Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item Dimension[] - Aggregated summary information for a SchedulerJob.
- scheduler
Job numberCount Count - Count of jobs in a Compartment.
- dimensions
Sequence[Get
Scheduler Job Counts Scheduler Job Aggregation Collection Item Dimension] - Aggregated summary information for a SchedulerJob.
- scheduler_
job_ intcount_ count - Count of jobs in a Compartment.
- dimensions List<Property Map>
- Aggregated summary information for a SchedulerJob.
- scheduler
Job NumberCount Count - Count of jobs in a Compartment.
GetSchedulerJobCountsSchedulerJobAggregationCollectionItemDimension
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.