oci.DatabaseManagement.getJobExecutionsStatus
Explore with Pulumi AI
This data source provides details about a specific Job Executions Status resource in Oracle Cloud Infrastructure Database Management service.
Gets the number of job executions grouped by status for a job, Managed Database, or Database Group in a specific compartment. Only one of the parameters, jobId, managedDatabaseId, or managedDatabaseGroupId should be provided.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testJobExecutionsStatus = oci.DatabaseManagement.getJobExecutionsStatus({
    compartmentId: compartmentId,
    endTime: jobExecutionsStatusEndTime,
    startTime: jobExecutionsStatusStartTime,
    id: jobExecutionsStatusId,
    managedDatabaseGroupId: testManagedDatabaseGroup.id,
    managedDatabaseId: testManagedDatabase.id,
    name: jobExecutionsStatusName,
});
import pulumi
import pulumi_oci as oci
test_job_executions_status = oci.DatabaseManagement.get_job_executions_status(compartment_id=compartment_id,
    end_time=job_executions_status_end_time,
    start_time=job_executions_status_start_time,
    id=job_executions_status_id,
    managed_database_group_id=test_managed_database_group["id"],
    managed_database_id=test_managed_database["id"],
    name=job_executions_status_name)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/databasemanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databasemanagement.GetJobExecutionsStatus(ctx, &databasemanagement.GetJobExecutionsStatusArgs{
			CompartmentId:          compartmentId,
			EndTime:                jobExecutionsStatusEndTime,
			StartTime:              jobExecutionsStatusStartTime,
			Id:                     pulumi.StringRef(jobExecutionsStatusId),
			ManagedDatabaseGroupId: pulumi.StringRef(testManagedDatabaseGroup.Id),
			ManagedDatabaseId:      pulumi.StringRef(testManagedDatabase.Id),
			Name:                   pulumi.StringRef(jobExecutionsStatusName),
		}, 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 testJobExecutionsStatus = Oci.DatabaseManagement.GetJobExecutionsStatus.Invoke(new()
    {
        CompartmentId = compartmentId,
        EndTime = jobExecutionsStatusEndTime,
        StartTime = jobExecutionsStatusStartTime,
        Id = jobExecutionsStatusId,
        ManagedDatabaseGroupId = testManagedDatabaseGroup.Id,
        ManagedDatabaseId = testManagedDatabase.Id,
        Name = jobExecutionsStatusName,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetJobExecutionsStatusArgs;
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 testJobExecutionsStatus = DatabaseManagementFunctions.getJobExecutionsStatus(GetJobExecutionsStatusArgs.builder()
            .compartmentId(compartmentId)
            .endTime(jobExecutionsStatusEndTime)
            .startTime(jobExecutionsStatusStartTime)
            .id(jobExecutionsStatusId)
            .managedDatabaseGroupId(testManagedDatabaseGroup.id())
            .managedDatabaseId(testManagedDatabase.id())
            .name(jobExecutionsStatusName)
            .build());
    }
}
variables:
  testJobExecutionsStatus:
    fn::invoke:
      function: oci:DatabaseManagement:getJobExecutionsStatus
      arguments:
        compartmentId: ${compartmentId}
        endTime: ${jobExecutionsStatusEndTime}
        startTime: ${jobExecutionsStatusStartTime}
        id: ${jobExecutionsStatusId}
        managedDatabaseGroupId: ${testManagedDatabaseGroup.id}
        managedDatabaseId: ${testManagedDatabase.id}
        name: ${jobExecutionsStatusName}
Using getJobExecutionsStatus
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 getJobExecutionsStatus(args: GetJobExecutionsStatusArgs, opts?: InvokeOptions): Promise<GetJobExecutionsStatusResult>
function getJobExecutionsStatusOutput(args: GetJobExecutionsStatusOutputArgs, opts?: InvokeOptions): Output<GetJobExecutionsStatusResult>def get_job_executions_status(compartment_id: Optional[str] = None,
                              end_time: Optional[str] = None,
                              id: Optional[str] = None,
                              managed_database_group_id: Optional[str] = None,
                              managed_database_id: Optional[str] = None,
                              name: Optional[str] = None,
                              start_time: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetJobExecutionsStatusResult
def get_job_executions_status_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              end_time: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              managed_database_group_id: Optional[pulumi.Input[str]] = None,
                              managed_database_id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              start_time: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetJobExecutionsStatusResult]func GetJobExecutionsStatus(ctx *Context, args *GetJobExecutionsStatusArgs, opts ...InvokeOption) (*GetJobExecutionsStatusResult, error)
func GetJobExecutionsStatusOutput(ctx *Context, args *GetJobExecutionsStatusOutputArgs, opts ...InvokeOption) GetJobExecutionsStatusResultOutput> Note: This function is named GetJobExecutionsStatus in the Go SDK.
public static class GetJobExecutionsStatus 
{
    public static Task<GetJobExecutionsStatusResult> InvokeAsync(GetJobExecutionsStatusArgs args, InvokeOptions? opts = null)
    public static Output<GetJobExecutionsStatusResult> Invoke(GetJobExecutionsStatusInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetJobExecutionsStatusResult> getJobExecutionsStatus(GetJobExecutionsStatusArgs args, InvokeOptions options)
public static Output<GetJobExecutionsStatusResult> getJobExecutionsStatus(GetJobExecutionsStatusArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getJobExecutionsStatus:getJobExecutionsStatus
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- EndTime string
- The end time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- StartTime string
- The start time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- Id string
- The identifier of the resource.
- ManagedDatabase stringGroup Id 
- The OCID of the Managed Database Group.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- Name string
- A filter to return only resources that match the entire name.
- CompartmentId string
- The OCID of the compartment.
- EndTime string
- The end time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- StartTime string
- The start time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- Id string
- The identifier of the resource.
- ManagedDatabase stringGroup Id 
- The OCID of the Managed Database Group.
- ManagedDatabase stringId 
- The OCID of the Managed Database.
- Name string
- A filter to return only resources that match the entire name.
- compartmentId String
- The OCID of the compartment.
- endTime String
- The end time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- startTime String
- The start time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- id String
- The identifier of the resource.
- managedDatabase StringGroup Id 
- The OCID of the Managed Database Group.
- managedDatabase StringId 
- The OCID of the Managed Database.
- name String
- A filter to return only resources that match the entire name.
- compartmentId string
- The OCID of the compartment.
- endTime string
- The end time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- startTime string
- The start time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- id string
- The identifier of the resource.
- managedDatabase stringGroup Id 
- The OCID of the Managed Database Group.
- managedDatabase stringId 
- The OCID of the Managed Database.
- name string
- A filter to return only resources that match the entire name.
- compartment_id str
- The OCID of the compartment.
- end_time str
- The end time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- start_time str
- The start time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- id str
- The identifier of the resource.
- managed_database_ strgroup_ id 
- The OCID of the Managed Database Group.
- managed_database_ strid 
- The OCID of the Managed Database.
- name str
- A filter to return only resources that match the entire name.
- compartmentId String
- The OCID of the compartment.
- endTime String
- The end time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- startTime String
- The start time of the time range to retrieve the status summary of job executions in UTC in ISO-8601 format, which is "yyyy-MM-dd'T'hh:mm:ss.sss'Z'".
- id String
- The identifier of the resource.
- managedDatabase StringGroup Id 
- The OCID of the Managed Database Group.
- managedDatabase StringId 
- The OCID of the Managed Database.
- name String
- A filter to return only resources that match the entire name.
getJobExecutionsStatus Result
The following output properties are available:
- CompartmentId string
- EndTime string
- Items
List<GetJob Executions Status Item> 
- A list of JobExecutionsSummary objects.
- StartTime string
- Id string
- ManagedDatabase stringGroup Id 
- ManagedDatabase stringId 
- Name string
- CompartmentId string
- EndTime string
- Items
[]GetJob Executions Status Item 
- A list of JobExecutionsSummary objects.
- StartTime string
- Id string
- ManagedDatabase stringGroup Id 
- ManagedDatabase stringId 
- Name string
- compartmentId String
- endTime String
- items
List<GetJob Executions Status Item> 
- A list of JobExecutionsSummary objects.
- startTime String
- id String
- managedDatabase StringGroup Id 
- managedDatabase StringId 
- name String
- compartmentId string
- endTime string
- items
GetJob Executions Status Item[] 
- A list of JobExecutionsSummary objects.
- startTime string
- id string
- managedDatabase stringGroup Id 
- managedDatabase stringId 
- name string
- compartment_id str
- end_time str
- items
Sequence[databasemanagement.Get Job Executions Status Item] 
- A list of JobExecutionsSummary objects.
- start_time str
- id str
- managed_database_ strgroup_ id 
- managed_database_ strid 
- name str
- compartmentId String
- endTime String
- items List<Property Map>
- A list of JobExecutionsSummary objects.
- startTime String
- id String
- managedDatabase StringGroup Id 
- managedDatabase StringId 
- name String
Supporting Types
GetJobExecutionsStatusItem    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.