Oracle Cloud Infrastructure
getJobExecutionsStatus
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testJobExecutionsStatus = Output.Create(Oci.DatabaseManagement.GetJobExecutionsStatus.InvokeAsync(new Oci.DatabaseManagement.GetJobExecutionsStatusArgs
{
CompartmentId = @var.Compartment_id,
EndTime = @var.Job_executions_status_end_time,
StartTime = @var.Job_executions_status_start_time,
Id = @var.Job_executions_status_id,
ManagedDatabaseGroupId = oci_database_management_managed_database_group.Test_managed_database_group.Id,
ManagedDatabaseId = oci_database_management_managed_database.Test_managed_database.Id,
Name = @var.Job_executions_status_name,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
EndTime: _var.Job_executions_status_end_time,
StartTime: _var.Job_executions_status_start_time,
Id: pulumi.StringRef(_var.Job_executions_status_id),
ManagedDatabaseGroupId: pulumi.StringRef(oci_database_management_managed_database_group.Test_managed_database_group.Id),
ManagedDatabaseId: pulumi.StringRef(oci_database_management_managed_database.Test_managed_database.Id),
Name: pulumi.StringRef(_var.Job_executions_status_name),
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_job_executions_status = oci.DatabaseManagement.get_job_executions_status(compartment_id=var["compartment_id"],
end_time=var["job_executions_status_end_time"],
start_time=var["job_executions_status_start_time"],
id=var["job_executions_status_id"],
managed_database_group_id=oci_database_management_managed_database_group["test_managed_database_group"]["id"],
managed_database_id=oci_database_management_managed_database["test_managed_database"]["id"],
name=var["job_executions_status_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testJobExecutionsStatus = oci.DatabaseManagement.getJobExecutionsStatus({
compartmentId: _var.compartment_id,
endTime: _var.job_executions_status_end_time,
startTime: _var.job_executions_status_start_time,
id: _var.job_executions_status_id,
managedDatabaseGroupId: oci_database_management_managed_database_group.test_managed_database_group.id,
managedDatabaseId: oci_database_management_managed_database.test_managed_database.id,
name: _var.job_executions_status_name,
});
Coming soon!
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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:DatabaseManagement/getJobExecutionsStatus:getJobExecutionsStatus
Arguments:
# Arguments dictionary
The following arguments are supported:
- Compartment
Id string The OCID of the compartment.
- End
Time 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'".
- Start
Time 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.
- Managed
Database stringGroup Id The OCID of the Managed Database Group.
- Managed
Database stringId The OCID of the Managed Database.
- Name string
A filter to return only resources that match the entire name.
- Compartment
Id string The OCID of the compartment.
- End
Time 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'".
- Start
Time 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.
- Managed
Database stringGroup Id The OCID of the Managed Database Group.
- Managed
Database stringId The OCID of the Managed Database.
- Name string
A filter to return only resources that match the entire name.
- compartment
Id String The OCID of the compartment.
- end
Time 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'".
- start
Time 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.
- managed
Database StringGroup Id The OCID of the Managed Database Group.
- managed
Database StringId The OCID of the Managed Database.
- name String
A filter to return only resources that match the entire name.
- compartment
Id string The OCID of the compartment.
- end
Time 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'".
- start
Time 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.
- managed
Database stringGroup Id The OCID of the Managed Database Group.
- managed
Database 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.
- compartment
Id String The OCID of the compartment.
- end
Time 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'".
- start
Time 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.
- managed
Database StringGroup Id The OCID of the Managed Database Group.
- managed
Database 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:
- Compartment
Id string - End
Time string - Items
List<Get
Job Executions Status Item> A list of JobExecutionsSummary objects.
- Start
Time string - Id string
- Managed
Database stringGroup Id - Managed
Database stringId - Name string
- Compartment
Id string - End
Time string - Items
[]Get
Job Executions Status Item A list of JobExecutionsSummary objects.
- Start
Time string - Id string
- Managed
Database stringGroup Id - Managed
Database stringId - Name string
- compartment
Id String - end
Time String - items
List<Get
Job Executions Status Item> A list of JobExecutionsSummary objects.
- start
Time String - id String
- managed
Database StringGroup Id - managed
Database StringId - name String
- compartment
Id string - end
Time string - items
Get
Job Executions Status Item[] A list of JobExecutionsSummary objects.
- start
Time string - id string
- managed
Database stringGroup Id - managed
Database stringId - name string
- compartment_
id str - end_
time str - items
Get
Job Executions Status Item] A list of JobExecutionsSummary objects.
- start_
time str - id str
- managed_
database_ strgroup_ id - managed_
database_ strid - name str
- compartment
Id String - end
Time String - items List<Property Map>
A list of JobExecutionsSummary objects.
- start
Time String - id String
- managed
Database StringGroup Id - managed
Database StringId - name String
Supporting Types
GetJobExecutionsStatusItem
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.